JP5030141B2 - Structured document image processing apparatus, structured document image encryption processing method, program, and information recording medium - Google Patents

Structured document image processing apparatus, structured document image encryption processing method, program, and information recording medium Download PDF

Info

Publication number
JP5030141B2
JP5030141B2 JP2006251764A JP2006251764A JP5030141B2 JP 5030141 B2 JP5030141 B2 JP 5030141B2 JP 2006251764 A JP2006251764 A JP 2006251764A JP 2006251764 A JP2006251764 A JP 2006251764A JP 5030141 B2 JP5030141 B2 JP 5030141B2
Authority
JP
Japan
Prior art keywords
layer
document image
structured document
resolution
mask
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
JP2006251764A
Other languages
Japanese (ja)
Other versions
JP2008078688A (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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2006251764A priority Critical patent/JP5030141B2/en
Publication of JP2008078688A publication Critical patent/JP2008078688A/en
Application granted granted Critical
Publication of JP5030141B2 publication Critical patent/JP5030141B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)

Description

本発明は、構造化文書画像に対し、その内容の秘匿化もしくは判読困難化のための暗号処理を行う技術に関する。 The present invention relates to a technique for performing encryption processing on a structured document image for concealing its contents or making it difficult to read.

ここで、本発明の対象とする構造化文書画像は、「文書のページのラスター画像が、それを合成復元するための背景レイヤ(1)と、n組の前景レイヤ(i)及びマスクレイヤ(i)のペア(ただし、nは1以上の整数;i=1,2,...,n)に分解され、マスクレイヤ(i)に従って前景レイヤ(i)と背景レイヤ(i)の一方の値を画素毎に選択する方法、又は、マスクレイヤ(i)に従って前景レイヤ(i)と背景レイヤ(i)の値の加重平均を画素毎にとる方法により背景レイヤ(i+1)を合成する手順を、i=1からi=nまで順に繰り返し、最終的に合成された背景レイヤ(n+1)として文書のページのラスター画像が復元されるもの」と定義される。   Here, the structured document image targeted by the present invention is “a raster image of a page of a document is synthesized as a background layer (1), n foreground layers (i) and mask layers ( i) pairs (where n is an integer greater than or equal to 1; i = 1, 2,..., n), and one of the foreground layer (i) and the background layer (i) according to the mask layer (i) A method of selecting a value for each pixel or a method of synthesizing the background layer (i + 1) by a method of taking a weighted average of the values of the foreground layer (i) and the background layer (i) for each pixel according to the mask layer (i) , I = 1 to i = n, and the raster image of the page of the document is restored as the finally synthesized background layer (n + 1).

なお、以下の説明において、背景レイヤ、前景レイヤ、マスクレイヤをそれぞれ背景、前景、マスクと記すことがある。   In the following description, the background layer, foreground layer, and mask layer may be referred to as the background, foreground, and mask, respectively.

このような構造化文書画像の具体例として、次に述べるMRCやJPMの構造化文書画像がある。JPMでは、レイヤをオブジェクトと呼び、背景をベースページ(Base Page)オブジェクトと呼び、前景をイメージオブジェクトと呼ぶ。このように、各レイヤの名前(背景、前景、マスク)それ自体は重要ではなく、また、レイヤと呼ぶかオブジェクトと呼ぶかも重要ではない。実質的に上記定義に沿った構造化文書画像であれば、本発明の対象とする構造化文書画像に包含される。   Specific examples of such structured document images include MRC and JPM structured document images described below. In JPM, a layer is called an object, a background is called a base page object, and a foreground is called an image object. Thus, the name of each layer (background, foreground, mask) itself is not important, and it is not important whether it is called a layer or an object. Any structured document image that substantially conforms to the above definition is included in the structured document image of the present invention.

一般に文書は文字・線画と画像の混在したものである。近年、こうした混在文書のページのラスター画像を効率的に符号化するために、文書のページのラスター画像を背景と、1又は複数組の前景及びマスクのペアに分解し、それら各レイヤを別々に符号化する手法が提案されている。   In general, a document is a mixture of characters / line drawings and images. In recent years, in order to efficiently encode the raster image of such a mixed document page, the raster image of the document page is decomposed into a background and one or more pairs of foregrounds and masks, and each layer is separated separately. An encoding method has been proposed.

例えば、MRC(ミクスト・ラスター・コンテント)モデルと呼ばれる手法では、図1に模式的に例示するように、文書のページのラスター画像を文字の色情報である前景、文字領域情報であるマスク、画像情報である背景に分解し、背景、前景、マスクを別々に符号化する。文書のページのラスター画像を復元する場合には、背景、前景、マスクの符号を復号した後、マスクに従って前景又は背景の値を画素毎に選択することにより復元画像を合成する。なお、文書のページのラスター画像を背景と、2組以上の前景及びマスクとに分解し、背景、前景、マスクを符号化することも可能である。また、マスクは前景の透過率(前景と背景の混合比)を持つ場合もある。背景、マスク、前景の解像度を任意に選択できることもある。   For example, in a technique called an MRC (Mixed Raster Content) model, as schematically illustrated in FIG. 1, a raster image of a document page is converted to a foreground that is character color information, a mask that is character area information, an image The information is decomposed into a background, and the background, foreground, and mask are encoded separately. When restoring a raster image of a document page, the background, foreground, and mask codes are decoded, and then the foreground or background value is selected for each pixel in accordance with the mask to synthesize the restored image. It is also possible to decompose the raster image of the document page into a background and two or more sets of foregrounds and masks, and encode the background, foreground, and mask. Also, the mask may have a foreground transmittance (a foreground / background mixture ratio). The background, mask, and foreground resolution may be arbitrarily selected.

このMRCに関しては、例えば特許文献1に、文書のページのラスター画像の絵柄部分を表す多値の絵柄画像(背景)、文書のページのラスター画像の文字・線画部分の色情報を表す多値の文字色画像(前景)、文書のページのラスター画像の文字・線画の形状を表す2値の選択データ(マスク)をそれぞれJPEG、Lempel−Ziv、MMRで符号化した符号を取り込み、各符号を伸長し、伸長された絵柄画像データ又は文字色画像データを、伸長された選択データに従って画素毎に選択することにより文書のページのラスター画像を合成復元する画像処理装置の発明が記載されている。そして、この先行発明は、同特許文献の段落(0003)〜(0005)等の記載によれば、高圧縮率時の文字・線画の劣化を防止することを主要な目的とするものである。   With regard to this MRC, for example, Japanese Patent Application Laid-Open No. H10-228867 discloses a multi-valued picture image (background) representing a picture part of a raster image of a document page, and a multi-valued picture representing color information of a character / line drawing part of a raster image of a document page. Imports the character color image (foreground), the binary selection data (mask) representing the character / line image shape of the raster image of the document page, and the codes encoded by JPEG, Lempel-Ziv, and MMR, respectively, and decompresses each code Then, an invention of an image processing apparatus is described in which a raster image of a page of a document is synthesized and restored by selecting expanded picture image data or character color image data for each pixel in accordance with the expanded selection data. According to the description of paragraphs (0003) to (0005) of the patent document, the prior invention is mainly intended to prevent deterioration of characters and line drawings at a high compression rate.

このようなMRCによる構造化文書画像のファイル構造の例を図2に示す。図示のように、MRCファイルは全体のヘッダ、1つの背景の符号とそのためのヘッダ、1組以上の前景の符号及びマスクの符号のペア、その各ペア用のヘッダから構成されるのが典型である。   An example of the file structure of the structured document image by MRC is shown in FIG. As shown, an MRC file typically consists of an overall header, a background code and its header, one or more foreground and mask code pairs, and a header for each pair. is there.

近年、新たな符号化方式JPEG2000の登場とともに、前記MRCモデルの前景、マスク、背景の圧縮方式としてJPEG2000の利用を可能にしたJPM(JPEG2000 Multi Layer)という方式が提案されている。   In recent years, with the advent of a new encoding method JPEG2000, a method called JPM (JPEG2000 Multi Layer) has been proposed that enables the use of JPEG2000 as a foreground, mask, and background compression method of the MRC model.

図3はJPMの概要を説明するための模式図である。文書の各ページのラスター画像Page(ページ)は1組以上のレイアウトオブジェクト(Layout Object)と、背景(Base Page)とに分解される。JPMの場合、背景(Base Page)は単色又は透明と規定されており、パラメータ指定である。レイアウトオブジェクト(Layout Object)は、前景(Image)とマスク(Mask)からなる。前景には通常の画像データが格納される。マスクは、前景の不透明度を表す。レイアウトオブジェクトは、通常、マスクと前景のペアであるが、どちらか一方のみとすることも可能である。レイアウトオブジェクトが前景のみからなる場合、マスクは1(すべて上書き)として扱われる。レイアウトオブジェクトがマスクのみからなる場合、前景は指定値となる。前景とマスクは通常、符号化される。なお、JPMでは、背景、前景、マスクの各レイヤはオブジェクトと呼ばれ、また、前景はイメージオブジェクトと呼ばれる。   FIG. 3 is a schematic diagram for explaining the outline of JPM. The raster image Page of each page of the document is decomposed into one or more sets of layout objects (Layout Objects) and a background (Base Page). In the case of JPM, the background (Base Page) is defined as a single color or transparent, and is specified by a parameter. The layout object (Layout Object) includes a foreground (Image) and a mask (Mask). Normal image data is stored in the foreground. The mask represents the opacity of the foreground. A layout object is usually a pair of a mask and a foreground, but can be only one of them. If the layout object consists of only the foreground, the mask is treated as 1 (all overwritten). When the layout object consists only of a mask, the foreground is a specified value. The foreground and mask are usually encoded. In JPM, the background, foreground, and mask layers are called objects, and the foreground is called an image object.

図4は、JPMによる構造化文書画像のページ画像再現の例を説明するための図である。なお、図4の下部に画像合成(再現)のための演算式を示す。ページ画像再現に先立って、符号化された前景やマスクは復号化される。   FIG. 4 is a diagram for explaining an example of page image reproduction of a structured document image by JPM. An arithmetic expression for image composition (reproduction) is shown in the lower part of FIG. Prior to page image reproduction, the encoded foreground and mask are decoded.

最初にBase Page(背景)がPageImage_0(背景0)とされ、これと1つ目のレイアウトオブジェクトのImage_0(前景0)及びMask_0(マスク0)からPageImage_1(背景1)が合成される。すなわち、Mask_0の黒の画素位置では不透明度が1となり、Image_0がPageImage_0に上書きされる。Mask_0の白の画素位置では透明度が1となり、PageImage_0が表示される。同様に、PageImage_1(背景1)と2つ目のレイアウトオブジェクトのImage_1(前景1)とMask_1(マスク1)からPageImage_2(背景2)が作られる。すなわち、Mask_1の黒の画素位置でImage_1がPageImage_1に上書きされ、Mask_1の白の画素位置でPageImage_1が表示される。この例では、PageImage_2が最終的に表示される再現画像PageImageとなる。   First, Base Page (background) is set to PageImage_0 (background 0), and PageImage_1 (background 1) is synthesized from image_0 (foreground 0) and Mask_0 (mask 0) of the first layout object. That is, the opacity is 1 at the black pixel position of Mask_0, and Image_0 is overwritten on PageImage_0. At the white pixel position of Mask_0, the transparency is 1, and PageImage_0 is displayed. Similarly, PageImage_2 (background 2) is created from PageImage_1 (background 1) and the second layout object Image_1 (foreground 1) and Mask_1 (mask 1). That is, Image_1 is overwritten on PageImage_1 at the black pixel position of Mask_1, and PageImage_1 is displayed at the white pixel position of Mask_1. In this example, PageImage_2 is a reproduced image PageImage that is finally displayed.

図4の下部に示した2番目の式が背景と前景の合成のための演算式である。なお、MmとImは、m番目のレイアウトオブジェクトにおけるマスクの画素値と背景の画素値を表す。cはコンポーネントをあらわす。マスクはシングルコンポーネントである。[x,y]は画素の座標を表し、SmはMmの最大値(2のべき乗-1)を表し、nはレイアウトオブジェクトの個数を表す。   The second expression shown at the bottom of FIG. 4 is an arithmetic expression for combining the background and the foreground. Mm and Im represent the pixel value of the mask and the pixel value of the background in the mth layout object. c represents a component. The mask is a single component. [X, y] represents the coordinates of the pixel, Sm represents the maximum value of Mm (power of 2−1), and n represents the number of layout objects.

2番目の式について説明を補足する。図4の例ではマスクは2値(画素あたり1ビット)の場合であり、Sm=1であるため、
マスク値が1のときには合成画像値=前景値、
マスク値が0のときには合成画像値=背景値
となった。つまり、マスク値により前景値又は背景値の一方が選択される形なる。
The explanation for the second equation will be supplemented. In the example of FIG. 4, since the mask is binary (1 bit per pixel) and Sm = 1,
When the mask value is 1, composite image value = foreground value,
When the mask value is 0, the composite image value = background value. That is, either the foreground value or the background value is selected according to the mask value.

しかし、マスクを多値にすることもでき、例えばマスクの各画素が8ビットの正値(0を含む)をとる場合には、Sm=255であるため、各画素について
合成画像値=(255−マスク値)/255)×背景値+(マスク値/255)×前景値
により前景値と背景値の加重平均をとった値が合成画像値となる。このように、マスクに前景の透過率(前景と背景の混合比)を持たせることもできる。
However, the mask can be multi-valued. For example, when each pixel of the mask takes an 8-bit positive value (including 0), Sm = 255, so that the composite image value = (255 −mask value) / 255) × background value + (mask value / 255) × foreground value is a value obtained by taking a weighted average of the foreground value and the background value as a composite image value. In this way, the mask can have foreground transmittance (foreground / background mixture ratio).

JPMによる構造化文書の別の例を図5に示す。この例では、原画像(図1の例と同じもの)が、1つの背景と2つのレイアウトオブジェクトに分解され、各レイアウトオブジェクトの前景及びマスクは同じ分割境界でタイル分割されてJPEG2000により符号化されている。この例では、マスク1は単色(全画素位置で”1”)であり、レイアウトオブジェクトの領域もしくは領域の情報のみを表しており、文字の形状といった情報は持たない。もう一つのマスク2は、文字の形状(領域)を表している。   Another example of a structured document by JPM is shown in FIG. In this example, the original image (the same as in the example of FIG. 1) is decomposed into one background and two layout objects, and the foreground and mask of each layout object are tiled at the same dividing boundary and encoded by JPEG2000. ing. In this example, the mask 1 is a single color (“1” at all pixel positions), and represents only the area of the layout object or the area information, and does not have information such as the character shape. Another mask 2 represents the shape (area) of the character.

以上に述べたJPMによる構造化文書画像のファイル構造を図6に示す。図中の点線部分はオプションであるので、実線部分を中心に簡単に説明する。「JPEG2000 Signature box」は、当該ファイルがJPEG2000ファミリーに属することを示す全体のヘッダである。「File Type box」は当該ファイルがJPMフォーマットであることを示す全体のヘッダである。「Compound Image Header box」は、当該ファイルの内容の全般的な情報を含む全体のヘッダである。「Page Collection box」は、マルチページからなる場合に各ページの順番を示す目次的なものである。「Page box」はページの解像度等を示す全体のヘッダである。ここで、ページとは、画像を順次重ねて(合成して)いくためのキャンバスであり、合成が終わった後の画像と同じ大きさを持つ。JPMの場合、ページには、前景とマスクのペアで構成されるレイアウトオブジェクトが順次描画される。「Layout Object box」は、前景とマスクのサイズや位置等を示す、前景及びマスク用のヘッダである。「Media Data box」や「Contiguous Codestream box」は、前景やマスクの符号を含む部分である。なお、JPMでは、図4の例からも分かるように、背景(BasePage)は、レイアウトオブジェクトが描画される前の初期的なページとして扱われる。また、前述したように、マスクに従って前景と背景の一方を選択する合成方法と、マスクに従って前景と背景の加重平均をとる合成方法とがあるが、そのいずれの合成方法を用いるかは、前景とマスクのペア(レイアウトオブジェクト)ごとに各ペア用ヘッダに指定することができる。   FIG. 6 shows the file structure of the structured document image by JPM described above. Since the dotted line portion in the figure is an option, it will be briefly described centering on the solid line portion. “JPEG2000 Signature box” is an entire header indicating that the file belongs to the JPEG2000 family. “File Type box” is an entire header indicating that the file is in JPM format. The “Compound Image Header box” is an entire header including general information on the contents of the file. The “Page Collection box” is a table of contents indicating the order of each page in the case of multi-pages. “Page box” is an overall header indicating the resolution of the page. Here, the page is a canvas for sequentially superimposing (combining) images, and has the same size as the image after the composition is finished. In the case of JPM, layout objects composed of foreground and mask pairs are sequentially drawn on the page. “Layout Object box” is a header for the foreground and the mask indicating the size and position of the foreground and the mask. The “Media Data box” and “Contiguous Codestream box” are portions including foreground and mask codes. In JPM, as can be seen from the example in FIG. 4, the background (BasePage) is handled as an initial page before the layout object is drawn. Further, as described above, there are a synthesis method for selecting one of the foreground and the background according to the mask, and a synthesis method for taking a weighted average of the foreground and the background according to the mask. Each pair of masks (layout object) can be specified in each pair header.

以上、本発明の対象とする構造化文書画像の具体例としてMRCとJPMに関し説明した。本発明は、そのような構造化文書画像に対し、その内容の秘匿化もしくは判読困難化のための処理を行うものである。   The MRC and JPM have been described above as specific examples of the structured document image that is the subject of the present invention. The present invention performs processing for concealing the contents of the structured document image or making it difficult to read.

前述したような構造化文書画像ではなく、コンピュータで作成したような電子文書を対象にしたものであるが、文書の閲覧を制限すべき部分を秘匿化するための発明が特許文献2に開示されている。この先行発明で扱われる電子文書は、具体的には、特許文献2の段落[0028]、図3、図4等に記載されているように、テキストデータが含まれるテキストレイヤと、テキストデータ以外のコンピュータグラフィクス又はラスター画像が含まれる画像レイヤから構成される。そして、この先行発明では、秘匿化したい領域について、テキストレイヤを不可読画像で置換したり暗号化したり、画像レイヤをマスクしたりスクランブル化したりする秘匿化処理を施す。 Patent Document 2 discloses an invention for concealing a portion that should restrict the browsing of a document, which is not a structured document image as described above, but an electronic document created by a computer. ing. Specifically, as described in paragraph [0028], FIG. 3, FIG. 4 and the like of Patent Document 2 , the electronic document handled in the prior invention is a text layer including text data and other than text data. Image graphics layers including computer graphics or raster images. And in this prior invention, the concealment process which replaces a text layer with an unreadable image, encrypts it, masks an image layer, or makes it scramble is performed about the area | region to conceal.

特開平11−177977号公報Japanese Patent Laid-Open No. 11-177777 特開2004−289456号公報JP 2004-289456 A

近年のセキュリティニーズの高まりに伴い、本発明の対象とする構造化文書画像についても、その内容の秘匿化もしくは判読困難化のための暗号化を施す必要性が増している。しかし、暗号化(及びその解読)は処理量が多い点が難点である。特に、本発明の対象とする構造化文書画像は複数レイヤ構造であるため、単純に全てのレイヤを暗号化することによって秘匿化しようとすると、暗号化(及び解読)のための処理量が極めて大きくなってしまうという問題がある。   With the recent increase in security needs, there is an increasing need to encrypt structured document images targeted by the present invention in order to conceal their contents or make them difficult to read. However, encryption (and its decryption) is difficult because it requires a large amount of processing. In particular, since the structured document image targeted by the present invention has a multi-layer structure, the amount of processing for encryption (and decryption) is extremely large when trying to conceal it by simply encrypting all layers. There is a problem that it gets bigger.

よって、本発明の目的は、暗号化(及び解読)のための処理量の増加を抑えつつ、先に定義した構造化文書画像を暗号化により秘匿化もしくは判読困難化する装置又は方法、プログラム、情報記録媒体を提供することにある。 Therefore, an object of the present invention is to provide an apparatus or method , a program, a program for concealing or making a structured document image defined previously difficult by encryption, while suppressing an increase in processing amount for encryption (and decryption) , It is to provide an information recording medium .

ここで、本発明の対象とする構造化文書画像は、先に述べたように、「文書のページのラスター画像が、それを合成復元するための背景レイヤ(1)と、n組の前景レイヤ(i)及びマスクレイヤ(i)のペア(ただし、nは1以上の整数;i=1,2,...,n)に分解され、マスクレイヤ(i)に従って前景レイヤ(i)と背景レイヤ(i)の一方の値を画素毎に選択する方法、又は、マスクレイヤ(i)に従って前景レイヤ(i)と背景レイヤ(i)の値の加重平均を画素毎にとる方法により背景レイヤ(i+1)を合成する手順を、i=1からi=nまで順に繰り返し、最終的に合成された背景レイヤ(n+1)として文書のページのラスター画像が復元されるもの」と定義される。ただし、各レイヤの名前(背景、前景、マスク)それ自体は重要ではなく、また、レイヤと呼ぶかオブジェクトと呼ぶかも重要ではなく、実質的に上記定義に沿った構造化文書画像であれば、本発明の対象とする構造化文書画像に包含されることは先に述べた通りである。   Here, as described above, the structured document image of the present invention includes a “raster image of a document page, a background layer (1) for synthesizing and restoring it, and n foreground layers. (i) and mask layer (i) pairs (where n is an integer greater than or equal to 1; i = 1, 2,..., n), and foreground layer (i) and background according to mask layer (i) The background layer (by selecting one value of the layer (i) for each pixel, or by taking a weighted average of the values of the foreground layer (i) and the background layer (i) for each pixel according to the mask layer (i) The procedure for synthesizing i + 1) is repeated in order from i = 1 to i = n, and the raster image of the document page is restored as the finally synthesized background layer (n + 1) ”. However, the name of each layer (background, foreground, mask) itself is not important, and it is not important to call it a layer or an object. If it is a structured document image that substantially conforms to the above definition, As described above, it is included in the structured document image of the present invention.

請求項1記載の発明は、背景レイヤと、n組(nは1以上の整数)の前景レイヤ及び/又はマスクレイヤからなる構造化文書画像を暗号化する構造化文書画像処理装置であって、前記構造化文書画像のレイヤ群について、背景レイヤの符号量を所定の値に設定する手段と、前記構造化文書画像のレイヤ群について、各レイヤの符号量を取得する手段と、背景レイヤの符号量を前記設定された所定の値として、前記取得した各レイヤの符号量を比較して、符号量の大きいレイヤを暗号化対象のレイヤとして選択する手段と、前記選択したレイヤを暗号化し、前記構造化文書画像中の当該レイヤの符号を暗号化後の符号で置き換える手段とを有することを特徴とする。 The invention according to claim 1 is a structured document image processing apparatus for encrypting a structured document image composed of a background layer and n sets (n is an integer of 1 or more) of foreground layers and / or mask layers, for layer group of the structured document image, and means for setting a code amount of the background layer to a predetermined value, the layer group of the structured document image, means for obtaining the code amount of each layer, the background layer code Means for comparing the obtained code amount of each layer with the set predetermined value, selecting a layer with a large code amount as a layer to be encrypted, and encrypting the selected layer, And means for replacing the code of the layer in the structured document image with the code after encryption.

請求項2記載の発明は、背景レイヤと、n組(nは1以上の整数)の前景レイヤ及び/又はマスクレイヤからなる構造化文書画像を暗号化する構造化文書画像処理装置であって、前記構造化文書画像のレイヤ群から、背景レイヤの解像度を取得する手段と、前記背景レイヤの解像度を取得できなかった場合に、背景レイヤの解像度を所定の値に設定する手段と、前記構造化文書画像のレイヤ群について、前景レイヤまたはマスクレイヤの解像度を、前記背景レイヤの解像度を用いて算出する手段と、前記算出した前景レイヤまたはマスクレイヤの解像度をもとに、解像度の高いレイヤを暗号化対象のレイヤとして選択する手段と、前記選択したレイヤを暗号化し、前記構造化文書画像中の当該レイヤの符号を暗号化後の符号で置き換える手段とを有することを特徴とする。 The invention according to claim 2 is a structured document image processing apparatus for encrypting a structured document image comprising a background layer and n sets (n is an integer of 1 or more) of foreground layers and / or mask layers, Means for acquiring a resolution of a background layer from the layer group of the structured document image; means for setting the resolution of the background layer to a predetermined value when the resolution of the background layer cannot be acquired; For a group of document images, a means for calculating the resolution of the foreground layer or mask layer using the resolution of the background layer, and encrypting a high resolution layer based on the calculated resolution of the foreground layer or mask layer Means for selecting as a layer to be encrypted, and means for encrypting the selected layer and replacing the code of the layer in the structured document image with the code after encryption Characterized in that it has a.

請求項3記載の発明は、請求項2に記載の構造化文書画像処理装置において、前記選択する手段は、前記算出した前景レイヤまたはマスクレイヤの解像度と共に背景レイヤの解像度も含めて、解像度の高いレイヤを選択することを特徴とする。 According to a third aspect of the invention, the structured document image processing apparatus according to claim 2, wherein the means for selecting, including the background layer resolution with the resolution of the foreground layer or mask layer that the calculated, high-resolution It is characterized by selecting a layer.

請求項4記載の発明は、背景レイヤと、n組(nは1以上の整数)の前景レイヤ及び/又はマスクレイヤからなる構造化文書画像を暗号化する構造化文書画像処理装置であって、前記構造化文書画像のレイヤ群から、背景レイヤの解像度を取得する手段と、前記背景レイヤの解像度を取得できなかった場合に、背景レイヤの解像度を所定の値に設定する手段と、前記構造化文書画像のレイヤ群からマスクレイヤを検出する手段と、前記検出したマスクレイヤの解像度を、前記背景レイヤの解像度を用いて算出する手段と、前記算出したマスクレイヤの解像度が所定の値以上であるマスクレイヤを暗号化対象のレイヤとして選択する手段と、前記選択したマスクレイヤを暗号化し、前記構造化文書画像中の当該マスクレイヤの符号を暗号化後の符号で置き換える手段とを有することを特徴とする。 The invention according to claim 4 is a structured document image processing apparatus for encrypting a structured document image comprising a background layer and n sets (n is an integer of 1 or more) of foreground layers and / or mask layers, Means for acquiring a resolution of a background layer from the layer group of the structured document image; means for setting the resolution of the background layer to a predetermined value when the resolution of the background layer cannot be acquired; Means for detecting a mask layer from a layer group of document images; means for calculating the resolution of the detected mask layer using the resolution of the background layer; and the resolution of the calculated mask layer is a predetermined value or more. Means for selecting a mask layer as an encryption target layer, encrypting the selected mask layer, and encrypting the code of the mask layer in the structured document image And having a means for replacing at issue.

請求項5記載の発明は、背景レイヤと、n組(nは1以上の整数)の前景レイヤ及び/又はマスクレイヤからなる構造化文書画像を暗号化する構造化文書画像処理装置であって、前記構造化文書画像のレイヤ群について、各レイヤの色数を検出する手段と、前記検出した各レイヤの色数が1であるか複数であるか判定し、色数が複数であるレイヤを暗号化対象のレイヤとして選択する手段と、前記選択したレイヤを暗号化し、前記構造化文書画像中の当該レイヤの符号を暗号化後の符号で置き換える手段とを有することを特徴とする。 The invention according to claim 5 is a structured document image processing apparatus for encrypting a structured document image comprising a background layer and n sets (n is an integer of 1 or more) of foreground layers and / or mask layers, With respect to the layer group of the structured document image, a means for detecting the number of colors of each layer and whether the detected number of colors of each layer is 1 or plural are determined, and the layer having a plurality of colors is encrypted. Means for selecting as a layer to be encrypted, and means for encrypting the selected layer and replacing the code of the layer in the structured document image with the code after encryption.

請求項6記載の発明は、背景レイヤと、n組(nは1以上の整数)の前景レイヤ及び/又はマスクレイヤからなる構造化文書画像を記憶する記憶部と、前記記憶部に記憶された構造化文書画像を暗号化する処理部とを具備する構造化文書画像処理装置において、前記構造化文書画像のレイヤ群について、背景レイヤの符号量を所定の値に設定するステップ、前記処理部は、前記構造化文書画像のレイヤ群について、各レイヤの符号量を取得するステップ、背景レイヤの符号量を前記設定された所定の値として、前記取得した各レイヤの符号量を比較して、符号量の大きいレイヤを暗号化対象のレイヤとして選択するステップ、前記選択したレイヤを暗号化し、前記構造化文書画像中の当該レイヤの符号を暗号化後の符号で置き換えるステップを実行することを特徴とする構造化文書画像暗号処理方法である。 The invention according to claim 6 is a storage unit that stores a structured document image including a background layer, n sets (n is an integer of 1 or more) of foreground layers and / or mask layers, and is stored in the storage unit. In a structured document image processing apparatus comprising a processing unit for encrypting a structured document image , a step of setting a code amount of a background layer to a predetermined value for a layer group of the structured document image, the processing unit includes: A step of acquiring the code amount of each layer for the layer group of the structured document image, comparing the acquired code amount of each layer with the code amount of the background layer as the set predetermined value , Selecting a layer having a large amount as an encryption target layer, encrypting the selected layer, and replacing the code of the layer in the structured document image with the code after encryption It is a structured document image encryption processing method, characterized by executing.

請求項7記載の発明は、背景レイヤと、n組(nは1以上の整数)の前景レイヤ及び/又はマスクレイヤからなる構造化文書画像を記憶する記憶部と、前記記憶部に記憶された構造化文書画像を暗号化する処理部とを具備する構造化文書画像処理装置において、前記処理部は、前記構造化文書画像のレイヤ群から、背景レイヤの解像度を取得するステップ、前記背景レイヤの解像度を取得できなかった場合に、背景レイヤの解像度を所定の値に設定するステップ、前記構造化文書画像のレイヤ群について、前景レイヤまたはマスクレイヤの解像度を、前記背景レイヤの解像度を用いて算出するステップ、前記算出した前景レイヤまたはマスクレイヤの解像度をもとに、解像度の高いレイヤを暗号化対象のレイヤとして選択するステップ、前記選択したレイヤを暗号化し、前記構造化文書画像中の当該レイヤの符号を暗号化後の符号で置き換えるステップを実行することを特徴とする構造化文書画像暗号処理方法である。 The invention according to claim 7 is a storage unit that stores a structured document image including a background layer, and n sets (n is an integer of 1 or more) of foreground layers and / or mask layers, and is stored in the storage unit A structured document image processing apparatus comprising: a processing unit that encrypts a structured document image; wherein the processing unit obtains a resolution of a background layer from a layer group of the structured document image; The step of setting the resolution of the background layer to a predetermined value when the resolution cannot be obtained, and calculating the resolution of the foreground layer or the mask layer for the group of layers of the structured document image using the resolution of the background layer Selecting a high-resolution layer as an encryption target layer based on the calculated foreground layer or mask layer resolution, Encrypt-option and Layer, a structured document image encryption processing method the sign of the layers in the structured document image and executes a step of replacing the sign of the encrypted.

請求項8記載の発明は、背景レイヤと、n組(nは1以上の整数)の前景レイヤ及び/又はマスクレイヤからなる構造化文書画像を記憶する記憶部と、前記記憶部に記憶された構造化文書画像を暗号化する処理部とを具備する構造化文書画像処理装置において、前記処理部は、前記構造化文書画像のレイヤ群から、背景レイヤの解像度を取得するステップ、前記背景レイヤの解像度を取得できなかった場合に、背景レイヤの解像度を所定の値に設定するステップ、前記構造化文書画像のレイヤ群からマスクレイヤを検出するステップ、前記検出したマスクレイヤの解像度を、前記背景レイヤの解像度を用いて算出するステップ、前記算出したマスクレイヤの解像度が所定の値以上であるマスクレイヤを暗号化対象のレイヤとして選択するステップ、前記選択したマスクレイヤを暗号化し、前記構造化文書画像中の当該マスクレイヤの符号を暗号化後の符号で置き換えるステップを実行することを特徴とする構造化文書画像暗号処理方法である。 The invention according to claim 8 is a storage unit that stores a structured document image including a background layer, and n sets (n is an integer of 1 or more) of foreground layers and / or mask layers, and is stored in the storage unit. A structured document image processing apparatus comprising: a processing unit that encrypts a structured document image; wherein the processing unit obtains a resolution of a background layer from a layer group of the structured document image; If the resolution cannot be obtained, setting the resolution of the background layer to a predetermined value; detecting the mask layer from the group of layers of the structured document image; and determining the resolution of the detected mask layer as the background layer The step of calculating using the resolution of the mask layer, and the step of selecting the mask layer whose resolution of the calculated mask layer is equal to or greater than a predetermined value as the layer to be encrypted. Flop, encrypting the selected mask layer, a structured document image encryption processing method the sign of the mask layer in the structured document image and executes a step of replacing the sign of the encrypted.

請求項9記載の発明は、背景レイヤと、n組(nは1以上の整数)の前景レイヤ及び/又はマスクレイヤからなる構造化文書画像を記憶する記憶部と、前記記憶部に記憶された構造化文書画像を暗号化する処理部とを具備する構造化文書画像処理装置において、前記処理部は、前記構造化文書画像のレイヤ群について、各レイヤの色数を検出するステップ、前記検出した各レイヤの色数が1であるか複数であるか判定し、色数が複数であるレイヤを暗号化対象のレイヤとして選択するステップ、前記選択したレイヤを暗号化し、前記構造化文書画像中の当該レイヤの符号を暗号化後の符号で置き換えるステップを実行することを特徴とする構造化文書画像暗号処理方法である。 The invention according to claim 9 is a storage unit that stores a structured document image including a background layer, n sets (n is an integer of 1 or more) foreground layer and / or mask layer, and is stored in the storage unit. In the structured document image processing apparatus including a processing unit that encrypts a structured document image, the processing unit detects the number of colors of each layer for the layer group of the structured document image, the detected Determining whether the number of colors of each layer is 1 or more, selecting a layer having a plurality of colors as a layer to be encrypted, encrypting the selected layer, and The structured document image encryption processing method is characterized by executing a step of replacing the code of the layer with the code after encryption.

請求項10記載の発明に係るプログラムは、請求項1乃至5のいずれか1項に記載の構造化文書画像処理装置の各手段としてコンピュータを機能させるものである。 According to a tenth aspect of the present invention, there is provided a program for causing a computer to function as each unit of the structured document image processing apparatus according to any one of the first to fifth aspects.

請求項11記載の発明に係る情報記録媒体は、請求項1乃至5のいずれか1項に記載の構造化文書画像処理装置の各手段としてコンピュータを機能させるプログラムが記録された、コンピュータが読み取り可能な情報記録媒体である。
An information recording medium according to an eleventh aspect of the present invention is a computer-readable recording medium storing a program that causes the computer to function as each means of the structured document image processing apparatus according to any one of the first to fifth aspects. Information recording medium.

本発明によれば、構造化文書画像の一部のレイヤのみ暗号化することにより、暗号化(及び解読)のための処理量の増加を抑えて、効果的に構造化文書画像を秘匿化もしくは判読困難化することができる。 According to the present invention, by encrypting only a part of the layer of the structured document image, an increase in the processing amount for encryption (and decryption) is suppressed, and the structured document image is effectively concealed or It can be difficult to read.

図7は、本発明の構造化文書画像処理装置の実施形態を説明するためのブロック図である。   FIG. 7 is a block diagram for explaining an embodiment of the structured document image processing apparatus of the present invention.

本発明の構造化文書画像処理装置は、ローカルな記憶装置等やネットワーク上の機器から処理の対象となる構造化文書画像を入力する入力部100、入力された構造化文書画像を秘匿化もしくは判読困難化する処理を行う処理部101、この処理部101によって処理後の構造化文書画像をローカルな記憶装置等やネットワーク上の機器へ出力する出力部104から構成される。処理部101は、入力された構造化文書画像を構成するレイヤ群(背景と、1組以上の前景及びマスクのペア)から暗号化の対象とすべき一部のレイヤを選択する暗号化対象選択手段102と、この暗号化対象選択手段102により暗号化対象として選択されたレイヤの暗号化を行う暗号化手段103を含む。   The structured document image processing apparatus of the present invention includes an input unit 100 for inputting a structured document image to be processed from a local storage device or a network device, and concealing or interpreting the input structured document image. A processing unit 101 that performs difficult processing, and an output unit 104 that outputs a structured document image processed by the processing unit 101 to a local storage device or a device on a network. The processing unit 101 selects an encryption target selection that selects a part of layers to be encrypted from a group of layers (background, one or more foreground and mask pairs) constituting the input structured document image. Means 102 and encryption means 103 for performing encryption of the layer selected as the encryption target by the encryption target selection means 102.

このような構造化文書画像処理装置は、例えば図8に示すようなCPU201、メインメモリ202、ハードディスク装置203等がバス204に接続された如き一般的なコンピュータ上で実現される。そのためのプログラム、すなわち、図7に示した入力部100、処理部101及び出力部104としてコンピュータを機能させるプログラムは、例えばハードディスク装置203からメインコンピュータ202にロードされてCPU201で実行される。このようなプログラム、及び、同プログラムが記録された磁気ディスク、光ディスク、光磁気ディスク、半導体記憶素子等のコンピュータ読み取り可能な情報記録(記憶)媒体も本発明に包含される。 Such a structured document image processing apparatus is realized on a general computer in which a CPU 201, a main memory 202, a hard disk device 203 and the like as shown in FIG. A program for that purpose, that is, a program that causes the computer to function as the input unit 100, the processing unit 101, and the output unit 104 shown in FIG. 7 is loaded from the hard disk device 203 to the main computer 202 and executed by the CPU 201. Such a program and a computer-readable information recording (storage) medium such as a magnetic disk, an optical disk, a magneto-optical disk, and a semiconductor storage element on which the program is recorded are also included in the present invention .

図8に示すようなコンピュータ上で本発明の構造化文書画像処理装置を実現した場合の処理の流れは概ね次の通りである。
(1)ハードディスク装置203に格納されている構造化文書画像が、CPU201からの(プログラムからの)命令によってメインメモリ202に読み込まれる。
(2)CPU201(プログラム)は、メインメモリ202上の構造化文書画像の暗号化すべきレイヤを選択し、選択したレイヤを暗号化する処理を実行する。
(3)CPU201(プログラム)からの命令によって、メインメモリ202上の処理後の構造化文書画像がハードディスク装置203に書き出される。
The flow of processing when the structured document image processing apparatus of the present invention is realized on a computer as shown in FIG. 8 is as follows.
(1) A structured document image stored in the hard disk device 203 is read into the main memory 202 by an instruction (from a program) from the CPU 201.
(2) The CPU 201 (program) selects a layer to be encrypted of the structured document image on the main memory 202 and executes a process of encrypting the selected layer.
(3) A structured document image after processing on the main memory 202 is written out to the hard disk device 203 by an instruction from the CPU 201 (program).

暗号化には基本的に任意の暗号化方式を用いることができるが、本実施形態では、暗号化側と解読側とで同一の暗号鍵を秘密に共有し、適当な長さのブロックごとに同じ鍵で暗号化を行う共通鍵暗号化方式を用いるものとする。この暗号化方式は、DES(Data Encryption Standard)やAES(Advanced Encryption Standard)等の周知の方式である。   Although any encryption method can be basically used for encryption, in this embodiment, the same encryption key is secretly shared between the encryption side and the decryption side, and each block having an appropriate length is shared. It is assumed that a common key encryption method that performs encryption with the same key is used. This encryption method is a known method such as DES (Data Encryption Standard) or AES (Advanced Encryption Standard).

DESの基本的な動作は、(1)データを64ビット長のブロックに分割する、(2)各ブロックを56ビット長の鍵で暗号化する、の2つであるが、ブロックと鍵の使い方によって、ECB、CB、CFB、OFBの4つのモードがある。   There are two basic operations of DES: (1) dividing data into 64-bit blocks, and (2) encrypting each block with a 56-bit key. There are four modes, ECB, CB, CFB, and OFB.

ECB(Electronic Code Block)はDESの基本型と言えるモードであり、上に述べた基本動作がそのまま行われる。つまり、データをブロックに分割した後、各ブロックを秘密鍵で暗号化し、暗号化後のブロックを元の順番でつなぎ合わせる。   ECB (Electronic Code Block) is a mode that can be said to be a basic type of DES, and the basic operation described above is performed as it is. That is, after the data is divided into blocks, each block is encrypted with a secret key, and the encrypted blocks are connected in the original order.

CBC(Cipher Block Chaining)は、暗号化された前ブロックと、まだ暗号化されていない現在のブロックとのXOR(排他的論理和)をとり、これを秘密鍵で暗号化する。“Chaining(連鎖)”という言葉が使われているように、各ブロックの暗号化が連鎖的に進められる。   CBC (Cipher Block Chaining) takes an XOR (exclusive OR) of an encrypted previous block and an unencrypted current block and encrypts it with a secret key. As the term “Chaining” is used, the encryption of each block proceeds in a chain.

CFB(Cipher Feedback)は、前ブロックの暗号化結果の1部(mビット)が次ブロックのmビットとXORをとる値としてフィードバックされるモードである。   CFB (Cipher Feedback) is a mode in which a part (m bits) of the encryption result of the previous block is fed back as a value that XORs with the m bits of the next block.

OFB(Output Feedback)は、ある初期値を第1ブロックとして暗号文を生成し、その暗号文(の一部)を次の暗号文の入力として用いると同時に、その一部(mビット)を乱数として、対応するmビットのデータとXORをとるモードである。mビットを適切に選択することにより、任意のビット長毎の暗号化を実現することができる。   OFB (Output Feedback) generates a ciphertext using a certain initial value as the first block, uses that ciphertext (part) as input for the next ciphertext, and simultaneously uses part (m bits) as a random number. In this mode, the corresponding m-bit data is XORed. By appropriately selecting m bits, it is possible to realize encryption for each arbitrary bit length.

次に、本実施形態に係る構造化文書画像処理装置のいくつかの実施例を説明する。各実施例において、処理される構造化文書画像は図6に示したような構成のJPMファイルとして入力されるものとする。   Next, some examples of the structured document image processing apparatus according to this embodiment will be described. In each embodiment, the structured document image to be processed is input as a JPM file having a configuration as shown in FIG.

ここで、各実施例の理解に必要な限度で、JPMファイルのBox情報について説明を補足する。   Here, the description of the Box information in the JPM file will be supplemented to the extent necessary for understanding each embodiment.

ファイル中のページ数(=Page boxの数)は、Compound Image Header boxから知ることができる。   The number of pages in the file (= number of page boxes) can be known from the Compound Image Header box.

各ページのPage boxには、Page Header box、Resoltion box、Base Color boxが含まれる。ページ中のレイアウトオブジェクト数(=前景とマスクのペア数=マスク数)は、Page Header boxから知ることができる。ページの背景のビット深さはBase Color boxから知ることができる。ページの背景の解像度は、Page Resolution boxから知ることができる。ただし、Page Resolution boxはオプショナルなboxであり、このboxが存在しない場合、本実施形態では背景の解像度=1として扱うものとする。   The Page box of each page includes a Page Header box, a Resoltion box, and a Base Color box. The number of layout objects in the page (= number of foreground / mask pairs = number of masks) can be known from the Page Header box. The bit depth of the page background can be found from the Base Color box. The resolution of the page background can be found from the Page Resolution box. However, the Page Resolution box is an optional box. If this box does not exist, it is assumed that the background resolution = 1 in this embodiment.

各レイアウトオブジェクトのLayout Object boxには、Layout Object Header box、Object boxが含まれ、Object boxにはObject Header box、Base Colour box、Object Scale boxが含まれる。レイアウトオブジェクトのID番号(レイアウトオブジェクトの重ね順)はLayout Object Header boxから知ることができる。レイアウトオブジェクト中のオブジェクト(レイヤ)が前景であるかマスクであるかはObject Header boxから知ることができる。レイアウトオブジェクト中の各オブジェクト(前景又はマスク)の符号長(=符号量)はObject Header boxから知ることができる。各オブジェクト(前景又はマスク)のビット深さはBase Colour boxから知ることができる。なお、Base Colour boxにはコンポーネント毎のビット深さが記載されているが、本実施形態では全コンポーネントのビット深さが同一であるものとして扱う。   The Layout Object box of each layout object includes a Layout Object Header box and an Object box, and the Object box includes an Object Header box, a Base Color box, and an Object Scale box. The layout object ID number (layout order of layout objects) can be known from the Layout Object Header box. Whether an object (layer) in the layout object is a foreground or a mask can be known from the Object Header box. The code length (= code amount) of each object (foreground or mask) in the layout object can be known from the Object Header box. The bit depth of each object (foreground or mask) can be known from the Base Color box. Note that although the bit depth for each component is described in the Base Color box, in the present embodiment, it is assumed that the bit depth of all components is the same.

各オブジェクト(前景又はマスク)の背景に対する解像度の比はObject Scale boxから知ることができる。より詳しくは、Object Scale boxには、背景に対する水平方向の解像度の倍率を示す値(HRN,HRD)と、背景に対する垂直方向の解像度の倍率を示す値(VRN,VRD)が記載されており、(HRN/HRD)が背景に対する水平方向の解像度の倍率、(VRN/VRD)が背景に対する垂直方向の解像度の倍率である。本実施形態では、大きい方向の倍率を採用し、
オブジェクトの解像度
=max(VRD/VRD,HRN/HRD)×背景の解像度 式(1)
によりオブジェクトの解像度を算出するものとする。ただし、先に述べたようにResolution boxが存在しないときは、便宜、背景の解像度=1とする。
The ratio of the resolution of each object (foreground or mask) to the background can be known from the Object Scale box. More specifically, the Object Scale box describes values (HRN, HRD) indicating the horizontal resolution magnification with respect to the background and values (VRN, VRD) indicating the vertical resolution magnification with respect to the background. (HRN / HRD) is the horizontal resolution magnification with respect to the background, and (VRN / VRD) is the vertical resolution magnification with respect to the background. In this embodiment, a magnification in a large direction is adopted,
Object resolution = max (VRD / VRD, HRN / HRD) × background resolution Formula (1)
The resolution of the object is calculated by However, when there is no Resolution box as described above, the background resolution is set to 1 for convenience.

なお、レイアウトオブジェクト中のオブジェクト(前景又はマスク)の符号量が暗号化により変化する場合には、Object Header box中のLENフィールドを修正する必要がある。しかし、本実施形態では、符号化前の符号量がパディングによって8バイト単位に揃えられていて、暗号化方式としてDESを使用するものとしているので、暗号化に伴うLENフィールドの修正は不要である。   When the code amount of an object (foreground or mask) in the layout object changes due to encryption, it is necessary to correct the LEN field in the Object Header box. However, in this embodiment, since the code amount before encoding is aligned to 8 bytes by padding and DES is used as an encryption method, it is not necessary to modify the LEN field accompanying encryption. .

本実施例における処理フローを図9に示す。本実施例では、ページ数=1,レイアウトオブジェクト数=1のJPMファイルを想定している。   A processing flow in this embodiment is shown in FIG. In this embodiment, it is assumed that the number of pages = 1 and the number of layout objects = 1.

まず、入力部100によりJPMファイルを入力する(step1)。   First, a JPM file is input by the input unit 100 (step 1).

処理部101は、入力されたJPMファイルのPage boxを検知する(step2)。   The processing unit 101 detects the page box of the input JPM file (step 2).

次に、処理部101は、Resolution boxを検知して背景の解像度を取得する(step3)。ただし、前述したように、Resolution boxを検知できないときは、背景の解像度を1とする。   Next, the processing unit 101 detects the resolution box and acquires the background resolution (step 3). However, as described above, when the Resolution box cannot be detected, the background resolution is set to 1.

次に処理部101は、Layout Object boxを検知し(step4)、1つ目のObject boxを検知し(step5)、そのObject Header boxを検知して当該オブジェクト(前景又はマスク)の符号の実体の位置及び符号量を取得する(step6)。次に、当該Object box中のObject Scale boxを検知し、それに記載されているVRN,VRD,HRN,HRDの値とstep3で取得された背景の解像度を用い、前記式(1)により当該オブジェクトの解像度を算出する(step7)。
処理部101は、次のObject boxを検知し(step8)、そのObject Header boxを検知して当該オブジェクト(前景又はマスク)の符号の実体の位置及び符号量を取得する(step9)。次に、当該Object box中のObject Scale boxを検知し、それに記載されているVRN,VRD,HRN,HRDの値とstep3で取得された背景の解像度を用い、前記式(1)により当該オブジェクトの解像度を算出する(step10)。
Next, the processing unit 101 detects the layout object box (step 4), detects the first object box (step 5), detects the object header box, and detects the entity of the code of the object (foreground or mask). The position and code amount are acquired (step 6). Next, an Object Scale box in the Object box is detected, and the value of the VRN, VRD, HRN, and HRD described in the Object box and the background resolution acquired in Step 3 are used to calculate the object scale box according to the equation (1). The resolution is calculated (step 7).
The processing unit 101 detects the next object box (step 8), detects the object header box, and acquires the position and code amount of the code entity of the object (foreground or mask) (step 9). Next, an Object Scale box in the Object box is detected, and the value of the VRN, VRD, HRN, and HRD described in the Object box and the background resolution acquired in Step 3 are used to calculate the object scale box according to the equation (1). The resolution is calculated (step 10).

処理部101は、その暗号化対象選択手段102によって、step7とstep10で算出した2つのオブジェクト(前景とマスク)の解像度を比較し、解像度の高い方のオブジェクトを暗号化対象のオブジェクト(レイヤ)として選択する(step11)。なお、JPMでは背景は単色又は透明と規定され、パラメータ指定であって符号自体が存在しないため、選択の対象から除外されている。処理部101は、選択されたオブジェクトの符号を読み込み、この符号を暗号化手段103によりDESで暗号化させ、暗号化後の符号で当該オブジェクトの元の符号を置き換える処理を行う(step12)。 The processing unit 101 uses the encryption target selection unit 102 to compare the resolutions of the two objects (foreground and mask) calculated in step 7 and step 10, and sets the object with the higher resolution as the object (layer) to be encrypted. Select (step 11). In JPM, the background is defined as a single color or transparent, and is designated as a parameter and does not have a code itself. The processing unit 101 reads the code of the selected object, encrypts the code with the DES by the encryption unit 103, and performs a process of replacing the original code of the object with the code after the encryption (step 12).

処理後のJPMファイルが出力部104により出力され(step13)、一連の処理を終了する。   The processed JPM file is output by the output unit 104 (step 13), and the series of processing ends.

このように、本実施例においては、前景とマスクの中で、解像度の高いオブジェクト(レイヤ)を優先的に暗号化対象として選択する。一般に、レイヤの解像度が高いということは、そのレイヤの情報量が多いと言えるので、解像度の高いレイヤほど暗号化することによる秘匿化効果は大きいと推定される。したがって、解像度の高いレイヤを優先的に選択して暗号化することによって、効果的に構造化文書画像を秘匿化もしくは判読困難化することができる。 Thus, in the present embodiment, an object (layer) having a high resolution is preferentially selected as an encryption target in the foreground and the mask. In general, it can be said that the higher the resolution of a layer, the greater the amount of information in that layer. Therefore, it is estimated that the higher the resolution, the greater the concealment effect obtained by encryption. Therefore, the structured document image can be effectively concealed or difficult to read by preferentially selecting and encrypting a layer with high resolution.

(実施例1の変形例)
なお、レイアウトオブジェクトが複数存在する場合、各レイアウトオブジェクトについて、前景とマスクの解像度を比較し、解像度の高い方のオブジェクト(前景又はマスク)を暗号化対象として選択することも可能であり、かかる態様も本実施例に包含される。
(Modification of Example 1)
When there are a plurality of layout objects, it is possible to compare the resolution of the foreground and the mask for each layout object, and select the object with the higher resolution (foreground or mask) as an encryption target. Are also included in this embodiment .

本実施例における処理フローを図10に示す。本実施例では、ページ数=1、レイアウトオブジェクト数=1のJPMファイルを想定している。   A processing flow in this embodiment is shown in FIG. In this embodiment, a JPM file with the number of pages = 1 and the number of layout objects = 1 is assumed.

まず、入力部100によりJPMファイルを入力する(step21)。   First, a JPM file is input by the input unit 100 (step 21).

処理部101は、背景の符号量=0と設定する(step22)。JPMの場合、背景は単色又は透明と規定され、パラメータ指定であるため、便宜上、その符号量を0に設定するわけである。   The processing unit 101 sets the background code amount = 0 (step 22). In the case of JPM, the background is defined as a single color or transparent, and is designated by a parameter, so the code amount is set to 0 for convenience.

処理部101は、入力されたJPMファイルのPage boxを検知し(step23)、そのLayout Object boxを検知し(step24)、その1つ目のObject boxを検知し(step25)、そのObject Header boxを検知して当該オブジェクト(前景又はマスク)の符号の実体の位置及び符号量を取得する(step26)。   The processing unit 101 detects the page box of the input JPM file (step 23), detects the layout object box (step 24), detects the first object box (step 25), and detects the object header box. It detects and acquires the position and code amount of the code of the object (foreground or mask) (step 26).

処理部101は、次のObject boxを検知し(step27)、そのObject Header boxを検知して当該オブジェクト(前景又はマスク)の符号の実体の位置及び符号量を取得する(step28)。   The processing unit 101 detects the next Object box (step 27), detects the Object Header box, and acquires the position and code amount of the code entity of the object (foreground or mask) (step 28).

処理部101は、その暗号化対象選択手段102によって、step22,step26,step29で取得した3つのオブジェクト(背景、前景、マスク)の符号量を比較し、最も大きな符号量のオブジェクト(背景の符号量=0ゆえ、前景又はマスク)を暗号化対象のオブジェクト(レイヤ)として選択する(step30)。処理部101は、選択されたオブジェクトの符号を読み込み、この符号を暗号化手段103によりDESで暗号化させ、暗号化後の符号で当該オブジェクトの元の符号を置き換える処理を行う(step12)。処理後のJPMファイルが出力部104により出力され(step13)、一連の処理を終了する。   The processing unit 101 compares the code amounts of the three objects (background, foreground, and mask) acquired in step 22, step 26, and step 29 by the encryption target selection unit 102, and the object having the largest code amount (background code amount). = 0, foreground or mask) is selected as an object (layer) to be encrypted (step 30). The processing unit 101 reads the code of the selected object, encrypts the code with the DES by the encryption unit 103, and performs a process of replacing the original code of the object with the code after the encryption (step 12). The processed JPM file is output by the output unit 104 (step 13), and the series of processing ends.

本実施例では、符号量の大きいオブジェクト(レイヤ)を優先的に暗号化対象として選択する。一般に、解像度やビット深さが同じレイヤであっても、符号量が大きいということは情報量が多いことに他ならないので、符号量が大きいレイヤほど暗号化することによる秘匿化効果は大きいと推定される。したがって、符号量の大きいレイヤを優先的に選択して暗号化することによって、効果的に構造化文書画像を秘匿化もしくは判読困難化することができる。 In this embodiment, an object (layer) having a large code amount is preferentially selected as an encryption target. In general, even if the layers have the same resolution and bit depth, a large amount of code means that the amount of information is large. Therefore, it is estimated that the layer with a large amount of code has a greater concealment effect due to encryption. Is done. Therefore, the structured document image can be effectively concealed or difficult to read by preferentially selecting and encrypting a layer having a large code amount.

(実施例2の変形例)
なお、JPMの場合、背景は単色又は透明で、その符号自体も存在しないため、step22を省き、step29では前景とマスクの間で符号量の比較を行って暗号化対象を選択するようにしてもよい。
(Modification of Example 2)
In the case of JPM, since the background is monochromatic or transparent and the code itself does not exist, step 22 is omitted, and in step 29 the code amount is compared between the foreground and the mask to select the encryption target. Good.

一方、図1及び図2により説明したMRCファイルでは、背景は写真等のイメージであることが多い。したがって、MRCファイルを扱う場合には、背景の符号量も求め、背景、前景、マスクの3レイヤ間で符号量を比較し、最も符号量の大きなレイヤを暗号化対象として選択するようにするとよい。かかる態様も本実施例に包含される。 On the other hand, in the MRC file described with reference to FIGS. 1 and 2, the background is often an image such as a photograph. Therefore, when handling an MRC file, it is preferable to obtain the amount of code of the background, compare the amount of code between the background, foreground, and mask layers, and select the layer with the largest code amount as the encryption target. . Such an embodiment is also included in the present embodiment .

本実施例における処理フローを図11に示す。なお、ページ数=1、レイアウトオブジェクト数=1のJPMファイルを想定している。   A processing flow in this embodiment is shown in FIG. Note that a JPM file with the number of pages = 1 and the number of layout objects = 1 is assumed.

まず、入力部100によりJPMファイルを入力する(step41)。   First, a JPM file is input by the input unit 100 (step 41).

処理部101は、入力されたJPMファイルのPage boxを検知し(step42)、そのLayout Object boxを検知する(step43)。1つ目のObject boxを検知し(step44)、そのObject Header boxを検知して当該オブジェクト(前景又はマスク)の符号の実体の位置及び符号長を取得する(step45)。次に、当該Object box中のBase Colour boxを検知し、それに記載されている当該オブジェクトのビット深さを取得する(step46)。   The processing unit 101 detects the page box of the input JPM file (step 42), and detects the layout object box (step 43). The first Object box is detected (step 44), the Object Header box is detected, and the position and code length of the code body of the object (foreground or mask) are acquired (step 45). Next, the Base Color box in the Object box is detected, and the bit depth of the object described therein is acquired (step 46).

処理部101は、次のObject boxを検知し(step47)、そのObject Header boxを検知して当該オブジェクト(前景又はマスク)の符号の実体の位置及び符号量を取得する(step48)。次に、当該Object box中のBase Colour boxを検知し、それに記載されている当該オブジェクトのビット深さを取得する(step49)。   The processing unit 101 detects the next object box (step 47), detects the object header box, and acquires the position and code amount of the code entity of the object (foreground or mask) (step 48). Next, the Base Color box in the Object box is detected, and the bit depth of the object described therein is acquired (step 49).

処理部101は、その暗号化対象選択手段102によって、step46とstep49で得た2つのオブジェクト(前景とマスク)のビット深さが1ビットであるか調べ、ビット深さが1ビットのオブジェクトを暗号化対象のオブジェクト(レイヤ)として選択する(step50)。ビット深さが1ビットつまり2値のオブジェクトは文字の形状を表している可能性が高く、暗号化による秘匿効果も高いと推定される。なお、JPMでは背景は単色又は透明と規定され、パラメータ指定であって符号自体が存在しないため、選択の対象から除外されている。   The processing unit 101 uses the encryption target selection unit 102 to check whether the two objects (foreground and mask) obtained in step 46 and step 49 have a bit depth of 1 bit, and encrypt the object having a bit depth of 1 bit. As an object (layer) to be converted, it is selected (step 50). An object having a bit depth of 1 bit, that is, a binary object is highly likely to represent the shape of a character, and it is estimated that the concealment effect by encryption is also high. In JPM, the background is defined as a single color or transparent, and is designated as a parameter and does not have a code itself.

処理部101は、選択されたオブジェクトの符号を読み込み、この符号を暗号化手段103によりDESで暗号化させ、暗号化後の符号で当該オブジェクトの元の符号を置き換える処理を行う(step51)。処理後のJPMファイルが出力部104により出力され(step52)、一連の処理を終了する。   The processing unit 101 reads the code of the selected object, encrypts this code with the DES by the encryption unit 103, and performs a process of replacing the original code of the object with the code after the encryption (step 51). The processed JPM file is output by the output unit 104 (step 52), and the series of processing ends.

このように、本実施例では、ビット深さが1ビットのオブジェクト(レイヤ)を優先的に暗号化対象として選択する。レイヤのビット深さが1ビットであるということは、そのレイヤは2値表現されているということであり、文字画像もしくは文字の形状を表すものである可能性が高い。そして、このようなレイヤは一般に暗号化による秘匿化効果が高い。したがって、1ビットのビット深さを持つレイヤを優先的に選択して暗号化することによって、効果的に構造化文書画像を秘匿化もしくは判読困難化することができる。 As described above, in this embodiment, an object (layer) having a bit depth of 1 bit is preferentially selected as an encryption target . That the bit depth of a layer is 1 bit means that the layer is expressed in binary, and it is highly likely that the layer represents a character image or a character shape. Such a layer generally has a high concealment effect by encryption. Therefore, the structured document image can be effectively concealed or difficult to read by preferentially selecting and encrypting a layer having a bit depth of 1 bit.

(実施例3の変形例)
なお、図1及び図2により説明したMRCの背景には、JPMの背景のような制限はない。したがって、MRCファイルを扱う場合には、背景のビット深さも求め、それが1ビットならば暗号化の対象として選択することも可能である。かかる態様も本実施例に包含される。
(Modification of Example 3)
The background of the MRC described with reference to FIGS. 1 and 2 is not limited as the background of the JPM. Accordingly, when handling an MRC file, the bit depth of the background is also obtained, and if it is 1 bit, it can be selected as an encryption target. Such an embodiment is also included in the present embodiment .

本実施例における処理フローを図12に示す。本実施例では、ページ数が1又は2以上、レイアウトオブジェクト数が2以上のJPMファイルを想定している。   A processing flow in this embodiment is shown in FIG. In this embodiment, a JPM file is assumed in which the number of pages is 1 or 2 or more and the number of layout objects is 2 or more.

まず、入力部100によりJPMファイルを入力する(step61)。   First, a JPM file is input by the input unit 100 (step 61).

処理部101は、入力されたJPMファイルのCompound Image Header boxを検知し、そのNPフィールドに記載されているページ数を取得する(step62)。   The processing unit 101 detects the Compound Image Header box of the input JPM file and acquires the number of pages described in the NP field (step 62).

処理部101は、最初のページのPage boxを検知し(step63)、そのPage Header boxを検知し、そのNLobjフィールドに記載されているレイアウトオブジェクト数(=マスク数)を取得する(step64)。次に、Resolution boxを検知して背景の解像度を取得する(step65)。前述したように、Resolution boxを検知できないときは背景の解像度=1とする。   The processing unit 101 detects the page box of the first page (step 63), detects the page header box, and acquires the number of layout objects (= number of masks) described in the NLobj field (step 64). Next, the resolution box is detected and the background resolution is acquired (step 65). As described above, when the Resolution box cannot be detected, the background resolution = 1.

次に処理部101は、Layout Object boxを検知し(step66)、その1つ目のObject boxを検知し(step67)、そのObject Header boxを検知して、そのObjTypeフィールドの記載から当該オブジェクトの種類(前景又はマスク)を識別する(step68)。そして、当該オブジェクトがマスクでない、つまり前景であると判定したときには(step69,No)、step67に戻り次のObject boxを検知する。   Next, the processing unit 101 detects the layout object box (step 66), detects the first object box (step 67), detects the object header box, and determines the type of the object from the description of the ObjType field. (Foreground or mask) is identified (step 68). When it is determined that the object is not a mask, that is, a foreground (step 69, No), the process returns to step 67 to detect the next Object box.

step69で当該オブジェクトがマスクであると判定したときには(step69,Yes)、Objdect Header boxから当該マスクの符号の実体の位置及び符号長を取得する(step70)。次に、当該Object box中のObject Scale boxを検知し、それに記載されているVRN,VRD,HRN,HRDの値とstep65で取得された背景の解像度を用い、前記式(1)により当該マスクの解像度を算出する(step71)。   When it is determined in step 69 that the object is a mask (step 69, Yes), the position and code length of the code of the mask are acquired from the Objdect Header box (step 70). Next, an Object Scale box in the Object box is detected, and the value of the VRN, VRD, HRN, and HRD described in the Object box and the background resolution acquired in Step 65 are used to calculate the mask size of the mask according to the equation (1). The resolution is calculated (step 71).

次に処理部101の暗号化対象選択手段102において、step71で算出されたマスクの解像度を所定値(例えば200dpi)と比較し(step72)、マスクの解像度が該所定値以上ならば当該マスクを暗号化対象として選択する(step73)。処理部101は、暗号化対象選択手段102で当該マスクが暗号化対象として選択されたときには、当該マスクの符号を読み込んで暗号化手段103によりDESで暗号化させ、暗号化後の符号で当該マスクの元の符号を置き換える処理を行う(step74)。   Next, the encryption target selection unit 102 of the processing unit 101 compares the resolution of the mask calculated in step 71 with a predetermined value (for example, 200 dpi) (step 72). If the mask resolution is equal to or higher than the predetermined value, the mask is encrypted. Is selected as a target to be converted (step 73). When the mask is selected as an encryption target by the encryption target selection unit 102, the processing unit 101 reads the code of the mask, encrypts it with DES by the encryption unit 103, and uses the code after the encryption to mask the mask. The process of replacing the original code of (step 74) is performed.

処理部101は、step64で取得した当該ページ内のレイアウトオブジェクト数(=マスク数)と、当該ページ内で既に処理したレイアウトオブジェクト数とを比較し、当該ページ内の全てのマスクを検知したかチェックする(step75)。当該ページ内に未検知のマスクが残っているならば(step75,No)、step66へ戻り次のレイアウトオブジェクトのLayout Object boxの検知を行う。   The processing unit 101 compares the number of layout objects in the page (= number of masks) acquired in step 64 with the number of layout objects already processed in the page, and checks whether all masks in the page have been detected. (Step 75). If an undetected mask remains in the page (step 75, No), the process returns to step 66 to detect the layout object box of the next layout object.

当該ページ内の全てのマスクを検知したと判定したならば(step75,Yes)、処理部101は、これまでに処理したページ数とstep62で取得したファイル内のページ数とを比較し、全ページの処理が終了したかチェックする(step76)。そして、未処理のページが残っているならば(step76,No)、step63へ戻り次のページのPage boxを検知する。   If it is determined that all the masks in the page have been detected (step 75, Yes), the processing unit 101 compares the number of pages processed so far with the number of pages in the file acquired in step 62, and determines all pages. It is checked whether the process of (1) has been completed (step 76). If an unprocessed page remains (step 76, No), the process returns to step 63 to detect the page box of the next page.

処理部101によって全ページの処理が終了したと判定されると(step76,Yes)、処理後のJPMファイルが出力部104により出力され(step77)、一連の処理を終了する。   If the processing unit 101 determines that all pages have been processed (step 76, Yes), the processed JPM file is output by the output unit 104 (step 77), and the series of processing ends.

以上の通り、本実施例では、暗号化対象として選択されるオブジェクト(レイヤ)はマスクに限定され、さらに、所定解像度より高解像度のマスクが暗号化対象として選択される。マスクレイヤは文字の形状を表すことが多いため、その暗号化により高い秘匿化効果を期待できる。よって、マスクレイヤを優先的に選択して暗号化することによって、効果的に構造化文書画像を秘匿化もしくは判読困難化することができる。 As described above, in this embodiment, an object (layer) selected as an encryption target is limited to a mask, and a mask having a resolution higher than a predetermined resolution is selected as an encryption target . Since the mask layer often represents the shape of a character, a high concealment effect can be expected by the encryption. Therefore, the structured document image can be effectively concealed or difficult to read by preferentially selecting and encrypting the mask layer.

本実施例における処理フローを図13に示す。本実施例では、ページ数が1又は2以上、レイアウトオブジェクト数(=マスク数)が1又は2以上のJPMファイルを想定している。   A processing flow in this embodiment is shown in FIG. In this embodiment, a JPM file is assumed in which the number of pages is 1 or 2 or more and the number of layout objects (= number of masks) is 1 or 2 or more.

まず、入力部100によりJPMファイルを入力する(step81)。   First, a JPM file is input by the input unit 100 (step 81).

処理部101は、入力されたJPMファイルのCompound Image Header boxを検知し、そのNPフィールドに記載されているページ数を取得する(step82)。   The processing unit 101 detects the Compound Image Header box of the input JPM file and acquires the number of pages described in the NP field (step 82).

処理部101は、最初のページのPage boxを検知し(step83)、そのPage Header boxを検知し、そのNLobjフィールドに記載されているレイアウトオブジェクト数(=マスク数)を取得する(step84)。次に、処理部101は、Layout Object boxを検知し(step85)、その1つ目のObject boxを検知し(step86)、そのObject Header boxを検知して、そのObjTypeフィールドの記載から当該オブジェク
トの種類(前景又はマスク)を識別する(step87)。そして、暗号化対象選択手段102において、識別されたオブジェクトの種類がマスクであるか判定し(step88)、マスクであるならば当該オブジェクトを暗号化対象として選択する(step89)。
The processing unit 101 detects the page box of the first page (step 83), detects the page header box, and acquires the number of layout objects (= number of masks) described in the NLobj field (step 84). Next, the processing unit 101 detects the layout object box (step 85), detects the first object box (step 86), detects the object header box, and determines the object from the description of the ObjType field. The type (foreground or mask) is identified (step 87). Then, the encryption target selection unit 102 determines whether the type of the identified object is a mask (step 88), and if it is a mask, the object is selected as an encryption target (step 89).

処理部101は、暗号化対象選択手段102で当該オブジェクトが暗号化対象として選択されなかったときには、つまり当該オブジェクトが前景であるときには(step88,No)、step86に戻り次のObject boxを検知する。   When the object to be encrypted is not selected by the encryption target selection unit 102, that is, when the object is the foreground (step 88, No), the processing unit 101 returns to step 86 and detects the next Object box.

当該オブジェクトが暗号化対象として選択されたときには、処理部101は、当該オブジェクトつまりマスクの符号の実体の位置及び符号長をObjdect Header boxより取得し、当該マスクの符号を読み込んで暗号化手段103によりDESで暗号化させ、暗号化後の符号で当該マスクの元の符号を置き換える処理を行う(step90)。   When the object is selected as an object to be encrypted, the processing unit 101 obtains the position and code length of the object, that is, the code of the mask, from the Objdect Header box, reads the code of the mask, and encrypts it by the encryption unit 103. A process of encrypting with DES and replacing the original code of the mask with the encrypted code is performed (step 90).

処理部101は、step84で取得した当該ページ内のレイアウトオブジェクト数(=マスク数)と、当該ページ内で既に処理したレイアウトオブジェクト数とを比較し、当該ページ内の全てのマスクを検知したかチェックする(step91)。当該ページ内に未検知のマスクが残っているならば(step91,No)、step85へ戻り次のレイアウトオブジェクトのLayout Object boxの検知を行う。   The processing unit 101 compares the number of layout objects in the page (= number of masks) acquired in step 84 with the number of layout objects already processed in the page, and checks whether all masks in the page have been detected. (Step 91). If an undetected mask remains in the page (step 91, No), the process returns to step 85 to detect the layout object box of the next layout object.

当該ページ内の全てのマスクを検知したと判定したならば(step91,Yes)、処理部101は、これまでに処理したページ数とstep82で取得したファイル内のページ数とを比較し、全ページの処理が終了したかチェックする(step92)。そして、未処理のページが残っているならぱ(step92,No)、step83へ戻り次のページのPage boxを検知する。   If it is determined that all the masks in the page have been detected (step 91, Yes), the processing unit 101 compares the number of pages processed so far with the number of pages in the file acquired in step 82, and determines all pages. It is checked whether the process of (1) has been completed (step 92). If an unprocessed page remains (step 92, No), the process returns to step 83 to detect the Page box of the next page.

処理部101によって全ページの処理が終了したと判定されると(step92,Yes)、処理後のJPMファイルが出力部104により出力され(step93)、一連の処理を終了する。   If the processing unit 101 determines that all pages have been processed (step 92, Yes), the processed JPM file is output by the output unit 104 (step 93), and the series of processing ends.

以上の通り、本実施例は、実施例4と同様にマスクのみを暗号化対象として選択するものである。 As described above, in the present embodiment, only the mask is selected as an encryption target as in the fourth embodiment .

(実施例5の変形例)
JPMでは、背景は単色又は透明し規定され、パラメータ指定であって符号自体が存在しないため暗号化の対象から除外される。しかし、図1及び図2により説明したMRCでは、背景にそのような制約はなく、通常、背景にはイメージが格納され、一方、前景は文字の色等を表すことが多い。
(Modification of Example 5)
In JPM, the background is defined as a single color or transparent, and is specified as a parameter, and is excluded from the encryption target because there is no code itself. However, in the MRC described with reference to FIGS. 1 and 2, there is no such restriction on the background, and usually an image is stored in the background, while the foreground often represents a character color or the like.

したがって、MRCファイルを扱う場合には、暗号化対象選択手段102において、レイヤの種類がマスク又は背景であるときに暗号化対象として選択させる、つまり、前景以外のレイヤを暗号化対象として選択させることも可能である。かかる態様も、前景よりもマスクを優先するため、本実施例に包含される。 Therefore, when handling an MRC file, the encryption target selection unit 102 is allowed to select an encryption target when the type of the layer is mask or background, that is, to select a layer other than the foreground as the encryption target. Is also possible. Such a mode is also included in this embodiment because the mask is given priority over the foreground.

本実施例における処理フローを図14に示す。本実施例では、ページ数が1、レイアウトオブジェクト数が1又は2以上のJPMファイルを想定している。   The processing flow in the present embodiment is shown in FIG. In the present embodiment, a JPM file having one page and one or more layout objects is assumed.

まず、入力部100によりJPMファイルを入力する(step101)。   First, a JPM file is input by the input unit 100 (step 101).

処理部101は、最初のページのPage boxを検知し(step102)、そのPage Header boxを検知し、そのNLobjフィールドに記載されているレイアウトオブジェクト数を取得する(step103)。次に、処理部101は、Layout Object boxを検知し(step104)、その1つ目のオブジェクトのObject boxを検知し(step105)、そのObject Header boxを検知して当該オブジェクト(前景又はマスク)の符号の実体の位置及び符号長を取得し(step106)、当該オブジェクトの符号を読み込んで復号し、その色数を検出する(step107)。処理部101は、その暗号化対象選択手段102において、step107で検出された色数が1であるか複数であるか判定し(step108)、色数が2以上であれば(単色でない)、当該オブジェクトを暗号化対象として選択する(step109)。つまり、単色のマスクや前景は暗号化対象から除外される。例えば、図5中の単色のマスク1は暗号化対象から除外される。なお、JPMでは背景は単色であり符号自体が存在しないので、暗号化対象から初めから除外される。   The processing unit 101 detects the page box of the first page (step 102), detects the page header box, and acquires the number of layout objects described in the NLobj field (step 103). Next, the processing unit 101 detects the layout object box (step 104), detects the object box of the first object (step 105), detects the object header box, and detects the object (foreground or mask). The position and code length of the code entity are acquired (step 106), the code of the object is read and decoded, and the number of colors is detected (step 107). The processing unit 101 determines in the encryption target selection unit 102 whether the number of colors detected in step 107 is 1 or plural (step 108). If the number of colors is 2 or more (not a single color), the processing unit 101 The object is selected as an encryption target (step 109). That is, the monochrome mask and foreground are excluded from the encryption target. For example, the monochrome mask 1 in FIG. 5 is excluded from the encryption target. In JPM, since the background is a single color and there is no code itself, it is excluded from the encryption target from the beginning.

処理部101は、当該オブジェクトが暗号化対象として選択されたときには、当該オブジェクトの符号を暗号化手段103によりDESで暗号化させ、暗号化後の符号で当該オブジェクトの符号を置き換える処理を行う(step110)。処理部101は、当該レイアウトオブジェクトの未処理のオブジェクトが残っているならば(step111,No)、step105に戻り次のObject boxを検知する。当該レイアウトオブジェクトの全てのオブジェクトを処理したならば(step111,Yes)、step103で取得したレイアウトオブジェクト数と、既に処理したレイアウトオブジェクト数とを比較することにより、全レイアウトオブジェクトを処理したか判定する(step112)。未処理のレイアウトオブジェクトが残っているならば(step112,No)、step104へ戻り次のレイアウトオブジェクトのLayout Object boxの検知を行う。   When the object is selected as an object to be encrypted, the processing unit 101 encrypts the code of the object with DES by the encryption unit 103, and performs a process of replacing the code of the object with the code after the encryption (step 110). ). If there is an unprocessed object remaining in the layout object (step 111, No), the processing unit 101 returns to step 105 and detects the next object box. If all the objects of the layout object have been processed (step 111, Yes), it is determined whether all layout objects have been processed by comparing the number of layout objects acquired in step 103 with the number of layout objects already processed (step 111). step 112). If an unprocessed layout object remains (step 112, No), the process returns to step 104 to detect the layout object box of the next layout object.

処理部101で全オブジェクトレイアウトの処理が終わった判定したならば(step112,Yes)、処理後のJPMファイルが出力部104により出力され(step113)、一連の処理を終了する。   If it is determined that the processing of all object layouts has been completed by the processing unit 101 (step 112, Yes), the processed JPM file is output by the output unit 104 (step 113), and the series of processing ends.

以上の通り、本実施例では、単色のオブジェクト(レイヤ)を暗号化対象から除外する。例えば、図5に示したマスク1は単色であり、文字の形状といった情報を持たないため情報量が極めて少ない。また、単色の前景レイヤや背景レイヤはテクスチャ(絵柄)を含まないため情報量が極めて少ない。このような情報量の少ないレイヤは暗号化による秘匿効果も低い。したがって、例えば同じ数のレイヤを暗号化するのであれば、単色のレイヤを暗号化対象から除外した方が、効果的に構造化文書画像を秘匿化もしくは判読困難化することができる。 As described above, in this embodiment, a monochrome object (layer) is excluded from the encryption target. For example, the mask 1 shown in FIG. 5 is a single color and does not have information such as the shape of characters, so the amount of information is extremely small. In addition, since the monochrome foreground layer and the background layer do not include textures (pictures), the amount of information is extremely small. Such a layer with a small amount of information has a low concealment effect by encryption. Therefore, for example, if the same number of layers are encrypted, the structured document image can be effectively concealed or difficult to read by excluding the monochrome layer from the encryption target.

本実施例における処理フローを図15に示す。本実施例では、ページ数が1、レイアウトオブジェクトが複数のJPMファイルを想定している。   A processing flow in this embodiment is shown in FIG. In this embodiment, it is assumed that the number of pages is 1 and the layout object is a plurality of JPM files.

まず、入力部100によりJPMファイルを入力する(step121)。   First, a JPM file is input by the input unit 100 (step 121).

処理部101は、入力されたJPMファイルの最初のページのPage boxを検知し(step122)、そのResolution boxを検知して背景の解像度を取得する(step123)。前述したように、Resolution boxを検知できないときは背景の解像度=1とする。次に、Page Header boxを検知し、そのNLobjフィールドに記載されているレイアウトオブジェクト数を取得する(step124)。   The processing unit 101 detects the page box of the first page of the input JPM file (step 122), detects the resolution box, and acquires the background resolution (step 123). As described above, when the Resolution box cannot be detected, the background resolution = 1. Next, the Page Header box is detected, and the number of layout objects described in the NLobj field is acquired (step 124).

次に処理部101は、Layout Object boxを検知し(step126)、その1つ目のObject boxを検知し(step126)、そのObject Header boxを検知して、当該オブジェクトの符号の実体の位置及び符号長を取得する(step127)。次に、当該Object box中のObject Scale boxを検知し、それに記載されているVRN,VRD,HRN,HRDの値とstep123で取得された背景の解像度を用い、前記式(1)により当該オブジェクトの解像度を算出する(step128)。   Next, the processing unit 101 detects the layout object box (step 126), detects the first object box (step 126), detects the object header box, and detects the position and code of the object code. The length is acquired (step 127). Next, an Object Scale box in the Object box is detected, and the value of the VRN, VRD, HRN, and HRD described in the Object box and the background resolution acquired in Step 123 are used to calculate the object scale box by the equation (1). The resolution is calculated (step 128).

処理部101は、当該レイアウトオブジェクト中のオブジェクトを全てを処理したかチェックし(step129)、未処理のオブジェクトが残っているならばstep126に戻り次のオブジェクトのObject boxを検知する。   The processing unit 101 checks whether all the objects in the layout object have been processed (step 129). If there is an unprocessed object, the processing unit 101 returns to step 126 and detects the object box of the next object.

当該レイアウトオブジェクトの全てのオブジェクトを処理したならば(step129,Yes)、処理部101は、step124で取得したレイアウトオブジェクト数と、既に処理したレイアウトオブジェクト数とを比較し、全レイアウトオブジェクトを処理したか判定する(step130)。未処理のレイアウトオブジェクトが残っているならば(step130,No)、step125へ戻り次のレイアウトオブジェクトのLayout Object
boxの検知を行う。
If all the objects of the layout object have been processed (step 129, Yes), the processing unit 101 compares the number of layout objects acquired in step 124 with the number of layout objects already processed, and has processed all the layout objects? Determination is made (step 130). If an unprocessed layout object remains (step 130, No), the process returns to step 125 and the layout object of the next layout object.
Perform box detection.

全てのレイアウトオブジェクトを処理したと判定したならば(step130,Yes)、処理部101の暗号化対象選択手段102において、全てのレイアウトオブジェクトのオブジェクト(前景、マスク)を解像度が高い順に順位付けし、上位の所定個数のオブジェクト(例えば、上位3位までのオブジェクト)を暗号化対象として選択する(step131)。なお、JPMの背景は符号自体が存在しないため、暗号化対象から初めから除外される。   If it is determined that all layout objects have been processed (step 130, Yes), the encryption target selection unit 102 of the processing unit 101 ranks all layout object objects (foreground, mask) in descending order of resolution, A predetermined upper number of objects (for example, objects up to the top three) are selected as encryption targets (step 131). It should be noted that the background of JPM does not have a code itself and is excluded from the encryption target from the beginning.

処理部101は、暗号化対象選択手段102で暗号化対象として選択されたオブジェクト(前景又はマスク)の符号を読み込んで暗号化手段103によりDESで暗号化させ、暗号化後の符号で当該オブジェクトの元の符号を置き換える処理を行う(step132)。そして、処理後のJPMファイルが出力部104により出力され(step133)、一連の処理を終了する。   The processing unit 101 reads the code of the object (foreground or mask) selected as the encryption target by the encryption target selection unit 102, encrypts it with the DES by the encryption unit 103, and uses the encrypted code for the object. A process for replacing the original code is performed (step 132). Then, the processed JPM file is output by the output unit 104 (step 133), and the series of processing ends.

以上の通り、本実施例では、実施例1と同様に、解像度の高いオブジェクト(マスク又は前景)を優先的に暗号化対象として選択するものである。 As described above, in this embodiment, similarly to the first embodiment, an object (mask or foreground) having a high resolution is preferentially selected as an encryption target.

(実施例7の変形例)
なお、図1及び図2により説明したMRCでは、背景についてJPMのような規制はない。したがって、MRCファイルを処理する場合には、暗号化対象選択手段102において、背景も含めて解像度の高い順にレイヤの順位付けをし、例えば上位3位までのレイヤを暗号化対象として選択させることも可能である。
(Modification of Example 7)
In the MRC described with reference to FIGS. 1 and 2, there is no restriction on the background as in JPM. Therefore, when processing the MRC file, the encryption target selection unit 102 may rank the layers including the background in descending order of resolution, and may select, for example, the top three layers as encryption targets. Is possible.

本実施例における処理フローを図16に示す。本実施例では、複数ページのJPMファイルを想定している。   A processing flow in this embodiment is shown in FIG. In this embodiment, a JPM file having a plurality of pages is assumed.

まず、入力部100によりJPMファイルを入力する(step141)。   First, a JPM file is input by the input unit 100 (step 141).

処理部101は、入力されたJPMファイルのCompound Image Header boxを検知し、そのNPフィールドに記載されているページ数を取得する(step142)。   The processing unit 101 detects the Compound Image Header box of the input JPM file and acquires the number of pages described in the NP field (step 142).

処理部101は、最初のページのPage boxを検知し(step143)、そのResolution boxを検知して背景の解像度を取得する(step144)。前述したように、Resolution boxを検知できないときは背景の解像度=1とする。次に、Page Header boxを検知し、そのNLobjフィールドに記載されているレイアウトオブジェクト数を取得する(step145)。   The processing unit 101 detects the page box of the first page (step 143), detects the resolution box, and acquires the background resolution (step 144). As described above, when the Resolution box cannot be detected, the background resolution = 1. Next, the Page Header box is detected, and the number of layout objects described in the NLobj field is acquired (step 145).

次に処理部101は、Layout Object boxを検知し(step146)、その1つ目のObject boxを検知し(step147)、そのObject Header boxを検知して、当該オブジェクトの符号の実体の位置及び符号長を取得する(step148)。次に、当該Object box中のObject Scale boxを検知し、それに記載されているVRN,VRD,HRN,HRDの値とstep144で取得された背景の解像度を用い、前記式(1)により当該オブジェクトの解像度を算出する(step149)。   Next, the processing unit 101 detects the layout object box (step 146), detects the first object box (step 147), detects the object header box, and detects the position and code of the object code. The length is acquired (step 148). Next, an Object Scale box in the Object box is detected, and the value of the VRN, VRD, HRN, and HRD described in the Object box and the background resolution acquired in Step 144 are used to calculate the object scale box according to the equation (1). The resolution is calculated (step 149).

処理部101は、当該レイアウトオブジェクトのオブジェクトを全てを処理したかチェックし(step150)、未処理のオブジェクトが残っているならばstep147に戻り次のオブジェクトのObject boxを検知する。   The processing unit 101 checks whether all the objects of the layout object have been processed (step 150). If there are any unprocessed objects, the processing unit 101 returns to step 147 to detect the object box of the next object.

当該レイアウトオブジェクトの全てのオブジェクトを処理したならば(step150,Yes)、処理部101は、step145で取得したレイアウトオブジェクト数と、既に処理したレイアウトオブジェクト数とを比較し、全レイアウトオブジェクトを処理したか判定する(step151)。未処理のレイアウトオブジェクトが残っているならば(step151,No)、step146へ戻り次のレイアウトオブジェクトのLayout Object
boxの検知を行う。
If all the objects of the layout object have been processed (step 150, Yes), the processing unit 101 compares the number of layout objects acquired in step 145 with the number of already processed layout objects, and has processed all the layout objects? Determination is made (step 151). If an unprocessed layout object remains (step 151, No), the process returns to step 146 to return to the layout object of the next layout object.
Perform box detection.

処理部101は、当該ページの全てのレイアウトオブジェクトを処理したと判定したならば(step151,Yes)、これまでに処理したページ数と、step142で取得したファイル内のページ数とを比較し、全ページを処理したか判定する(step152)。未処理のページが残っているならば(step152,No)、step143へ戻り、次ページのPage boxの検知を行う。   If the processing unit 101 determines that all layout objects on the page have been processed (step 151, Yes), the processing unit 101 compares the number of pages processed so far with the number of pages in the file acquired in step 142, It is determined whether the page has been processed (step 152). If an unprocessed page remains (step 152, No), the process returns to step 143 to detect the page box of the next page.

全ページを処理したらば(step152,Yes)、処理部101の暗号化対象選択手段102において、全てのページの全てのレイアウトオブジェクトの全てのオブジェクト(前景、マスク)を解像度が高い順に順位付けし、上位の所定割合のオブジェクト(例えば上位10%までのオブジェクト)を暗号化対象として選択する(step153)。なお、JPMの背景は符号自体が存在しないため暗号化対象から初めから除外される。   If all pages are processed (step 152, Yes), the encryption target selection unit 102 of the processing unit 101 ranks all objects (foreground, mask) of all layout objects on all pages in descending order of resolution. Are selected as objects to be encrypted (step 153). Note that the background of JPM is excluded from the encryption target from the beginning because there is no code itself.

処理部101は、暗号化対象選択手段102で暗号化対象として選択されたオブジェクト(前景又は背景)の符号を読み込んで暗号化手段103によりDESで暗号化させ、暗号化後の符号で当該オブジェクトの元の符号を置き換える処理を行う(step154)。そして、処理後のJPMファイルが出力部104により出力され(step155)、一連の処理を終了する。   The processing unit 101 reads the code of the object (foreground or background) selected as the encryption target by the encryption target selection unit 102, encrypts the code using the DES by the encryption unit 103, and uses the code after the encryption to encrypt the object. Processing to replace the original code is performed (step 154). Then, the processed JPM file is output by the output unit 104 (step 155), and the series of processing ends.

以上の通り、本実施例も、実施例1と同様に、解像度が高いオブジェクトを優先的に暗号化対象として選択するものである。 As described above, in this embodiment, as in the first embodiment, an object with high resolution is preferentially selected as an encryption target.

以上、本発明に係る構造化文書画像処理装置の実施形態について説明したが、その説明は本発明に係る構造化文書画像暗号処理方法の実施形態の説明でもあることは明らかである。すなわち、図9乃至図16のフローチャートは、構造化文書画像暗号処理方法の実施例を説明するためのフローチャートでもある。そして、このような本発明に係る構造化文書画像暗号処理方法の各工程は、図8に示したようなコンピュータを利用しプログラムによって実行させることが可能である。また、図9乃至図16のフローチャートは、本発明に係るプログラム又は情報記録媒体に記録されたプログラムの実施例を示すものでもある。 Although the embodiment of the structured document image processing apparatus according to the present invention has been described above, it is obvious that the description is also the description of the embodiment of the structured document image encryption processing method according to the present invention . That is, the flowcharts of FIGS. 9 to 16 are also flowcharts for explaining an embodiment of the structured document image encryption processing method. Each process of the structured document image encryption processing method according to the present invention can be executed by a program using a computer as shown in FIG. The flowcharts of FIGS. 9 to 16 also show an embodiment of the program according to the present invention or the program recorded on the information recording medium .

MRCの構造化文書画像の説明のための模式図である。It is a schematic diagram for description of the structured document image of MRC. MRCファイルの構成例を示す図である。It is a figure which shows the structural example of a MRC file. JPMの構造化文書画像の説明のための模式図である。It is a schematic diagram for description of a structured document image of JPM. JPMにおける画像再現の説明のための模式図である。It is a schematic diagram for description of image reproduction in JPM. JPMの構造化文書画像の例を示す模式図である。It is a schematic diagram which shows the example of the structured document image of JPM. JPMファイルの構成例を示す図である。It is a figure which shows the structural example of a JPM file. 本発明の実施形態を説明するためのブロック図である。It is a block diagram for demonstrating embodiment of this invention. コンピュータの構成を説明するためのブロック図である。It is a block diagram for demonstrating the structure of a computer. 実施例1における処理フローを示すフローチャートである。3 is a flowchart illustrating a processing flow in the first embodiment. 実施例2における処理フローを示すフローチャートである。10 is a flowchart illustrating a processing flow in the second embodiment. 実施例3における処理フローを示すフローチャートである。10 is a flowchart illustrating a processing flow in Embodiment 3. 実施例4における処理フローを示すフローチャートである。10 is a flowchart illustrating a processing flow in Embodiment 4. 実施例5における処理フローを示すフローチャートである。10 is a flowchart illustrating a processing flow in Embodiment 5. 実施例6における処理フローを示すフローチャートである。10 is a flowchart showing a processing flow in Embodiment 6. 実施例7における処理フローを示すフローチャートである。14 is a flowchart illustrating a processing flow in Embodiment 7. 実施例8における処理フローを示すフローチャートである。10 is a flowchart illustrating a processing flow according to an eighth embodiment.

100 入力部
101 処理部
102 暗号化対象選択手段
103 暗号化手段
104 出力部
DESCRIPTION OF SYMBOLS 100 Input part 101 Processing part 102 Encryption object selection means 103 Encryption means 104 Output part

Claims (11)

背景レイヤと、n組(nは1以上の整数)の前景レイヤ及び/又はマスクレイヤからなる構造化文書画像を暗号化する構造化文書画像処理装置であって、
前記構造化文書画像のレイヤ群について、背景レイヤの符号量を所定の値に設定する手段と、
前記構造化文書画像のレイヤ群について、各レイヤの符号量を取得する手段と、
前記背景レイヤの符号量を前記設定された所定の値として、前記取得した各レイヤの符号量を比較して、符号量の大きいレイヤを暗号化対象のレイヤとして選択する手段と、
前記選択したレイヤを暗号化し、前記構造化文書画像中の当該レイヤの符号を暗号化後の符号で置き換える手段と、
を有することを特徴とする構造化文書画像処理装置。
A structured document image processing apparatus that encrypts a structured document image including a background layer, and n sets (n is an integer of 1 or more) of foreground layers and / or mask layers,
Means for setting a code amount of a background layer to a predetermined value for the layer group of the structured document image;
Means for acquiring a code amount of each layer for the layer group of the structured document image;
Means for comparing the obtained code amount of each layer with the code amount of the background layer as the set predetermined value, and selecting a layer with a large code amount as a layer to be encrypted;
Means for encrypting the selected layer and replacing the code of the layer in the structured document image with the code after encryption;
A structured document image processing apparatus comprising:
背景レイヤと、n組(nは1以上の整数)の前景レイヤ及び/又はマスクレイヤからなる構造化文書画像を暗号化する構造化文書画像処理装置であって、A structured document image processing apparatus that encrypts a structured document image including a background layer, and n sets (n is an integer of 1 or more) of foreground layers and / or mask layers,
前記構造化文書画像のレイヤ群から、背景レイヤの解像度を取得する手段と、Means for obtaining a resolution of a background layer from the layer group of the structured document image;
前記背景レイヤの解像度を取得できなかった場合に、背景レイヤの解像度を所定の値に設定する手段と、Means for setting the resolution of the background layer to a predetermined value when the resolution of the background layer could not be obtained;
前記構造化文書画像のレイヤ群について、前景レイヤまたはマスクレイヤの解像度を、前記背景レイヤの解像度を用いて算出する手段と、Means for calculating the resolution of the foreground layer or the mask layer for the layer group of the structured document image using the resolution of the background layer;
前記算出した前景レイヤまたはマスクレイヤの解像度をもとに、解像度の高いレイヤを暗号化対象のレイヤとして選択する手段と、Means for selecting a high resolution layer as an encryption target layer based on the calculated foreground layer or mask layer resolution;
前記選択したレイヤを暗号化し、前記構造化文書画像中の当該レイヤの符号を暗号化後の符号で置き換える手段と、Means for encrypting the selected layer and replacing the code of the layer in the structured document image with the code after encryption;
を有することを特徴とする構造化文書画像処理装置。A structured document image processing apparatus comprising:
前記選択する手段は、前記算出した前景レイヤまたはマスクレイヤの解像度と共に背景レイヤの解像度も含めて、解像度の高いレイヤを選択することを特徴とする請求項2に記載の構造化文書画像処理装置。3. The structured document image processing apparatus according to claim 2, wherein the selecting means selects a layer having a high resolution including a resolution of the background layer as well as the calculated resolution of the foreground layer or the mask layer. 背景レイヤと、n組(nは1以上の整数)の前景レイヤ及び/又はマスクレイヤからなる構造化文書画像を暗号化する構造化文書画像処理装置であって、A structured document image processing apparatus that encrypts a structured document image including a background layer, and n sets (n is an integer of 1 or more) of foreground layers and / or mask layers,
前記構造化文書画像のレイヤ群から、背景レイヤの解像度を取得する手段と、Means for obtaining a resolution of a background layer from the layer group of the structured document image;
前記背景レイヤの解像度を取得できなかった場合に、背景レイヤの解像度を所定の値に設定する手段と、Means for setting the resolution of the background layer to a predetermined value when the resolution of the background layer could not be obtained;
前記構造化文書画像のレイヤ群からマスクレイヤを検出する手段と、Means for detecting a mask layer from a layer group of the structured document image;
前記検出したマスクレイヤの解像度を、前記背景レイヤの解像度を用いて算出する手段と、Means for calculating the resolution of the detected mask layer using the resolution of the background layer;
前記算出したマスクレイヤの解像度が所定の値以上であるマスクレイヤを暗号化対象のレイヤとして選択する手段と、Means for selecting a mask layer having a resolution of the calculated mask layer equal to or higher than a predetermined value as a layer to be encrypted;
前記選択したマスクレイヤを暗号化し、前記構造化文書画像中の当該マスクレイヤの符号を暗号化後の符号で置き換える手段と、Means for encrypting the selected mask layer and replacing the code of the mask layer in the structured document image with a code after encryption;
を有することを特徴とする構造化文書画像処理装置。A structured document image processing apparatus comprising:
背景レイヤと、n組(nは1以上の整数)の前景レイヤ及び/又はマスクレイヤからなる構造化文書画像を暗号化する構造化文書画像処理装置であって、A structured document image processing apparatus that encrypts a structured document image including a background layer, and n sets (n is an integer of 1 or more) of foreground layers and / or mask layers,
前記構造化文書画像のレイヤ群について、各レイヤの色数を検出する手段と、Means for detecting the number of colors of each layer for the layer group of the structured document image;
前記検出した各レイヤの色数が1であるか複数であるか判定し、色数が複数であるレイヤを暗号化対象のレイヤとして選択する手段と、Means for determining whether the number of colors of each detected layer is 1 or plural, and selecting a layer having a plurality of colors as a layer to be encrypted;
前記選択したレイヤを暗号化し、前記構造化文書画像中の当該レイヤの符号を暗号化後の符号で置き換える手段と、Means for encrypting the selected layer and replacing the code of the layer in the structured document image with the code after encryption;
を有することを特徴とする構造化文書画像処理装置。A structured document image processing apparatus comprising:
背景レイヤと、n組(nは1以上の整数)の前景レイヤ及び/又はマスクレイヤからなる構造化文書画像を記憶する記憶部と、前記記憶部に記憶された構造化文書画像を暗号化する処理部とを具備する構造化文書画像処理装置において、A storage unit for storing a structured document image including a background layer, n sets (n is an integer of 1 or more) foreground layer and / or mask layer, and a structured document image stored in the storage unit is encrypted. In a structured document image processing apparatus comprising a processing unit,
前記処理部は、The processor is
前記構造化文書画像のレイヤ群について、背景レイヤの符号量を所定の値に設定するステップ、For a layer group of the structured document image, setting a code amount of a background layer to a predetermined value;
前記構造化文書画像のレイヤ群について、各レイヤの符号量を取得するステップ、Obtaining a code amount of each layer for the layer group of the structured document image;
背景レイヤの符号量を前記設定された所定の値として、前記取得した各レイヤの符号量を比較して、符号量の大きいレイヤを暗号化対象のレイヤとして選択するステップ、A step of comparing a code amount of each acquired layer with a code amount of a background layer as the set predetermined value and selecting a layer with a large code amount as a layer to be encrypted;
前記選択したレイヤを暗号化し、前記構造化文書画像中の当該レイヤの符号を暗号化後の符号で置き換えるステップ、Encrypting the selected layer and replacing the code of the layer in the structured document image with the encrypted code;
を実行することを特徴とする構造化文書画像暗号処理方法。A structured document image encryption processing method characterized by executing:
背景レイヤと、n組(nは1以上の整数)の前景レイヤ及び/又はマスクレイヤからなる構造化文書画像を記憶する記憶部と、前記記憶部に記憶された構造化文書画像を暗号化する処理部とを具備する構造化文書画像処理装置において、A storage unit for storing a structured document image including a background layer, n sets (n is an integer of 1 or more) foreground layer and / or mask layer, and a structured document image stored in the storage unit is encrypted. In a structured document image processing apparatus comprising a processing unit,
前記処理部は、The processor is
前記構造化文書画像のレイヤ群から、背景レイヤの解像度を取得するステップ、Obtaining a resolution of a background layer from the layer group of the structured document image;
前記背景レイヤの解像度を取得できなかった場合に、背景レイヤの解像度を所定の値に設定するステップ、When the resolution of the background layer cannot be obtained, setting the resolution of the background layer to a predetermined value;
前記構造化文書画像のレイヤ群について、前景レイヤまたはマスクレイヤの解像度を、前記背景レイヤの解像度を用いて算出するステップ、Calculating a resolution of a foreground layer or a mask layer for the layer group of the structured document image using a resolution of the background layer;
前記算出した前景レイヤまたはマスクレイヤの解像度をもとに、解像度の高いレイヤを暗号化対象のレイヤとして選択するステップ、Selecting a high resolution layer as an encryption target layer based on the calculated foreground layer or mask layer resolution;
前記選択したレイヤを暗号化し、前記構造化文書画像中の当該レイヤの符号を暗号化後の符号で置き換えるステップ、Encrypting the selected layer and replacing the code of the layer in the structured document image with the encrypted code;
を実行することを特徴とする構造化文書画像暗号処理方法。A structured document image encryption processing method characterized by executing:
背景レイヤと、n組(nは1以上の整数)の前景レイヤ及び/又はマスクレイヤからなる構造化文書画像を記憶する記憶部と、前記記憶部に記憶された構造化文書画像を暗号化する処理部とを具備する構造化文書画像処理装置において、A storage unit for storing a structured document image including a background layer, n sets (n is an integer of 1 or more) foreground layer and / or mask layer, and a structured document image stored in the storage unit is encrypted. In a structured document image processing apparatus comprising a processing unit,
前記処理部は、The processor is
前記構造化文書画像のレイヤ群から、背景レイヤの解像度を取得するステップ、Obtaining a resolution of a background layer from the layer group of the structured document image;
前記背景レイヤの解像度を取得できなかった場合に、背景レイヤの解像度を所定の値に設定するステップ、When the resolution of the background layer cannot be obtained, setting the resolution of the background layer to a predetermined value;
前記構造化文書画像のレイヤ群からマスクレイヤを検出するステップ、Detecting a mask layer from a layer group of the structured document image;
前記検出したマスクレイヤの解像度を、前記背景レイヤの解像度を用いて算出するステップ、Calculating the resolution of the detected mask layer using the resolution of the background layer;
前記算出したマスクレイヤの解像度が所定の値以上であるマスクレイヤを暗号化対象のレイヤとして選択するステップ、Selecting a mask layer whose resolution of the calculated mask layer is a predetermined value or more as a layer to be encrypted;
前記選択したマスクレイヤを暗号化し、前記構造化文書画像中の当該マスクレイヤの符号を暗号化後の符号で置き換えるステップ、Encrypting the selected mask layer and replacing the code of the mask layer in the structured document image with the code after encryption;
を実行することを特徴とする構造化文書画像暗号処理方法。A structured document image encryption processing method characterized by executing:
背景レイヤと、n組(nは1以上の整数)の前景レイヤ及び/又はマスクレイヤからなる構造化文書画像を記憶する記憶部と、前記記憶部に記憶された構造化文書画像を暗号化する処理部とを具備する構造化文書画像処理装置において、A storage unit for storing a structured document image including a background layer, n sets (n is an integer of 1 or more) foreground layer and / or mask layer, and a structured document image stored in the storage unit is encrypted. In a structured document image processing apparatus comprising a processing unit,
前記処理部は、The processor is
前記構造化文書画像のレイヤ群について、各レイヤの色数を検出するステップ、Detecting the number of colors of each layer for the layer group of the structured document image;
前記検出した各レイヤの色数が1であるか複数であるか判定し、色数が複数であるレイヤを暗号化対象のレイヤとして選択するステップ、Determining whether the number of colors of each detected layer is 1 or plural, and selecting a layer having a plurality of colors as a layer to be encrypted;
前記選択したレイヤを暗号化し、前記構造化文書画像中の当該レイヤの符号を暗号化後の符号で置き換えるステップ、Encrypting the selected layer and replacing the code of the layer in the structured document image with the encrypted code;
を実行することを特徴とする構造化文書画像暗号処理方法。A structured document image encryption processing method characterized by executing:
請求項1乃至5のいずれか1項に記載の構造化文書画像処理装置の各手段としてコンピュータを機能させるプログラム。A program that causes a computer to function as each unit of the structured document image processing apparatus according to claim 1. 請求項1乃至5のいずれか1項に記載の構造化文書画像処理装置の各手段としてコンピュータを機能させるプログラムが記録された、コンピュータが読み取り可能な情報記録媒体。6. A computer-readable information recording medium in which a program for causing a computer to function as each unit of the structured document image processing apparatus according to claim 1 is recorded.
JP2006251764A 2006-08-25 2006-09-15 Structured document image processing apparatus, structured document image encryption processing method, program, and information recording medium Expired - Fee Related JP5030141B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006251764A JP5030141B2 (en) 2006-08-25 2006-09-15 Structured document image processing apparatus, structured document image encryption processing method, program, and information recording medium

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2006228929 2006-08-25
JP2006228929 2006-08-25
JP2006251764A JP5030141B2 (en) 2006-08-25 2006-09-15 Structured document image processing apparatus, structured document image encryption processing method, program, and information recording medium

Publications (2)

Publication Number Publication Date
JP2008078688A JP2008078688A (en) 2008-04-03
JP5030141B2 true JP5030141B2 (en) 2012-09-19

Family

ID=39350354

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006251764A Expired - Fee Related JP5030141B2 (en) 2006-08-25 2006-09-15 Structured document image processing apparatus, structured document image encryption processing method, program, and information recording medium

Country Status (1)

Country Link
JP (1) JP5030141B2 (en)

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0591344A (en) * 1991-09-26 1993-04-09 Olympus Optical Co Ltd Picture encoding device
JPH08107506A (en) * 1994-10-07 1996-04-23 Mita Ind Co Ltd Communication equipment
JP3642946B2 (en) * 1998-03-27 2005-04-27 富士写真フイルム株式会社 Image data encryption output device, image reproduction device, and digital photo service system
JPH11331618A (en) * 1998-05-19 1999-11-30 Canon Inc Image processing unit, image data distribution device, image data distribution system, image data distribution method and storage medium
US7242772B1 (en) * 2000-09-07 2007-07-10 Eastman Kodak Company Encryption apparatus and method for synchronizing multiple encryption keys with a data stream
JP4168262B2 (en) * 2003-03-20 2008-10-22 富士ゼロックス株式会社 Processing device for document file including part to be concealed, image forming medium, processing method, and program thereof
JP4181954B2 (en) * 2003-09-18 2008-11-19 株式会社リコー Data compression method and data compression apparatus
JP4090975B2 (en) * 2003-09-30 2008-05-28 株式会社リコー Image processing device
JP4086192B2 (en) * 2003-12-16 2008-05-14 株式会社リコー Image processing apparatus, image processing method, program, and information recording medium
JP2005259663A (en) * 2004-03-15 2005-09-22 Ebara Ballard Corp Fuel cell power generation method and fuel cell power generation system
JP2006217058A (en) * 2005-02-01 2006-08-17 Ricoh Co Ltd Image processing apparatus, image processing method, program, and recording medium
JP4606298B2 (en) * 2005-10-18 2011-01-05 シャープ株式会社 Image processing apparatus, image processing method, and image processing program

Also Published As

Publication number Publication date
JP2008078688A (en) 2008-04-03

Similar Documents

Publication Publication Date Title
Elsherif et al. Secure message embedding in 3d images
Tsai et al. Multi-morphological image data hiding based on the application of Rubik's cubic algorithm
JPH07212712A (en) Method and equipment for adding and deleting digital watermark in hierarchical picture memory and fetch system
Dhiman et al. Extended visual cryptography techniques for true color images
JP4181802B2 (en) Information processing apparatus, information processing method, program, and storage medium
JP2006222788A (en) Image verification device, image embedding device, image detection device, image embedding method, image detection method, computer program, and printed matter manufacturing method
JP5086951B2 (en) Image generation apparatus, image generation method, computer-executable program, and computer-readable recording medium
JP5030141B2 (en) Structured document image processing apparatus, structured document image encryption processing method, program, and information recording medium
CN109064381B (en) Multi-dimensional digital watermark encryption method based on secret key
Teotia et al. Enhancing audio and video steganography technique using hybrid algorithm
Liu et al. A reversible data hiding algorithm based on image camouflage and bit-plane compression
Wang et al. A novel (n, n) secret image sharing scheme based on Sudoku
US7606426B1 (en) Image processing apparatus and method and storage medium
JP2007067865A (en) Image processor, image processing method, and image processing program
Lukac et al. Secure color imaging
JP2004289456A (en) Method and device for processing document file containing section to be secret, image forming medium, and program thereof
JP4002068B2 (en) Digital video watermarking method
Yang et al. A Data Hiding Method Based on Partition Variable Block Size with Exclusive-or Operation on Binary Image
JP2009124456A (en) Information processor, information processing method, information processing program, and information recording medium
Yan et al. Image secret sharing
Tsai et al. An (3, 3)-visual secret sharing scheme for hiding three secret data
JP4672971B2 (en) Encryption / decryption method and apparatus
Gupta et al. Steganography Methods for GIF Images: A Review
Chantrapornchai et al. Exploring Image and Video Steganography Based on DCT and Wavelet Transform
JP2007134860A (en) Encryption program and decryption program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090707

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111104

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111116

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120113

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120425

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120604

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

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

R151 Written notification of patent or utility model registration

Ref document number: 5030141

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20150706

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees