JP2012114725A - Digital watermark embedding apparatus and digital watermark reading apparatus - Google Patents
Digital watermark embedding apparatus and digital watermark reading apparatus Download PDFInfo
- Publication number
- JP2012114725A JP2012114725A JP2010262636A JP2010262636A JP2012114725A JP 2012114725 A JP2012114725 A JP 2012114725A JP 2010262636 A JP2010262636 A JP 2010262636A JP 2010262636 A JP2010262636 A JP 2010262636A JP 2012114725 A JP2012114725 A JP 2012114725A
- Authority
- JP
- Japan
- Prior art keywords
- characters
- information
- watermark
- embedding
- section
- 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.)
- Pending
Links
Images
Abstract
Description
本発明は、文章ファイルに電子透かしを埋め込む電子透かし埋め込み装置、文章ファイルに埋め込まれた電子透かしを読み出す読み出し装置に関する。 The present invention relates to a digital watermark embedding device that embeds a digital watermark in a text file and a reading device that reads out the digital watermark embedded in the text file.
人には知覚できない情報を文章ファイルや画像・映像・音声等のマルチメディアデータ等のディジタルコンテンツに埋め込み、必要に応じてその情報を読み出せる技術として電子透かしが知られている。電子透かしは、コンテンツの不正コピーや不正配布、改竄等の不正行為の抑止や、不正にコンテンツが流通した場合に流出元を特定可能にする目的で使われている。 Digital watermarking is known as a technique for embedding information that cannot be perceived by humans into digital contents such as text files and multimedia data such as images, video, and audio and reading the information as necessary. Digital watermarks are used for the purpose of preventing illegal acts such as unauthorized copying, unauthorized distribution, and falsification of content, and identifying the source of leakage when content is distributed illegally.
文章ファイルに電子透かしを埋め込む方法として、特許文献1による、文字を構成する線の方向や太さ等を制御することで埋め込む方法や、特許文献2による、文字の間隔を制御することで埋め込む方法があり、それらの電子透かしを埋め込む埋め込み装置、読み出し装置がある。それらの埋め込み装置によって文章ファイルに埋め込まれた電子透かしは、文章ファイルの印刷後も印刷文書中に残存しており、読み出し装置によって読み出し可能である。そのため、印刷時に電子透かしとして利用者の識別コードを文章ファイルに埋め込んで印刷することで、不正に流通した文書を発見した際にその識別コードを確認でき、責任の所在を明確にできる。その結果、文書管理を徹底させ、情報漏洩を抑止できる。しかしながら、引用文献1または2に記載の埋め込み装置によって印刷文書に埋め込まれた電子透かしは、その印刷文書をスキャナで読み取った後に、細線化・太線化・歪曲等の画像処理を施すことで、文書の体裁を保ったまま容易に除去できる。そのため、上記画像処理を施してコピーされた文書からは、印刷時に埋め込まれた識別コードを読み出せず、情報漏洩時に責任の所在を明らかにできないことが多かった。
As a method of embedding a digital watermark in a text file, a method of embedding by controlling the direction and thickness of lines constituting a character according to
そこで、特許文献3のように、行末の文字単位を構成する行末文字群と改行位置との位置関係を変化させることで、電子透かしを埋め込む方法を用いて、印刷文書をスキャナで読み取った後に上記画像処理を適用しても除去できない情報を電子透かしとして埋め込む埋め込み装置、読み出し装置がある。
Therefore, as described in
しかし、引用文献3に開示された、行末文字群と改行位置との位置関係を変化させる埋め込み装置または読み出し装置は、行末文字群の形態素を解析するための形態素辞書や、形態素解析処理が必要であり、処理量が大きいために埋め込みまたは読み込み処理速度が遅くなるという問題があった。
However, the embedding device or reading device disclosed in
そこで、本発明は上記従来技術の有する問題点に鑑みてなされたものであり、印刷文書をスキャナで読み取った後に上記画像処理を適用しても除去できない情報を電子透かしとして高速に埋め込み可能な電子透かし埋め込み装置、及び埋め込まれた電子透かしを高速に読み出す電子透かし読み出し装置を提供することを目的とする。 Therefore, the present invention has been made in view of the above-described problems of the prior art, and is an electronic device that can embed information that cannot be removed by applying the image processing after a printed document is read by a scanner as a digital watermark at high speed. It is an object of the present invention to provide a watermark embedding device and a digital watermark reading device that reads out an embedded digital watermark at high speed.
上記課題を解決するための本発明の電子透かし埋め込み装置の第1の特徴は、複数の行から構成される文章ファイルに透かし情報を埋め込む電子透かし埋め込み装置であって、文章ファイルを入力する文章ファイル入力部と、文章ファイルに埋め込む透かし情報を入力する透かし情報入力部と、透かし情報に対応するコードを記憶する情報記憶部と、文章ファイルからコードを埋め込む区間を検出する区間検出部と、コードに基づき、区間の文字数の増減数を算出する文字数演算部と、算出された文字数の増減数に基づき、区間の文字数を増減させる文字数制御部とを有し、文章ファイルにコードを埋め込む透かし情報埋め込み処理部とを備えることを要旨とする。 A first feature of a digital watermark embedding device according to the present invention for solving the above problem is a digital watermark embedding device for embedding watermark information in a text file composed of a plurality of lines, wherein the text file inputs a text file. An input unit, a watermark information input unit that inputs watermark information to be embedded in a text file, an information storage unit that stores a code corresponding to the watermark information, a section detection unit that detects a section in which a code is embedded from a text file, and a code Watermark information embedding process for embedding codes in a text file, having a character number calculation unit that calculates the number of characters in a section based on the number of characters and a character number control unit that increases or decreases the number of characters in a section based on the calculated number of characters It is a summary to provide a part.
かかる特徴によれば、文章ファイルに埋め込まれたコードは、その文章ファイルを印刷し、スキャナで読み取った後に細線化・太線化・歪曲等の画像処理を施しても除去されずに残る。 According to this feature, the code embedded in the text file remains unremoved even if the text file is printed and read by a scanner and subjected to image processing such as thinning, thickening, and distortion.
また、本発明の電子透かし埋め込み装置の第2の特徴は、第1の特徴の透かし情報埋め込み処理部において、文字数演算部は、区間の全体の文字数がコードと対応するように区間の文字数の増減数を算出することを要旨とする。 The second feature of the digital watermark embedding device of the present invention is that, in the watermark information embedding processing unit of the first feature, the number-of-characters computation unit increases or decreases the number of characters in the section so that the total number of characters in the section corresponds to the code. The gist is to calculate the number.
また、本発明の電子透かし埋め込み装置の第3の特徴は、第1の特徴の透かし情報埋め込み処理部において、文字数演算部は、区間の文字数の増減数がコードと対応するように区間の文字数の増減数を算出することを要旨とする。 A third feature of the digital watermark embedding device of the present invention is that, in the watermark information embedding processing unit of the first feature, the character number calculation unit is configured to determine the number of characters in the section so that the increase / decrease number of the number of characters in the section corresponds to the code. The gist is to calculate the number of changes.
また、本発明の電子透かし埋め込み装置の第4の特徴は、第1から第3のいずれかの透かし情報埋め込み処理部において、文字数制御部は、改行によって文字数を増減させることを要旨とする。 A fourth feature of the digital watermark embedding device of the present invention is that, in any one of the first to third watermark information embedding processing units, the character number control unit increases or decreases the number of characters by line feed.
また、本発明の電子透かし埋め込み装置の第5の特徴は、第1から第3のいずれかの透かし情報埋め込み処理部において、文字数制御部は、区間の文字間隔を増減させることによって文字数を増減させることを要旨とする。
かかる特徴によれば、文章の折り返し位置を揃えることで、コードの埋め込みによる文章の折り返しの不自然さを軽減できる。
The fifth feature of the digital watermark embedding device of the present invention is that, in any one of the first to third watermark information embedding processing units, the character number control unit increases or decreases the number of characters by increasing or decreasing the character spacing of the section. This is the gist.
According to such a feature, the unnaturalness of the text wrapping due to the embedding of the code can be reduced by aligning the text wrapping positions.
また、本発明の電子透かし埋め込み装置の第6の特徴は、第1から第5の透かし情報埋め込み処理部において、区間は、行の行頭から行末であることを要旨とする。 The sixth feature of the digital watermark embedding device of the present invention is summarized in that, in the first to fifth watermark information embedding processing units, the section is from the beginning of the line to the end of the line.
また、本発明の電子透かし埋め込み装置の第7の特徴は、第1から第5の透かし情報埋め込み処理部において、区間は、特徴文字の間の文章であることを要旨とする。 The seventh feature of the digital watermark embedding device of the present invention is summarized in that, in the first to fifth watermark information embedding processing units, the section is a sentence between feature characters.
また、本発明の電子透かし埋め込み装置の第8の特徴は、第1から第7の透かし情報埋め込み処理部において、情報記憶部は、透かし情報を複数のコードに対応させて記憶することを要旨とする。 The eighth feature of the digital watermark embedding device of the present invention is that, in the first to seventh watermark information embedding processing units, the information storage unit stores the watermark information in association with a plurality of codes. To do.
また、本発明の電子透かし読み出し装置の第1の特徴は、複数の行から構成される文章ファイルに埋め込まれた透かし情報を読み出す電子透かし読み出し装置であって、透かし情報がコードに変換され、コードとして埋め込まれた透かし情報文章ファイルを入力する文章ファイル入力部と、透かし情報に対応するコードを記憶する情報記憶部と、透かし情報文章ファイルに埋め込まれた電子透かし情報を読み出す情報読み出し処理部とを有し、情報読み出し処理部は、透かし情報文章ファイルからコードを読み出す読み出し区間を検出する区間検出部と、検出された読み出し区間の文字数を数える文字数演算部と、読み出し区間の文字数に対応するコードを特定し、透かし情報を読み出す情報読み出し部とを有することを要旨とする。 A first feature of the electronic watermark reading apparatus of the present invention is an electronic watermark reading apparatus that reads watermark information embedded in a text file composed of a plurality of lines, wherein the watermark information is converted into a code, A text file input unit for inputting a watermark information text file embedded as an information storage unit, an information storage unit for storing a code corresponding to the watermark information, and an information reading processing unit for reading out the digital watermark information embedded in the watermark information text file The information reading processing unit includes a section detecting unit for detecting a reading section for reading a code from the watermark information sentence file, a character number calculating unit for counting the number of characters in the detected reading section, and a code corresponding to the number of characters in the reading section. The gist is to include an information reading unit that identifies and reads watermark information.
また、本発明の電子透かし読み出し装置の第2の特徴は、複数の行から構成される文章ファイルに埋め込まれた透かし情報を読み出す電子透かし読み出し装置であって、透かし情報がコードに変換されコードとして埋め込まれた透かし情報文章ファイルと、透かし情報が埋め込まれていないオリジナル文章ファイルとを入力する文章ファイル入力部と、透かし情報に対応するコードを記憶する情報記憶部と、透かし情報文章ファイルに埋め込まれた電子透かし情報を読み出す情報読み出し処理部とを有し、情報読み出し処理部は、透かし情報文章ファイルからコードを読み出す読み出し区間を検出する区間検出部と、オリジナル文章ファイルから読み出し区間に対応する対応区間を検出する対応区間検出部と、検出された読み出し区間と対応区間との文字数を数える文字数演算部と、読み出し区間と対応区間との文字数の差に対応するコードを特定し、透かし情報を読み出す情報読み出し部とを有することを要旨とする。 A second feature of the digital watermark reading apparatus of the present invention is a digital watermark reading apparatus that reads watermark information embedded in a text file composed of a plurality of lines. The watermark information is converted into a code as a code. Embedded in the watermark information text file, the text file input section for inputting the embedded watermark information text file and the original text file in which the watermark information is not embedded, the information storage section for storing the code corresponding to the watermark information, and the watermark information text file An information readout processing unit for reading out the digital watermark information, the information readout processing unit detecting a readout section for reading out the code from the watermark information sentence file, and a corresponding section corresponding to the readout section from the original sentence file Corresponding section detection unit to detect and corresponding to read section detected And character count calculation section that counts the number of characters and between, to identify the code corresponding to the difference between the number of characters in the corresponding section and reading section, and summarized in that and an information reading section for reading the watermark information.
本発明によれば、印刷文書をスキャナで読み取った後に上記画像処理を適用しても除去できない情報を電子透かしとして高速に埋め込み可能な電子透かし埋め込み装置、及び埋め込まれた電子透かしを高速に読み出す電子透かし読み出し装置を提供することが可能になる。 According to the present invention, an electronic watermark embedding device capable of embedding information that cannot be removed even when the above-described image processing is applied after a printed document is read with a scanner as an electronic watermark, and an electronic device that reads out the embedded electronic watermark at high speed It becomes possible to provide a watermark reading device.
以下、図面を参照して、本発明の一実施形態による電子透かし埋め込み装置及び電子透かし読み出し装置について説明する。 Hereinafter, a digital watermark embedding device and a digital watermark reading device according to an embodiment of the present invention will be described with reference to the drawings.
(第一の実施形態)
本実施形態は、一行に含まれる文字数を所定の文字数に一致させることで該行に目に見えない情報を埋め込む埋め込み装置、それにより埋め込まれた情報を読み出す読み出し装置に関する。
(First embodiment)
The present embodiment relates to an embedding device that embeds invisible information in a line by matching the number of characters included in one line with a predetermined number of characters, and a reading device that reads out the embedded information.
[電子透かし埋め込み装置]
図1は、第一の実施形態における電子透かし埋め込み装置の構成を示すブロック図である。図1に示すように、本実施形態による電子透かし埋め込み装置100は、透かし情報の埋め込み対象である文章ファイルを入力する文章ファイル入力部110、透かし情報を入力する透かし情報入力部120、一行に含まれる文字数と埋め込まれる情報の対応関係を埋め込み規則情報として記憶する情報記憶部130、電子透かし埋め込み処理を行う埋め込み処理部140及び透かし情報が埋め込まれた文章ファイルを出力する出力部150とから構成される。
[Digital watermark embedding device]
FIG. 1 is a block diagram showing the configuration of the digital watermark embedding apparatus in the first embodiment. As shown in FIG. 1, a digital
図2は、埋め込み処理部140の構成を示すブロック図である。図2に示すように、埋め込み処理部140は、文章ファイルを構成する文章から行を検出する区間検出部141と、検出された行に情報を埋め込んだ場合の該行の文字数を情報記憶部130に記憶された埋め込み規則情報に従って演算する文字数演算部142と、文字数演算部142の結果に一致するように上記行の文字数を増減する文字数制御部143とから構成される。
FIG. 2 is a block diagram illustrating a configuration of the embedding
次に、電子透かし埋め込み装置100を用いた電子透かし埋め込み方法について説明する。図3は、電子透かし埋め込み装置100の動作手順を示すフローチャートである。
Next, a digital watermark embedding method using the digital
図3に示すように、文章ファイル入力部110に透かし情報の埋め込み対象であるオリジナル文章ファイル160を入力し(S101A)、透かし情報入力部120にn個の情報で構成される透かし情報170を入力する(S102A)。
As shown in FIG. 3, the
入力されたオリジナル文章ファイル160のデータと透かし情報170は埋め込み処理部140に渡される。埋め込み処理部140は下記手順を繰り返す。
The input
まず区間検出部141によって、オリジナル文章ファイル160のデータから、先頭行から数えた行番号が最も若くまだ処理されていない一行を検出する(S103A)。
First, the
次に、文字数演算部142によって、検出された行に情報を埋め込んだ場合の該行の文字数を埋め込み規則情報180に従って演算する(S104A)。
Next, the number-of-
そして文字数制御部143によって、文字数演算部142の演算結果に一致するように該行の文字数を増減することで該演算結果に対応する情報を埋め込み(S105A)、オリジナル文章ファイル160のデータを更新する(S106A)。
Then, the number-of-
上記手順の繰り返しは、区間検出部141において新しい行が検出されなくなった時点で終了する(S107A)。 The repetition of the above procedure ends when no new row is detected in the section detection unit 141 (S107A).
上記手順により更新されたオリジナル文章ファイル160のデータは、出力部150から、透かし情報170が埋め込まれた文章ファイル161として出力される(S108A)。
The data of the
以下、具体的なデータを用いて電子透かし埋め込み装置100の動作を詳細に説明する。
Hereinafter, the operation of the digital
図4のオリジナル文章ファイル162は、オリジナル文章ファイル160の一例である。文章の各行末には改行コードが含まれている。1行目162−1は36文字である。2行目162−2は37文字である。3行目162−3は行末の“ー”までは文字数に入れると37文字である。4行目162−4は行末の“。”までは文字数に入れると10文字である。
The
図5の透かし情報171は、透かし情報170の一例であり、2進数で表現された3桁のビットである。
The
図6の埋め込み規則情報181は、情報記憶部130に記憶されている埋め込み規則情報180の一例であり、埋め込み処理後の一行の文字数と埋め込まれる情報との対応関係を示す。
The embedding rule information 181 in FIG. 6 is an example of embedding
図4のオリジナル文章ファイル162を文章ファイル入力部110から入力し、図5の透かし情報171を透かし情報入力部120から入力する。
The
入力されたオリジナル文章ファイル162のデータと透かし情報171は埋め込み処理部140に渡される。埋め込み処理部140は、下記の手順により、オリジナル文章ファイル162のデータに透かし情報171に対応する情報を埋め込む。
The input
図7に、図4のオリジナル文章ファイル162の1行目に、図5の1ビット目であるビット0に対応する情報を埋め込んだ文章ファイル162aを示す。透かし情報171のビット0に対応する情報を埋め込む手順は以下の通りである。
FIG. 7 shows a
まず区間検出部141によって、オリジナル文章ファイル162のデータから1行目162−1を検出する。
First, the
次に、文字数演算部142によって、ビット0に対応する1行目の文字数を、埋め込み規則情報181に従って演算する。まず、埋め込み規則情報181の規則から、1行目のビット0に対応する文字数は36であることを読み取る。次に、埋め込み前の1行目162−1の文字数をカウント演算し、36であることを演算する。次に、ビット0に対応する文字数36と埋め込み前の文字数36との差を演算し、文字数の変化量0を得る。
Next, the number-of-
次に、文字数制御部143によって、文字数の変化量0を元に、1行目162−1の文字数の変更処理を行う。文字数の変化量が0なので、文字数の変更処理は行わない。以上の処理を行った上で、オリジナル文章ファイル162のデータを更新し、文章ファイル162aを作成する。
Next, the number-of-
図8に、図7に引き続き、2行目に図5の2ビット目であるビット1に対応する情報を埋め込んだ文章ファイル162bを示す。透かし情報171の2ビット目の1に対応する情報を埋め込む手順は以下の通りである。
FIG. 8 shows a
まず区間検出部141によって、図7の文章ファイル162aのデータから2行目162a−2を検出する。
First, the
次に、文字数演算部142によって、ビット1に対応する2行目の文字数を、埋め込み規則情報181に従って演算する。まず、埋め込み規則情報181の規則2から、2行目のビット1に対応する文字数は35であることを読み取る。次に、埋め込み前の2行目162a−2の文字数をカウント演算し、37であることを演算する。次に、ビット1に対応する文字数35と埋め込み前の文字数37との差を演算し、文字数の変化量−2を得る。そして、2行目162b−2の文字数を2文字減らすことが可能か検証する。まず、2行目の文字数を1文字ずつ減らして文字数をカウントする処理を繰り返し、文字数が2文字以上減少した時点の改行位置を求める。行末から−2文字の位置である文字“出”と“せ”の間で改行した場合、2行目の文字数は35となる。よって、2文字減らすことは可能である。
Next, the number-of-
次に、文字数制御部143によって、文字数の変化量−2を元に、2行目162a−2の文字数の変更処理を行う。文字数の変化量が−2なので、2行目162a−2の行末から−2文字の位置である文字“出”と文字“せ”の間で改行を行う。以上の処理を行った上で、文章ファイル162aのデータを更新し、文章ファイル162bを作成する。
Next, the number-of-
図9に、図8に引き続き、3行目に図5の3ビット目であるビット0に対応する情報を埋め込んだ文章ファイル162cを示す。透かし情報171の3ビット目の0に対応する情報を埋め込む手順は以下の通りである。
FIG. 9 shows a
まず区間検出部141によって、図8の文章ファイル162bのデータから3行目162b−3を検出する。
First, the
次に、文字数演算部142によって、ビット0に対応する3行目の文字数を、埋め込み規則情報181に従って演算する。まず、埋め込み規則情報181の規則1から、3行目のビット0に対応する文字数は36であることを読み取る。次に、埋め込み前の3行目162b−3の文字数をカウント演算する。埋め込み前3行目162b−3の文字数は、行末の“ー”までカウントすると39文字であるが、埋め込み規則情報181の規則5から、行末の“ー”は文字数にカウントしないため38となる。次に、ビット0に対応する文字数36と埋め込み前の文字数38との差を演算し、文字数の変化量−2を得る。そして、3行目162b−3の文字数を2文字減らすことが可能か検証する。まず、3行目の文字数を1文字ずつ減らして文字数をカウントする処理を繰り返し、文字数が2文字以上減少した時点の改行位置を求める。行末から−1文字の位置である文字“ー”(文字“ォ”の直後の文字)と“タ”の間で改行した場合、3行目の文字数は、埋め込み規則情報181の規則5から行末の“ォー”は文字数にカウントしないため35となり、元の文字数から3文字減少する。よって、2文字だけ減らすことはできない。
Next, the number-of-
検証の結果、文字数の変更が不可能と判断された場合、埋め込み規則情報181の規則1から他にビット0に対応する文字数を読み取る。他にビット0に対応する文字数がなければ規則3に従って文字数を求めるが、この場合は他にビット0に対応する文字数として38がある。そこで、ビット0に対応する文字数38と埋め込み前の文字数38の差を演算し、文字数の変化量0を得る。変化量が0の場合は、文字数の変更の可否についての検証は省略される。
As a result of the verification, when it is determined that the number of characters cannot be changed, the number of characters corresponding to bit 0 is read from
次に、文字数制御部143によって、文字数の変化量0を元に、3行目162b−3の文字数の変更処理を行う。文字数の変化量が0なので、実際に改行は行わない。以上の処理を行った上で、オリジナル文章ファイル162bのデータを更新し、文章ファイル162cを作成する。
Next, the number-of-
以上で透かし情報171が全て埋め込まれた。以降の行は何も情報が埋め込まれないように処理する。まず区間検出部141によって、図9の文章ファイル162cのデータから4行目162c−4を検出する。
All the
次に、文字数演算部142によって、何も情報を埋め込まない場合の4行目162c−4の文字数を、埋め込み規則情報181に従って演算する。埋め込み規則情報181の規則3から、4行目162c−4に何も情報を埋め込まない場合の文字数は34以下または39以上であることを読み取る。次に、埋め込み前の4行目162c−4の文字数をカウント演算する。埋め込み前の4行目162c−4の文字数は、行末の“。”までであると10であるが、埋め込み規則情報181の規則5より、行末の“。”は文字数に入れないため、文字数は9となる。次に、埋め込み規則181の規則5から読み取った文字数と、埋め込み前の文字数との差を演算する。埋め込み前の4行目162c−4の文字数は34以下であるので、埋め込み規則181の規則3の何も情報を埋め込まない場合の文字数の範囲内であり、文字数の変化量は0である。
Next, the number-of-
次に、文字数制御部143によって、文字数の変化量0を元に、4行目162c−4の文字数の変更処理を行う。文字数の変化量が0なので、実際に改行は行わない。以上の処理を行った上で、オリジナル文章ファイル162cのデータを更新する。
Next, the number-of-
上記手順により生成された文章ファイル162cは、出力部150から、透かし情報171が埋め込まれた文章ファイルとして出力される。
The
以上の説明において用いたオリジナル文章ファイル162は一例であり、本実施形態による電子透かしの埋め込みは、要旨を逸脱しない範囲で任意の文章ファイルに適用できる。
The
例えば、オリジナル文章ファイルは、1行あたりの文字サイズと文字間隔の総和に応じて行を折り返すデータ形式でも良い。この場合、行末に改行コードを付加することで文字数を制御する方法の他、文字間隔や文字サイズを変更することで文字数を制御する方法を用いても良い。 For example, the original sentence file may be in a data format in which lines are folded according to the sum of the character size and character spacing per line. In this case, in addition to the method of controlling the number of characters by adding a line feed code at the end of the line, a method of controlling the number of characters by changing the character spacing or character size may be used.
オリジナル文章ファイルは、電子透かしの埋め込み対象となる文章の他に、画像・音声・動画等のマルチメディアデータを含むファイルであっても良い。その場合、区間検出部141は、該マルチメディアデータと文章を識別し、文章から行を検出する。
The original sentence file may be a file including multimedia data such as images, sounds, and moving pictures in addition to the sentence to be embedded with the digital watermark. In that case, the
また、以上の説明において用いたオリジナル文章ファイル161の文章は日本語で記述されているが、オリジナル文章ファイルの文章は英語や中国語、韓国語、フランス語、ドイツ語等、日本語以外の言語で記述されていても良い。
The text of the
また、以上の説明において用いた透かし情報171は一例であり、本実施形態による電子透かしの埋め込みは、要旨を逸脱しない範囲で任意の透かし情報に適用できる。
例えば、透かし情報は、0または1以外の数値や文字を含む情報であっても良い。
The
For example, the watermark information may be information including numerical values and characters other than 0 or 1.
また、以上の説明において用いた埋め込み規則情報181は一例であり、本実施形態による電子透かしの埋め込みは、要旨を逸脱しない範囲で任意の埋め込み規則情報を用いることができる。 The embedding rule information 181 used in the above description is an example, and the embedding of digital watermark according to the present embodiment can use arbitrary embedding rule information without departing from the gist.
例えば、埋め込み規則情報は、一行に含まれる文字数は英単語や数値の途中で改行が生じる文字数にしてはならないといった、文字数の調整に関する制約規則を含んでも良い。 For example, the embedding rule information may include a restriction rule relating to the adjustment of the number of characters such that the number of characters included in one line should not be the number of characters that cause a line break in the middle of an English word or a numerical value.
また、埋め込み規則情報は、一行に含まれる文字数と複数の情報列の対応関係を含んでも良く、図10の埋め込み規則情報182を用いると、各行に最大2ビットの情報を埋め込むことができる。よって、本実施形態に係る埋め込み装置は、各行に複数の情報を電子透かしとして埋め込むことができる。 Further, the embedding rule information may include the correspondence between the number of characters included in one line and a plurality of information strings, and by using the embedding rule information 182 in FIG. 10, it is possible to embed up to 2 bits of information in each line. Therefore, the embedding device according to the present embodiment can embed a plurality of information as digital watermarks in each row.
また、以上の説明において用いた区間検出部によって検出される区間は、行でなくてもよく、句読点間、または決められた文字や文字サイズや文字間隔といった特徴文字の間の区間でも良い。 Further, the section detected by the section detection unit used in the above description may not be a line, but may be a section between punctuation marks or between character characters such as a determined character, character size, and character spacing.
[電子透かし読み出し装置]
図11は、第一の実施形態における電子透かし読み出し装置の構成を示すブロック図である。図11に示すように、本実施形態による電子透かし読み出し装置101は、透かし情報が埋め込まれた文章ファイルを入力する文章ファイル入力部111、一行に含まれる文字数と埋め込まれた情報の対応関係を読み出し規則情報として記憶する情報記憶部130、電子透かし読み出し処理を行う読み出し処理部190及び透かし情報を出力する出力部151とから構成される。
[Digital watermark reading device]
FIG. 11 is a block diagram showing the configuration of the digital watermark reading apparatus in the first embodiment. As illustrated in FIG. 11, the digital
図12は、読み出し処理部190の構成を示すブロック図である。図12に示すように、読み出し処理部190は、文章ファイルを構成する文章から行を検出する区間検出部191と、検出された行の文字数を数える文字数演算部192と、情報記憶部130に記憶された読み出し規則情報を参照し、文字数演算部192の結果に対応する情報を読み出す情報読み出し部193とから構成される。
FIG. 12 is a block diagram illustrating a configuration of the
次に、電子透かし読み出し装置101を用いた電子透かし読み出し方法について説明する。図13は、電子透かし読み出し装置101の動作手順を示すフローチャートである。
Next, a digital watermark reading method using the digital
図13に示すように、文章ファイル入力部111に透かし情報が埋め込まれた文章ファイル161を入力する(S101B)。
As shown in FIG. 13, a
入力された文章ファイル161のデータは読み出し処理部190に渡される。読み出し処理部190は下記手順を繰り返す。
The
まず区間検出部191によって、文章ファイル161のデータから、先頭行から数えた行番号が最も若くまだ処理されていない一行を検出する(S102B)。
次に文字数演算部192によって、検出された行の文字数を数える(S103B)。
First, the
Next, the number-of-
そして情報読み出し部193によって、情報記憶部130に記憶された読み出し規則情報180を参照し、文字数演算部192の演算結果に対応する情報を読み出す(S104B)。読み出した情報は、情報記憶部130に一時的に記憶する(S105B)。
Then, the
上記手順の繰り返しは、区間検出部191において新しい行が検出されなくなった時点で終了する(S106B)。 The repetition of the above procedure ends when no new row is detected in the section detection unit 191 (S106B).
上記手順により読み出し、情報記憶部130に一時的に記憶した情報は、出力部151から、透かし情報170として出力される(S107B)。
The information read by the above procedure and temporarily stored in the
以下、具体的なデータを用いて電子透かし読み出し装置101の動作を詳細に説明する。
図9の透かし情報が埋め込まれた文章ファイル162cを文章ファイル入力部111から入力する。
Hereinafter, the operation of the digital
The
入力された文章ファイル162cのデータは読み出し処理部190に渡される。読み出し処理部190は、下記の手順により、文章ファイル162cのデータから透かし情報を読み出す。
The input data of the
透かし情報の1ビット目を読み出す手順は以下の通りである。まず区間検出部191によって、文章ファイル162cのデータから1行目を検出する。
The procedure for reading the first bit of the watermark information is as follows. First, the
次に文字数演算部192によって、1行目の文字数を数える。この場合の文字数は36である。
Next, the number-of-
そして情報読み出し部193によって、情報記憶部130に記憶された図6の読み出し規則情報181を参照し、文字数36に対応するビット0を読み出す。読み出したビット0は情報記憶部130に一時的に記憶する。
Then, the
透かし情報の2ビット目を読み出す手順は以下の通りである。まず区間検出部191によって、文章ファイル162cのデータから2行目を検出する。
The procedure for reading the second bit of the watermark information is as follows. First, the
次に文字数演算部192によって、2行目の文字数を数える。この場合の文字数は35である。
Next, the number-of-
そして情報読み出し部193によって、情報記憶部130に記憶された読み出し規則情報181を参照し、文字数35に対応するビット1を読み出す。読み出したビット1は1行目から読み出したビット0と合わせて情報記憶部130に一時的に記憶する。
Then, the
透かし情報の3ビット目を読み出す手順は以下の通りである。まず区間検出部191によって、文章ファイル162cのデータから3行目を検出する。
The procedure for reading the third bit of the watermark information is as follows. First, the
次に文字数演算部192によって、3行目の文字数を数える。この場合の文字数は38である。
Next, the number-of-
そして情報読み出し部193によって、情報記憶部130に記憶された読み出し規則情報181を参照し、文字数38に対応するビット0を読み出す。読み出したビット0は1行目から読み出したビット0と2行目から読み出したビット1と合わせて情報記憶部130に一時的に記憶する。
Then, the
透かし情報の4ビット目を読み出す手順は以下の通りである。まず区間検出部191によって、文章ファイル162cのデータから4行目を検出する。
The procedure for reading the fourth bit of the watermark information is as follows. First, the
次に文字数演算部192によって、4行目の文字数を数える。この場合の文字数は9である。
Next, the number-of-
そして情報読み出し部193によって、情報記憶部130に記憶された読み出し規則情報181を参照し、何も情報が埋め込まれていないことを意味するNULLを読み出す。
以上で文章ファイル162cの全ての行に対する読み出し処理を終了する。
Then, the
This completes the reading process for all lines of the
上記手順により読み出し、情報記憶部130に一時的に記憶した情報は、出力部151から、図14の透かし情報172として出力される。
Information read by the above procedure and temporarily stored in the
読み出した透かし情報172は、本実施形態における電子透かし埋め込み装置によって162cに埋め込まれた透かし情報171に等しい。このように、本実施形態における電子透かし読み出し装置は、本実施形態における電子透かし埋め込み装置で文章ファイルに埋め込んだ透かし情報を読み出すことができる。
The read
図15の文章ファイル162gは、文章ファイル162cを印刷し、スキャナで読み取った画像である。
The
図16の文章ファイル162hは、図15の文章ファイル162dに細線化処理を施した画像である。
The
図17の文章ファイル162iは、図15の文章ファイル162dに太線化処理を施した画像である。
A
図18の文章ファイル162jは、図15の文章ファイル162dに162j−1方向に歪曲処理を施した画像である。
The
文章ファイル162cと文章ファイル162gとを比較すると、印刷とスキャンによって、各行に含まれる文字数は変化していない。また、文章ファイル162cと文章ファイル162h〜文章ファイル162jとを比較すると、各画像処理によって、各行に含まれる文字数は変化していない。
When the
本実施形態における電子透かし読み出し装置に入力可能な文章ファイルは、文章ファイル162h〜文章ファイル162jの画像からも、既存のOCR技術によって、または目視で確認し手作業で文章を入力することによって生成できる。それにより、画像中の文章と等しい文章を持つ(一行に含まれる文字数も等しい)文章ファイルが生成され、その文章ファイルは文章ファイル162cと等しい文章を含んでいる。
A text file that can be input to the digital watermark reading apparatus according to the present embodiment can be generated from the images of the
上記方法で文章ファイル162h〜文章ファイル162jの画像から生成した文章ファイルを本実施形態の電子透かし読み出し装置に入力することで、各画像中の文章に埋め込まれた透かし情報を読み出すことができる。
By inputting the sentence file generated from the images of the
以上のように、本実施形態に係る埋め込み装置によって文章ファイルに埋め込まれた電子透かしは、その文章ファイルを印刷し、スキャナで読み取った後に細線化・太線化・歪曲等の画像処理を適用しても除去されない。そのため上記画像処理を施してコピーされた文書からも、埋め込まれた電子透かしの読み出しが可能である。 As described above, the digital watermark embedded in the text file by the embedding device according to the present embodiment is applied to image processing such as thinning, thickening, and distortion after the text file is printed and read by the scanner. Is not removed. Therefore, it is possible to read the embedded digital watermark from a document copied by performing the image processing.
(第二の実施形態)
本実施形態は、文章の1文字目から各行末までの総文字数を所定の文字数だけ増減することで該行に目に見えない情報を埋め込む埋め込み装置、それにより埋め込まれた情報を読み出す読み出し装置に関する。
(Second embodiment)
The present embodiment relates to an embedding device that embeds invisible information in a line by increasing or decreasing the total number of characters from the first character of the sentence to the end of each line by a predetermined number of characters, and a reading device that reads out the embedded information thereby .
[電子透かし埋め込み装置]
図19は、第二の実施形態における電子透かし埋め込み装置の構成を示すブロック図である。図19に示すように、本実施形態による電子透かし埋め込み装置200は、透かし情報の埋め込み対象である文章ファイルを入力する文章ファイル入力部210、透かし情報を入力する透かし情報入力部220、文章の一文字目から各行末までの総文字数の増減量と埋め込まれる情報の対応関係を埋め込み規則情報として記憶する情報記憶部230、電子透かし埋め込み処理を行う埋め込み処理部240及び透かし情報が埋め込まれた文章ファイルを出力する出力部250とから構成される。
[Digital watermark embedding device]
FIG. 19 is a block diagram illustrating a configuration of a digital watermark embedding device according to the second embodiment. As shown in FIG. 19, the digital
図20は、埋め込み処理部240の構成を示すブロック図である。図20に示すように、埋め込み処理部240は、文章ファイルを構成する文章から行を検出する区間検出部241と、検出された行に情報を埋め込んだ場合の文章の1文字目から該行末までの総文字数を情報記憶部230に記憶された埋め込み規則情報に従って演算する文字数演算部242と、文字数演算部242の結果に一致するように文章の1文字目から上記行末までの総文字数を増減する文字数制御部243とから構成される。
FIG. 20 is a block diagram illustrating a configuration of the embedding
次に、電子透かし埋め込み装置200を用いた電子透かし埋め込み方法について説明する。図21は、電子透かし埋め込み装置200の動作手順を示すフローチャートである。
Next, a digital watermark embedding method using the digital
図21に示すように、文章ファイル入力部210に透かし情報の埋め込み対象であるオリジナル文章ファイル260を入力し(S201A)、透かし情報入力部220にn個の情報で構成される透かし情報270を入力する(S202A)。
As shown in FIG. 21, the
入力されたオリジナル文章ファイル260のデータと透かし情報270は埋め込み処理部240に渡される。埋め込み処理部240は下記手順を繰り返す。
The input
まず区間検出部241によって、オリジナル文章ファイル260のデータから、先頭行から数えた行番号が最も若くまだ処理されていない一行を検出する(S203A)。
First, the
次に、文字数演算部242によって、検出された行に情報を埋め込んだ場合の文章の1文字目から該行末までの総文字数を埋め込み規則情報280に従って演算する(S204A)。
Next, the character
そして文字数制御部243によって、文字数演算部242の演算結果に一致するように文章の1文字目から該行末までの総文字数を増減することで該演算結果に対応する情報を埋め込み(S205A)、オリジナル文章ファイル260のデータを更新する(S206A)。
The character
上記手順の繰り返しは、区間検出部241において新しい行が検出されなくなった時点で終了する(S207A)。 The repetition of the above procedure ends when no new line is detected in the section detection unit 241 (S207A).
上記手順により更新されたオリジナル文章ファイル260のデータは、出力部250から、透かし情報270が埋め込まれた文章ファイル261として出力される(S208A)。
The data of the
以下、具体的なデータを用いて電子透かし埋め込み装置200の動作を詳細に説明する。
Hereinafter, the operation of the digital
図22の埋め込み規則情報281は、情報記憶部230に記憶されている埋め込み規則情報280の一例であり、文章の一文字目から各行末までの総文字数の増減量と埋め込まれる情報の対応関係を示す。
The embedding rule information 281 in FIG. 22 is an example of embedding
図4のオリジナル文章ファイル162を文章ファイル入力部210から入力し、図5の透かし情報171を透かし情報入力部220から入力する。1行目162−1は36文字である。2行目162−4は37文字である。3行目162−3は37文字である。4行目162−4は10文字である。
The
入力されたオリジナル文章ファイル162のデータと透かし情報171は埋め込み処理部240に渡される。埋め込み処理部240は、下記の手順により、オリジナル文章ファイル162のデータに透かし情報171に対応する情報を埋め込む。
The input
図5の透かし情報171の1ビット目のビット0に対応する情報を1行目162−1に埋め込む手順は以下の通りである。まず区間検出部241によって、図4のオリジナル文章ファイル162のデータから1行目162−1を検出する。
The procedure for embedding information corresponding to bit 0 of the first bit of
次に、文字数演算部242によって、ビット0に対応する文章の1文字目から1行末までの総文字数を、埋め込み規則情報281に従って演算する。まず、埋め込み規則情報281の規則1と規則4から、1行目162−1にビット0に対応する情報を埋め込んだ場合の該文字数は、埋め込み前の文章の1文字目から1行目162−1の行末までの総文字数から1文字以上減少することを読み取る。次に、埋め込み前の文章の1文字目から1行目162−1の行末までの総文字数をカウント演算し、36であることを演算する。次に、埋め込み前の1行目162−1の行末までの総文字数が36から1文字減少した時点で行末の文字が“ィ”になり、埋め込み規則情報281の規則5から、1行末までの総文字数は34となることを演算する。
Next, the total number of characters from the first character of the sentence corresponding to bit 0 to the end of the first line is calculated by the character
次に、文字数制御部243によって、演算結果を元に、文章の1文字目から1行目162−1の行末までの総文字数が34になるように1行目162−1の行末から1文字目のところで改行を行う。以上の処理を行った上で、オリジナル文章ファイル162のデータを更新する。図23に、1行目にビット0に対応する情報を埋め込んだ文章ファイル162dを示す。
Next, one character from the end of the first line 162-1 is set by the character
透かし情報171の2ビット目のビット1に対応する情報を2行目162−2埋め込む手順は以下の通りである。まず区間検出部241によって、図23の文章ファイル162dのデータから1行目と162d−1と2行目162d−2を検出する。
The procedure for embedding information corresponding to bit 1 of the second bit of
次に、文字数演算部242によって、ビット1に対応する文章の1文字目から2行末までの総文字数を、埋め込み規則情報281に従って演算する。まず、埋め込み規則情報281の規則2から、2行目にビット1に対応する情報を埋め込んだ場合の該文字数は、埋め込み前の文章の1文字目から1行目162d−2の行末までの総文字数から1文字以上増加することを読み取る。次に、埋め込み前の文章の1文字目から2行目162d−2の行末までの総文字数をカウント演算し、73であることを演算する。このカウント演算の際に、埋め込み規則情報281の規則5が適用されるのは、情報を埋め込む対象となる行のみである。つまり、1行目162d−1の行末の文字は“ィ”であるが、文字数としてカウント演算される。これは、規則情報281の規則5の適用を減らし、カウント演算を高速に行うためである。ただし、埋め込み規則情報281の規則5を、情報を埋め込む対象となる行以外の行に適用し、文字数をカウント演算しても良い。
Next, the character
次に、文字数制御部243によって、演算結果を元に、文章の1文字目から2行目162d−2の行末までの総文字数が74以上になるように2行目162d−2の文字数を1文字増やす。つまり、162dの3行目162d−3の行頭から1文字を、2行目162d−2の行末に繰り上げる。以上の処理を行った上で、文章ファイル162dのデータを更新する。図24に、1行目にビット0、2行目にビット1に対応する情報を埋め込んだ文章ファイル162eを示す。
Next, the character
透かし情報171の3ビット目の0に対応する情報を埋め込む手順は以下の通りである。まず区間検出部141によって、図24の文章ファイル162eのデータから3行目162e−3を検出する。
The procedure for embedding information corresponding to 0 of the third bit of the
次に、文字数演算部142によって、ビット0に対応する情報を埋め込んだ場合の文章の1文字目から3行目162e−3の行末までの総文字数を、埋め込み規則情報281に従って演算する。まず、埋め込み規則情報281の規則1と規則5から、3行目にビット0に対応する情報を埋め込んだ場合の該文字数は、埋め込み前の文章の一文字目から3行目162e−2の行末までの総文字数から1文字以上減少することを読み取る。次に、埋め込み前の文章の1文字目から3行目162e−3の行末までの総文字数をカウント演算し、109であることを演算する。このとき、埋め込み前の3行末の文字は“ター”であり、埋め込み規則情報281の規則5から、“ー”は埋め込み前の文字数にカウント演算されていない。また、このカウント演算の際に、埋め込み規則情報281の規則5が適用されるのは、情報を埋め込む対象となる行のみである。つまり、1行目162e−1の行末の文字は“ィ”であるが、文字数としてカウント演算される。これは、規則情報281の規則5の適用を減らし、カウント演算を高速に行うためである。ただし、埋め込み規則情報281の規則5が、情報を埋め込む対象となる行以外の行に適用し、文字数をカウント演算しても良い。次に、ビット0に対応する情報を埋め込むために、“ター”の2文字を4行目162e−4に移動する処理を行うことで1文字減少させると、3行目行末の文字は“ォー”になり、埋め込み規則情報281の規則5から、その時点で3行目行末までの総文字数は106となる。
Next, the number-of-
次に、文字数制御部243によって、演算結果を元に、文章の1文字目から3行目162e−3の行末までの総文字数が106になるように3行目162e−3の文字数を3文字減らす。つまり、162dの3行目162d−3の行末から3文字のところで改行を行う。以上の処理を行った上で、文章ファイル162eのデータを更新する。図25に、1行目にビット0、2行目にビット1、3行目の162f−3にビット0に対応する情報を埋め込んだ文章ファイル162fを示す。
Next, the number-of-
以上で透かし情報171が全て埋め込まれた。以降の行は何も情報が埋め込まれないように処理する。まず区間検出部241によって、図25の文章ファイル162fのデータから4行目162f−4を検出する。
All the
次に、文字数演算部242によって、何も情報を埋め込まない場合の文章の1文字目から4行目の行末までの総文字数を、埋め込み規則情報281に従って演算する。まず、埋め込み規則情報281の規則3から、埋め込み前の文章の一文字目から4行目162e−4の行末までの総文字数の増減量±0であることを読み取る。次に、埋め込み前の文章の1文字目から3行目162e−3の行末までの総文字数をカウント演算し、119であることを演算する。このとき、埋め込み前の4行末の文字は“。”であり、埋め込み規則情報281の規則5から、“。”は埋め込み前の文字数にカウント演算されていない。また、このカウント演算の際に、埋め込み規則情報281の規則5が適用されるのは、情報を埋め込む対象となる行のみである。つまり、1行目162e−1の行末の文字は“ィ”であるが、文字数としてカウント演算される。埋め込み規則情報281の規則5が、情報を埋め込む対象となる行以外の行に適用し、文字数をカウント演算しても良い。
Next, the number-of-
次に、文字数制御部243によって、文章の1文字目から4行目162f−4の行末までの総文字数が119になるように文字数を増減する。埋め込み前の文字数が119であるため、4行目162f−4の文字数は変化しない。また、文章ファイル162fも変化しない。
Next, the character
また、埋め込み前の文章の一文字目から4行目162e−4の行末までの総文字数の増減量±0であることを読み取った時点で、それ以降の演算を省いても良い。演算を省くことで、処理速度が向上する。
Further, when it is read that the amount of increase / decrease of the total number of characters from the first character of the sentence before embedding to the end of the
上記手順により生成された文章ファイル162fのデータは、出力部250から、透かし情報171が埋め込まれた文章ファイルとして出力される。
Data of the
以上の説明で用いたように、本実施形態に係る電子透かし埋め込み装置は、第一の実施形態に係る電子透かし埋め込み装置と等しいオリジナル文章ファイル、透かし情報を扱える。 As used in the above description, the digital watermark embedding device according to the present embodiment can handle the same original text file and watermark information as the digital watermark embedding device according to the first embodiment.
また、以上の説明において用いた埋め込み規則情報281は一例であり、本実施形態による電子透かしの埋め込みは、要旨を逸脱しない範囲で任意の埋め込み規則情報を用いることができる。 The embedding rule information 281 used in the above description is an example, and any embedding rule information can be used for embedding the digital watermark according to the present embodiment without departing from the gist.
例えば、埋め込み規則情報は、一行に含まれる文字数は英単語や数値の途中で改行が生じる文字数にしてはならないといった、文字数の調整に関する制約規則を含んでも良い。 For example, the embedding rule information may include a restriction rule relating to the adjustment of the number of characters such that the number of characters included in one line should not be the number of characters that cause a line break in the middle of an English word or a numerical value.
また、埋め込み規則情報は、文章の一文字目から各行末までの総文字数の増減量と複数の情報列の対応関係を含んでも良く、図26の埋め込み規則情報282を用いると、各行に最大2ビットの情報を埋め込むことができる。よって、本実施形態に係る埋め込み装置は、各行に複数の情報を電子透かしとして埋め込むことができる。 In addition, the embedding rule information may include the correspondence between the increase / decrease amount of the total number of characters from the first character of the sentence to the end of each line and a plurality of information strings, and if embedding rule information 282 in FIG. Can be embedded. Therefore, the embedding device according to the present embodiment can embed a plurality of information as digital watermarks in each row.
[電子透かし読み出し装置]
図27は、第二の実施形態における電子透かし読み出し装置の構成を示すブロック図である。図27に示すように、本実施形態による電子透かし読み出し装置201は、透かし情報が埋め込まれていないオリジナル文章ファイルと透かし情報が埋め込まれた文章ファイルを入力する文章ファイル入力部211、文章の一文字目から各行末までの総文字数の増減量と埋め込まれる情報の対応関係を読み出し規則情報として記憶する情報記憶部230、電子透かし読み出し処理を行う読み出し処理部290及び透かし情報を出力する出力部251とから構成される。
[Digital watermark reading device]
FIG. 27 is a block diagram illustrating a configuration of a digital watermark reading apparatus according to the second embodiment. As shown in FIG. 27, the digital
図28は、読み出し処理部290の構成を示すブロック図である。図28に示すように、読み出し処理部290は、文章ファイルを構成する文章から行を検出する区間検出部291と、オリジナル文章ファイルと透かし情報が埋め込まれた文章ファイルの文章の1文字目から検出された行末までの総文字数の差を求める文字数演算部292と、情報記憶部230に記憶された読み出し規則情報を参照し、文字数演算部292の結果に対応する情報を読み出す情報読み出し部293とから構成される。
FIG. 28 is a block diagram illustrating a configuration of the
次に、電子透かし読み出し装置201を用いた電子透かし読み出し方法について説明する。図29は、電子透かし読み出し装置201の動作手順を示すフローチャートである。
Next, a digital watermark reading method using the digital
図29に示すように、文章ファイル入力部211にオリジナル文章ファイル260を入力(S201B)し、同様に透かし情報が埋め込まれた文章ファイル261を入力する(S202B)。
As shown in FIG. 29, an
入力されたオリジナル文章ファイル260のデータと文章ファイル261のデータは読み出し処理部290に渡される。読み出し処理部290は下記手順を繰り返す。
The input data of the
まず区間検出部291によって、オリジナル文章ファイル260のデータから、先頭行から数えた行番号が最も若くまだ処理されていない一行を検出し、文章ファイル261のデータから、オリジナル文章ファイル260のデータから検出した行に対応する行を検出する(S203B)。
First, the
次に、文字数演算部292によって、文章ファイル261の文章の1文字目から検出された行末までの総文字数とオリジナル文章ファイル260の文章の1文字目から検出された行末までの総文字数の差(前者から後者を引いた値)を求める(S204B)。
Next, the difference between the total number of characters from the first character of the sentence of the
そして情報読み出し部293によって、情報記憶部230に記憶された読み出し規則情報280を参照し、文字数演算部292の演算結果に対応する情報を読み出す(S205B)。読み出した情報は、情報記憶部230に一時的に記憶する(S206B)。
Then, the
上記手順の繰り返しは、区間検出部291において新しい行が検出されなくなった時点で終了する(S207B)。 The repetition of the above procedure ends when no new row is detected in the section detection unit 291 (S207B).
上記手順により読み出し、情報記憶部230に一時的に記憶した情報は、出力部251から、透かし情報270として出力される(S208B)。
The information read out by the above procedure and temporarily stored in the
以下、具体的なデータを用いて電子透かし読み出し装置201の動作を詳細に説明する。
Hereinafter, the operation of the digital
図4のオリジナル文章ファイル162と図25の透かし情報が埋め込まれた文章ファイル162fを文章ファイル入力部211から入力する。
The
入力された文章ファイル162のデータと文章ファイル162fのデータは読み出し処理部290に渡される。読み出し処理部290は、下記の手順により、文章ファイル162fのデータから透かし情報を読み出す。
The input data of the
透かし情報の1ビット目を読み出す手順は以下の通りである。まず区間検出部291によって、オリジナル文章ファイル162のデータから1行目を検出し、文章ファイル162fのデータから1行目を検出する。
The procedure for reading the first bit of the watermark information is as follows. First, the
次に、文字数演算部292によって、文章ファイル162fの文章の1文字目から1行末までの総文字数とオリジナル文章ファイル162の文章の1文字目から1行末までの総文字数の差(前者から後者を引いた値)を求める。この場合の該文字数差(増減量)は−2である。
Next, the number-of-
そして情報読み出し部293によって、情報記憶部230に記憶された図22の読み出し規則情報281を参照し、増減量−2に対応するビット0を読み出す。読み出したビット0は情報記憶部230に一時的に記憶する。
Then, the
透かし情報の2ビット目を読み出す手順は以下の通りである。まず区間検出部291によって、オリジナル文章ファイル162のデータから2行目を検出し、文章ファイル162fのデータから2行目を検出する。
The procedure for reading the second bit of the watermark information is as follows. First, the
次に、文字数演算部292によって、文章ファイル162fの文章の1文字目から2行末までの総文字数とオリジナル文章ファイル162の文章の1文字目から2行末までの総文字数の差(前者から後者を引いた値)を求める。この場合の該文字数差(増減量)は+1である。
Next, the number-of-
そして情報読み出し部293によって、情報記憶部230に記憶された図22の読み出し規則情報281を参照し、増減量+1に対応するビット1を読み出す。読み出したビット1は情報記憶部230に一時的に記憶する。
Then, the
透かし情報の3ビット目を読み出す手順は以下の通りである。まず区間検出部291によって、オリジナル文章ファイル162のデータから3行目を検出し、文章ファイル162fのデータから3行目を検出する。
The procedure for reading the third bit of the watermark information is as follows. First, the
次に、文字数演算部292によって、文章ファイル162fの文章の1文字目から3行末までの総文字数とオリジナル文章ファイル162の文章の1文字目から3行末までの総文字数の差(前者から後者を引いた値)を求める。この場合の該文字数差(増減量)は−3である。
Next, the number-of-
そして情報読み出し部293によって、情報記憶部230に記憶された図22の読み出し規則情報281を参照し、増減量−3に対応するビット0を読み出す。読み出したビット0は情報記憶部230に一時的に記憶する。
Then, the information read
透かし情報の4ビット目を読み出す手順は以下の通りである。まず区間検出部291によって、オリジナル文章ファイル162のデータから4行目を検出し、文章ファイル162fのデータから4行目を検出する。
The procedure for reading the fourth bit of the watermark information is as follows. First, the
次に、文字数演算部292によって、文章ファイル162fの文章の1文字目から4行末までの総文字数とオリジナル文章ファイル162の文章の1文字目から4行末までの総文字数の差(前者から後者を引いた値)を求める。この場合の該文字数差(増減量)は0である。
Next, the number-of-
そして情報読み出し部293によって、情報記憶部230に記憶された図22の読み出し規則情報281を参照し、何も情報が埋め込まれていないことを意味するNULLを読み出す。
以上で文章ファイル162fの全ての行に対する読み出し処理を終了する。
Then, the
This completes the reading process for all the lines of the
上記手順により読み出し、情報記憶部230に一時的に記憶した情報は、出力部251から、図30の透かし情報271として出力される。
Information read by the above procedure and temporarily stored in the
読み出した透かし情報271は、本実施形態における電子透かし埋め込み装置によって162fに埋め込まれた透かし情報171に等しい。このように、本実施形態における電子透かし読み出し装置は、本実施形態における電子透かし埋め込み装置で文章ファイルに埋め込んだ透かし情報を読み出すことができる。
The read
また、第一の実施形態に係る埋め込み装置によって文章ファイルに埋め込まれた電子透かしと同様に、本実施形態に係る埋め込み装置によって文章ファイルに埋め込まれた電子透かしは、その文章ファイルを印刷し、スキャナで読み取った後に細線化・太線化・歪曲等の画像処理を適用しても除去されない。そのため上記画像処理を施してコピーされた文書からも、埋め込まれた電子透かしの読み出しが可能である。 Similarly to the digital watermark embedded in the text file by the embedding device according to the first embodiment, the digital watermark embedded in the text file by the embedding device according to the present embodiment prints the text file, and the scanner Even if image processing such as thinning, thickening, distortion, etc. is applied after reading with, it is not removed. Therefore, it is possible to read the embedded digital watermark from a document copied by performing the image processing.
100、200 電子透かし埋め込み装置
101、201 電子透かし読み出し装置
110、111、210、211 文章ファイル入力部
120、220 透かし情報入力部
130、230 情報記憶部
140、240 埋め込み処理部
141、191、241、291 区間検出部
142、192、242、292 文字数演算部
143、243 文字数制御部
150、151、250、251 出力部
160、162、260 オリジナル文章ファイル
161、162a、162b、162c、162d、162e、162f、162g、162h、162i、162j、261 透かし埋め込み文章ファイル
170、171、172、270、271 透かし情報
180、181、182、280、281、282 埋め込み(読み出し)規則
190、290 読み出し処理部
193、293 情報読み出し部
100, 200 Digital
Claims (10)
前記文章ファイルを入力する文章ファイル入力部と、
前記文章ファイルに埋め込む前記透かし情報を入力する透かし情報入力部と、
前記透かし情報に対応するコードを記憶する情報記憶部と、
前記文章ファイルから前記コードを埋め込む区間を検出する区間検出部と、前記コードに基づき、前記区間の文字数の増減数を算出する文字数演算部と、前記算出された前記文字数の増減数に基づき、前記区間の文字数を増減させる文字数制御部とを有し、前記文章ファイルに前記コードを埋め込む透かし情報埋め込み処理部と
を備えることを特徴とする電子透かし埋め込み装置。 An electronic watermark embedding device for embedding watermark information in a text file composed of a plurality of lines,
A text file input unit for inputting the text file;
A watermark information input unit for inputting the watermark information to be embedded in the sentence file;
An information storage unit for storing a code corresponding to the watermark information;
Based on the section detection unit for detecting the section in which the code is embedded from the sentence file, the number of characters calculation unit for calculating the number of increase / decrease in the number of characters in the section based on the code, and based on the calculated number of increase / decrease in the number of characters An electronic watermark embedding device, comprising: a character number control unit that increases or decreases the number of characters in a section, and a watermark information embedding processing unit that embeds the code in the sentence file.
前記透かし情報がコードに変換され、コードとして埋め込まれた透かし情報文章ファイルを入力する文章ファイル入力部と、
前記透かし情報に対応するコードを記憶する情報記憶部と、
前記透かし情報文章ファイルに埋め込まれた電子透かし情報を読み出す情報読み出し処理部とを有し、
前記情報読み出し処理部は、
前記透かし情報文章ファイルから前記コードを読み出す読み出し区間を検出する区間検出部と、
検出された前記読み出し区間の文字数を数える文字数演算部と、
前記読み出し区間の前記文字数に対応する前記コードを特定し、前記透かし情報を読み出す情報読み出し部とを有することを特徴とする電子透かし読み出し装置。 An electronic watermark reading device for reading watermark information embedded in a text file composed of a plurality of lines,
A text file input unit for converting the watermark information into a code and inputting a watermark information text file embedded as a code;
An information storage unit for storing a code corresponding to the watermark information;
An information readout processing unit for reading out the digital watermark information embedded in the watermark information sentence file,
The information readout processing unit
A section detecting unit for detecting a reading section for reading the code from the watermark information sentence file;
A number-of-characters calculation unit that counts the number of characters in the read section detected;
An electronic watermark reading apparatus comprising: an information reading unit that identifies the code corresponding to the number of characters in the reading section and reads the watermark information.
前記透かし情報がコードに変換されコードとして埋め込まれた透かし情報文章ファイルと、前記透かし情報が埋め込まれていないオリジナル文章ファイルとを入力する文章ファイル入力部と、
前記透かし情報に対応するコードを記憶する情報記憶部と、
前記透かし情報文章ファイルに埋め込まれた電子透かし情報を読み出す情報読み出し処理部とを有し、
前記情報読み出し処理部は、
前記透かし情報文章ファイルから前記コードを読み出す読み出し区間を検出する区間検出部と、
前記オリジナル文章ファイルから前記読み出し区間に対応する対応区間を検出する対応区間検出部と、
検出された前記読み出し区間と前記対応区間との文字数を数える文字数演算部と、
前記読み出し区間と前記対応区間との前記文字数の差に対応する前記コードを特定し、前記透かし情報を読み出す情報読み出し部とを有することを特徴とする電子透かし読み出し装置。 An electronic watermark reading device for reading watermark information embedded in a text file composed of a plurality of lines,
A text file input unit for inputting a watermark information text file in which the watermark information is converted into a code and embedded as a code; and an original text file in which the watermark information is not embedded;
An information storage unit for storing a code corresponding to the watermark information;
An information readout processing unit for reading out the digital watermark information embedded in the watermark information sentence file,
The information readout processing unit
A section detecting unit for detecting a reading section for reading the code from the watermark information sentence file;
A corresponding section detecting unit for detecting a corresponding section corresponding to the read section from the original sentence file;
A number-of-characters calculation unit that counts the number of characters in the read section and the corresponding section detected;
An electronic watermark reading apparatus comprising: an information reading unit that identifies the code corresponding to the difference in the number of characters between the reading section and the corresponding section and reads the watermark information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010262636A JP2012114725A (en) | 2010-11-25 | 2010-11-25 | Digital watermark embedding apparatus and digital watermark reading apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010262636A JP2012114725A (en) | 2010-11-25 | 2010-11-25 | Digital watermark embedding apparatus and digital watermark reading apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2012114725A true JP2012114725A (en) | 2012-06-14 |
Family
ID=46498437
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010262636A Pending JP2012114725A (en) | 2010-11-25 | 2010-11-25 | Digital watermark embedding apparatus and digital watermark reading apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2012114725A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103778590A (en) * | 2012-10-24 | 2014-05-07 | 航天信息股份有限公司 | Method and device for utilizing digital image to store and transmit information |
-
2010
- 2010-11-25 JP JP2010262636A patent/JP2012114725A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103778590A (en) * | 2012-10-24 | 2014-05-07 | 航天信息股份有限公司 | Method and device for utilizing digital image to store and transmit information |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5015540B2 (en) | Digital watermark embedding device and detection device | |
JP5669957B2 (en) | Watermark image segmentation method and apparatus for Western language watermark processing | |
EP1667422A1 (en) | Printed matter processing system, watermark-containing document printing device, watermark-containing document read device, printed matter processing method, information read device, and information read method | |
US8077910B2 (en) | Digital watermark embedding and detection | |
AU2009226211B2 (en) | Method and system for embedding covert data in a text document using space encoding | |
US20150228045A1 (en) | Methods for embedding and extracting a watermark in a text document and devices thereof | |
US8014559B2 (en) | Information embedding apparatus, information embedding method, information extracting apparatus, information extracting method, computer program product | |
US11580200B2 (en) | Code identification | |
CN110570390B (en) | Image detection method and device | |
JP2004180277A5 (en) | ||
US8416464B2 (en) | Document processing apparatus and document processing method | |
CN113076961B (en) | Image feature library updating method, image detection method and device | |
CN113918895A (en) | Method for tracing text document source | |
JP2012114725A (en) | Digital watermark embedding apparatus and digital watermark reading apparatus | |
CN109800547B (en) | Method for quickly embedding and extracting information for WORD document protection and distribution tracking | |
CN111382398B (en) | Method, device and equipment for information processing, hidden information analysis and embedding | |
JP3896676B2 (en) | Electronic document management apparatus and method | |
JP4928998B2 (en) | Image forming apparatus and image forming method | |
CN104424619B (en) | Information processing equipment and information processing method | |
Kozachok et al. | Estimation of Watermark Embedding Capacity with Line Space Shifting | |
CN110378829B (en) | Method, device and equipment for providing information and extracting watermark | |
Xia et al. | Print-scan resilient watermarking for the Chinese text image | |
JP4625406B2 (en) | Information embedding device, information extracting device, information embedding method, information extracting method, information embedding program, information extracting program, and information storage medium | |
Cheng et al. | Research on polymorphism in digital text watermarking | |
Eid et al. | Tamper proofing text watermarking shift algorithm for copyright protection |