JP2006303728A - Method and device for embedding watermark information, and computer program - Google Patents

Method and device for embedding watermark information, and computer program Download PDF

Info

Publication number
JP2006303728A
JP2006303728A JP2005120154A JP2005120154A JP2006303728A JP 2006303728 A JP2006303728 A JP 2006303728A JP 2005120154 A JP2005120154 A JP 2005120154A JP 2005120154 A JP2005120154 A JP 2005120154A JP 2006303728 A JP2006303728 A JP 2006303728A
Authority
JP
Japan
Prior art keywords
watermark
density
information
image
document image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2005120154A
Other languages
Japanese (ja)
Other versions
JP4611792B2 (en
Inventor
Koki Yamaguchi
弘毅 山口
Hiroyuki Yasuda
浩之 保田
Kurato Maeno
蔵人 前野
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP2005120154A priority Critical patent/JP4611792B2/en
Publication of JP2006303728A publication Critical patent/JP2006303728A/en
Application granted granted Critical
Publication of JP4611792B2 publication Critical patent/JP4611792B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To embed a watermark information so that the embedded information can be restored correctly, regardless of percentage of a character region in the document in which the watermark information is embedded or image density of a background image. <P>SOLUTION: The watermark information embedding device embeds a watermark information in a document image using electronic watermark. It comprises a pixel information detecting part 106 for detecting pixel information of the document image, a watermark density determining part 108 for determining watermark density of the watermark information that can be embedded in the document image based on the pixel information detected by the pixel information detecting part, a watermark information generating part 112 for generating a watermark information embedded in the document image according to the watermark density determined by the watermark density determining part, and a watermark information embedding part 110 for embedding the watermark information generated by the watermark information generating part in the document image. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は,透かし情報埋め込み装置,透かし情報埋め込み方法およびコンピュータプログラムに関し,特に,背景全体に模様がある文書データに透かし情報を埋め込むことが可能な透かし情報埋め込み装置に関する。   The present invention relates to a watermark information embedding device, a watermark information embedding method, and a computer program, and more particularly to a watermark information embedding device capable of embedding watermark information in document data having a pattern in the entire background.

近年,印刷物に電子的に読み取り可能な情報を付加して,その付加情報により通信相手を特定する方法が開示されている(例えば特許文献1)。これにより,例えば印刷物を印刷する際に,その印刷がなされた印刷装置等を特定する情報を付加して,その付加情報から印刷装置を利用する印刷者を特定することが可能となる。   In recent years, a method has been disclosed in which electronically readable information is added to a printed matter and a communication partner is specified based on the additional information (for example, Patent Document 1). Thus, for example, when printing a printed matter, it is possible to add information for specifying a printing device or the like on which printing is performed, and to specify a printer who uses the printing device from the additional information.

上記印刷物に対し,電子的に読み取り可能な情報を付加する方法として,微細なドットパターンで情報を表現し,印刷物の背景全体に透かし情報を埋め込む方法が開示されている(例えば特許文献2)。特許文献2では,印刷物の図や文字に透かし情報が重畳されても,文書に埋め込まれる透かし情報に冗長性を持たせることにより,正しい情報を読み取ることが可能となる。例えば,同一の情報を表すドットパターンを紙面全体に繰り返し埋め込むことにより,透かし地紋の一部が消えてしまっても埋め込まれた情報を正しく読み取ることができる。また,透かし地紋を一つの情報単位とすることで,文書中の文字領域の割合が多く透かし地紋を埋め込んでも正しく情報が読み取ることができない領域を避けて透かし情報を埋め込み,情報の欠落を防ぐことができる。   As a method for adding electronically readable information to the printed matter, a method is disclosed in which information is expressed by a fine dot pattern and watermark information is embedded in the entire background of the printed matter (for example, Patent Document 2). In Patent Document 2, even if watermark information is superimposed on a figure or characters of a printed matter, it is possible to read correct information by providing redundancy to the watermark information embedded in the document. For example, by repeatedly embedding a dot pattern representing the same information on the entire paper surface, the embedded information can be read correctly even if a part of the watermark background pattern disappears. In addition, by using a watermark pattern as one information unit, watermark information is embedded in areas where the percentage of the text area in the document is large and information cannot be read correctly even if the watermark pattern is embedded, thereby preventing loss of information. Can do.

特開2003−110827号公報Japanese Patent Laid-Open No. 2003-110827 特開2003−209676号公報JP 2003-209676 A

しかし,上記文字領域の割合が文書全体を占める場合や,文書の背景全体に模様がある場合などには,透かし地紋を埋め込んでも正しく情報を読み取ることができないという問題があった。例えば,背景全体に透かしが埋め込まれた場合に,背景全体に模様があり,その模様が透かし地紋より強調されて印刷される場合には,情報を正しく読み出せるように透かし情報を埋め込むことができなかった。   However, when the ratio of the character area occupies the entire document or when the entire background of the document has a pattern, there is a problem that information cannot be read correctly even if a watermark pattern is embedded. For example, if a watermark is embedded in the entire background and there is a pattern in the entire background and the pattern is emphasized from the watermark pattern and printed, the watermark information can be embedded so that the information can be read correctly. There wasn't.

そこで,本発明は,このような問題に鑑みてなされたもので,その目的とするところは,透かし情報が埋め込まれる文書の文字領域の割合や背景画像の画像濃度等に関わらず,埋め込まれた情報を正しく復元可能なように透かし情報を埋め込むことが可能な新規かつ改良された,透かし情報埋め込み装置,透かし情報埋め込み方法およびコンピュータプログラムを提供することにある。   Therefore, the present invention has been made in view of such a problem, and the object of the present invention is to embed regardless of the ratio of the character area of the document in which the watermark information is embedded or the image density of the background image. To provide a new and improved watermark information embedding device, watermark information embedding method and computer program capable of embedding watermark information so that information can be correctly restored.

上記課題を解決するために,本発明のある観点によれば,文書画像に対して電子透かしにより透かし情報を埋め込む透かし情報埋め込み装置であって:文書画像の画素情報を検出する画素情報検出部と;画素情報検出部により検出された画素情報に基づいて,文書画像に埋め込み可能な透かし情報の透かし濃度を決定する透かし濃度決定部と;透かし濃度決定部により決定された透かし濃度に応じて,文書画像に埋め込む透かし情報を生成する透かし情報生成部と;透かし情報生成部により生成された透かし情報を文書画像に埋め込む透かし情報埋め込み部と;を備えることを特徴とする,透かし情報埋め込み装置が提供される。   In order to solve the above-described problem, according to one aspect of the present invention, there is provided a watermark information embedding device that embeds watermark information in a document image with a digital watermark: a pixel information detection unit that detects pixel information of the document image; A watermark density determining unit that determines a watermark density of watermark information that can be embedded in the document image based on the pixel information detected by the pixel information detecting unit; a document according to the watermark density determined by the watermark density determining unit; There is provided a watermark information embedding device, comprising: a watermark information generation unit that generates watermark information to be embedded in an image; and a watermark information embedding unit that embeds the watermark information generated by the watermark information generation unit in a document image. The

上記文書画像の画素情報とは,文書画像の画像濃度や色彩などの情報である。上記透かし濃度とは,ドットパターンで表される透かし地紋の点密度であり,透かし濃度値が高いほど地紋の点密度が高いことを示す。透かし情報を埋め込み可能とは,透かし情報を正しく読み取ることが可能なように透かし情報を埋め込むことが可能であることをいう。   The pixel information of the document image is information such as the image density and color of the document image. The watermark density is the point density of the watermark background pattern represented by a dot pattern. The higher the watermark density value is, the higher the density of the background pattern point is. The watermark information can be embedded means that the watermark information can be embedded so that the watermark information can be read correctly.

上記構成によれば,透かし情報を埋め込む対象となる文書画像の画像濃度等に応じて透かし濃度を調整し,情報を読み取り可能な透かし情報を埋め込むことが可能となる。これにより,文書の背景等の影響により透かしを埋め込んでも情報復元不能となってしまう場合においても,透かしを強調して透かし読み取り性能を向上させた透かし入り文書画像を生成することができる。   According to the above configuration, the watermark density can be adjusted according to the image density or the like of the document image to be embedded with the watermark information, and the watermark information capable of reading the information can be embedded. As a result, even when information cannot be restored even if a watermark is embedded due to the influence of the background of the document, it is possible to generate a watermarked document image with enhanced watermark reading performance by emphasizing the watermark.

また,上記透かし濃度決定部は,文書画像の画素情報に含まれる黒画素割合が所定の割合以上である場合に,文書画像に埋め込み可能な透かし情報の透かし濃度を決定するようにしてもよい。かかる構成によれば,黒画素の割合が多い文書に対して,黒画素によって表される透かし地紋を強調して透かし情報を正しく読み出せるように透かし情報を埋め込むことが可能となる。   The watermark density determination unit may determine the watermark density of the watermark information that can be embedded in the document image when the black pixel ratio included in the pixel information of the document image is equal to or greater than a predetermined ratio. According to such a configuration, it is possible to embed watermark information in a document having a large proportion of black pixels so that the watermark background pattern represented by the black pixels is emphasized and the watermark information can be read correctly.

また,上記画素情報検出部は,文書画像を複数の透かし埋め込み領域に分割して各透かし埋め込み領域ごとの画素情報を検出し,透かし濃度決定部は,画素情報検出部により検出された文書画像の透かし埋め込み領域ごとの画素情報に基づいて,文書画像に埋め込み可能な透かし情報の透かし濃度を決定するようにしてもよい。また,上記画素情報検出部は,透かし埋め込み領域ごとの黒画素割合を検出し,透かし濃度決定部は,埋め込み領域ごとの黒画素割合が所定の割合以上である埋め込み不能領域の個数を算出し,埋め込み不能領域の個数が所定の個数以上である場合に,文書画像に埋め込み可能な透かし情報の透かし濃度を決定するようにしてもよい。かかる構成によれば,透かし情報を埋め込む対象となる文書画像の黒画素の分布が偏っている場合においても,透かし情報を埋め込み可能か否かを正しく判断して,情報を読み取り可能なように透かし濃度を調整して透かし情報を埋め込むことが可能となる。   The pixel information detection unit divides the document image into a plurality of watermark embedding regions and detects pixel information for each watermark embedding region, and the watermark density determination unit detects the document image detected by the pixel information detection unit. Based on the pixel information for each watermark embedding area, the watermark density of the watermark information that can be embedded in the document image may be determined. The pixel information detection unit detects a black pixel ratio for each watermark embedding area, and the watermark density determination unit calculates the number of non-embeddable areas in which the black pixel ratio for each embedding area is a predetermined ratio or more. When the number of non-embeddable areas is equal to or greater than a predetermined number, the watermark density of watermark information that can be embedded in a document image may be determined. According to such a configuration, even when the distribution of black pixels in the document image to which the watermark information is to be embedded is biased, the watermark is determined so that the watermark information can be read correctly by determining whether or not the watermark information can be embedded. It becomes possible to embed watermark information by adjusting the density.

上記透かし濃度決定部は,画素情報検出部により検出された画素情報に基づいて,文書画像に埋め込み可能な透かし情報の透かし色を決定するようにしてもよい。かかる構成によれば,文書画像がカラー文書である場合にも,該文書に適した透かし色を選択して,透かし情報が読み取り可能なように透かし情報を埋め込むことが可能となる。   The watermark density determination unit may determine the watermark color of the watermark information that can be embedded in the document image based on the pixel information detected by the pixel information detection unit. According to this configuration, even when the document image is a color document, it is possible to select a watermark color suitable for the document and embed the watermark information so that the watermark information can be read.

上記課題を解決するために本発明の別の観点によれば,文書画像に対して電子透かしにより透かし情報を埋め込む透かし情報埋め込み装置であって:文書画像の画素情報を検出する画素情報検出部と;画素情報検出部により検出された画素情報に基づいて,透かし情報を埋め込み可能なように文書画像の画像濃度を決定する画像濃度決定部と;画像濃度決定部により決定された画像濃度に前記文書画像の画像濃度を調整する画像濃度調整部と;画像濃度調整部により調整された文書画像に透かし情報を埋め込む透かし情報埋め込み部と;を備えることを特徴とする,透かし情報埋め込み装置が提供される。   In order to solve the above problems, according to another aspect of the present invention, there is provided a watermark information embedding device that embeds watermark information in a document image with a digital watermark: a pixel information detection unit that detects pixel information of the document image; An image density determination unit that determines the image density of the document image based on the pixel information detected by the pixel information detection unit so that watermark information can be embedded; and the document has the image density determined by the image density determination unit. There is provided a watermark information embedding device comprising: an image density adjustment unit that adjusts an image density of an image; and a watermark information embedding unit that embeds watermark information in a document image adjusted by the image density adjustment unit. .

上記構成によれば,透かし情報を埋め込む対象となる文書画像の画像濃度等に応じて画像濃度を調整し,情報を読み取り可能な透かし情報を埋め込むことが可能となる。これにより,文書の背景等の影響により透かしを埋め込んでも情報復元不能となってしまう文書に対し,背景の濃度を抑えて透かし読み取り性能を向上させた透かし入り文書画像を生成することができる。   According to the above configuration, it is possible to embed watermark information capable of reading information by adjusting the image density according to the image density of the document image into which the watermark information is embedded. As a result, it is possible to generate a watermarked document image in which the watermark reading performance is improved by suppressing the density of the background for a document whose information cannot be restored even if the watermark is embedded due to the influence of the document background or the like.

また,上記画像濃度決定部は,文書画像の画素情報に含まれる黒画素割合が所定の割合以上である場合に,透かし情報を埋め込み可能なように文書画像の画像濃度を決定するようにしてもよい。かかる構成によれば,黒画素の割合が多い文書に対して,背景画像となる画像の濃度を下げて透かし地紋を強調して透かし情報を正しく読み出せるように透かし情報を埋め込むことが可能となる。   The image density determination unit may determine the image density of the document image so that the watermark information can be embedded when the ratio of black pixels included in the pixel information of the document image is equal to or higher than a predetermined ratio. Good. According to such a configuration, it is possible to embed watermark information so that the watermark information can be correctly read out by reducing the density of the image to be the background image and emphasizing the watermark background pattern for a document with a high proportion of black pixels. .

上記画素情報検出部は,文書画像を複数の透かし埋め込み領域に分割して各透かし埋め込み領域ごとの画素情報を検出し,画像濃度決定部は,画素情報検出部により検出された前記文書画像の透かし埋め込み領域ごとの画素情報に基づいて,透かし情報を埋め込み可能なように文書画像の画像濃度を決定するようにしてもよい。また,上記画素情報検出部は,透かし埋め込み領域ごとの黒画素割合を検出し,画像濃度決定部は,埋め込み領域ごとの黒画素割合が所定の割合以上である埋め込み不能領域の個数を算出し,埋め込み不能領域の個数が所定の個数以上である場合に,透かし情報を埋め込み可能なように文書画像の画像濃度を決定するようにしてもよい。かかる構成によれば,透かし情報を埋め込む対象となる文書画像の黒画素の分布が偏っている場合においても,透かし情報を埋め込み可能か否かを正しく判断して,情報を読み取り可能なように背景画像の濃度を調整して透かし情報を埋め込むことが可能となる。   The pixel information detection unit divides the document image into a plurality of watermark embedding regions to detect pixel information for each watermark embedding region, and the image density determination unit detects the watermark of the document image detected by the pixel information detection unit. Based on the pixel information for each embedding area, the image density of the document image may be determined so that watermark information can be embedded. The pixel information detection unit detects a black pixel ratio for each watermark embedding area, and the image density determination unit calculates the number of non-embeddable areas in which the black pixel ratio for each embedding area is a predetermined ratio or more. When the number of non-embeddable areas is a predetermined number or more, the image density of the document image may be determined so that watermark information can be embedded. According to such a configuration, even when the distribution of black pixels in the document image to which the watermark information is to be embedded is biased, it is determined whether the watermark information can be embedded correctly and the background can be read. It is possible to embed watermark information by adjusting the density of the image.

また,上記画素情報検出部は,文書画像に含まれる黒画素の割合を検出し,画像濃度調整部は,黒画素の割合が所定の割合であった場合に,透かしが埋め込まれる文書画像を白黒反転するようにしてもよい。これにより,黒画素の割合が所定以上でる場合に,文書画像を白黒反転して,該文書画像に透かし情報を埋め込むことが可能となる。かかる構成によれば,大幅に画像処理を行わなければ透かし情報を埋め込むことができない場合でも,文書画像を白黒反転させることにより,可読性低下を低減して読み取り性能を向上させた透かし入り文書画像を生成することができる。   The pixel information detection unit detects the ratio of black pixels included in the document image, and the image density adjustment unit converts the document image in which the watermark is embedded into black and white when the ratio of black pixels is a predetermined ratio. It may be reversed. As a result, when the ratio of black pixels is equal to or greater than a predetermined value, the document image can be reversed in black and white and the watermark information can be embedded in the document image. According to such a configuration, even when watermark information cannot be embedded unless image processing is performed significantly, a watermarked document image with reduced readability and improved reading performance can be obtained by reversing the document image in black and white. Can be generated.

上記課題を解決するために,本発明の別の観点によれば,文書画像に対して電子透かしにより透かし情報を埋め込む透かし情報埋め込み装置であって:文書画像の画素情報を検出する画素情報検出部と;画素情報検出部により検出された画素情報に基づいて,文書画像に透かし情報を埋め込み可能なように,文書画像に埋め込む透かし情報の透かし濃度と,透かし情報が埋め込まれる前記文書画像の画像濃度とを決定する濃度決定部と;濃度決定部により決定された透かし濃度に応じて,文書画像に埋め込む透かし情報を生成する透かし情報生成部と;濃度決定部により決定された画像濃度に文書画像の画像濃度を調整する画像濃度調整部と;画像濃度調整部により調整された文書画像に,透かし情報生成部により生成された透かし情報を埋め込む透かし情報埋め込み部と;を備えることを特徴とする,透かし情報埋め込み装置が提供される。   In order to solve the above-described problem, according to another aspect of the present invention, there is provided a watermark information embedding device that embeds watermark information in a document image with a digital watermark: a pixel information detection unit that detects pixel information of a document image And based on the pixel information detected by the pixel information detection unit, the watermark density of the watermark information embedded in the document image and the image density of the document image in which the watermark information is embedded so that the watermark information can be embedded in the document image. A density determining unit for determining the watermark information; a watermark information generating unit for generating watermark information to be embedded in the document image in accordance with the watermark density determined by the density determining unit; and the image density determined by the density determining unit for the document image An image density adjusting unit for adjusting the image density; and embedding the watermark information generated by the watermark information generating unit in the document image adjusted by the image density adjusting unit. A watermark information embedding unit for writing; characterized in that it comprises a watermark information embedding device is provided.

上記構成によれば,透かし情報を埋め込む対象となる文書画像の画像濃度等に応じて透かし濃度と画像濃度とを調整し,情報を読み取り可能な透かし情報を埋め込むことが可能となる。これにより,文書の背景等の影響により透かしを埋め込んでも情報復元不能となってしまう場合においても,背景の濃度を抑えるとともに透かしを強調させて読み取り性能を向上させた透かし入り文書画像を生成することができる。   According to the above configuration, it is possible to embed watermark information capable of reading information by adjusting the watermark density and the image density in accordance with the image density or the like of the document image to be embedded with the watermark information. As a result, even if the information cannot be restored even if the watermark is embedded due to the influence of the background of the document, etc., a watermarked document image in which the reading density is improved by suppressing the background density and enhancing the watermark is generated. Can do.

上記濃度決定部は,文書画像の画素情報に含まれる黒画素割合が所定の割合以上である場合に,文書画像に埋め込み可能な透かし情報の透かし濃度と,透かし情報が埋め込まれる文書画像の画像濃度とを決定するようにしてもよい。かかる構成によれば,黒画素の割合が多い文書に対して,背景画像となる画像の濃度を下げるとともに透かし濃度を上げて,透かし情報を正しく読み出せるように透かし情報を埋め込むことが可能となる。   The density determination unit includes a watermark density of watermark information that can be embedded in the document image and an image density of the document image in which the watermark information is embedded when the ratio of black pixels included in the pixel information of the document image is equal to or greater than a predetermined ratio. May be determined. According to such a configuration, it is possible to embed watermark information so that the watermark information can be read correctly by reducing the density of the image to be the background image and increasing the watermark density for a document with a large proportion of black pixels. .

上記画素情報検出部は,文書画像を複数の透かし埋め込み領域に分割して各透かし埋め込み領域ごとの画素情報を検出し,濃度決定部は,画素情報検出部により検出された文書画像の透かし埋め込み領域ごとの画素情報に基づいて,文書画像に埋め込み可能な透かし情報の透かし濃度と,透かし情報が埋め込まれる文書画像の画像濃度とを決定するようにしてもよい。また,画素情報検出部は,透かし埋め込み領域ごとの黒画素割合を検出し,濃度決定部は,埋め込み領域ごとの黒画素割合が所定の割合以上である埋め込み不能領域の個数を算出し,埋め込み不能領域の個数が所定の個数以上である場合に,文書画像に埋め込み可能な透かし情報の透かし濃度と,透かし情報が埋め込まれる文書画像の画像濃度とを決定するようにしてもよい。かかる構成によれば,透かし情報を埋め込む対象となる文書画像の黒画素の分布が偏っている場合においても,透かし情報を埋め込み可能か否かを正しく判断して,情報を読み取り可能なように透かし濃度と背景画像の濃度とを調整して透かし情報を埋め込むことが可能となる。   The pixel information detection unit divides a document image into a plurality of watermark embedding regions to detect pixel information for each watermark embedding region, and the density determination unit includes a watermark embedding region of the document image detected by the pixel information detection unit. Based on each pixel information, the watermark density of the watermark information that can be embedded in the document image and the image density of the document image in which the watermark information is embedded may be determined. The pixel information detection unit detects the black pixel ratio for each watermark embedding area, and the density determination unit calculates the number of non-embeddable areas in which the black pixel ratio for each embedding area is equal to or greater than a predetermined ratio. When the number of areas is a predetermined number or more, the watermark density of the watermark information that can be embedded in the document image and the image density of the document image in which the watermark information is embedded may be determined. According to such a configuration, even when the distribution of black pixels in the document image to which the watermark information is to be embedded is biased, the watermark is determined so that the watermark information can be read correctly by determining whether or not the watermark information can be embedded. It is possible to embed watermark information by adjusting the density and the density of the background image.

また,上記画素情報検出部は,文書画像に含まれる黒画素の割合を検出し,画像濃度調整部は,黒画素の割合が所定の割合であった場合に,透かしが埋め込まれる文書画像を白黒反転するようにしてもよい。これにより,黒画素の割合が所定以上でる場合に,文書画像を白黒反転して,白黒反転された文書画像の画像濃度に応じた透かし濃度を決定することができる。かかる構成によれば,大幅に画像処理を行わなければ透かし情報を埋め込むことができない場合でも,文書画像を白黒反転させることにより,可読性低下を低減して読み取り性能を向上させた透かし入り文書画像を生成することができる。   The pixel information detection unit detects the ratio of black pixels included in the document image, and the image density adjustment unit converts the document image in which the watermark is embedded into black and white when the ratio of black pixels is a predetermined ratio. It may be reversed. As a result, when the ratio of black pixels is equal to or greater than a predetermined value, the document image can be reversed in black and white, and the watermark density corresponding to the image density of the reversed document image can be determined. According to such a configuration, even when watermark information cannot be embedded unless image processing is performed significantly, a watermarked document image with reduced readability and improved reading performance can be obtained by reversing the document image in black and white. Can be generated.

上記透かし濃度決定部は,前記画素情報検出部により検出された画素情報に基づいて,文書画像に埋め込み可能な透かし情報の透かし色を決定することを特徴とするようにしてもよい。かかる構成によれば,文書画像がカラー文書である場合にも,該文書に適した透かし色を選択して,透かし情報が読み取り可能なように透かし情報を埋め込むことが可能となる。   The watermark density determination unit may determine a watermark color of watermark information that can be embedded in the document image based on the pixel information detected by the pixel information detection unit. According to this configuration, even when the document image is a color document, it is possible to select a watermark color suitable for the document and embed the watermark information so that the watermark information can be read.

上記画素情報検出部により検出された画素情報に基づいて,文書画像に含まれる文字画像と背景画像とを分離する画像分離部と,画像分離部により分離された文字画像と背景画像とを合成する画像合成部と,をさらに含み,濃度決定部は,文書画像に透かし情報が埋め込み可能なように,文字画像の文字濃度と,背景画像の背景濃度とを決定し,画像濃度調整部は,濃度決定部により決定された文字濃度に文字画像の画像濃度を調整し,背景濃度に背景画像の画像濃度を調整し,透かし情報埋め込み部は,画像濃度調整部により調整された文字画像に透かし情報を埋め込み,画像合成部は,透かし情報が埋め込まれた文字画像と背景画像とを合成するようにしてもよい。   Based on the pixel information detected by the pixel information detection unit, an image separation unit that separates the character image and the background image included in the document image, and the character image and the background image separated by the image separation unit are combined. An image composition unit, and the density determination unit determines the character density of the character image and the background density of the background image so that the watermark information can be embedded in the document image. The image density of the character image is adjusted to the character density determined by the determination unit, the image density of the background image is adjusted to the background density, and the watermark information embedding unit adds the watermark information to the character image adjusted by the image density adjustment unit. The embedding / image combining unit may combine the character image with the watermark information embedded with the background image.

上記構成によれば,文書画像の文字と背景とを分離して,文字画像の濃度を上げ,背景画像の濃度を下げることにより,文字画像に埋め込まれた透かし情報を読み取り易くすることが可能な透かし入り文書画像を生成することが可能となる。   According to the above configuration, it is possible to easily read the watermark information embedded in the character image by separating the character and background of the document image, increasing the density of the character image, and decreasing the density of the background image. A watermarked document image can be generated.

上記課題を解決するために,本発明の別の観点によれば,文書画像に対して電子透かしにより透かし情報を埋め込む透かし情報埋め込み方法であって:文書画像の画素情報を検出する画素情報検出ステップと;画素情報に基づいて,文書画像に透かし情報を埋め込み可能なように,文書画像に埋め込む透かし情報の透かし濃度と,透かし情報が埋め込まれる文書画像の画像濃度とを決定するステップと;透かし濃度に応じて,文書画像に埋め込む透かし情報を生成するとともに,画像濃度に文書画像の画像濃度を調整するステップと;画像濃度を調整された文書画像に,透かし情報を埋め込むステップと;を含む透かし情報埋め込み方法が提供される。   In order to solve the above problems, according to another aspect of the present invention, there is provided a watermark information embedding method for embedding watermark information in a document image with a digital watermark: a pixel information detection step for detecting pixel information of a document image Determining the watermark density of the watermark information embedded in the document image and the image density of the document image in which the watermark information is embedded so that the watermark information can be embedded in the document image based on the pixel information; And generating watermark information to be embedded in the document image and adjusting the image density of the document image to the image density; and embedding the watermark information in the document image having the adjusted image density. An embedding method is provided.

上記課題を解決するために,本発明の別の観点によれば,コンピュータをして,文書画像に対して電子透かしにより透かし情報を埋め込む透かし情報埋め込み装置として機能せしめるコンピュータプログラムであって:文書画像の画素情報を検出する画素情報検出処理と;画素情報検出部により検出された画素情報に基づいて,文書画像に透かし情報を埋め込み可能なように,文書画像に埋め込む透かし情報の透かし濃度と,透かし情報が埋め込まれる文書画像の画像濃度とを決定する濃度決定処理と;濃度決定部により決定された透かし濃度に応じて,文書画像に埋め込む透かし情報を生成する透かし情報生成処理と;濃度決定部により決定された画像濃度に文書画像の画像濃度を調整する画像濃度調整処理と;画像濃度調整部により調整された文書画像に,透かし情報生成部により生成された透かし情報を埋め込む透かし情報埋め込み処理と;を実行するコンピュータプログラムが提供される。   In order to solve the above-mentioned problem, according to another aspect of the present invention, there is provided a computer program for causing a computer to function as a watermark information embedding device that embeds watermark information into a document image with a digital watermark: A pixel information detection process for detecting the pixel information of the watermark information; a watermark density of the watermark information embedded in the document image and a watermark so that the watermark information can be embedded in the document image based on the pixel information detected by the pixel information detection unit; A density determination process for determining an image density of a document image in which information is embedded; a watermark information generation process for generating watermark information to be embedded in the document image in accordance with the watermark density determined by the density determination unit; Image density adjustment processing for adjusting the image density of the document image to the determined image density; adjustment by the image density adjustment unit Computer program is provided to perform; the document image, the watermark information embedding process and to embed the watermark information generated by the watermark information generating unit.

以上説明したように本発明によれば,透かし情報が埋め込まれる文書の文字領域の割合や背景画像の画像濃度等に関わらず,埋め込まれた情報を正しく復元可能なように透かし情報を埋め込むことが可能な透かし情報埋め込み装置,透かし情報埋め込み方法およびコンピュータプログラムを提供できる。   As described above, according to the present invention, it is possible to embed watermark information so that the embedded information can be correctly restored regardless of the ratio of the character area of the document in which the watermark information is embedded and the image density of the background image. A possible watermark information embedding device, watermark information embedding method, and computer program can be provided.

以下に添付図面を参照しながら,本発明の好適な実施の形態について詳細に説明する。なお,本明細書及び図面において,実質的に同一の機能構成を有する構成要素については,同一の符号を付することにより重複説明を省略する。   Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the present specification and drawings, components having substantially the same functional configuration are denoted by the same reference numerals, and redundant description is omitted.

まず,本発明の透かし情報埋め込み装置に採用される,地紋を用いた透かし情報について説明する。地紋を用いた透かし情報とは,紙文書に対し情報をデジタルデータの形で文書の背景として埋め込まれる情報である。透かし情報は,印刷物に対し,微細なドットパターンで情報を表現し,印刷物の背景全体に,印刷物の図や文字と重畳するように埋め込まれる。   First, watermark information using a tint block employed in the watermark information embedding device of the present invention will be described. The watermark information using a background pattern is information embedded in a paper document as digital document data as a document background. The watermark information is expressed in a fine dot pattern on the printed material and is embedded in the entire background of the printed material so as to be superimposed on the figure or characters of the printed material.

印刷物の背景として埋め込まれた電子的に読み取り可能なデジタルデータは,画像処理によってドットパターンの特徴から情報を読み取ることができる。透かし地紋が図や文字と重なり,透かし情報の一部が読み取れない場合でも,透かし情報に冗長性を持たせることにより,正しく情報を読み取ることが可能となる。また,透かし地紋を一つの情報単位として扱うことで,文書中の文字領域の割合などが多く透かし地紋を埋め込んでも正しく情報が読み取ることができない領域を避けて透かし情報を埋め込み,情報の欠落を防ぐことができる。   The electronically readable digital data embedded as the background of the printed material can be read from the characteristics of the dot pattern by image processing. Even when a watermark pattern overlaps with a figure or a character and a part of the watermark information cannot be read, it is possible to read the information correctly by providing redundancy to the watermark information. Also, by treating the watermark pattern as one information unit, the watermark information is embedded to avoid areas where information cannot be read correctly even if the watermark pattern is embedded in a large proportion of the text area in the document, thereby preventing loss of information. be able to.

昨今,機密情報の漏洩を防止するために,電子ファイル等に対して制限が設けられているが,紙文書に対しても情報漏洩を防止することが必要となる。そこで,電子データを紙文書に印刷する際に,印刷処理を行ったPC(Personal Computer)や印刷装置などの機器IDや印刷要求を行ったユーザのユーザID,印刷日時等を上記透かし情報として紙文書に付加することにより,紙文書の印刷者を特定することが可能となる。例えば,印刷された漏洩文書を回収し,漏洩文書に付加された情報を読み取ることにより,漏洩者を特定することができる。また,機密情報を漏洩する際に,印刷者を特定する情報が自動的に付加されることを公知にすることで,情報漏洩を企てる者への抑止効果を期待することができる。   Recently, in order to prevent leakage of confidential information, restrictions are set for electronic files and the like, but it is necessary to prevent information leakage for paper documents. Therefore, when printing electronic data on a paper document, the device ID of the PC (Personal Computer) or printing apparatus that performed the printing process, the user ID of the user who made the printing request, the printing date and time, etc. are used as the watermark information. By adding it to the document, it becomes possible to specify the printer of the paper document. For example, the leaked person can be identified by collecting the leaked printed document and reading the information added to the leaked document. In addition, when confidential information is leaked, it is possible to expect a deterrent effect to a person who attempts to leak information by making it known that information specifying a printer is automatically added.

上記のように,印刷者を特定する透かし情報を埋め込むことにより,情報漏洩を防止するためには,すべての文書,すなわち文字領域が全体を占めている文書や背景全体に模様がある文書などにも透かし情報を正しく読み出せるように透かし情報を埋め込む必要がある。   As described above, in order to prevent information leakage by embedding watermark information that identifies the printer, all documents, that is, documents that occupy the entire text area or documents that have a pattern in the entire background, etc. Also, it is necessary to embed the watermark information so that the watermark information can be read correctly.

上記透かし地紋は,黒画素によって表されるため,文字領域の割合が全体を占める文書や背景全体に模様がある文書など黒画素の割合が多い文書の場合には,透かし情報を埋め込んでも読み取ることが困難となってしまう。例えば,濃淡のあるグレースケール画像に透かし情報を埋め込んでも,正しく情報を読み取ることができない。そこで,本発明においては,文字領域の割合が多く,背景全体に模様があるなど黒画素の割合が多い場合においても,透かし情報を正しく読み出せるように透かし情報を埋め込むことが可能な透かし情報埋め込み装置を提供する。   Since the watermark pattern is represented by black pixels, it can be read even if the watermark information is embedded in a document with a large proportion of black pixels, such as a document that occupies the entire character area or a document that has a pattern on the entire background. Becomes difficult. For example, even if watermark information is embedded in a grayscale image with shading, the information cannot be read correctly. Therefore, in the present invention, watermark information embedding is possible in which watermark information can be embedded so that the watermark information can be read correctly even when the ratio of the character area is large and the ratio of black pixels is large, such as when there is a pattern in the entire background. Providing equipment.

以下,透かし情報を埋め込み可能とは,透かし情報を正しく読み取ることが可能なように透かし情報を埋め込むことが可能であることをいう。また,本実施形態においては透かし情報として文書に埋め込まれる情報を上記印刷者特定情報として説明するが,かかる例に限定されず,文書を作成した作成者情報や,文字として表される以外の機密情報など,デジタルデータとして透かし地紋に変換可能な情報であればよい。   Hereinafter, “embedding watermark information” means that the watermark information can be embedded so that the watermark information can be read correctly. In this embodiment, information embedded in a document as watermark information will be described as the above-mentioned printer specific information. However, the present invention is not limited to such an example, and is not limited to such information. Any information can be used as long as it can be converted into a watermark pattern as digital data.

(第1実施形態)
第1実施形態では,文書画像の画像濃度に応じて透かし情報の透かし濃度を調整することにより,透かし情報読み取り性能の向上を図ることが可能な透かし情報埋め込み装置100aに本発明の透かし情報生成装置を適用して説明する。まず,図1に基づいて,第1実施形態にかかる透かし情報生成装置100aの機能構成について説明する。
(First embodiment)
In the first embodiment, the watermark information generation apparatus according to the present invention is added to the watermark information embedding apparatus 100a capable of improving the watermark information reading performance by adjusting the watermark density of the watermark information according to the image density of the document image. Will be described. First, the functional configuration of the watermark information generating apparatus 100a according to the first embodiment will be described with reference to FIG.

<1.透かし情報埋め込み装置の機能構成>
図1は,本実施形態にかかる透かし情報埋め込み装置100aの機能構成を示すブロック図である。図1に示したように,透かし情報埋め込み装置100aは,文書データ102と,文書データ画像化部104と,画素情報検出部106と,透かし濃度決定部108と,透かし情報埋め込み部110と,透かし情報生成部112と,埋め込み情報作成部114と,埋め込み情報116と,印刷部118などから構成される。
<1. Functional configuration of watermark information embedding device>
FIG. 1 is a block diagram showing a functional configuration of a watermark information embedding device 100a according to the present embodiment. As shown in FIG. 1, the watermark information embedding device 100a includes document data 102, a document data imaging unit 104, a pixel information detection unit 106, a watermark density determination unit 108, a watermark information embedding unit 110, and a watermark. The information generating unit 112, the embedded information creating unit 114, the embedded information 116, the printing unit 118, and the like are included.

文書データ102は,紙媒体に印刷される電子データであって,文書作成ツール等により作成されたデータである。文書データ102は,紙媒体に印刷されたときに,視覚的に認識できるデータである。文書データ画像化部104は,文書データ102を画像化して,文書画像を作成する機能を有する。文書データ画像化部104により作成された文書画像は,画素情報検出部106および透かし情報埋め込み部110に提供される。   The document data 102 is electronic data printed on a paper medium, and is data created by a document creation tool or the like. The document data 102 is data that can be visually recognized when printed on a paper medium. The document data imaging unit 104 has a function of imaging the document data 102 and creating a document image. The document image created by the document data imaging unit 104 is provided to the pixel information detection unit 106 and the watermark information embedding unit 110.

画素情報検出部106は,文書データ画像化部104により提供された文書画像の画素情報を検出する機能を有する。ここで画素情報とは,文書画像の画像濃度や色彩などの情報である。画素情報検出部106により検出される画素情報は,文書画像全体に対する画素情報であってもよいし,文書画像を複数の領域に分割して,分割された領域ごとの画素情報を検出するようにしてもよい。例えば,画素情報検出部106により検出される画素情報が黒画素割合の情報であった場合には,文書画像全体に対する黒画素割合を検出してもよいし,分割された領域ごとに黒画素割合を検出してもよい。画素情報検出部106により検出された画素情報は,透かし濃度決定部108に提供される。   The pixel information detection unit 106 has a function of detecting pixel information of the document image provided by the document data imaging unit 104. Here, the pixel information is information such as image density and color of the document image. The pixel information detected by the pixel information detection unit 106 may be pixel information for the entire document image, or the document image is divided into a plurality of areas, and the pixel information for each divided area is detected. May be. For example, when the pixel information detected by the pixel information detection unit 106 is black pixel ratio information, the black pixel ratio relative to the entire document image may be detected, or the black pixel ratio may be detected for each divided area. May be detected. Pixel information detected by the pixel information detection unit 106 is provided to the watermark density determination unit 108.

透かし濃度決定部108は,画素情報検出部106により検出された画素情報に基づいて,文書画像に埋め込み可能な透かし情報の透かし濃度を決定する機能を有する。例えば,透かし地紋が黒画素によって表される場合には,文書画像の黒画素割合によって,埋め込まれた透かし情報が正しく読み取れるか否かが決まる。黒画素の割合が多い場合には,透かし情報を埋め込んでも正しく読み取れない場合がある。その場合には,埋め込まれる透かし情報の透かし濃度を調整することにより,透かし情報を正しく読み取ることができるように透かし情報を埋め込むことが可能となる。本実施形態における画像文書に埋め込まれる透かしは,複数種類のドットパターンが規則正しく配置され,その中の少なくとも一種類のドットパターンは特定の情報を表す地紋である。上記透かし濃度とは,ドットパターンで表される透かし地紋の点密度であり,透かし濃度値が高いほど地紋の点密度が高いことを示す。本実施形態においては,透かし濃度を調整することなく埋め込まれる透かし濃度を透かし濃度のデフォルト値「2」とする。   The watermark density determination unit 108 has a function of determining the watermark density of watermark information that can be embedded in a document image based on the pixel information detected by the pixel information detection unit 106. For example, when a watermark pattern is represented by black pixels, whether or not the embedded watermark information can be read correctly is determined by the black pixel ratio of the document image. If the percentage of black pixels is large, it may not be read correctly even if watermark information is embedded. In that case, the watermark information can be embedded so that the watermark information can be read correctly by adjusting the watermark density of the embedded watermark information. In the watermark embedded in the image document in this embodiment, a plurality of types of dot patterns are regularly arranged, and at least one type of dot pattern among them is a ground pattern representing specific information. The watermark density is the point density of the watermark background pattern represented by a dot pattern. The higher the watermark density value is, the higher the density of the background pattern point is. In the present embodiment, the watermark density that is embedded without adjusting the watermark density is the default value “2” of the watermark density.

例えば,図2に示したように,透かし入り文書画像10は「龍」という文書画像に透かし濃度「2」の透かし情報が埋め込まれた図である。透かし入り文書画像10の領域10aに埋め込まれた透かし情報は,正しく読み取ることができるが,領域10bに埋め込まれた透かし情報は,透かし地紋のほとんどが「龍」の一部と重なってしまうため,透かし情報を正しく読み取ることができない。一方,透かし入り文書画像12は,透かし濃度「4」の透かし情報が埋め込まれた図である。埋め込まれる透かし情報の透かし濃度値を高くすることにより,透かし入り文書画像12の領域12aの透かし情報を正しく読み取ることが可能となる。   For example, as shown in FIG. 2, the watermarked document image 10 is a diagram in which watermark information of watermark density “2” is embedded in a document image “dragon”. Although the watermark information embedded in the area 10a of the watermarked document image 10 can be read correctly, the watermark information embedded in the area 10b has most of the watermark background pattern overlapped with a part of “dragon”. The watermark information cannot be read correctly. On the other hand, the watermarked document image 12 is a diagram in which watermark information with a watermark density of “4” is embedded. By increasing the watermark density value of the embedded watermark information, the watermark information in the area 12a of the watermarked document image 12 can be read correctly.

図2に示したように,文書画像の黒画素の割合が多い場合に,透かし情報の透かし濃度値を高くすることにより,透かし濃度のデフォルト値「2」で透かし情報を埋め込んだ場合には,正しく読み取れなかった情報を正しく読み取ることができるようになる。しかし,透かし濃度値を高くすると,透かし情報の読み取り性能は向上するが,可読性が低下してしまう。そこで,透かし濃度決定部108は,文書画像の画素情報に含まれる黒画素割合が所定の割合以下である場合には,透かし濃度「2」の透かし情報を埋め込み,黒画素割合が所定の割合以上である場合に,前記文書画像に埋め込み可能な透かし情報の透かし濃度を調整するようにしてもよい。   As shown in FIG. 2, when the ratio of black pixels in the document image is large, when the watermark information is embedded with the default value “2” of the watermark density by increasing the watermark density value of the watermark information, Information that could not be read correctly can be read correctly. However, if the watermark density value is increased, the reading performance of the watermark information is improved, but the readability is lowered. Therefore, when the black pixel ratio included in the pixel information of the document image is equal to or less than a predetermined ratio, the watermark density determination unit 108 embeds the watermark information of the watermark density “2” and the black pixel ratio is equal to or higher than the predetermined ratio. In this case, the watermark density of watermark information that can be embedded in the document image may be adjusted.

図3に示したように,例えば文書画像の黒画素密度202が20%未満である場合には,透かし濃度204をデフォルト値「2」とし,黒画素密度202が20%以上25%未満である場合には,透かし濃度204を3〜15の間で埋め込み可能な濃度に設定するようにしてもよい。また,黒画素密度202が25%以上である場合には,透かし濃度を調整しても,透かし情報を正しく読み取ることができるように埋め込むことができないと判断するようにしてもよい。上述したように,透かし情報が埋め込み可能とは,埋め込まれた透かし情報が正しく読み取ることが可能であることである。予め,文書画像の黒画素密度に対して,透かし情報が正しく読み取ることが可能な透かし濃度を設定しておくことにより,検出された黒画素密度の割合に応じた透かし濃度を設定することが可能となる。   As shown in FIG. 3, for example, when the black pixel density 202 of the document image is less than 20%, the watermark density 204 is set to the default value “2”, and the black pixel density 202 is 20% or more and less than 25%. In this case, the watermark density 204 may be set to a density that can be embedded between 3 and 15. If the black pixel density 202 is 25% or more, it may be determined that even if the watermark density is adjusted, the watermark information cannot be embedded so that it can be read correctly. As described above, that watermark information can be embedded means that the embedded watermark information can be read correctly. It is possible to set the watermark density according to the ratio of the detected black pixel density by setting the watermark density that can read the watermark information correctly for the black pixel density of the document image in advance. It becomes.

また,画素情報検出部106により,分割された領域ごとに黒画素割合が検出された場合には,分割された領域ごとに黒画素割合が所定の割合以上である領域の個数を算出し,その個数が所定の個数以上である場合に,個数に応じた透かし濃度を決定するようにしてもよい。これにより,文書画像の黒画素の分布が偏っている場合でも,透かし情報を埋め込み可能か否かを正しく判断することが可能となる。例えば,A4サイズの文書画像であれば,文書画像を約2.5cm角のブロックに分割し,各ブロックの黒画素割合を検出する。そして,検出された黒画素割合が20%以下のブロック数を算出する。ブロック数が24個より少なければ,その文書画像に透かし濃度「2」の透かし情報を埋め込むことが可能であり,ブロック数が25個以上であれば透かし濃度を調整して透かし情報を埋め込む必要があると判断することができる。透かし濃度決定部108により決定された透かし濃度が透かし情報生成部112に提供される。   In addition, when the pixel information detection unit 106 detects the black pixel ratio for each divided area, the number of areas in which the black pixel ratio is equal to or greater than a predetermined ratio is calculated for each divided area. When the number is equal to or greater than the predetermined number, the watermark density corresponding to the number may be determined. This makes it possible to correctly determine whether watermark information can be embedded even when the distribution of black pixels in the document image is biased. For example, in the case of an A4 size document image, the document image is divided into approximately 2.5 cm square blocks, and the black pixel ratio of each block is detected. Then, the number of blocks in which the detected black pixel ratio is 20% or less is calculated. If the number of blocks is less than 24, it is possible to embed watermark information of watermark density “2” in the document image. If the number of blocks is 25 or more, it is necessary to adjust the watermark density and embed watermark information. It can be judged that there is. The watermark density determined by the watermark density determination unit 108 is provided to the watermark information generation unit 112.

図1に戻り,埋め込み情報作成部114は,埋め込み情報116を取得して,透かし情報として文書画像に埋め込むためのデータを作成する。上述したように,文書画像に埋め込む透かし情報が印刷者を特定する印刷者特定情報である場合には,印刷者のユーザID,印刷要求がなされたPCの機器ID,日時,印刷指示対象の印刷機の機器IDなどを埋め込み情報として作成してもよい。埋め込み情報作成部114により作成された埋め込み情報が透かし情報生成部112に提供される。   Returning to FIG. 1, the embedding information creation unit 114 acquires the embedding information 116 and creates data to be embedded in the document image as watermark information. As described above, when the watermark information to be embedded in the document image is the printer identification information that identifies the printer, the user ID of the printer, the device ID of the PC that requested the printing, the date and time, and the print instruction target print The device ID of the machine may be created as embedded information. The embedded information created by the embedded information creating unit 114 is provided to the watermark information generating unit 112.

透かし情報生成部112は,埋め込み情報作成部114により提供された埋め込み情報から,地紋を用いた透かし画像を生成する。また,透かし情報生成部112は,上記透かし濃度決定部108により決定された透かし濃度に応じて,透かし画像の透かし濃度を調整する。   The watermark information generation unit 112 generates a watermark image using a background pattern from the embedded information provided by the embedded information generation unit 114. Further, the watermark information generation unit 112 adjusts the watermark density of the watermark image according to the watermark density determined by the watermark density determination unit 108.

透かし情報埋め込み部110は,文書データ画像化部104により提供された文書画像に,透かし情報生成部112により生成された透かし情報を埋め込み,地紋を用いた透かし入り文書画像を生成する。透かし情報埋め込み部110により生成された透かし入り文書画像が印刷部118に提供される。印刷部118は,透かし情報埋め込み部110により提供された透かし入り文書画像を透かし情報埋め込み装置100aに接続された印刷機に対し印刷指示を行う。   The watermark information embedding unit 110 embeds the watermark information generated by the watermark information generation unit 112 in the document image provided by the document data imaging unit 104, and generates a watermarked document image using a background pattern. The watermarked document image generated by the watermark information embedding unit 110 is provided to the printing unit 118. The printing unit 118 instructs the printing machine connected to the watermark information embedding device 100a to print the watermarked document image provided by the watermark information embedding unit 110.

以上,透かし情報埋め込み装置100aの機能構成について説明した。次に,図4に基づいて,透かし情報埋め込み装置100aにおける透かし情報埋め込み方法について説明する。   The functional configuration of the watermark information embedding device 100a has been described above. Next, a watermark information embedding method in the watermark information embedding device 100a will be described with reference to FIG.

<2.透かし情報埋め込み方法>
図4は,第1実施形態にかかる透かし情報埋め込み方法を示したフローチャートである。まず,文書データを画像化し,文書画像を作成する(S101)。ステップS101において作成された文書画像の画素情報に基づいて,文書画像に埋め込み可能な透かし情報の透かし濃度を決定して,透かし情報の透かし濃度を設定する(S102)。
<2. Embedding watermark information>
FIG. 4 is a flowchart showing the watermark information embedding method according to the first embodiment. First, document data is imaged and a document image is created (S101). Based on the pixel information of the document image created in step S101, the watermark density of the watermark information that can be embedded in the document image is determined, and the watermark density of the watermark information is set (S102).

埋め込み情報作成部114により,印刷者のユーザIDや,印刷者が使用するPCの機器ID,日付等が取得され,埋め込み情報が作成される(S104)。ステップS103において作成された埋め込み情報から,地紋を用いた透かし画像を生成する(S104)。透かし情報生成部112は,ステップS102において設定された透かし濃度に応じて,透かし画像の透かし濃度を調整する。   The embedded information creation unit 114 acquires the user ID of the printer, the device ID of the PC used by the printer, the date, and the like, and creates embedded information (S104). A watermark image using a background pattern is generated from the embedded information created in step S103 (S104). The watermark information generation unit 112 adjusts the watermark density of the watermark image according to the watermark density set in step S102.

そして,ステップS101において作成された文書画像に,ステップS104において生成された透かし情報を埋め込んで,透かし入り文書画像を生成する(S105)。印刷部118は,ステップS105において生成された透かし入り文書画像を,透かし情報埋め込み装置100aに接続された印刷機に対し印刷指示を行う(S106)。   Then, the watermark information generated in step S104 is embedded in the document image created in step S101 to generate a watermarked document image (S105). The printing unit 118 instructs the printing machine connected to the watermark information embedding device 100a to print the watermarked document image generated in step S105 (S106).

以上,第1実施形態にかかる透かし情報埋め込み方法について説明した。上記構成により,文書画像に透かし濃度のデフォルト値である透かし濃度値「2」の透かし情報を埋め込んでも,情報を読み取ることができず,情報を復元不能な文書に対しても,透かし濃度値を高くして透かしを強調することで,透かしの読み取り性能を向上した透かし入り文書画像を生成することができる。しかし,文書画像の濃度が高く,黒画素の割合が所定以上である文書画像に対しては,透かし濃度値を高くしても,透かし情報を読み取ることができず,可読性が低下してしまう。   The watermark information embedding method according to the first embodiment has been described above. With the above configuration, even if watermark information of watermark density value “2”, which is the default value of watermark density, is embedded in a document image, the watermark density value is set even for a document in which information cannot be read and information cannot be restored. By emphasizing the watermark by raising it, it is possible to generate a watermarked document image with improved watermark reading performance. However, for a document image in which the density of the document image is high and the ratio of black pixels is equal to or greater than a predetermined value, even if the watermark density value is increased, the watermark information cannot be read and the readability is degraded.

そこで,第2実施形態では,文書画像の画像濃度を調整することにより,透かし情報を埋め込むことが可能な透かし情報埋め込み装置を提供する。   Therefore, the second embodiment provides a watermark information embedding device that can embed watermark information by adjusting the image density of a document image.

(第2実施形態)
第2実施形態では,文書画像の画像濃度に応じて,透かし情報を埋め込み可能となるように文書画像の画像濃度を調整し,埋め込まれた透かし情報の読み取り性能の向上を図ることが可能な透かし情報埋め込み装置100bに本発明の透かし情報埋め込み装置を適用して説明する。まず,図5に基づいて,第2実施形態にかかる透かし情報埋め込み装置100bの機能構成について説明する。
(Second Embodiment)
In the second embodiment, the watermark that can adjust the image density of the document image so that the watermark information can be embedded in accordance with the image density of the document image, and can improve the reading performance of the embedded watermark information. A description will be given by applying the watermark information embedding device of the present invention to the information embedding device 100b. First, the functional configuration of the watermark information embedding device 100b according to the second embodiment will be described with reference to FIG.

<3.透かし情報埋め込み装置の機能構成>
図5は,本実施形態にかかる透かし情報埋め込み装置100bの機能構成を示すブロック図である。図5に示したように,透かし情報埋め込み装置100bは,文書データ102と,文書データ画像化部104と,画素情報検出部106と,透かし情報埋め込み部110と,透かし情報生成部112と,埋め込み情報作成部114と,埋め込み情報116と,印刷部118と,画像濃度決定部120と,画像濃度調整部122などから構成される。
<3. Functional configuration of watermark information embedding device>
FIG. 5 is a block diagram showing a functional configuration of the watermark information embedding device 100b according to the present embodiment. As shown in FIG. 5, the watermark information embedding device 100b includes document data 102, a document data imaging unit 104, a pixel information detection unit 106, a watermark information embedding unit 110, a watermark information generation unit 112, an embedding. The information creating unit 114, the embedded information 116, the printing unit 118, the image density determining unit 120, the image density adjusting unit 122, and the like are included.

文書データ102は,紙媒体に印刷される電子データであって,文書作成ツール等により作成されたデータである。文書データ102は,紙媒体に印刷されたときに,視覚的に認識できるデータである。文書データ画像化部104は,文書データ102を画像化して,文書画像を作成する機能を有する。文書データ画像化部104により作成された文書画像は,画素情報検出部106および画像濃度調整部122に提供される。   The document data 102 is electronic data printed on a paper medium, and is data created by a document creation tool or the like. The document data 102 is data that can be visually recognized when printed on a paper medium. The document data imaging unit 104 has a function of imaging the document data 102 and creating a document image. The document image created by the document data imaging unit 104 is provided to the pixel information detection unit 106 and the image density adjustment unit 122.

画素情報検出部106は,文書データ画像化部104により提供された文書画像の画素情報を検出する機能を有する。ここで画素情報とは,文書画像の画像濃度や色彩などの情報である。画素情報検出部106により検出される画素情報は,文書画像全体に対する画素情報であってもよいし,文書画像を複数の領域に分割して,分割された領域ごとの画素情報を検出するようにしてもよい。例えば,画素情報検出部106により検出される画素情報が黒画素割合の情報であった場合には,文書画像全体に対する黒画素割合を検出してもよいし,分割された領域ごとに黒画素割合を検出してもよい。画素情報検出部106により検出された画素情報は,画像濃度決定部120に提供される。   The pixel information detection unit 106 has a function of detecting pixel information of the document image provided by the document data imaging unit 104. Here, the pixel information is information such as image density and color of the document image. The pixel information detected by the pixel information detection unit 106 may be pixel information for the entire document image, or the document image is divided into a plurality of areas, and the pixel information for each divided area is detected. May be. For example, when the pixel information detected by the pixel information detection unit 106 is black pixel ratio information, the black pixel ratio relative to the entire document image may be detected, or the black pixel ratio may be detected for each divided area. May be detected. Pixel information detected by the pixel information detection unit 106 is provided to the image density determination unit 120.

画像濃度決定部120は,画素情報検出部106により検出された画素情報に基づいて,透かし情報を埋め込み可能なように文書画像の画像濃度を決定する機能を有する。例えば,透かし地紋が黒画素によって表される場合には,文書画像の黒画素割合によって,埋め込まれた透かし情報が正しく読み取れるか否かが決まる。黒画素の割合が多い場合には,透かし情報を埋め込んでも正しく読み取れない場合がある。その場合には,埋め込まれる文書画像の画像濃度を調整して,調整された文書画像に透かし情報を埋め込むことにより,透かし情報を正しく読み取ることができるように透かし情報を埋め込むことが可能となる。例えば,文書画像として文字が表されていた場合に,文字の黒画素の割合が多い場合には,文字の濃度を薄くする,つまり文字の輝度値を上げることにより埋め込まれた透かし情報を読み取ることが可能となる。   The image density determination unit 120 has a function of determining the image density of the document image based on the pixel information detected by the pixel information detection unit 106 so that watermark information can be embedded. For example, when a watermark pattern is represented by black pixels, whether or not the embedded watermark information can be read correctly is determined by the black pixel ratio of the document image. If the percentage of black pixels is large, it may not be read correctly even if watermark information is embedded. In that case, the watermark information can be embedded so that the watermark information can be read correctly by adjusting the image density of the embedded document image and embedding the watermark information in the adjusted document image. For example, if a character is represented as a document image and the percentage of black pixels in the character is high, the embedded watermark information is read by reducing the character density, that is, by increasing the character brightness value. Is possible.

例えば,図6に示したように,透かし入り文書画像14は,「龍」という文書画像に透かし情報が埋め込まれた図である。文書画像の文字「龍」は,通常の文字濃度であり,輝度値「0」の文字である。透かし入り文書画像14の領域14aに埋め込まれた透かし情報は,正しく読み取ることができるが,領域14bに埋め込まれた透かし情報は,透かし地紋のほとんどが「龍」の一部と重なってしまうため,透かし情報を正しく読み取ることができない。一方,透かし入り文書画像16は,文字の輝度値を「34」に変更し,文字濃度を薄くした文書画像に透かし情報が埋め込まれ,透かし入り文書画像16の領域16aに埋め込まれた透かし情報を正しく読み取ることが可能となる。   For example, as shown in FIG. 6, the watermarked document image 14 is a diagram in which watermark information is embedded in a document image “dragon”. The character “dragon” in the document image is a character having a normal character density and a luminance value “0”. Although the watermark information embedded in the area 14a of the watermarked document image 14 can be read correctly, the watermark information embedded in the area 14b has most of the watermark background pattern overlapped with a part of “dragon”. The watermark information cannot be read correctly. On the other hand, in the watermarked document image 16, the brightness value of the character is changed to “34”, the watermark information is embedded in the document image whose character density is reduced, and the watermark information embedded in the area 16 a of the watermarked document image 16 is changed. It becomes possible to read correctly.

図6に示したように,文書画像の黒画素の割合が多い場合に,文書画像の輝度値を高くすることにより,輝度値「0」の文書画像に透かし情報を埋め込んだ場合には,正しく読み取れなかった情報を正しく読み取ることができるようになる。しかし,文書画像の黒画素の割合が所定の割合以下である場合には,文書画像の輝度値を変更する必要はない。文書画像の黒画素の割合が所定の割合以上である場合にのみ,文書画像の輝度値を変更するようにしてもよい。   As shown in FIG. 6, when the percentage of black pixels in the document image is large, the brightness value of the document image is increased, so that when the watermark information is embedded in the document image having the brightness value “0”, Information that could not be read can be read correctly. However, it is not necessary to change the luminance value of the document image when the ratio of the black pixels of the document image is equal to or less than a predetermined ratio. The luminance value of the document image may be changed only when the ratio of black pixels in the document image is equal to or greater than a predetermined ratio.

図7に示したように,例えば文書画像の黒画素密度206が25%未満の場合には,文書画像の画像濃度208は調節せず,黒画素密度206が25%以上の場合には,文書画像の輝度値を「68」にするように画像濃度208を調整するようにしてもよい。このように,黒画素密度206が25%以上である場合には,輝度値を所定の値に変更するようにしてもよいし,黒画素の割合に応じて輝度値を変化させるようにしてもよい。予め,文書画像の黒画素密度に対して,透かし情報を正しく埋め込むことが可能な文書画像の輝度値を設定しておくことにより,検出された黒画素密度の割合に応じた文書画像の輝度値を設定することが可能となる。   As shown in FIG. 7, for example, when the black pixel density 206 of the document image is less than 25%, the image density 208 of the document image is not adjusted, and when the black pixel density 206 is 25% or more, the document image The image density 208 may be adjusted so that the luminance value of the image is “68”. Thus, when the black pixel density 206 is 25% or more, the luminance value may be changed to a predetermined value, or the luminance value may be changed according to the ratio of black pixels. Good. The brightness value of the document image corresponding to the ratio of the detected black pixel density is set in advance by setting the brightness value of the document image in which watermark information can be correctly embedded with respect to the black pixel density of the document image. Can be set.

また,画像情報検出部160により,分割された領域ごとに黒画素割合が検出された場合には,分割された領域ごとに黒画素割合が所定の割合以上である領域の個数を算出し,その個数が所定の個数以上である場合に,文書画像の輝度値を調整するようにしてもよい。   Further, when the black pixel ratio is detected for each divided area by the image information detection unit 160, the number of areas in which the black pixel ratio is equal to or greater than a predetermined ratio is calculated for each divided area. When the number is equal to or greater than the predetermined number, the luminance value of the document image may be adjusted.

これにより,文書画像の黒画素の分布が偏っている場合でも,透かし情報を埋め込み可能か否かを正しく判断することが可能となる。例えば,A4サイズの文書画像であれば,文書画像を約2.5cm角のブロックに分割し,各ブロックの黒画素割合を検出する。そして,検出された黒画素割合が25%以下のブロック数を算出する。ブロック数が24個より少なければ,文書画像の輝度値を調整せずに透かし情報を埋め込むことが可能であり,ブロック数が25個以上であれば文書画像の輝度値を調整して透かし情報を埋め込む必要があると判断することができる。画像濃度決定部120により決定された画像濃度が画像濃度調整部122に提供される。   This makes it possible to correctly determine whether watermark information can be embedded even when the distribution of black pixels in the document image is biased. For example, in the case of an A4 size document image, the document image is divided into approximately 2.5 cm square blocks, and the black pixel ratio of each block is detected. Then, the number of blocks in which the detected black pixel ratio is 25% or less is calculated. If the number of blocks is less than 24, it is possible to embed watermark information without adjusting the brightness value of the document image. If the number of blocks is 25 or more, the brightness value of the document image is adjusted to adjust the watermark information. It can be determined that it is necessary to embed. The image density determined by the image density determination unit 120 is provided to the image density adjustment unit 122.

図1に戻り,埋め込み情報作成部114は,埋め込み情報116を取得して,透かし情報として文書画像に埋め込むためのデータを作成する。上述したように,文書画像に埋め込む透かし情報が印刷者を特定する印刷者特定情報である場合には,印刷者のユーザID,印刷要求がなされたPCの機器ID,日時,印刷指示対象の印刷機の機器IDなどを埋め込み情報として作成してもよい。埋め込み情報作成部114により作成された埋め込み情報が透かし情報生成部112に提供される。   Returning to FIG. 1, the embedding information creation unit 114 acquires the embedding information 116 and creates data to be embedded in the document image as watermark information. As described above, when the watermark information to be embedded in the document image is the printer identification information that identifies the printer, the user ID of the printer, the device ID of the PC that requested the printing, the date and time, and the print instruction target print The device ID of the machine may be created as embedded information. The embedded information created by the embedded information creating unit 114 is provided to the watermark information generating unit 112.

透かし情報生成部112は,埋め込み情報作成部114により提供された埋め込み情報から,地紋を用いた透かし画像を生成する。画像濃度調整部122は,画像濃度決定部120より提供された画像濃度に文書画像の画像濃度を調整する。   The watermark information generation unit 112 generates a watermark image using a background pattern from the embedded information provided by the embedded information generation unit 114. The image density adjustment unit 122 adjusts the image density of the document image to the image density provided from the image density determination unit 120.

透かし情報埋め込み部110は,画像濃度調整部122により調整された文書画像に,透かし情報生成部112により生成された透かし情報を埋め込み,地紋を用いた透かし入り文書画像を生成する。透かし情報埋め込み部110により生成された透かし入り文書画像が印刷部118に提供される。印刷部118は,透かし情報埋め込み部110により提供された透かし入り文書画像を透かし情報埋め込み装置100aに接続された印刷機に対し印刷指示を行う。   The watermark information embedding unit 110 embeds the watermark information generated by the watermark information generation unit 112 in the document image adjusted by the image density adjustment unit 122, and generates a watermarked document image using a background pattern. The watermarked document image generated by the watermark information embedding unit 110 is provided to the printing unit 118. The printing unit 118 instructs the printing machine connected to the watermark information embedding device 100a to print the watermarked document image provided by the watermark information embedding unit 110.

以上,透かし情報埋め込み装置100bの機能構成について説明した。次に,図8に基づいて,透かし情報埋め込み装置100bにおける透かし情報埋め込み方法について説明する。   The functional configuration of the watermark information embedding device 100b has been described above. Next, a watermark information embedding method in the watermark information embedding device 100b will be described with reference to FIG.

<4.透かし情報埋め込み方法>
図8は,本実施形態にかかる透かし情報埋め込み方法を示したフローチャートである。まず,文書データを画像化し,文書画像を作成する(S201)。ステップS201において作成された文書画像の画素情報に基づいて,透かし情報を埋め込み可能な文書画像の画像濃度を設定する(S202)。ステップS202において設定された画像濃度に応じて文書画像の画像処理が行われる(S203)。ステップS203において,文書画像の画像濃度がステップS202において設定された画像濃度に調整される。
<4. Embedding watermark information>
FIG. 8 is a flowchart showing the watermark information embedding method according to the present embodiment. First, document data is imaged and a document image is created (S201). Based on the pixel information of the document image created in step S201, the image density of the document image in which the watermark information can be embedded is set (S202). Image processing of the document image is performed according to the image density set in step S202 (S203). In step S203, the image density of the document image is adjusted to the image density set in step S202.

埋め込み情報作成部114により,印刷者のユーザIDや,印刷者が使用するPCの機器ID,日付等が取得され,埋め込み情報が作成される(S204)。ステップS204において作成された埋め込み情報から,地紋を用いた透かし画像を生成する(S205)。   The embedded information creation unit 114 acquires the user ID of the printer, the device ID of the PC used by the printer, the date, etc., and creates embedded information (S204). A watermark image using a tint block is generated from the embedded information created in step S204 (S205).

そして,ステップS203において画像処理された文書画像に,ステップS205において生成された透かし情報を埋め込んで,透かし入り文書画像を生成する(S206)。印刷部118は,ステップS206において生成された透かし入り文書画像を,透かし情報埋め込み装置100aに接続された印刷機に対し印刷指示を行う(S207)。   Then, the watermark information generated in step S205 is embedded in the document image processed in step S203 to generate a watermarked document image (S206). The printing unit 118 instructs the printing machine connected to the watermark information embedding device 100a to print the watermarked document image generated in step S206 (S207).

以上,第2実施形態にかかる透かし情報埋め込み方法について説明した。上記構成により,文書画像に透かし情報を埋め込んでも,情報を読み取ることができず,情報を復元不能な文書に対しても,文書画像の輝度値を上げて文書画像の濃度を薄くすることで,埋め込まれた透かしの読み取り性能を向上した透かし入り文書画像を生成することができる。しかし,文書画像の濃度を薄くし過ぎると,透かし情報の読み取り性能は向上するが,可読性が著しく低下してしまう恐れがある。   The watermark information embedding method according to the second embodiment has been described above. With the above configuration, even if the watermark information is embedded in the document image, the information cannot be read and the information cannot be restored. By increasing the brightness value of the document image and reducing the density of the document image, A watermarked document image with improved embedded watermark reading performance can be generated. However, if the density of the document image is too low, the reading performance of the watermark information is improved, but the readability may be significantly reduced.

そこで,第3実施形態では,透かし濃度と文書画像の画像濃度とを調整することにより,透かし読み取り性能を向上させ,かつ,可読性の低下を低減することが可能な透かし情報埋め込み装置を提供する。   Therefore, the third embodiment provides a watermark information embedding device that can improve watermark reading performance and reduce deterioration in readability by adjusting the watermark density and the image density of a document image.

(第3実施形態)
第3実施形態では,文書画像の画像濃度に応じて,透かし情報が埋め込み可能であり,かつ,可読性を損なわないように透かし情報が埋め込まれる文書画像の画像濃度と文書画像に埋め込まれる透かし情報の透かし濃度とを調整することが可能な透かし情報埋め込み装置100cに本発明の透かし情報生成装置を適用して説明する。まず,図9に基づいて,第3実施形態にかかる透かし情報生成装置100cの機能構成について説明する。
(Third embodiment)
In the third embodiment, the watermark information can be embedded in accordance with the image density of the document image, and the image density of the document image in which the watermark information is embedded and the watermark information embedded in the document image so as not to impair readability. The description will be made by applying the watermark information generating apparatus of the present invention to the watermark information embedding apparatus 100c capable of adjusting the watermark density. First, the functional configuration of the watermark information generating apparatus 100c according to the third embodiment will be described with reference to FIG.

<5.透かし情報埋め込み装置の機能構成>
図9は,本実施形態にかかる透かし情報埋め込み装置100cの機能構成示すブロック図である。図9に示したように,透かし情報埋め込み装置100cは,文書データ102と,文書データ画像化部104と,画素情報検出部106と,透かし情報埋め込み部110と,透かし情報生成部112と,埋め込み情報作成部114と,埋め込み情報116と,印刷部118と,画像濃度調整部122と,濃度決定部124などから構成される。
<5. Functional configuration of watermark information embedding device>
FIG. 9 is a block diagram showing a functional configuration of the watermark information embedding device 100c according to the present embodiment. As shown in FIG. 9, the watermark information embedding device 100c includes document data 102, a document data imaging unit 104, a pixel information detecting unit 106, a watermark information embedding unit 110, a watermark information generating unit 112, an embedding process. The information creating unit 114, the embedded information 116, the printing unit 118, the image density adjusting unit 122, the density determining unit 124, and the like are included.

文書データ102は,紙媒体に印刷される電子データであって,文書作成ツール等により作成されたデータである。文書データ102は,紙媒体に印刷されたときに,視覚的に認識できるデータである。文書データ画像化部104は,文書データ102を画像化して,文書画像を作成する機能を有する。文書データ画像化部104により作成された文書画像は,画素情報検出部106および画像濃度調整部122に提供される。   The document data 102 is electronic data printed on a paper medium, and is data created by a document creation tool or the like. The document data 102 is data that can be visually recognized when printed on a paper medium. The document data imaging unit 104 has a function of imaging the document data 102 and creating a document image. The document image created by the document data imaging unit 104 is provided to the pixel information detection unit 106 and the image density adjustment unit 122.

画素情報検出部106は,文書データ画像化部104により提供された文書画像の画素情報を検出する機能を有する。ここで画素情報とは,文書画像の画像濃度や色彩などの情報である。画素情報検出部106により検出される画素情報は,文書画像全体に対する画素情報であってもよいし,文書画像を複数の領域に分割して,分割された領域ごとの画素情報を検出するようにしてもよい。例えば,画素情報検出部106により検出される画素情報が黒画素割合の情報であった場合には,文書画像全体に対する黒画素割合を検出してもよいし,分割された領域ごとに黒画素割合を検出してもよい。画素情報検出部106により検出された画素情報は,濃度決定部124に提供される。   The pixel information detection unit 106 has a function of detecting pixel information of the document image provided by the document data imaging unit 104. Here, the pixel information is information such as image density and color of the document image. The pixel information detected by the pixel information detection unit 106 may be pixel information for the entire document image, or the document image is divided into a plurality of areas, and the pixel information for each divided area is detected. May be. For example, when the pixel information detected by the pixel information detection unit 106 is black pixel ratio information, the black pixel ratio relative to the entire document image may be detected, or the black pixel ratio may be detected for each divided area. May be detected. Pixel information detected by the pixel information detection unit 106 is provided to the density determination unit 124.

濃度決定部124は,画素情報検出部106により検出された画素情報に基づいて,文書画像に透かし情報を埋め込み可能なように,文書画像に埋め込む透かし情報の透かし濃度と,透かし情報が埋め込まれる文書画像の画像濃度とを決定する機能を有する。例えば,透かし地紋が黒画素によって表される場合には,文書画像の黒画素割合によって,埋め込まれた透かし情報が正しく読み取れるか否かが決まる。黒画素の割合が多い場合には,透かし情報を埋め込んでも正しく読み取れない場合がある。その場合には,透かし情報の透かし濃度を調整するか,文書画像の画像濃度を調整することにより,透かし情報を正しく読み取ることができるようにすることができる。また,透かし濃度と画像濃度とを調整することにより,可読性の低下を低減することが可能となる。   The density determination unit 124, based on the pixel information detected by the pixel information detection unit 106, the watermark density of the watermark information embedded in the document image and the document in which the watermark information is embedded so that the watermark information can be embedded in the document image. A function of determining an image density of the image; For example, when a watermark pattern is represented by black pixels, whether or not the embedded watermark information can be read correctly is determined by the black pixel ratio of the document image. If the percentage of black pixels is large, it may not be read correctly even if watermark information is embedded. In that case, the watermark information can be correctly read by adjusting the watermark density of the watermark information or adjusting the image density of the document image. Further, by adjusting the watermark density and the image density, it is possible to reduce a decrease in readability.

例えば,図10に示したように,黒画素密度210が20%未満の場合には,透かし濃度212をデフォルト値「2」とし,画像濃度214は調整せず輝度値「0」のままで,文書画像に透かし情報を埋め込むようにしてもよい。一方,黒画素密度210が20%以上であった場合には,後述する濃度決定処理により,黒画素密度に応じた透かし濃度と画像濃度とを決定するようにしてもよい。   For example, as shown in FIG. 10, when the black pixel density 210 is less than 20%, the watermark density 212 is set to the default value “2”, the image density 214 is not adjusted, and the luminance value is “0”. Watermark information may be embedded in the document image. On the other hand, when the black pixel density 210 is 20% or more, the watermark density and the image density corresponding to the black pixel density may be determined by density determination processing described later.

文書画像の黒画素密度が20%以上であった場合の濃度決定部124における透かし濃度決定方法例について説明する。図11は,濃度決定部124における透かし濃度決定方法を示すフローチャートである。通常,透かし濃度はデフォルト値「2」に設定されており,画像濃度の輝度値は「0」である(ステップS250)。まず,文書画像の黒画素密度が20%以上か否かを判定する(S252)。ステップS252において黒画素密度が20%未満の場合には,透かし濃度「2」,画像濃度の輝度値「0」に設定する。つまり,通常の透かし濃度で透かし情報を生成し,文書画像の濃度を調整せずに透かし情報を埋め込む。   An example of a watermark density determination method in the density determination unit 124 when the black pixel density of the document image is 20% or more will be described. FIG. 11 is a flowchart showing a watermark density determination method in the density determination unit 124. Usually, the watermark density is set to the default value “2”, and the luminance value of the image density is “0” (step S250). First, it is determined whether the black pixel density of the document image is 20% or more (S252). If the black pixel density is less than 20% in step S252, the watermark density “2” and the luminance value “0” of the image density are set. That is, watermark information is generated with a normal watermark density, and the watermark information is embedded without adjusting the density of the document image.

ステップS252において,文書画像の黒画素密度が20%以上であると判定された場合には,透かし濃度に2を足す(S254)。ステップS254において設定された透かし濃度が10より小さいと判定された場合には(S256),ステップS254において設定された透かし濃度で透かし情報が埋め込み可能か否かを判定する(S260)。ステップS256において,透かし濃度が10以上であると判定された場合には,画像濃度に34を足し,透かし濃度をデフォルト値2に設定する。そして,ステップS258において設定された画像濃度の文書画像に,透かし情報が埋め込み可能か否かを判定する(S260)。   If it is determined in step S252 that the black pixel density of the document image is 20% or more, 2 is added to the watermark density (S254). If it is determined that the watermark density set in step S254 is less than 10 (S256), it is determined whether the watermark information can be embedded with the watermark density set in step S254 (S260). If it is determined in step S256 that the watermark density is 10 or more, 34 is added to the image density, and the watermark density is set to the default value 2. Then, it is determined whether or not watermark information can be embedded in the document image having the image density set in step S258 (S260).

上記のように,透かし濃度と,画像濃度を設定する処理を繰り返し,透かし情報が埋め込み可能であると判定された(S260)場合に,透かし濃度と画像濃度とを設定する(S262)。   As described above, the processing for setting the watermark density and the image density is repeated, and when it is determined that the watermark information can be embedded (S260), the watermark density and the image density are set (S262).

上記濃度決定処理を図12のマトリックスを用いて説明する。図12では,各マトリックスに「龍」の文字が表されており,マトリックス内で黒画素密度は20%以上となっている。通常は,透かし濃度2,文字濃度0であるが,この場合には,透かし情報判読可能なように透かし情報を埋め込むことができない。そこで,透かし濃度に2を足していき,透かし情報が埋め込み可能か否かを判定していく。透かし濃度を10としても透かし情報を埋め込むことができないと判定された場合には,文字濃度に34を足し,透かし濃度をデフォルト値2に設定する。この処理を繰り返して埋め込み可能となる濃度を決定する。   The density determination process will be described with reference to the matrix in FIG. In FIG. 12, the character “dragon” is represented in each matrix, and the black pixel density in the matrix is 20% or more. Normally, the watermark density is 2 and the character density is 0. In this case, the watermark information cannot be embedded so that the watermark information can be read. Therefore, 2 is added to the watermark density to determine whether the watermark information can be embedded. If it is determined that the watermark information cannot be embedded even when the watermark density is 10, 34 is added to the character density, and the watermark density is set to the default value 2. This process is repeated to determine the density that can be embedded.

図12に示したマトリックスにおいては,範囲22では情報を判読可能な透かし情報を埋め込むことができず,範囲23においては,情報を判読可能な透かし情報を埋め込むことが可能となる。したがって,透かし濃度6,文字濃度68の場合に,透かし情報が埋め込み可能となる。濃度決定部124は,透かし濃度を6,文字濃度68に決定し,決定した透かし濃度を透かし濃度生成部112に提供し,文字濃度値を画像濃度調整部122に提供する。   In the matrix shown in FIG. 12, watermark information that can read information cannot be embedded in the range 22, and watermark information that can read information can be embedded in the range 23. Therefore, when the watermark density is 6 and the character density is 68, watermark information can be embedded. The density determination unit 124 determines the watermark density as 6 and the text density 68, provides the determined watermark density to the watermark density generation unit 112, and provides the text density value to the image density adjustment unit 122.

図12に示したように,範囲23においては,情報を判読な可能な透かし情報を埋め込むことが可能となるが,可読性の低下を最小限に抑えるためには,透かし濃度6,文字濃度68に濃度値を設定する必要がある。このように,濃度決定処理により,情報が判読可能であり,かつ可読性を低減することが可能な透かし濃度と画像濃度とを決定することができる。   As shown in FIG. 12, in the range 23, it is possible to embed watermark information that can read the information. However, in order to minimize the deterioration of the readability, the watermark density 6 and the character density 68 are set. It is necessary to set the density value. As described above, the density determination process can determine the watermark density and the image density that can read the information and can reduce the readability.

図9に戻り,埋め込み情報作成部114は,埋め込み情報116を取得して,透かし情報として文書画像に埋め込むためのデータを作成する。上述したように,文書画像に埋め込む透かし情報が印刷者を特定する印刷者特定情報である場合には,印刷者のユーザID,印刷要求がなされたPCの機器ID,日時,印刷指示対象の印刷機の機器IDなどを埋め込み情報として作成してもよい。埋め込み情報作成部114により作成された埋め込み情報が透かし情報生成部112に提供される。   Returning to FIG. 9, the embedded information creation unit 114 acquires the embedded information 116 and creates data to be embedded in the document image as watermark information. As described above, when the watermark information to be embedded in the document image is the printer identification information that identifies the printer, the user ID of the printer, the device ID of the PC that requested the printing, the date and time, and the print instruction target print The device ID of the machine may be created as embedded information. The embedded information created by the embedded information creating unit 114 is provided to the watermark information generating unit 112.

透かし情報生成部112は,埋め込み情報作成部114により提供された埋め込み情報から,地紋を用いた透かし画像を生成する。また,透かし情報生成部112は,上記透かし濃度決定部により決定された透かし濃度に応じて,透かし画像の透かし濃度を調整する。画像濃度調整部122は,画像濃度決定部120より提供された画像濃度に文書画像の画像濃度を調整する。   The watermark information generation unit 112 generates a watermark image using a background pattern from the embedded information provided by the embedded information generation unit 114. In addition, the watermark information generation unit 112 adjusts the watermark density of the watermark image according to the watermark density determined by the watermark density determination unit. The image density adjustment unit 122 adjusts the image density of the document image to the image density provided from the image density determination unit 120.

透かし情報埋め込み部110は,画像濃度調整部122より調整された文書画像に,透かし情報生成部112により生成された透かし情報を埋め込み,地紋を用いた透かし入り文書画像を生成する。透かし情報埋め込み部110により生成された透かし入り文書画像が印刷部118に提供される。印刷部118は,透かし情報埋め込み部110により提供された透かし入り文書画像を透かし情報埋め込み装置100aに接続された印刷機に対し印刷指示を行う。   The watermark information embedding unit 110 embeds the watermark information generated by the watermark information generation unit 112 in the document image adjusted by the image density adjustment unit 122, and generates a watermarked document image using a background pattern. The watermarked document image generated by the watermark information embedding unit 110 is provided to the printing unit 118. The printing unit 118 instructs the printing machine connected to the watermark information embedding device 100a to print the watermarked document image provided by the watermark information embedding unit 110.

以上,透かし情報埋め込み装置100cの機能構成について説明した。次に,図13に基づいて,透かし情報埋め込み装置100cにおける透かし情報埋め込み方法について説明する。   The functional configuration of the watermark information embedding device 100c has been described above. Next, a watermark information embedding method in the watermark information embedding device 100c will be described with reference to FIG.

<6.透かし情報埋め込み方法>
図13は,本実施形態にかかる透かし情報埋め込み方法を示したフローチャートである。まず,文書データを画像化し,文書画像を作成する(S301)。ステップS301において作成された文書画像の画素情報に基づいて,透かし情報を埋め込み可能な文書画像の画像濃度と透かし濃度とを決定する(S302)。ステップS302において決定された画像濃度を設定して(S303),画像濃度に応じて文書画像の画像処理を行う(S304)。ステップS304において,文書画像の画像濃度がステップS303において設定された画像濃度に調整される。
<6. Embedding watermark information>
FIG. 13 is a flowchart showing the watermark information embedding method according to the present embodiment. First, document data is imaged and a document image is created (S301). Based on the pixel information of the document image created in step S301, the image density and watermark density of the document image in which the watermark information can be embedded are determined (S302). The image density determined in step S302 is set (S303), and the document image is processed according to the image density (S304). In step S304, the image density of the document image is adjusted to the image density set in step S303.

埋め込み情報作成部114により,印刷者のユーザIDや,印刷者が使用するPCの機器ID,日付等が取得され,埋め込み情報が作成される(S306)。ステップS306において作成された埋め込み情報から,地紋を用いた透かし画像を生成する(S307)。透かし情報生成部112は,ステップS302において設定された透かし濃度に応じて,透かし画像の透かし濃度を調整する。   The embedded information creation unit 114 acquires the user ID of the printer, the device ID of the PC used by the printer, the date, and the like, and creates embedded information (S306). A watermark image using a background pattern is generated from the embedded information created in step S306 (S307). The watermark information generation unit 112 adjusts the watermark density of the watermark image according to the watermark density set in step S302.

そして,ステップS304において画像処理された文書画像に,ステップS307において生成された透かし情報を埋め込んで,透かし入り文書画像を生成する(S307)。印刷部118は,ステップS308において生成された透かし入り文書画像を,透かし情報埋め込み装置100cに接続された印刷機に対し印刷指示を行う(S309)。なお,ステップS302において濃度が決定された後,文書画像の画像処理が行われて透かし情報が生成されているが,文書画像の画像処理と透かし情報の生成とを同時に行うようにしてもよい。以上,第3実施形態にかかる透かし情報埋め込み方法について説明した。上記構成により,文書画像の黒画素密度の割合によっては,透かし情報を埋め込むことができない文書に対しても,透かし濃度値を高くして,文書画像の輝度値を上げることにより,透かしを強調して透かしの読み取り性能を向上することができる。また,透かし濃度と文書画像の画像濃度の両方を設定することにより,透かし情報を埋め込み可能であり,かつ,可読性を低減した透かし入り文書画像を生成することが可能となる。   Then, the watermark information generated in step S307 is embedded in the document image processed in step S304 to generate a watermarked document image (S307). The printing unit 118 instructs the printing machine connected to the watermark information embedding device 100c to print the watermarked document image generated in step S308 (S309). Note that after the density is determined in step S302, the image processing of the document image is performed and the watermark information is generated. However, the image processing of the document image and the generation of the watermark information may be performed simultaneously. The watermark information embedding method according to the third embodiment has been described above. With the above configuration, depending on the ratio of the black pixel density of the document image, even for documents that cannot embed watermark information, the watermark is enhanced by increasing the watermark density value and increasing the brightness value of the document image. Thus, the watermark reading performance can be improved. Also, by setting both the watermark density and the image density of the document image, it is possible to embed watermark information and generate a watermarked document image with reduced readability.

(第4実施形態)
第4実施形態では,文書画像の黒画素の割合に応じて,文書画像を白黒反転し,透かし情報を埋め込むことが可能な透かし情報埋め込み装置100dに本発明の透かし情報埋め込み装置を適用して説明する。まず,図14に基づいて,第4実施形態にかかる透かし情報埋め込み装置100dの機能構成について説明する。
(Fourth embodiment)
In the fourth embodiment, the watermark information embedding device according to the present invention is applied to a watermark information embedding device 100d that can invert a document image in black and white and embed watermark information in accordance with the proportion of black pixels in the document image. To do. First, the functional configuration of the watermark information embedding device 100d according to the fourth embodiment will be described with reference to FIG.

<7.透かし情報埋め込み装置の機能構成>
図14は,本実施形態にかかる透かし情報埋め込み装置100dの機能構成を示すブロック図である。図14に示したように,透かし情報埋め込み装置100bは,文書データ102と,文書データ画像化部104と,画素情報検出部106と,透かし情報埋め込み部110と,透かし情報生成部112と,埋め込み情報作成部114と,埋め込み情報116と,印刷部118と,画像濃度決定部120と,画像濃度調整部122などから構成される。
<7. Functional configuration of watermark information embedding device>
FIG. 14 is a block diagram showing a functional configuration of the watermark information embedding device 100d according to the present embodiment. As shown in FIG. 14, the watermark information embedding device 100b includes document data 102, a document data imaging unit 104, a pixel information detection unit 106, a watermark information embedding unit 110, a watermark information generating unit 112, and an embedding. The information creating unit 114, the embedded information 116, the printing unit 118, the image density determining unit 120, the image density adjusting unit 122, and the like are included.

本実施形態にかかる透かし情報埋め込み装置100dは,第2実施形態にかかる透かし情報埋め込み装置100bとほぼ同様の機能構成であるため,第2実施形態と異なる部分について主に説明する。   The watermark information embedding device 100d according to the present embodiment has substantially the same functional configuration as that of the watermark information embedding device 100b according to the second embodiment, and therefore, differences from the second embodiment will be mainly described.

画像濃度決定部120は,画像情報検出部106により検出された黒画素の割合が,所定の割合であった場合に,画像濃度調整部122に対して,文書画像を白黒反転することを指示する機能を有する。また白黒反転した文書画像に対して,第2実施形態と同様に,黒画素割合を検出して,画像濃度を決定するようにしてもよい。   The image density determination unit 120 instructs the image density adjustment unit 122 to invert the document image in black and white when the ratio of black pixels detected by the image information detection unit 106 is a predetermined ratio. It has a function. Further, as in the second embodiment, the black pixel ratio may be detected and the image density may be determined for a document image that is reversed in black and white.

例えば,図25に示したように,黒画素の割合が多い文書画像25に透かし情報を埋め込むことが不可能である。また,第2実施形態で説明したように,文書画像25の画像濃度を薄くする,すなわち画像の輝度値を上げて透かし情報を埋め込むことも可能であるが,その場合には,大幅に画像の輝度値を上げる必要がある。したがって,図15に示した黒画素の割合が多い文書画像25の場合には,白黒反転処理を行うことにより,透かし入り文書画像の可読性の低下を低減することが可能となる。   For example, as shown in FIG. 25, it is impossible to embed watermark information in a document image 25 having a large proportion of black pixels. Further, as described in the second embodiment, it is possible to embed watermark information by reducing the image density of the document image 25, that is, by increasing the luminance value of the image. It is necessary to increase the brightness value. Therefore, in the case of the document image 25 having a large proportion of black pixels shown in FIG. 15, it is possible to reduce a decrease in readability of the watermarked document image by performing the black and white inversion process.

本実施形態にかかる画像濃度決定部120では,図16に示したように,黒画素密度216が20%未満の場合には,画像処理せずに透かし情報を埋め込むようにする。黒画素密度が20%〜80%の場合には,透かし情報を埋め込むことができないため,透かし情報埋め込み処理を行わずにエラーとする。また,黒画素密度216が80%以上の場合には,白黒反転を行い,さらに白黒反転後の黒画素密度に応じて画像濃度を決定する。画像濃度調整部122は,画像濃度決定部120により白黒反転することを指示された場合には,文書画像の白黒反転を行う。   As shown in FIG. 16, the image density determination unit 120 according to the present embodiment embeds watermark information without image processing when the black pixel density 216 is less than 20%. If the black pixel density is 20% to 80%, the watermark information cannot be embedded, and an error is generated without performing the watermark information embedding process. Further, when the black pixel density 216 is 80% or more, black and white inversion is performed, and the image density is determined according to the black pixel density after the black and white inversion. The image density adjusting unit 122 performs black and white reversal of the document image when instructed by the image density determining unit 120 to perform black and white reversal.

以上本実施形態にかかる透かし情報埋め込み装置の機能構成について説明した。本実施形態では,画像濃度決定部120により画像濃度のみを決定する場合について説明したが,かかる例に限定されず,第1,3実施形態同様,透かし濃度を調整して,白黒反転された文書画像に埋め込むようにしてもよい。次に,図17に基づいて,本実施形態にかかる透かし情報埋め込み方法について説明する。   The functional configuration of the watermark information embedding device according to the present embodiment has been described above. In the present embodiment, the case where only the image density is determined by the image density determination unit 120 has been described. However, the present invention is not limited to such an example, and as in the first and third embodiments, the document is inverted in black and white by adjusting the watermark density. It may be embedded in an image. Next, the watermark information embedding method according to the present embodiment will be described with reference to FIG.

<8.透かし情報埋め込み方法>
図17は,本実施形態にかかる透かし情報埋め込み方法を示したフローチャートである。まず,文書データを画像化し,文書画像を作成する(S401)。ステップS401において作成された文書画像の画素情報に基づいて,文書画像の白黒反転が必要か否かを判定する(S402)。ステップS402において白黒反転が必要であると判定された場合には,文書画像の白黒反転を行う(S403)。以下,第3実施形態と同様に,ステップS403において白黒反転された文書画像の黒画素密度を検出して,黒画素密度に応じた透かし濃度と画像濃度を設定することができる。
<8. Embedding watermark information>
FIG. 17 is a flowchart showing the watermark information embedding method according to the present embodiment. First, document data is imaged to create a document image (S401). Based on the pixel information of the document image created in step S401, it is determined whether or not it is necessary to invert the document image (S402). If it is determined in step S402 that black and white reversal is necessary, the black and white reversal of the document image is performed (S403). Thereafter, similarly to the third embodiment, the black pixel density of the document image that has been reversed in black and white in step S403 can be detected, and the watermark density and the image density corresponding to the black pixel density can be set.

以上,第4実施形態にかかる透かし情報埋め込み方法について説明した。上記構成により,黒画素密度が80%以上の文書画像に対しても,可読性を損なうことなく透かし情報を埋め込むことが可能となる。   The watermark information embedding method according to the fourth embodiment has been described above. With the above configuration, it is possible to embed watermark information even in a document image with a black pixel density of 80% or more without impairing readability.

(第5実施形態)
第5実施形態では,文書画像の黒画素の割合に応じて,透かしの濃度調整を行うか,文書画像の濃度調整を行うか,透かしの濃度調整と文書画像の濃度調整とを共に行うか,を判断して,文書画像に適した調整方法により透かし情報を埋め込むことが可能な透かし情報埋め込み装置100eに本発明の透かし情報埋め込み装置を適用して説明する。まず,図18に基づいて,第5実施形態にかかる透かし情報埋め込み装置100eの機能構成について説明する。
(Fifth embodiment)
In the fifth embodiment, depending on the ratio of the black pixels of the document image, the watermark density adjustment, the document image density adjustment, the watermark density adjustment and the document image density adjustment are performed together, The watermark information embedding device of the present invention is applied to a watermark information embedding device 100e that can embed watermark information by an adjustment method suitable for a document image. First, the functional configuration of the watermark information embedding device 100e according to the fifth embodiment will be described with reference to FIG.

<9.透かし情報埋め込み装置の機能構成>
図18は,本実施形態にかかる透かし情報埋め込み装置100eの機能構成を示すブロック図である。図18に示したように,透かし情報埋め込み装置100eは,文書データ102と,文書データ画像化部104と,画素情報検出部106と,透かし情報埋め込み部110と,透かし情報生成部112と,埋め込み情報作成部114と,埋め込み情報116と,印刷部118と,画像濃度調整部122と,濃度決定部124と,濃度調整方法選択部130などから構成される。
<9. Functional configuration of watermark information embedding device>
FIG. 18 is a block diagram showing a functional configuration of the watermark information embedding device 100e according to the present embodiment. As shown in FIG. 18, the watermark information embedding device 100e includes document data 102, a document data imaging unit 104, a pixel information detection unit 106, a watermark information embedding unit 110, a watermark information generating unit 112, and an embedding. The information generation unit 114, the embedded information 116, the printing unit 118, the image density adjustment unit 122, the density determination unit 124, the density adjustment method selection unit 130, and the like are included.

本実施形態にかかる透かし情報埋め込み装置100eに備わる文書データ102と,文書データ画像化部104と,画素情報検出部106と,透かし情報埋め込み部110と,透かし情報生成部112と,埋め込み情報作成部114と,埋め込み情報116と,印刷部118と,画像濃度調整部122と,濃度決定部124は,第3実施形態にかかる透かし情報埋め込み装置100cとほぼ同様の機能構成であるため,第3実施形態と異なる部分について主に説明する。第3実施形態と異なる構成として,濃度調整方法選択部130が備えられている。また,画像濃度調整部122は,第4実施形態の透かし情報埋め込み装置100dに備わる画像濃度調整部122と同様,画像を白黒反転する機能も有する。   Document data 102, document data imaging unit 104, pixel information detection unit 106, watermark information embedding unit 110, watermark information generation unit 112, and embedded information creation unit provided in watermark information embedding device 100e according to the present embodiment. 114, the embedding information 116, the printing unit 118, the image density adjusting unit 122, and the density determining unit 124 have substantially the same functional configuration as the watermark information embedding device 100c according to the third embodiment. The part different from the form will be mainly described. As a configuration different from the third embodiment, a density adjustment method selection unit 130 is provided. The image density adjusting unit 122 also has a function of reversing the image in black and white, like the image density adjusting unit 122 provided in the watermark information embedding device 100d of the fourth embodiment.

濃度調整方法選択部130は,画素情報検出部106により検出された画素情報に基づいて,透かしの濃度調整を行うか,文書画像の画像濃度調整を行うか,透かしの濃度調整と文書画像の濃度調整とを共に行うか,を判断して,該文書画像に適した処理方法を選択する。例えば,文書画像の黒画素の割合に応じて,濃度調整方法を選択するようにしてもよい。例えば,図19に示したように,黒画素密度220が20%未満の場合には,濃度調整をする必要がないため,濃度調整方法224は「なし」と判断され,文書画像の画像濃度を変更せず,デフォルトの透かし濃度で透かし情報の埋め込みを行う。黒画素密度220が20%以上25%未満の場合には,透かし濃度を調整する濃度調整方法224を選択し,黒画素密度220が25%以上75%未満の場合には,透かし濃度と画像濃度とを共に調整する濃度調整方法224を選択する。そして,黒画素密度220が75%以上80%未満の場合には,文書画像を白黒反転して,透かし濃度を調整する濃度調整方法224を選択し,黒画素密度220が80%以上の場合には,文書画像の白黒反転のみ行うように濃度調整方法224を選択する。   Based on the pixel information detected by the pixel information detection unit 106, the density adjustment method selection unit 130 performs watermark density adjustment, image density adjustment of the document image, watermark density adjustment and document image density. It is determined whether the adjustment is performed together, and a processing method suitable for the document image is selected. For example, the density adjustment method may be selected according to the ratio of black pixels in the document image. For example, as shown in FIG. 19, when the black pixel density 220 is less than 20%, it is not necessary to adjust the density. Therefore, the density adjustment method 224 is determined to be “none”, and the image density of the document image is determined. The watermark information is embedded without changing the default watermark density. When the black pixel density 220 is 20% or more and less than 25%, the density adjustment method 224 for adjusting the watermark density is selected. When the black pixel density 220 is 25% or more and less than 75%, the watermark density and the image density are selected. The density adjustment method 224 for adjusting both of the above and the like is selected. When the black pixel density 220 is 75% or more and less than 80%, the document image is reversed in black and white and the density adjustment method 224 for adjusting the watermark density is selected, and when the black pixel density 220 is 80% or more. Selects the density adjustment method 224 so that only the black and white inversion of the document image is performed.

濃度決定部124は,濃度調整方法選択部130により選択された濃度調整方法を用いて,第3実施形態同様,画素情報検出部106により検出された画素情報に基づいた透かし濃度および/または画像濃度を決定する。例えば,濃度調整方法選択部130により,透かし濃度調整方法が選択された場合には,濃度決定部124は,透かし濃度を決定して,その透かし濃度を透かし情報生成部112に提供する。また,濃度調整方法選択部130により透かし濃度調整方法および画像濃度調整方法が選択された場合には,透かし濃度と画像濃度とを決定し,透かし濃度を透かし情報生成部112に提供して,画像濃度を画像濃度調整部122に提供する。また,濃度調整方法選択部130により白黒反転と透かし濃度調整方法が選択された場合には,画像濃度調整部122に画像を白黒反転するよう指示し,透かし濃度を決定してその透かし濃度を透かし情報生成部112に提供する。   The density determination unit 124 uses the density adjustment method selected by the density adjustment method selection unit 130, and similarly to the third embodiment, the watermark density and / or the image density based on the pixel information detected by the pixel information detection unit 106. To decide. For example, when the watermark density adjustment method is selected by the density adjustment method selection unit 130, the density determination unit 124 determines the watermark density and provides the watermark density to the watermark information generation unit 112. Further, when the watermark density adjustment method and the image density adjustment method are selected by the density adjustment method selection unit 130, the watermark density and the image density are determined, and the watermark density is provided to the watermark information generation unit 112. The density is provided to the image density adjustment unit 122. When the density adjustment method selection unit 130 selects black and white inversion and watermark density adjustment method, the image density adjustment unit 122 is instructed to invert the image in black and white, determines the watermark density, and uses the watermark density as the watermark. This is provided to the information generation unit 112.

このように,黒画素密度に応じた濃度調整方法を予め設定しておくことにより,透かし情報を埋め込むことが不可能となる濃度調整を行うという無駄な処理をすることを防止できる。また,文書画像に透かし情報が埋め込み可能なように濃度調整処理を行うことができ,かつ,可読性の低下を最小限に抑えることが可能となる。   In this way, by setting a density adjustment method according to the black pixel density in advance, it is possible to prevent a wasteful process of performing density adjustment that makes it impossible to embed watermark information. In addition, it is possible to perform density adjustment processing so that watermark information can be embedded in a document image, and it is possible to minimize deterioration in readability.

以上,透かし情報埋め込み装置100eの機能構成について説明した。次に,図20に基づいて,透かし情報埋め込み装置100eにおける透かし情報埋め込み方法について説明する。   The functional configuration of the watermark information embedding device 100e has been described above. Next, a watermark information embedding method in the watermark information embedding device 100e will be described with reference to FIG.

<10.透かし情報埋め込み方法>
図20は,本実施形態にかかる透かし情報埋め込み方法を示したフローチャートである。まず,文書データを画像化し,文書画像を作成する(S501)。ステップS501において作成された文書画像の画素情報に基づいて,濃度調整方法を選択する(S502)。上述したように,ステップS502において選択された濃度調整方法は,透かし濃度調整,画像濃度調整,透かし濃度調整および画像濃度調整などから,透かし情報を埋め込むことが可能であり,かつ可読性低下を低減する濃度調整方法が選択される。ステップS502において濃度調整方法が選択された後,画像濃度を調整する必要があるか否かを判定する(S503)。ステップS503において,画像濃度を調整する必要があると判定された場合には,画像濃度を設定して(S504),画像濃度に応じて文書画像の画像処理が行う(S505)。ステップS505において,文書画像の画像濃度がステップS304において設定された画像濃度に調整される。また,ステップS502において,文書画像を白黒反転が選択された場合には,ステップS505において文書画像を白黒反転する。
<10. Embedding watermark information>
FIG. 20 is a flowchart showing a watermark information embedding method according to the present embodiment. First, document data is imaged and a document image is created (S501). A density adjustment method is selected based on the pixel information of the document image created in step S501 (S502). As described above, the density adjustment method selected in step S502 can embed watermark information from watermark density adjustment, image density adjustment, watermark density adjustment, image density adjustment, and the like, and reduces readability degradation. A density adjustment method is selected. After the density adjustment method is selected in step S502, it is determined whether or not the image density needs to be adjusted (S503). If it is determined in step S503 that the image density needs to be adjusted, the image density is set (S504), and image processing of the document image is performed according to the image density (S505). In step S505, the image density of the document image is adjusted to the image density set in step S304. If black / white reversal is selected for the document image in step S502, the black / white reversal of the document image is performed in step S505.

次に,透かし濃度を調整する必要があるか否かを判定する(S506)。ステップS506において透かし濃度を調整する必要があると判定された場合には,透かし濃度を設定する(S507)。   Next, it is determined whether or not the watermark density needs to be adjusted (S506). If it is determined in step S506 that the watermark density needs to be adjusted, the watermark density is set (S507).

埋め込み情報作成部114により,印刷者のユーザIDや,印刷者が使用するPCの機器ID,日付等が取得され,埋め込み情報が作成される(S508)。ステップS508において作成された埋め込み情報から,地紋を用いた透かし画像を生成する(S509)。透かし情報生成部112は,ステップS507において設定された透かし濃度に応じて,透かし画像の透かし濃度を調整する。   The embedded information creation unit 114 acquires the user ID of the printer, the device ID of the PC used by the printer, the date, and the like, and creates embedded information (S508). A watermark image using a background pattern is generated from the embedded information created in step S508 (S509). The watermark information generation unit 112 adjusts the watermark density of the watermark image according to the watermark density set in step S507.

そして,ステップS505において画像処理された文書画像に,ステップS509において生成された透かし情報を埋め込んで,透かし入り文書画像を生成する(S510)。印刷部118は,ステップS510において生成された透かし入り文書画像を,透かし情報埋め込み装置100eに接続された印刷機に対し印刷指示を行う(S511)。以上,第5実施形態にかかる透かし情報埋め込み方法について説明した。   Then, the watermark information generated in step S509 is embedded in the document image processed in step S505 to generate a watermarked document image (S510). The printing unit 118 instructs the printing machine connected to the watermark information embedding device 100e to print the watermarked document image generated in step S510 (S511). The watermark information embedding method according to the fifth embodiment has been described above.

第5実施形態では,透かし情報が埋め込まれる文書画像に最も適した濃度調整方法が選択される。しかし,第5実施形態にかかる透かし情報埋め込み装置では,印刷処理を行うユーザの希望に沿わない透かし入り文書画像が生成され,印刷されてしまう可能性もある。そこで,第6実施形態では,ユーザにより濃度調整方法を選択することが可能な透かし情報埋め込み装置について説明する。   In the fifth embodiment, a density adjustment method most suitable for a document image in which watermark information is embedded is selected. However, in the watermark information embedding device according to the fifth embodiment, there is a possibility that a watermarked document image that does not meet the wishes of the user performing the printing process is generated and printed. Therefore, in the sixth embodiment, a watermark information embedding device that allows a user to select a density adjustment method will be described.

(第6実施形態)
第6実施形態では,ユーザにより濃度調整方法が選択され,選択された濃度調整方法を用いて,文書画像の画素情報に基づいた透かし濃度および/または画像濃度を決定する透かし情報埋め込み装置100fに本発明の透かし情報埋め込み装置を適用して説明する。まず,図21に基づいて,第6実施形態にかかる透かし情報埋め込み装置100fの機能構成について説明する。
(Sixth embodiment)
In the sixth embodiment, a density adjustment method is selected by the user, and the watermark density embedding device 100f that determines the watermark density and / or the image density based on the pixel information of the document image using the selected density adjustment method is used in the present embodiment. An explanation will be given by applying the watermark information embedding device of the invention. First, the functional configuration of the watermark information embedding device 100f according to the sixth embodiment will be described with reference to FIG.

<11.透かし情報埋め込み装置の機能構成>
図21は,本実施形態にかかる透かし情報埋め込み装置100fの機能構成を示すブロック図である。図21に示したように,透かし情報埋め込み装置100fは,文書データ102と,文書データ画像化部104と,画素情報検出部106と,透かし情報埋め込み部110と,透かし情報生成部112と,埋め込み情報作成部114と,埋め込み情報116と,印刷部118と,画像濃度調整部122と,濃度決定部124と,濃度調整方法選択部130と,入力部132などから構成される。
<11. Functional configuration of watermark information embedding device>
FIG. 21 is a block diagram showing a functional configuration of the watermark information embedding device 100f according to the present embodiment. As shown in FIG. 21, the watermark information embedding device 100f includes document data 102, a document data imaging unit 104, a pixel information detecting unit 106, a watermark information embedding unit 110, a watermark information generating unit 112, and an embedding. The information generation unit 114, the embedded information 116, the printing unit 118, the image density adjustment unit 122, the density determination unit 124, the density adjustment method selection unit 130, the input unit 132, and the like are included.

本実施形態にかかる透かし情報埋め込み装置100fに備わる文書データ102と,文書データ画像化部104と,画素情報検出部106と,透かし情報埋め込み部110と,透かし情報生成部112と,埋め込み情報作成部114と,埋め込み情報116と,印刷部118と,画像濃度調整部122と,濃度決定部124と,濃度調整方法選択部130は,第5実施形態にかかる透かし情報埋め込み装置100eとほぼ同様の機能構成であるため,第5実施形態と異なる部分について主に説明する。第5実施形態と異なる構成として,入力部132が備えられている。   Document data 102, document data imaging unit 104, pixel information detection unit 106, watermark information embedding unit 110, watermark information generation unit 112, and embedded information creation unit provided in the watermark information embedding device 100f according to the present embodiment. 114, the embedding information 116, the printing unit 118, the image density adjusting unit 122, the density determining unit 124, and the density adjusting method selecting unit 130 have substantially the same functions as those of the watermark information embedding device 100e according to the fifth embodiment. Since it is a structure, a different part from 5th Embodiment is mainly demonstrated. As an arrangement different from that of the fifth embodiment, an input unit 132 is provided.

入力部132は,ユーザの入力を受け付ける機能を有するインタフェースである。ユーザは,入力部132を操作して,濃度調整方法の選択入力をすることができる。例えば,文書画像の画像濃度を変更させたくない場合には,透かし濃度調整による透かし濃度を調整する濃度調整方法を選択する。また,文書画像を白黒反転することなく透かし情報を埋め込みたい場合には,透かし濃度および文書画像の画像濃度のみを調整する方法を選択するようにしてもよい。ユーザにより入力部132を介して選択された濃度調整方法が,濃度調整方法選択部130に提供される。   The input unit 132 is an interface having a function of accepting user input. The user can select and input a density adjustment method by operating the input unit 132. For example, when it is not desired to change the image density of the document image, a density adjustment method for adjusting the watermark density by the watermark density adjustment is selected. In addition, when it is desired to embed watermark information without reversing the document image in black and white, a method for adjusting only the watermark density and the image density of the document image may be selected. The density adjustment method selected by the user via the input unit 132 is provided to the density adjustment method selection unit 130.

濃度調整方法選択部130は,ユーザにより選択された濃度調整方法から,文書画像の画素情報に応じて必要とされる濃度調整方法を選択する。例えば,ユーザにより,透かし濃度調整方法と画像濃度調整方法が選択された場合に,透かし濃度を調整するだけで,透かし情報を埋め込み可能で,かつ,可読性低下を低減する透かし入り文書画像を作成することができる場合には,透かし情報調整方法のみを選択する。濃度決定部124は,第5実施形態とほぼ同様の機能を有するため,説明を省略する。   The density adjustment method selection unit 130 selects a required density adjustment method according to the pixel information of the document image from the density adjustment methods selected by the user. For example, when a watermark density adjustment method and an image density adjustment method are selected by the user, a watermarked document image that can embed watermark information and reduce readability reduction by simply adjusting the watermark density is created. If it is possible, select only the watermark information adjustment method. The density determination unit 124 has substantially the same function as that of the fifth embodiment, and thus description thereof is omitted.

また,本実施形態にかかる透かし情報埋め込み方法についても,ユーザにより濃度調整方法が設定される以外は第5実施形態とほぼ同様の方法で表されるため,説明を省略する。このように,ユーザにより濃度調整方法が選択されることにより,印刷された透かし入り文書画像の見た目の傾向をユーザの望むものに近づけることができる。   Also, the watermark information embedding method according to the present embodiment is expressed in substantially the same manner as in the fifth embodiment except that the density adjustment method is set by the user, and thus description thereof is omitted. In this way, by selecting the density adjustment method by the user, the appearance tendency of the printed watermarked document image can be brought close to what the user desires.

(第7実施形態)
第7実施形態では,透かし情報を埋め込む文書がカラー文書であった場合に,カラー文書に対して最適な透かし色を選択して埋め込むことが可能な透かし情報埋め込み装置100gに本発明の透かし情報埋め込み装置を適用して説明する。
(Seventh embodiment)
In the seventh embodiment, when the document in which the watermark information is embedded is a color document, the watermark information embedding device 100g according to the present invention can be embedded in the watermark information embedding device 100g capable of selecting and embedding an optimal watermark color for the color document. A description will be given by applying the apparatus.

図22は,本実施形態にかかる透かし情報埋め込み装置100gの機能構成を示すブロック図である。図22に示したように,透かし情報埋め込み装置100gは,文書データ102と,文書データ画像化部104と,画素情報検出部106と,透かし情報埋め込み部110と,透かし情報生成部112と,埋め込み情報作成部114と,埋め込み情報116と,印刷部118と,画像濃度調整部122と,濃度決定部124と,透かし色選択部134などから構成される。   FIG. 22 is a block diagram showing a functional configuration of the watermark information embedding device 100g according to the present embodiment. As shown in FIG. 22, the watermark information embedding device 100g includes document data 102, a document data imaging unit 104, a pixel information detection unit 106, a watermark information embedding unit 110, a watermark information generating unit 112, an embedding process. The information generation unit 114, the embedded information 116, the printing unit 118, the image density adjustment unit 122, the density determination unit 124, the watermark color selection unit 134, and the like are included.

本実施形態にかかる透かし情報埋め込み装置100gに備わる文書データ102と,文書データ画像化部104と,画素情報検出部106と,透かし情報埋め込み部110と,透かし情報生成部112と,埋め込み情報作成部114と,埋め込み情報116と,印刷部118と,画像濃度調整部122と,濃度決定部124は,第3実施形態にかかる透かし情報埋め込み装置100cとほぼ同様の機能構成であるため,第3実施形態と異なる部分について主に説明する。   Document data 102, document data imaging unit 104, pixel information detection unit 106, watermark information embedding unit 110, watermark information generation unit 112, and embedded information creation unit provided in the watermark information embedding device 100g according to the present embodiment. 114, the embedding information 116, the printing unit 118, the image density adjusting unit 122, and the density determining unit 124 have substantially the same functional configuration as the watermark information embedding device 100c according to the third embodiment. The part different from the form will be mainly described.

本実施形態にかかる画素情報検出部106は,黒画素密度だけでなく,カラー画素の分布や密度や色の情報などを検出することができる。透かし色選択部134は,ユーザにより選択された透かし色を選択する。透かし色選択部134により選択される透かし色は,色の三原色であるシアン,マゼンタ,イエローから選択されるようにしてもよいし,色のイメージ(暖かい,冷たい)を選択するようにしてもよい。   The pixel information detection unit 106 according to the present embodiment can detect not only black pixel density but also color pixel distribution, density, and color information. The watermark color selection unit 134 selects the watermark color selected by the user. The watermark color selected by the watermark color selection unit 134 may be selected from the three primary colors cyan, magenta, and yellow, or a color image (warm and cold) may be selected. .

濃度決定部124は,画素情報検出部106により検出されたカラー画像の画素情報に基づいて,透かし色選択部134により選択された透かし色の濃度を決定する。例えば,透かし色選択部134によりシアンが選択された場合には,文書画像にシアンの色の透かしを埋め込んだ場合に,埋め込まれた情報を読み取ることができるか否かを判断する。そして,透かし情報を読み取り可能となるシアンの濃度を決定する。また,文書画像にシアンのカラー画素の割合が多い場合には,シアンの透かしが埋め込まれても,埋め込まれた情報を読み取ることができないため,透かし色を黒に設定するようにしてもよい。   The density determination unit 124 determines the density of the watermark color selected by the watermark color selection unit 134 based on the pixel information of the color image detected by the pixel information detection unit 106. For example, when cyan is selected by the watermark color selection unit 134, it is determined whether or not the embedded information can be read when a cyan color watermark is embedded in the document image. Then, the cyan density at which watermark information can be read is determined. In addition, when the ratio of cyan color pixels is large in the document image, even if a cyan watermark is embedded, the embedded information cannot be read. Therefore, the watermark color may be set to black.

また,濃度決定部124は,カラー画像に多用されているカラー画素の補色となるカラーを透かし色として設定するようにしてもよい。例えば,文書画像にシアンのカラー画素の割合が多い場合には,シアンの補色となるマゼンタや赤の透かし色を設定するようにしてもよい。文書画像に多用されているカラーの補色を透かし色として設定することにより,カラー文書に埋め込む透かし色を,透かし情報を読み取ることが可能な透かし色に設定することが可能となる。   Further, the density determination unit 124 may set a color that is a complementary color of the color pixels frequently used in the color image as a watermark color. For example, when the ratio of cyan color pixels is large in the document image, magenta or red watermark color which is a complementary color of cyan may be set. By setting a complementary color of a color frequently used in a document image as a watermark color, it is possible to set a watermark color embedded in a color document to a watermark color from which watermark information can be read.

透かし情報生成部112は,濃度決定部124により決定された透かし色と透かし濃度の情報を取得し,生成した透かし画像の透かし色と透かし濃度とを調整する。これによりカラー文書に適した透かし色を選択することができ,ユーザの望む透かし色の地紋を用いた透かしを情報が読み取り可能なように埋め込むことが可能となる。以上,本実施形態にかかる透かし情報埋め込み装置100gの機能構成について説明した。次に,図23に基づいて,透かし情報埋め込み装置100gにおける透かし情報埋め込み方法について説明する。   The watermark information generation unit 112 acquires the watermark color and watermark density information determined by the density determination unit 124, and adjusts the watermark color and watermark density of the generated watermark image. Thus, it is possible to select a watermark color suitable for a color document, and it is possible to embed a watermark using a background pattern having a watermark color desired by the user so that information can be read. The functional configuration of the watermark information embedding device 100g according to the present embodiment has been described above. Next, a watermark information embedding method in the watermark information embedding device 100g will be described with reference to FIG.

<12.透かし情報埋め込み方法>
図23は,本実施形態にかかる透かし情報埋め込み方法を示したフローチャートである。まず,文書データを画像化し,文書画像を作成する(S601)。次に,ユーザにより選択された透かし色を取得する(S602)。ステップS601において作成された文書画像の画素情報に基づいて,ステップS602において取得した透かし色の調整が必要か否かを判定する(S603)。ステップS603において透かし色の調整が必要であると判定された場合には,透かし色を調整する(S604)。また,ステップS603において,透かし濃度の調整が必要であると判定された場合には,ステップS604において透かし濃度も調整する。
<12. Embedding watermark information>
FIG. 23 is a flowchart showing a watermark information embedding method according to the present embodiment. First, document data is imaged and a document image is created (S601). Next, the watermark color selected by the user is acquired (S602). Based on the pixel information of the document image created in step S601, it is determined whether the watermark color acquired in step S602 needs to be adjusted (S603). If it is determined in step S603 that the watermark color needs to be adjusted, the watermark color is adjusted (S604). If it is determined in step S603 that the watermark density needs to be adjusted, the watermark density is also adjusted in step S604.

埋め込み情報作成部114により,印刷者のユーザIDや,印刷者が使用するPCの機器ID,日付等が取得され,埋め込み情報が作成される(S605)。ステップS605において作成された埋め込み情報から,地紋を用いた透かし画像を生成する(S606)。透かし情報生成部112は,ステップS604において設定された透かし色と透かし濃度に応じて,透かし画像の透かし色と透かし濃度を調整する。   The embedded information creation unit 114 acquires the user ID of the printer, the device ID of the PC used by the printer, the date, and the like, and creates embedded information (S605). A watermark image using a background pattern is generated from the embedded information created in step S605 (S606). The watermark information generation unit 112 adjusts the watermark color and watermark density of the watermark image according to the watermark color and watermark density set in step S604.

そして,ステップS601において作成された文書画像に,ステップS606において生成された透かし情報を埋め込んで,透かし入り文書画像を生成する(S607)。印刷部118は,ステップS607において生成された透かし入り文書画像を,透かし情報埋め込み装置100gに接続された印刷機に対し印刷指示を行う(S608)。以上,第5実施形態にかかる透かし情報埋め込み方法について説明した。   Then, the watermark information generated in step S606 is embedded in the document image created in step S601 to generate a watermarked document image (S607). The printing unit 118 instructs the printing machine connected to the watermark information embedding device 100g to print the watermarked document image generated in step S607 (S608). The watermark information embedding method according to the fifth embodiment has been described above.

上記第1〜7実施形態のいて採用した透かし情報は,印刷物に対し,微細なドットパターンで情報を表現し,印刷物の背景全体に印刷物の図や文字と重畳するように埋め込むものであるが,本発明において採用される透かし情報はかかる例に限定されない。例えば,図や文字の輪郭部分に情報を埋め込む透かし情報でもよい。図や文字の輪郭部分に情報を埋め込む場合には,正しく情報を読み取るために,図や文字の輪郭を適切に抽出する必要がある。そこで,第8実施形態では,文字画像の背景に複雑な模様等がある文書画像の文字の輪郭に透かし情報を埋め込むことが可能な透かし情報埋め込み装置が提供される。   The watermark information employed in the first to seventh embodiments is information that is expressed in a fine dot pattern for a printed material and is embedded so as to be superimposed on a printed image or character on the entire background of the printed material. The watermark information employed in the present invention is not limited to such an example. For example, it may be watermark information in which information is embedded in the outline of a figure or character. When embedding information in the outline of a figure or character, it is necessary to appropriately extract the outline of the figure or character in order to read the information correctly. Therefore, in the eighth embodiment, there is provided a watermark information embedding device capable of embedding watermark information in the character outline of a document image having a complex pattern or the like in the background of the character image.

(第8実施形態)
第8実施形態では,文書に含まれる文字と背景のそれぞれの濃度を調整して,透かし情報を読み取り可能なように,透かし情報を埋め込むことが可能な透かし情報埋め込み装置100hに本発明の透かし情報埋め込み装置を適用して説明する。まず,図24に基づいて,第8実施形態にかかる透かし情報埋め込み装置100hの機能構成について説明する。
(Eighth embodiment)
In the eighth embodiment, the watermark information according to the present invention is added to the watermark information embedding device 100h that can embed watermark information so that the watermark information can be read by adjusting the respective densities of characters and background included in the document. An explanation will be given by applying an embedding device. First, the functional configuration of the watermark information embedding device 100h according to the eighth embodiment will be described with reference to FIG.

<13.透かし情報埋め込み装置の機能構成>
図24は,本実施形態にかかる透かし情報埋め込み装置100hの機能構成を示すブロック図である。図24に示したように,透かし情報埋め込み装置100hは,文書データ102と,文書データ画像化部104と,透かし情報埋め込み部110と,透かし情報生成部112と,埋め込み情報作成部114と,埋め込み情報116と,印刷部118と,画像濃度調整部122と,濃度決定部124と,画像分離部140などから構成される。
<13. Functional configuration of watermark information embedding device>
FIG. 24 is a block diagram showing a functional configuration of the watermark information embedding device 100h according to the present embodiment. As shown in FIG. 24, the watermark information embedding device 100h includes a document data 102, a document data imaging unit 104, a watermark information embedding unit 110, a watermark information generating unit 112, an embedded information creating unit 114, an embedding It includes information 116, a printing unit 118, an image density adjustment unit 122, a density determination unit 124, an image separation unit 140, and the like.

本実施形態にかかる透かし情報埋め込み装置100hに備わる文書データ102と,文書データ画像化部104と,透かし情報埋め込み部110と,透かし情報生成部112と,埋め込み情報作成部114と,埋め込み情報116と,印刷部118と,画像濃度調整部122と,濃度決定部124は,第3実施形態にかかる透かし情報埋め込み装置100cとほぼ同様の機能構成であるため,第3実施形態と異なる部分について主に説明する。第3実施形態と異なる構成として,画像分離部140が備えられている。   Document data 102, document data imaging unit 104, watermark information embedding unit 110, watermark information generating unit 112, embedded information creating unit 114, embedded information 116, and the like included in watermark information embedding device 100 h according to the present embodiment. The printing unit 118, the image density adjustment unit 122, and the density determination unit 124 have substantially the same functional configuration as that of the watermark information embedding device 100c according to the third embodiment, and therefore mainly different from the third embodiment. explain. As a configuration different from that of the third embodiment, an image separation unit 140 is provided.

画像分離部140は,濃淡のある画像を白と黒の2値画像に変換して,文字と背景を分離する機能を有する。画像分離部140は,文書画像の一定の濃度を基準濃度に指定して,基準より高濃度の画素は黒に,基準より低濃度の画素は白に変換する。処理の基準にする濃度を閾値といい,この閾値は文書画像の輝度値ヒストグラムを測定し,輝度値ヒストグラムから算出することができる。輝度値ヒストグラムとは,文書画像の輝度値とその輝度値が出現する頻度をグラフに表したものである。閾値の算出方法としては,判別分析方法やモード方法などを例示することができるが,かかる例に限定されず,その他の方法により閾値を算出するようにしてもよい。   The image separation unit 140 has a function of separating a character and a background by converting a shaded image into a white and black binary image. The image separation unit 140 designates a certain density of the document image as a reference density, and converts pixels having a higher density than the reference to black and pixels having a lower density than the reference to white. The density used as a reference for processing is referred to as a threshold, and this threshold can be calculated from the brightness value histogram by measuring the brightness value histogram of the document image. The luminance value histogram is a graph showing the luminance value of the document image and the frequency of appearance of the luminance value. Examples of the threshold calculation method include a discriminant analysis method and a mode method. However, the threshold value calculation method is not limited to this example, and the threshold value may be calculated by other methods.

画像分離部140は,文書画像の文字と背景を分離する閾値を算出して,背景と文字を分離する。図26に示したように,例えば文書画像が画像26のように文字と背景とを含む画像であった場合には,文字画像27と背景画像28に分離する。文字画像27は,文字部分の画素以外が濃度0(白色)の画像である。背景画像28は,文字の画素の濃度が0の画像,または文字の近傍の背景画素値の平均値となる画像である。画像分離部140は,分離した文字画像と背景画像の各画像の画素情報を検出して,濃度決定部124に提供する。   The image separation unit 140 calculates a threshold value for separating the character and the background of the document image, and separates the background and the character. As shown in FIG. 26, for example, when the document image is an image including a character and a background like the image 26, the document image is separated into a character image 27 and a background image. The character image 27 is an image having a density of 0 (white) except for pixels in the character portion. The background image 28 is an image in which the density of character pixels is 0, or an image that is an average value of background pixel values in the vicinity of the character. The image separation unit 140 detects pixel information of each of the separated character image and background image and provides the pixel information to the density determination unit 124.

濃度決定部124は,透かし情報が文字画像の輪郭部分に埋め込まれた際に,埋め込まれた情報を正しく読み取ることが可能な文字画像の濃度と文書画像の濃度とを決定する。例えば,透かし情報を文字画像の輪郭部分に埋め込み,その情報を読み取る場合には,文字部分と背景部分とを2値化等の方法により分離して,文字画像に埋め込まれた透かし情報を読み取ることができる。透かし情報を読み取る際に,文字画像と背景画像が正しく分離されるように,透かし情報を埋め込む際に,予め文字と背景の輝度値の分布を見た目の違和感を損なわない程度に離しておく必要がある。そこで,濃度決定部124は,文字画像と背景画像の輝度分布に応じて,文字と背景を正しく分離されるように,文字の濃度を増加させ背景の濃度を低下させるようにそれぞれの濃度を決定する。例えば,図27に示したように,透かし情報が埋め込まれた文字画像29を,文字画像30のように文字濃度が増加するように文字画像の濃度を決定する。   The density determining unit 124 determines the density of the character image and the density of the document image that can correctly read the embedded information when the watermark information is embedded in the outline portion of the character image. For example, when embedding watermark information in the outline portion of a character image and reading the information, the character portion and the background portion are separated by a method such as binarization and the watermark information embedded in the character image is read. Can do. When embedding watermark information, it is necessary to separate the brightness distribution of the characters and the background in advance so as not to impair the sense of discomfort when reading the watermark information so that the character image and the background image are correctly separated. is there. Therefore, the density determination unit 124 determines the respective densities so as to increase the density of the character and decrease the density of the background so that the character and the background are correctly separated according to the luminance distribution of the character image and the background image. To do. For example, as shown in FIG. 27, the density of the character image 29 is determined so that the character density of the character image 29 in which the watermark information is embedded is increased like the character image 30.

また,背景画像31を,背景画像32のように,背景濃度が低下するように背景画像の濃度を決定する。文字濃度と背景濃度は,文字の濃度値の平均値と,背景の濃度値の平均値が一定距離以上離れるように設定してもよい。また,第3実施形態に説明した方法と同様に,文書画像に透かし情報が埋め込めるか否かを判定し,埋め込めない場合には,文字画像の濃度を最大とし,透かし情報を正しく読み取ることができる濃度となるまで背景画像の濃度を低下させるようにしてもよい。   Further, the density of the background image 31 is determined so that the background density of the background image 31 is lowered like the background image 32. The character density and the background density may be set so that the average value of the character density value and the average value of the background density value are separated by a certain distance or more. Similarly to the method described in the third embodiment, it is determined whether or not the watermark information can be embedded in the document image. If the watermark information cannot be embedded, the density of the character image is maximized and the watermark information can be read correctly. You may make it reduce the density | concentration of a background image until it becomes the density | concentration which can be performed.

透かし情報生成部112は,濃度決定部124により決定された透かし濃度に応じて,透かし画像の透かし濃度を調整する。画像濃度調整部122は,濃度決定部124により決定された文字濃度に,文字画像の濃度を調整する。また,濃度決定部124により決定された背景濃度に背景画像の濃度を調整する。   The watermark information generation unit 112 adjusts the watermark density of the watermark image according to the watermark density determined by the density determination unit 124. The image density adjusting unit 122 adjusts the density of the character image to the character density determined by the density determining unit 124. Further, the density of the background image is adjusted to the background density determined by the density determination unit 124.

透かし情報埋め込み部110は,文字画像に透かし情報を埋め込み,透かし情報が埋め込まれた文字画像と背景画像とを合成する。画像の合成は,文字画像の濃度値0(白色)の部分を,同じ一の背景画像の画素に入れ替えることにより行うことができる。図28に示したように,透かしが埋め込まれた文字画像33と,背景画像34とを合成して,透かし入り文書画像35を生成する。   The watermark information embedding unit 110 embeds watermark information in the character image, and synthesizes the character image in which the watermark information is embedded and the background image. The image composition can be performed by replacing the portion of the character image with a density value of 0 (white) with the same background image pixel. As shown in FIG. 28, the watermarked document image 35 is generated by synthesizing the character image 33 embedded with the watermark and the background image 34.

上述したように,文字の輪郭に情報を埋め込む場合には,埋め込まれた情報を読み取るため,文字と背景とを容易に分離できるようにしておく必要がある。上記構成によれば,文書画像の文字と背景を分離して,文字画像の濃度を上げ,背景画像の濃度を下げることにより,文字画像の輪郭部分に透かし情報を埋め込むことが可能となる。また,文字の近くに存在する背景の濃度を特に低下させるようにして,文字の輪郭部分に透かし情報を埋め込み易くするようにしてもよい。   As described above, when information is embedded in the outline of a character, the embedded information must be read so that the character and the background can be easily separated. According to the above configuration, it is possible to embed watermark information in the outline portion of the character image by separating the character and background of the document image, increasing the density of the character image, and decreasing the density of the background image. Further, the background density existing near the character may be particularly reduced to facilitate embedding the watermark information in the outline portion of the character.

以上,透かし情報埋め込み装置100hの機能構成について説明した。次に,図25に基づいて,透かし情報埋め込み装置100hにおける透かし情報埋め込み方法について説明する。   The functional configuration of the watermark information embedding device 100h has been described above. Next, a watermark information embedding method in the watermark information embedding device 100h will be described with reference to FIG.

<14.透かし情報埋め込み方法>
図25は,第8実施形態にかかる透かし情報埋め込み方法を示したフローチャートである。まず,文書データを画像化し,文書画像を作成する(S701)。ステップS701において作成された文書画像の画素情報に基づいて,文字と背景とを分離する(S702)。ステップS702において,分離された文字画像の濃度,背景画像の濃度,透かし濃度などが決定される。埋め込み情報作成部114により,印刷者のユーザIDや,印刷者が使用するPCの機器ID,日付等が取得され,埋め込み情報が作成される(S703)。
<14. Embedding watermark information>
FIG. 25 is a flowchart showing a watermark information embedding method according to the eighth embodiment. First, document data is imaged and a document image is created (S701). Based on the pixel information of the document image created in step S701, the character and the background are separated (S702). In step S702, the density of the separated character image, the density of the background image, the watermark density, and the like are determined. The embedded information creation unit 114 acquires the user ID of the printer, the device ID of the PC used by the printer, the date, and the like, and creates embedded information (S703).

ステップS703において作成された埋め込み情報から,地紋を用いた透かし画像を生成する(S704)。ステップS704において,作成された埋め込み情報を,文字画像に埋め込むようにしてもよい。透かし情報生成部112は,ステップS702において設定された透かし濃度に応じて,透かし画像の透かし濃度を調整する。次に,ステップS702において設定された文字濃度に文字画像の濃度を補正し,設定された背景濃度に背景画像の濃度を補正する。   A watermark image using a background pattern is generated from the embedded information created in step S703 (S704). In step S704, the created embedding information may be embedded in the character image. The watermark information generation unit 112 adjusts the watermark density of the watermark image according to the watermark density set in step S702. Next, the density of the character image is corrected to the character density set in step S702, and the density of the background image is corrected to the set background density.

そして,ステップS705において補正された透かし入り文字画像と,背景画像とを合成する(S706)。ステップS704において作成された透かし入り文字画像は,文字画像の背景部分(白色)の一部の画素が文字と同色となる場合や,文字色部分の一部の画素が白色になる場合がある。しかし,文字色部分の一部の画素が白色になる場合でも,ステップS702において背景画像生成字に文字に該当する部分の画素値を周囲の背景が措置の平均値などで生成している場合には,ステップS706で透かし入り文字画像と背景画像とを合成することにより,文字画素が白色に変化した部分は背景画素に入れ替えられ,文書画像を自然な見栄えとすることができる。   Then, the watermarked character image corrected in step S705 and the background image are synthesized (S706). In the watermarked character image created in step S704, some pixels in the background portion (white) of the character image may be the same color as the character, or some pixels in the character color portion may be white. However, even when some of the pixels in the character color portion are white, the pixel value of the portion corresponding to the character is generated in the background image generation character in step S702 when the surrounding background is generated with the average value of the measure. In step S706, by combining the watermarked character image and the background image, the portion where the character pixel is changed to white is replaced with the background pixel, and the document image can be made to look natural.

ステップS706において合成された透かし入り文書画像を,透かし情報埋め込み装置100hに接続された印刷機に印刷するよう指示する(S707)。   An instruction is given to print the watermarked document image synthesized in step S706 on a printing machine connected to the watermark information embedding device 100h (S707).

以上,第8実施形態にかかる透かし情報埋め込み方法について説明した。上記構成により,文書画像の文字と背景を分離して,文字画像の濃度を上げ,背景画像の濃度を下げることにより,文字画像の輪郭部分に透かし情報を埋め込むことが可能となる。   The watermark information embedding method according to the eighth embodiment has been described above. With the above configuration, it is possible to embed watermark information in the outline portion of the character image by separating the character and background of the document image, increasing the density of the character image, and decreasing the density of the background image.

以上,添付図面を参照しながら本発明の好適な実施形態について説明したが,本発明は係る例に限定されないことは言うまでもない。当業者であれば,特許請求の範囲に記載された範疇内において,各種の変更例または修正例に想到し得ることは明らかであり,それらについても当然に本発明の技術的範囲に属するものと了解される。   As mentioned above, although preferred embodiment of this invention was described referring an accompanying drawing, it cannot be overemphasized that this invention is not limited to the example which concerns. It will be apparent to those skilled in the art that various changes and modifications can be made within the scope of the claims, and these are of course within the technical scope of the present invention. Understood.

本発明は,透かし情報埋め込み装置,透かし情報埋め込み方法およびコンピュータプログラムに適用可能であり,特に,背景全体に模様がある文書データに透かし情報を埋め込むことが可能な透かし情報埋め込み装置に適用可能である。   The present invention can be applied to a watermark information embedding device, a watermark information embedding method, and a computer program, and particularly applicable to a watermark information embedding device capable of embedding watermark information in document data having a pattern on the entire background. .

本発明の第1の実施形態にかかる透かし情報埋め込み装置の機能構成を示すブロック図である。It is a block diagram which shows the function structure of the watermark information embedding apparatus concerning the 1st Embodiment of this invention. 同実施の形態における文書画像に埋め込まれる透かし情報を説明する説明図である。It is explanatory drawing explaining the watermark information embedded in the document image in the embodiment. 同実施の形態における黒画素密度と透かし濃度について説明する説明図である。It is explanatory drawing explaining the black pixel density and watermark density in the embodiment. 同実施の形態における透かし情報埋め込み方法を示すフローチャートである。It is a flowchart which shows the watermark information embedding method in the embodiment. 本発明の第2の実施形態にかかる透かし情報埋め込み装置の機能構成を示すブロック図である。It is a block diagram which shows the function structure of the watermark information embedding apparatus concerning the 2nd Embodiment of this invention. 同実施の形態における文書画像に埋め込まれる透かし情報を説明する説明図である。It is explanatory drawing explaining the watermark information embedded in the document image in the embodiment. 同実施の形態における黒画素密度と画像濃度について説明する説明図である。It is explanatory drawing explaining the black pixel density and image density in the embodiment. 同実施の形態における透かし情報埋め込み方法を示すフローチャートである。It is a flowchart which shows the watermark information embedding method in the embodiment. 本発明の第3の実施形態にかかる透かし情報埋め込み装置の機能構成を示すブロック図である。It is a block diagram which shows the function structure of the watermark information embedding apparatus concerning the 3rd Embodiment of this invention. 同実施の形態における黒画素密度と透かし濃度と画像濃度について説明する説明図である。It is explanatory drawing explaining the black pixel density in the same embodiment, a watermark density, and an image density. 同実施の形態における透かし濃度決定方法を示すフローチャートである。It is a flowchart which shows the watermark density determination method in the embodiment. 同実施の形態における透かし濃度決定処理を説明する説明図である。It is explanatory drawing explaining the watermark density determination processing in the embodiment. 同実施の形態における透かし情報埋め込み方法を示すフローチャートである。It is a flowchart which shows the watermark information embedding method in the embodiment. 本発明の第4の実施形態にかかる透かし情報埋め込み装置の機能構成を示すブロック図である。It is a block diagram which shows the function structure of the watermark information embedding apparatus concerning the 4th Embodiment of this invention. 同実施の形態における黒画素の割合が多い文書画像を説明する説明図である。It is explanatory drawing explaining the document image with many ratios of the black pixel in the embodiment. 同実施の形態における黒画素密度と画像調整方法について説明する説明図である。It is explanatory drawing explaining the black pixel density and image adjustment method in the embodiment. 同実施の形態における透かし情報埋め込み成方法を示すフローチャートである。It is a flowchart which shows the watermark information embedding method in the embodiment. 本発明の第5の実施形態にかかる透かし情報埋め込み装置の機能構成を示すブロック図である。It is a block diagram which shows the function structure of the watermark information embedding apparatus concerning the 5th Embodiment of this invention. 同実施の形態における黒画素密度と濃度調整方法について説明する説明図である。It is explanatory drawing explaining the black pixel density and density adjustment method in the embodiment. 同実施の形態における透かし情報埋め込み方法を示すフローチャートである。It is a flowchart which shows the watermark information embedding method in the embodiment. 本発明の第6の実施形態にかかる透かし情報埋め込み装置の機能構成を示すブロック図である。It is a block diagram which shows the function structure of the watermark information embedding apparatus concerning the 6th Embodiment of this invention. 本発明の第7の実施形態にかかる透かし情報埋め込み装置の機能構成を示すブロック図である。It is a block diagram which shows the function structure of the watermark information embedding apparatus concerning the 7th Embodiment of this invention. 同実施の形態における透かし情報埋め込み方法を示すフローチャートである。It is a flowchart which shows the watermark information embedding method in the embodiment. 本発明の第8の実施形態にかかる透かし情報埋め込み装置の機能構成を示すブロック図である。It is a block diagram which shows the function structure of the watermark information embedding apparatus concerning the 8th Embodiment of this invention. 同実施の形態における透かし情報埋め込み方法を示すフローチャートである。It is a flowchart which shows the watermark information embedding method in the embodiment. 同実施の形態における文書画像の分離方法を説明する説明図である。It is explanatory drawing explaining the separation method of the document image in the embodiment. 同実施の形態における文字画像と背景画像の濃度調整方法を説明する説明図である。It is explanatory drawing explaining the density adjustment method of the character image and background image in the embodiment. 同実施の形態における文字画像と背景画像の合成について説明する説明図である。It is explanatory drawing explaining the synthesis | combination of the character image and background image in the embodiment.

符号の説明Explanation of symbols

100a〜h 透かし情報埋め込み装置
106 画像情報検出部
108 透かし濃度決定部
112 透かし情報生成部
120 画像濃度決定部
122 画像濃度調整部
124 濃度決定部
140 画像分離部
100a-h Watermark information embedding device 106 Image information detection unit 108 Watermark density determination unit 112 Watermark information generation unit 120 Image density determination unit 122 Image density adjustment unit 124 Density determination unit 140 Image separation unit

Claims (19)

文書画像に対して電子透かしにより透かし情報を埋め込む透かし情報埋め込み装置であって:
前記文書画像の画素情報を検出する画素情報検出部と;
前記画素情報検出部により検出された画素情報に基づいて,前記文書画像に埋め込み可能な透かし情報の透かし濃度を決定する透かし濃度決定部と;
前記透かし濃度決定部により決定された透かし濃度に応じて,前記文書画像に埋め込む透かし情報を生成する透かし情報生成部と;
前記透かし情報生成部により生成された透かし情報を文書画像に埋め込む透かし情報埋め込み部と;
を備えることを特徴とする,透かし情報埋め込み装置。
A watermark information embedding device that embeds watermark information into a document image by digital watermarking:
A pixel information detection unit for detecting pixel information of the document image;
A watermark density determination unit that determines a watermark density of watermark information that can be embedded in the document image based on the pixel information detected by the pixel information detection unit;
A watermark information generation unit that generates watermark information to be embedded in the document image according to the watermark density determined by the watermark density determination unit;
A watermark information embedding unit that embeds watermark information generated by the watermark information generating unit in a document image;
A watermark information embedding device comprising:
前記透かし濃度決定部は,前記文書画像の画素情報に含まれる黒画素割合が所定の割合以上である場合に,前記文書画像に埋め込み可能な透かし情報の透かし濃度を決定することを特徴とする,請求項1に記載の透かし情報埋め込み装置。   The watermark density determining unit determines a watermark density of watermark information that can be embedded in the document image when a black pixel ratio included in the pixel information of the document image is equal to or greater than a predetermined ratio; The watermark information embedding device according to claim 1. 前記画素情報検出部は,前記文書画像を複数の透かし埋め込み領域に分割して各透かし埋め込み領域ごとの画素情報を検出し,
前記透かし濃度決定部は,前記画素情報検出部により検出された前記文書画像の透かし埋め込み領域ごとの画素情報に基づいて,前記文書画像に埋め込み可能な透かし情報の透かし濃度を決定することを特徴とする,請求項1に記載の透かし情報埋め込み装置。
The pixel information detection unit divides the document image into a plurality of watermark embedding areas, detects pixel information for each watermark embedding area,
The watermark density determination unit determines a watermark density of watermark information that can be embedded in the document image based on pixel information for each watermark embedding area of the document image detected by the pixel information detection unit. The watermark information embedding device according to claim 1.
前記画素情報検出部は,前記透かし埋め込み領域ごとの黒画素割合を検出し,
前記透かし濃度決定部は,前記埋め込み領域ごとの黒画素割合が所定の割合以上である埋め込み不能領域の個数を算出し,前記埋め込み不能領域の個数が所定の個数以上である場合に,前記文書画像に埋め込み可能な透かし情報の透かし濃度を決定することを特徴とする,請求項3に記載の透かし情報埋め込み装置。
The pixel information detection unit detects a black pixel ratio for each watermark embedding area,
The watermark density determination unit calculates the number of non-embeddable areas in which the ratio of black pixels for each embedding area is equal to or greater than a predetermined ratio, and when the number of non-embeddable areas is equal to or greater than the predetermined number, The watermark information embedding apparatus according to claim 3, wherein the watermark density of watermark information that can be embedded in the watermark information is determined.
前記透かし濃度決定部は,前記画素情報検出部により検出された画素情報に基づいて,前記文書画像に埋め込み可能な透かし情報の透かし色を決定することを特徴とする,請求項1に記載の透かし情報埋め込み装置。   The watermark according to claim 1, wherein the watermark density determination unit determines a watermark color of watermark information that can be embedded in the document image based on the pixel information detected by the pixel information detection unit. Information embedding device. 文書画像に対して電子透かしにより透かし情報を埋め込む透かし情報埋め込み装置であって:
前記文書画像の画素情報を検出する画素情報検出部と;
前記画素情報検出部により検出された画素情報に基づいて,前記透かし情報を埋め込み可能なように文書画像の画像濃度を決定する画像濃度決定部と;
前記画像濃度決定部により決定された画像濃度に前記文書画像の画像濃度を調整する画像濃度調整部と;
前記画像濃度調整部により調整された文書画像に透かし情報を埋め込む透かし情報埋め込み部と;
を備えることを特徴とする,透かし情報埋め込み装置。
A watermark information embedding device that embeds watermark information into a document image by digital watermarking:
A pixel information detection unit for detecting pixel information of the document image;
An image density determination unit that determines an image density of the document image based on the pixel information detected by the pixel information detection unit so that the watermark information can be embedded;
An image density adjusting unit for adjusting the image density of the document image to the image density determined by the image density determining unit;
A watermark information embedding unit that embeds watermark information in the document image adjusted by the image density adjusting unit;
A watermark information embedding device comprising:
前記画像濃度決定部は,前記文書画像の画素情報に含まれる黒画素割合が所定の割合以上である場合に,前記透かし情報を埋め込み可能なように前記文書画像の画像濃度を決定することを特徴とする,請求項6に記載の透かし情報埋め込み装置。   The image density determination unit determines the image density of the document image so that the watermark information can be embedded when the black pixel ratio included in the pixel information of the document image is equal to or higher than a predetermined ratio. The watermark information embedding device according to claim 6. 前記画素情報検出部は,前記文書画像を複数の透かし埋め込み領域に分割して各透かし埋め込み領域ごとの画素情報を検出し,
前記画像濃度決定部は,前記画素情報検出部により検出された前記文書画像の透かし埋め込み領域ごとの画素情報に基づいて,前記透かし情報を埋め込み可能なように前記文書画像の画像濃度を決定することを特徴とする,請求項6に記載の透かし情報埋め込み装置。
The pixel information detection unit divides the document image into a plurality of watermark embedding areas, detects pixel information for each watermark embedding area,
The image density determination unit determines an image density of the document image so that the watermark information can be embedded based on pixel information for each watermark embedding area of the document image detected by the pixel information detection unit. The watermark information embedding device according to claim 6, wherein:
前記画素情報検出部は,前記透かし埋め込み領域ごとの黒画素割合を検出し,
前記画像濃度決定部は,前記埋め込み領域ごとの黒画素割合が所定の割合以上である埋め込み不能領域の個数を算出し,前記埋め込み不能領域の個数が所定の個数以上である場合に,前記透かし情報を埋め込み可能なように前記文書画像の画像濃度を決定することを特徴とする,請求項8に記載の透かし情報埋め込み装置。
The pixel information detection unit detects a black pixel ratio for each watermark embedding area,
The image density determination unit calculates the number of non-embeddable areas in which the ratio of black pixels for each embedding area is equal to or greater than a predetermined ratio, and when the number of non-embeddable areas is equal to or greater than the predetermined number, the watermark information The watermark information embedding apparatus according to claim 8, wherein the image density of the document image is determined so as to be embedded.
(実施形態4:白黒反転)
前記画素情報検出部は,前記文書画像に含まれる黒画素の割合を検出し,
前記画像濃度調整部は,前記黒画素の割合が所定の割合であった場合に,透かしが埋め込まれる文書画像を白黒反転することを特徴とする,請求項6に記載の透かし情報埋め込み装置。
(Embodiment 4: Black and white inversion)
The pixel information detection unit detects a ratio of black pixels included in the document image;
The watermark information embedding apparatus according to claim 6, wherein the image density adjustment unit reverses the document image in which the watermark is embedded when the ratio of the black pixels is a predetermined ratio.
文書画像に対して電子透かしにより透かし情報を埋め込む透かし情報埋め込み装置であって:
前記文書画像の画素情報を検出する画素情報検出部と;
前記画素情報検出部により検出された画素情報に基づいて,前記文書画像に透かし情報を埋め込み可能なように,前記文書画像に埋め込む透かし情報の透かし濃度と,前記透かし情報が埋め込まれる前記文書画像の画像濃度とを決定する濃度決定部と;
前記濃度決定部により決定された透かし濃度に応じて,前記文書画像に埋め込む透かし情報を生成する透かし情報生成部と;
前記濃度決定部により決定された画像濃度に前記文書画像の画像濃度を調整する画像濃度調整部と;
前記画像濃度調整部により調整された文書画像に,前記透かし情報生成部により生成された透かし情報を埋め込む透かし情報埋め込み部と;
を備えることを特徴とする,透かし情報埋め込み装置。
A watermark information embedding device that embeds watermark information into a document image by digital watermarking:
A pixel information detection unit for detecting pixel information of the document image;
Based on the pixel information detected by the pixel information detector, the watermark density of the watermark information embedded in the document image and the document image in which the watermark information is embedded so that the watermark information can be embedded in the document image. A density determination unit for determining image density;
A watermark information generation unit that generates watermark information to be embedded in the document image according to the watermark density determined by the density determination unit;
An image density adjusting unit for adjusting the image density of the document image to the image density determined by the density determining unit;
A watermark information embedding unit that embeds the watermark information generated by the watermark information generating unit in the document image adjusted by the image density adjusting unit;
A watermark information embedding device comprising:
前記濃度決定部は,前記文書画像の画素情報に含まれる黒画素割合が所定の割合以上である場合に,前記文書画像に埋め込み可能な透かし情報の透かし濃度と,前記透かし情報が埋め込まれる前記文書画像の画像濃度とを決定することを特徴とする,請求項11に記載の透かし情報埋め込み装置。   The density determination unit is configured to include a watermark density of watermark information that can be embedded in the document image and a document in which the watermark information is embedded when a black pixel ratio included in the pixel information of the document image is equal to or greater than a predetermined ratio. 12. The watermark information embedding device according to claim 11, wherein the image density of the image is determined. 前記画素情報検出部は,前記文書画像を複数の透かし埋め込み領域に分割して各透かし埋め込み領域ごとの画素情報を検出し,
前記濃度決定部は,前記画素情報検出部により検出された前記文書画像の透かし埋め込み領域ごとの画素情報に基づいて,前記文書画像に埋め込み可能な透かし情報の透かし濃度と,前記透かし情報が埋め込まれる前記文書画像の画像濃度とを決定することを特徴とする,請求項11に記載の透かし情報埋め込み装置。
The pixel information detection unit divides the document image into a plurality of watermark embedding areas, detects pixel information for each watermark embedding area,
The density determination unit embeds the watermark density of the watermark information that can be embedded in the document image and the watermark information based on the pixel information for each watermark embedding area of the document image detected by the pixel information detection unit. 12. The watermark information embedding apparatus according to claim 11, wherein an image density of the document image is determined.
前記画素情報検出部は,前記透かし埋め込み領域ごとの黒画素割合を検出し,
前記濃度決定部は,前記埋め込み領域ごとの黒画素割合が所定の割合以上である埋め込み不能領域の個数を算出し,前記埋め込み不能領域の個数が所定の個数以上である場合に,前記文書画像に埋め込み可能な透かし情報の透かし濃度と,前記透かし情報が埋め込まれる前記文書画像の画像濃度とを決定することを特徴とする,請求項11に記載の透かし情報埋め込み装置。
The pixel information detection unit detects a black pixel ratio for each watermark embedding area,
The density determination unit calculates the number of non-embeddable areas in which the ratio of black pixels for each embedding area is equal to or greater than a predetermined ratio, and when the number of non-embeddable areas is equal to or greater than the predetermined number, 12. The watermark information embedding apparatus according to claim 11, wherein a watermark density of watermark information that can be embedded and an image density of the document image in which the watermark information is embedded are determined.
前記画素情報検出部は,前記文書画像に含まれる黒画素の割合を検出し,
前記画像濃度調整部は,前記黒画素の割合が所定の割合であった場合に,透かしが埋め込まれる文書画像を白黒反転することを特徴とする,請求項11に記載の透かし情報埋め込み装置。
The pixel information detection unit detects a ratio of black pixels included in the document image;
12. The watermark information embedding apparatus according to claim 11, wherein the image density adjusting unit reverses the document image in which the watermark is embedded in black and white when the ratio of the black pixels is a predetermined ratio.
前記透かし濃度決定部は,前記画素情報検出部により検出された画素情報に基づいて,前記文書画像に埋め込み可能な透かし情報の透かし色を決定することを特徴とする,請求項11に記載の透かし情報埋め込み装置。   The watermark according to claim 11, wherein the watermark density determination unit determines a watermark color of watermark information that can be embedded in the document image based on the pixel information detected by the pixel information detection unit. Information embedding device. 前記画素情報検出部により検出された画素情報に基づいて,前記文書画像に含まれる文字画像と背景画像とを分離する画像分離部と,
前記画像分離部により分離された文字画像と背景画像とを合成する画像合成部と,
をさらに含み,
前記濃度決定部は,前記文書画像に透かし情報が埋め込み可能なように,前記文字画像の文字濃度と,前記背景画像の背景濃度とを決定し,
前記画像濃度調整部は,前記濃度決定部により決定された前記文字濃度に前記文字画像の画像濃度を調整し,前記背景濃度に前記背景画像の画像濃度を調整し,
前記透かし情報埋め込み部は,前記画像濃度調整部により調整された文字画像に透かし情報を埋め込み,
前記画像合成部は,前記透かし情報が埋め込まれた文字画像と前記背景画像とを合成することを特徴とする,請求項11に記載の情報処理装置。
An image separation unit that separates a character image and a background image included in the document image based on pixel information detected by the pixel information detection unit;
An image synthesis unit that synthesizes the character image and the background image separated by the image separation unit;
Further including
The density determining unit determines a character density of the character image and a background density of the background image so that watermark information can be embedded in the document image;
The image density adjustment unit adjusts the image density of the character image to the character density determined by the density determination unit, adjusts the image density of the background image to the background density,
The watermark information embedding unit embeds watermark information in the character image adjusted by the image density adjusting unit,
The information processing apparatus according to claim 11, wherein the image composition unit synthesizes the character image in which the watermark information is embedded and the background image.
文書画像に対して電子透かしにより透かし情報を埋め込む透かし情報埋め込み方法であって:
前記文書画像の画素情報を検出する画素情報検出ステップと;
前記画素情報に基づいて,前記文書画像に透かし情報を埋め込み可能なように,前記文書画像に埋め込む透かし情報の透かし濃度と,前記透かし情報が埋め込まれる前記文書画像の画像濃度とを決定するステップと;
前記透かし濃度に応じて,前記文書画像に埋め込む透かし情報を生成するとともに,前記画像濃度に前記文書画像の画像濃度を調整するステップと;
前記画像濃度を調整された文書画像に,前記透かし情報を埋め込むステップと;
を含むことを特徴とする,透かし情報埋め込み方法。
A watermark information embedding method for embedding watermark information in a document image with a digital watermark:
A pixel information detecting step for detecting pixel information of the document image;
Determining, based on the pixel information, a watermark density of the watermark information embedded in the document image and an image density of the document image in which the watermark information is embedded so that the watermark information can be embedded in the document image; ;
Generating watermark information to be embedded in the document image according to the watermark density, and adjusting the image density of the document image to the image density;
Embedding the watermark information in the document image having the adjusted image density;
A watermark information embedding method comprising:
コンピュータをして,文書画像に対して電子透かしにより透かし情報を埋め込む透かし情報埋め込み装置として機能せしめるコンピュータプログラムであって:
前記文書画像の画素情報を検出する画素情報検出処理と;
前記画素情報検出部により検出された画素情報に基づいて,前記文書画像に透かし情報を埋め込み可能なように,前記文書画像に埋め込む透かし情報の透かし濃度と,前記透かし情報が埋め込まれる前記文書画像の画像濃度とを決定する濃度決定処理と;
前記濃度決定部により決定された透かし濃度に応じて,前記文書画像に埋め込む透かし情報を生成する透かし情報生成処理と;
前記濃度決定部により決定された画像濃度に前記文書画像の画像濃度を調整する画像濃度調整処理と;
前記画像濃度調整部により調整された文書画像に,前記透かし情報生成部により生成された透かし情報を埋め込む透かし情報埋め込み処理と;
を実行することを特徴とする,コンピュータプログラム。

A computer program that causes a computer to function as a watermark information embedding device that embeds watermark information into a document image with a digital watermark:
Pixel information detection processing for detecting pixel information of the document image;
Based on the pixel information detected by the pixel information detector, the watermark density of the watermark information embedded in the document image and the document image in which the watermark information is embedded so that the watermark information can be embedded in the document image. Density determination processing for determining image density;
A watermark information generation process for generating watermark information to be embedded in the document image according to the watermark density determined by the density determination unit;
Image density adjustment processing for adjusting the image density of the document image to the image density determined by the density determination unit;
A watermark information embedding process for embedding the watermark information generated by the watermark information generation unit in the document image adjusted by the image density adjustment unit;
A computer program characterized by executing

JP2005120154A 2005-04-18 2005-04-18 Watermark information embedding device, watermark information embedding method, and computer program Expired - Fee Related JP4611792B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005120154A JP4611792B2 (en) 2005-04-18 2005-04-18 Watermark information embedding device, watermark information embedding method, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005120154A JP4611792B2 (en) 2005-04-18 2005-04-18 Watermark information embedding device, watermark information embedding method, and computer program

Publications (2)

Publication Number Publication Date
JP2006303728A true JP2006303728A (en) 2006-11-02
JP4611792B2 JP4611792B2 (en) 2011-01-12

Family

ID=37471521

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005120154A Expired - Fee Related JP4611792B2 (en) 2005-04-18 2005-04-18 Watermark information embedding device, watermark information embedding method, and computer program

Country Status (1)

Country Link
JP (1) JP4611792B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009260614A (en) * 2008-04-16 2009-11-05 Fuji Xerox Co Ltd Image forming system, image forming apparatus, image processor, and program
JP2010278545A (en) * 2009-05-26 2010-12-09 Canon Inc Device and method for determining density of bar code and program
KR101052487B1 (en) 2008-02-28 2011-07-29 후지제롯쿠스 가부시끼가이샤 Image processing apparatus, image processing method and computer readable storage medium
US9293910B2 (en) 2011-11-25 2016-03-22 Shenzhen Byd Auto R&D Company Limited Power battery assembly and electric vehicle comprising the same
EP3226202A1 (en) 2016-03-29 2017-10-04 Ricoh Company, Ltd. Image processing apparatus, image processing method, and program
CN109993681A (en) * 2019-04-10 2019-07-09 兰州大学 A kind of digital watermark method of the OOX format file based on color attribute value transformation

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001245138A (en) * 2001-01-12 2001-09-07 Minolta Co Ltd Image processing apparatus and image processing method
JP2003069812A (en) * 1992-01-06 2003-03-07 Canon Inc Image processor and method
JP2003209681A (en) * 2002-01-16 2003-07-25 Sharp Corp Image processing method, image processing equipment and image forming equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003069812A (en) * 1992-01-06 2003-03-07 Canon Inc Image processor and method
JP2001245138A (en) * 2001-01-12 2001-09-07 Minolta Co Ltd Image processing apparatus and image processing method
JP2003209681A (en) * 2002-01-16 2003-07-25 Sharp Corp Image processing method, image processing equipment and image forming equipment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101052487B1 (en) 2008-02-28 2011-07-29 후지제롯쿠스 가부시끼가이샤 Image processing apparatus, image processing method and computer readable storage medium
JP2009260614A (en) * 2008-04-16 2009-11-05 Fuji Xerox Co Ltd Image forming system, image forming apparatus, image processor, and program
JP2010278545A (en) * 2009-05-26 2010-12-09 Canon Inc Device and method for determining density of bar code and program
US9293910B2 (en) 2011-11-25 2016-03-22 Shenzhen Byd Auto R&D Company Limited Power battery assembly and electric vehicle comprising the same
EP3226202A1 (en) 2016-03-29 2017-10-04 Ricoh Company, Ltd. Image processing apparatus, image processing method, and program
CN107241526A (en) * 2016-03-29 2017-10-10 株式会社理光 Image processing apparatus and image processing method
US10148850B2 (en) 2016-03-29 2018-12-04 Ricoh Company, Ltd. Image processing apparatus, image processing method, and recording medium
CN107241526B (en) * 2016-03-29 2019-08-30 株式会社理光 Image processing apparatus and image processing method
CN109993681A (en) * 2019-04-10 2019-07-09 兰州大学 A kind of digital watermark method of the OOX format file based on color attribute value transformation
CN109993681B (en) * 2019-04-10 2023-07-07 兰州大学 Digital watermarking method of OOX format document based on color attribute value transformation

Also Published As

Publication number Publication date
JP4611792B2 (en) 2011-01-12

Similar Documents

Publication Publication Date Title
JP3938176B2 (en) Image processing method, image processing apparatus, program, and recording medium
US7499565B2 (en) Method of watermarking for binary images
JP4611792B2 (en) Watermark information embedding device, watermark information embedding method, and computer program
JP4535194B2 (en) Background pattern image generation program, background pattern image generation method, and background pattern image generation apparatus
JP2011142615A (en) Image processing apparatus, image processing method and program
US11341597B2 (en) Image processing method, image processing apparatus, and storage medium
JP5014062B2 (en) Image processing apparatus, image processing control method, program, and storage medium
JP4416016B2 (en) Image processing apparatus, image processing method, and image processing program
JP2010050932A (en) Image processor, method and program for image processing
US8577132B2 (en) Electronic document generation system, electronic document generation method, and program
JP4829715B2 (en) Image processing apparatus, image processing method, image processing program, and storage medium
US7692811B2 (en) Image forming apparatus and method
JP4453979B2 (en) Image reproducing apparatus, image reproducing method, program, and recording medium
JP2004048380A (en) Image processing apparatus, image processing method, and storage medium
JP4263156B2 (en) Image processing apparatus, method, and program
JP2011130184A (en) Image processing apparatus, image processing method and image processing program, and image forming apparatus
JP2008229912A (en) Image forming apparatus and image forming method
JP2014033439A (en) Image processing apparatus, image forming apparatus, program, and recording medium
JP4935467B2 (en) Image processing device
JP2007312049A (en) Information embedding processing system, additional information embedding device, and additional information restoring device
JP2002237940A (en) Image processing unit
JP4363489B2 (en) Background pattern image generation program, background pattern image generation apparatus, and background pattern image generation method
JP2007129427A (en) Image forming apparatus and method
JP2006295677A (en) Image processing method, image processing apparatus, and program
JP2006270433A (en) Image processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080124

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090828

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090901

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091029

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20100210

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100420

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20100510

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100615

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

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

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

Free format text: PAYMENT UNTIL: 20131022

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4611792

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees