JP2012114725A - Digital watermark embedding apparatus and digital watermark reading apparatus - Google Patents

Digital watermark embedding apparatus and digital watermark reading apparatus Download PDF

Info

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
Application number
JP2010262636A
Other languages
Japanese (ja)
Inventor
Ryohei Kamiya
亮平 神谷
Masayuki Suda
正之 須田
Koichi Moriya
宏一 守屋
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.)
Seiko Instruments Inc
Original Assignee
Seiko Instruments Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Instruments Inc filed Critical Seiko Instruments Inc
Priority to JP2010262636A priority Critical patent/JP2012114725A/en
Publication of JP2012114725A publication Critical patent/JP2012114725A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an embedding apparatus allowing information, which cannot be removed even by applying image processing after reading a printed document by a scanner, to be embedded as a digital watermark at high speed; and a reading apparatus allowing the digital watermark embedded by the embedding apparatus to be read at high speed.SOLUTION: The embedding apparatus includes a sentence file input part for inputting a sentence file; a watermark information input part for inputting watermark information to be embedded in the sentence file; an information storage part for storing a code corresponding to the watermark information; a section detection part for detecting a section for embedding the code from the sentence file; a character number operation part for calculating a number of increase/decrease in a number of characters in the section on the basis of the code; and a character number control part for increasing/decreasing the number of characters in the section on the basis of the calculated number of increase/decrease in the number of characters. The embedding apparatus further includes a watermark information embedding processing part for embedding the code in the sentence file.

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 Patent Document 1, or a method of embedding by controlling a character interval according to Patent Document 2 There are embedding devices and reading devices for embedding those digital watermarks. The digital watermark embedded in the text file by these embedding devices remains in the printed document after the text file is printed, and can be read out by the reading device. Therefore, by embedding the user's identification code in the text file as a digital watermark at the time of printing, the identification code can be confirmed when an illegally distributed document is found, and the responsibility can be clarified. As a result, thorough document management and information leakage can be suppressed. However, the electronic watermark embedded in the printed document by the embedding device described in the cited document 1 or 2 is obtained by performing image processing such as thinning, thickening, distortion, etc. after reading the printed document with a scanner. It can be easily removed while maintaining the appearance. For this reason, the identification code embedded at the time of printing cannot be read out from a document copied by performing the above image processing, and it is often impossible to clarify the location of responsibility at the time of information leakage.

そこで、特許文献3のように、行末の文字単位を構成する行末文字群と改行位置との位置関係を変化させることで、電子透かしを埋め込む方法を用いて、印刷文書をスキャナで読み取った後に上記画像処理を適用しても除去できない情報を電子透かしとして埋め込む埋め込み装置、読み出し装置がある。   Therefore, as described in Patent Document 3, by changing the positional relationship between the end-of-line character group constituting the end-of-line character unit and the line feed position, the above-described method is used after the printed document is read by a scanner using a method of embedding a digital watermark. There are embedding devices and reading devices that embed information that cannot be removed by applying image processing as a digital watermark.

特許第4510092号公報Japanese Patent No. 4510092 特許第3884997号公報Japanese Patent No. 3884997 特開2002−26074号公報JP 2002-26074 A

しかし、引用文献3に開示された、行末文字群と改行位置との位置関係を変化させる埋め込み装置または読み出し装置は、行末文字群の形態素を解析するための形態素辞書や、形態素解析処理が必要であり、処理量が大きいために埋め込みまたは読み込み処理速度が遅くなるという問題があった。   However, the embedding device or reading device disclosed in Citation 3 that changes the positional relationship between the end-of-line character group and the line feed position requires a morpheme dictionary or a morpheme analysis process for analyzing the morpheme of the end-of-line character group. In addition, there is a problem that the processing speed of embedding or reading becomes slow due to a large processing amount.

そこで、本発明は上記従来技術の有する問題点に鑑みてなされたものであり、印刷文書をスキャナで読み取った後に上記画像処理を適用しても除去できない情報を電子透かしとして高速に埋め込み可能な電子透かし埋め込み装置、及び埋め込まれた電子透かしを高速に読み出す電子透かし読み出し装置を提供することを目的とする。   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.

第一の実施形態による電子透かし埋め込み装置の構成を示すブロック図である。It is a block diagram which shows the structure of the digital watermark embedding apparatus by 1st embodiment. 第一の実施形態による電子透かし埋め込み装置の埋め込み処理部の構成を示すブロック図である。It is a block diagram which shows the structure of the embedding process part of the digital watermark embedding apparatus by 1st embodiment. 第一の実施形態による電子透かし埋め込み装置の動作手順を示すフローチャートである。It is a flowchart which shows the operation | movement procedure of the digital watermark embedding apparatus by 1st embodiment. 電子透かし埋め込み対象のオリジナル文章ファイルの例を示す図である。It is a figure which shows the example of the original text file of electronic watermark embedding object. 電子透かしとして文章ファイルに埋め込む透かし情報の例を示す図である。It is a figure which shows the example of the watermark information embedded in a text file as a digital watermark. 第一の実施形態による電子透かし埋め込み装置・読み出し装置で用いる、一行の文字数と埋め込まれた情報の関係及び文字の数え方等の規則例を示す図である。It is a figure which shows the example of rules, such as the relationship between the number of characters of one line and embedded information, and how to count characters, used in the digital watermark embedding device / reading device according to the first embodiment. 第一の実施形態による電子透かし埋め込み装置により透かし情報を埋め込んだ文章ファイルの例を示す図である。It is a figure which shows the example of the text file which embedded the watermark information by the digital watermark embedding apparatus by 1st embodiment. 第一の実施形態による電子透かし埋め込み装置により透かし情報を埋め込んだ文章ファイルの例を示す図である。It is a figure which shows the example of the text file which embedded the watermark information by the digital watermark embedding apparatus by 1st embodiment. 第一の実施形態による電子透かし埋め込み装置により透かし情報を埋め込んだ文章ファイルの例を示す図である。It is a figure which shows the example of the text file which embedded the watermark information by the digital watermark embedding apparatus by 1st embodiment. 第一の実施形態による電子透かし埋め込み装置・読み出し装置で用いる、一行の文字数と埋め込まれた情報の関係及び文字の数え方等の規則例を示す図である。It is a figure which shows the example of rules, such as the relationship between the number of characters of one line and embedded information, and how to count characters, used in the digital watermark embedding device / reading device according to the first embodiment. 第一の実施形態による電子透かし読み出し装置の構成を示すブロック図である。It is a block diagram which shows the structure of the electronic watermark reading apparatus by 1st embodiment. 第一の実施形態による電子透かし読み出し装置の読み出し処理部の構成を示すブロック図である。It is a block diagram which shows the structure of the read-out process part of the digital watermark read-out apparatus by 1st embodiment. 第一の実施形態による電子透かし読み出し装置の動作手順を示すフローチャートである。It is a flowchart which shows the operation | movement procedure of the electronic watermark reading apparatus by 1st embodiment. 第一の実施形態による電子透かし読み出し装置により文章ファイルから読み出した透かし情報の例を示す図である。It is a figure which shows the example of the watermark information read from the text file by the digital watermark reading apparatus by 1st embodiment. 第一の実施形態による電子透かし埋め込み装置により透かし情報を埋め込んだ文章ファイルを印刷し、スキャナで読み取った画像の例を示す図である。It is a figure which shows the example of the image which printed the text file which embedded the watermark information with the digital watermark embedding apparatus by 1st embodiment, and was read with the scanner. 第一の実施形態による電子透かし埋め込み装置により透かし情報を埋め込んだ文章ファイルを印刷し、スキャナで読み取って細線化処理を施した画像の例を示す図である。It is a figure which shows the example of the image which printed the text file which embedded watermark information with the digital watermark embedding apparatus by 1st embodiment, read with the scanner, and performed the thinning process. 第一の実施形態による電子透かし埋め込み装置により透かし情報を埋め込んだ文章ファイルを印刷し、スキャナで読み取って太線化処理を施した画像の例を示す図である。It is a figure which shows the example of the image which printed the text file which embedded watermark information with the digital watermark embedding apparatus by 1st embodiment, read with the scanner, and performed the thick line process. 第一の実施形態による電子透かし埋め込み装置により透かし情報を埋め込んだ文章ファイルを印刷し、スキャナで読み取って歪曲処理を施した画像の例を示す図である。It is a figure which shows the example of the image which printed the text file which embedded the watermark information by the digital watermark embedding apparatus by 1st embodiment, read with the scanner, and performed the distortion process. 第二の実施形態による電子透かし埋め込み装置の構成を示すブロック図である。It is a block diagram which shows the structure of the digital watermark embedding apparatus by 2nd embodiment. 第二の実施形態による電子透かし埋め込み装置の埋め込み処理部の構成を示すブロック図である。It is a block diagram which shows the structure of the embedding process part of the digital watermark embedding apparatus by 2nd embodiment. 第二の実施形態による電子透かし埋め込み装置の動作手順を示すフローチャートである。It is a flowchart which shows the operation | movement procedure of the digital watermark embedding apparatus by 2nd embodiment. 第二の実施形態による電子透かし埋め込み装置・読み出し装置で用いる、文章の1文字目から行末までの総文字数と埋め込まれた情報の関係及び文字の数え方等の規則例を示す図である。It is a figure which shows the example of rules, such as the relationship between the total number of characters from the 1st character of a sentence to the end of a line, the embedded information, and the numbering method of characters used with the electronic watermark embedding apparatus and reading apparatus by 2nd embodiment. 第二の実施形態による電子透かし埋め込み装置により透かし情報を埋め込んだ文章ファイルの例を示す図である。It is a figure which shows the example of the text file which embedded the watermark information with the digital watermark embedding apparatus by 2nd embodiment. 第二の実施形態による電子透かし埋め込み装置により透かし情報を埋め込んだ文章ファイルの例を示す図である。It is a figure which shows the example of the text file which embedded the watermark information with the digital watermark embedding apparatus by 2nd embodiment. 第二の実施形態による電子透かし埋め込み装置により透かし情報を埋め込んだ文章ファイルの例を示す図である。It is a figure which shows the example of the text file which embedded the watermark information with the digital watermark embedding apparatus by 2nd embodiment. 第二の実施形態による電子透かし埋め込み装置・読み出し装置で用いる、文章の1文字目から行末までの総文字数と埋め込まれた情報の関係及び文字の数え方等の規則例を示す図である。It is a figure which shows the example of rules, such as the relationship between the total number of characters from the 1st character of a sentence to the end of a line, the embedded information, and the numbering method of characters used with the electronic watermark embedding apparatus and reading apparatus by 2nd embodiment. 第二の実施形態による電子透かし読み出し装置の構成を示すブロック図である。It is a block diagram which shows the structure of the electronic watermark reading apparatus by 2nd embodiment. 第二の実施形態による電子透かし読み出し装置の読み出し処理部の構成を示すブロック図である。It is a block diagram which shows the structure of the read-out process part of the digital watermark read-out apparatus by 2nd embodiment. 第二の実施形態による電子透かし読み出し装置の動作手順を示すフローチャートである。It is a flowchart which shows the operation | movement procedure of the electronic watermark reading apparatus by 2nd embodiment. 第二の実施形態による電子透かし読み出し装置により文章ファイルから読み出した透かし情報の例を示す図である。It is a figure which shows the example of the watermark information read from the text file by the digital watermark reading apparatus by 2nd embodiment.

以下、図面を参照して、本発明の一実施形態による電子透かし埋め込み装置及び電子透かし読み出し装置について説明する。   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 watermark embedding device 100 according to the present embodiment includes a text file input unit 110 that inputs a text file to be embedded with watermark information, a watermark information input unit 120 that inputs watermark information, and is included in one line. Information storage unit 130 that stores the correspondence between the number of characters to be embedded and information to be embedded as embedding rule information, an embedding processing unit 140 that performs digital watermark embedding processing, and an output unit 150 that outputs a text file in which watermark information is embedded. The

図2は、埋め込み処理部140の構成を示すブロック図である。図2に示すように、埋め込み処理部140は、文章ファイルを構成する文章から行を検出する区間検出部141と、検出された行に情報を埋め込んだ場合の該行の文字数を情報記憶部130に記憶された埋め込み規則情報に従って演算する文字数演算部142と、文字数演算部142の結果に一致するように上記行の文字数を増減する文字数制御部143とから構成される。   FIG. 2 is a block diagram illustrating a configuration of the embedding processing unit 140. As shown in FIG. 2, the embedding processing unit 140 includes a section detecting unit 141 that detects a line from a sentence constituting the sentence file, and an information storage unit 130 that indicates the number of characters in the line when information is embedded in the detected line. The number-of-characters calculation unit 142 that calculates according to the embedding rule information stored in the number of characters, and the number-of-characters control unit 143 that increases or decreases the number of characters in the row so as to match the result of the number-of-characters calculation unit 142.

次に、電子透かし埋め込み装置100を用いた電子透かし埋め込み方法について説明する。図3は、電子透かし埋め込み装置100の動作手順を示すフローチャートである。   Next, a digital watermark embedding method using the digital watermark embedding apparatus 100 will be described. FIG. 3 is a flowchart showing an operation procedure of the digital watermark embedding apparatus 100.

図3に示すように、文章ファイル入力部110に透かし情報の埋め込み対象であるオリジナル文章ファイル160を入力し(S101A)、透かし情報入力部120にn個の情報で構成される透かし情報170を入力する(S102A)。   As shown in FIG. 3, the original text file 160 to be embedded with the watermark information is input to the text file input section 110 (S101A), and the watermark information 170 composed of n pieces of information is input to the watermark information input section 120. (S102A).

入力されたオリジナル文章ファイル160のデータと透かし情報170は埋め込み処理部140に渡される。埋め込み処理部140は下記手順を繰り返す。   The input original text file 160 data and watermark information 170 are transferred to the embedding processing unit 140. The embedding processing unit 140 repeats the following procedure.

まず区間検出部141によって、オリジナル文章ファイル160のデータから、先頭行から数えた行番号が最も若くまだ処理されていない一行を検出する(S103A)。   First, the section detecting unit 141 detects one line that has the youngest line number counted from the first line and is not yet processed from the data of the original sentence file 160 (S103A).

次に、文字数演算部142によって、検出された行に情報を埋め込んだ場合の該行の文字数を埋め込み規則情報180に従って演算する(S104A)。   Next, the number-of-characters calculation unit 142 calculates the number of characters in the line when information is embedded in the detected line according to the embedding rule information 180 (S104A).

そして文字数制御部143によって、文字数演算部142の演算結果に一致するように該行の文字数を増減することで該演算結果に対応する情報を埋め込み(S105A)、オリジナル文章ファイル160のデータを更新する(S106A)。   Then, the number-of-characters control unit 143 embeds information corresponding to the calculation result by increasing or decreasing the number of characters in the line so as to match the calculation result of the character number calculation unit 142 (S105A), and updates the data of the original sentence file 160. (S106A).

上記手順の繰り返しは、区間検出部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 original text file 160 updated by the above procedure is output from the output unit 150 as a text file 161 in which the watermark information 170 is embedded (S108A).

以下、具体的なデータを用いて電子透かし埋め込み装置100の動作を詳細に説明する。   Hereinafter, the operation of the digital watermark embedding apparatus 100 will be described in detail using specific data.

図4のオリジナル文章ファイル162は、オリジナル文章ファイル160の一例である。文章の各行末には改行コードが含まれている。1行目162−1は36文字である。2行目162−2は37文字である。3行目162−3は行末の“ー”までは文字数に入れると37文字である。4行目162−4は行末の“。”までは文字数に入れると10文字である。   The original sentence file 162 in FIG. 4 is an example of the original sentence file 160. A line feed code is included at the end of each line of text. The first line 162-1 is 36 characters. The second line 162-2 is 37 characters. In the third line 162-3, up to "-" at the end of the line is 37 characters. The fourth line 162-4 is 10 characters in the number of characters up to “.” At the end of the line.

図5の透かし情報171は、透かし情報170の一例であり、2進数で表現された3桁のビットである。   The watermark information 171 in FIG. 5 is an example of the watermark information 170 and is a three-digit bit expressed in a binary number.

図6の埋め込み規則情報181は、情報記憶部130に記憶されている埋め込み規則情報180の一例であり、埋め込み処理後の一行の文字数と埋め込まれる情報との対応関係を示す。   The embedding rule information 181 in FIG. 6 is an example of embedding rule information 180 stored in the information storage unit 130, and indicates the correspondence between the number of characters in one line after embedding processing and the information to be embedded.

図4のオリジナル文章ファイル162を文章ファイル入力部110から入力し、図5の透かし情報171を透かし情報入力部120から入力する。   The original sentence file 162 of FIG. 4 is input from the sentence file input unit 110, and the watermark information 171 of FIG. 5 is input from the watermark information input unit 120.

入力されたオリジナル文章ファイル162のデータと透かし情報171は埋め込み処理部140に渡される。埋め込み処理部140は、下記の手順により、オリジナル文章ファイル162のデータに透かし情報171に対応する情報を埋め込む。   The input original text file 162 data and watermark information 171 are passed to the embedding processing unit 140. The embedding processing unit 140 embeds information corresponding to the watermark information 171 in the data of the original sentence file 162 by the following procedure.

図7に、図4のオリジナル文章ファイル162の1行目に、図5の1ビット目であるビット0に対応する情報を埋め込んだ文章ファイル162aを示す。透かし情報171のビット0に対応する情報を埋め込む手順は以下の通りである。   FIG. 7 shows a sentence file 162a in which information corresponding to bit 0 which is the first bit of FIG. 5 is embedded in the first line of the original sentence file 162 of FIG. The procedure for embedding information corresponding to bit 0 of the watermark information 171 is as follows.

まず区間検出部141によって、オリジナル文章ファイル162のデータから1行目162−1を検出する。   First, the section detection unit 141 detects the first line 162-1 from the data of the original sentence file 162.

次に、文字数演算部142によって、ビット0に対応する1行目の文字数を、埋め込み規則情報181に従って演算する。まず、埋め込み規則情報181の規則から、1行目のビット0に対応する文字数は36であることを読み取る。次に、埋め込み前の1行目162−1の文字数をカウント演算し、36であることを演算する。次に、ビット0に対応する文字数36と埋め込み前の文字数36との差を演算し、文字数の変化量0を得る。   Next, the number-of-characters computation unit 142 computes the number of characters in the first line corresponding to bit 0 according to the embedding rule information 181. First, it is read from the rule of the embedding rule information 181 that the number of characters corresponding to bit 0 in the first row is 36. Next, the number of characters in the first line 162-1 before embedding is counted and calculated to be 36. Next, the difference between the number of characters 36 corresponding to bit 0 and the number of characters 36 before embedding is calculated to obtain a change amount 0 of the number of characters.

次に、文字数制御部143によって、文字数の変化量0を元に、1行目162−1の文字数の変更処理を行う。文字数の変化量が0なので、文字数の変更処理は行わない。以上の処理を行った上で、オリジナル文章ファイル162のデータを更新し、文章ファイル162aを作成する。   Next, the number-of-characters control unit 143 performs a process of changing the number of characters in the first line 162-1 based on the amount of change 0 in the number of characters. Since the amount of change in the number of characters is 0, the character number changing process is not performed. After performing the above processing, the data of the original sentence file 162 is updated to create a sentence file 162a.

図8に、図7に引き続き、2行目に図5の2ビット目であるビット1に対応する情報を埋め込んだ文章ファイル162bを示す。透かし情報171の2ビット目の1に対応する情報を埋め込む手順は以下の通りである。   FIG. 8 shows a sentence file 162b in which information corresponding to bit 1 which is the second bit of FIG. 5 is embedded in the second line, following FIG. The procedure for embedding information corresponding to 1 of the second bit of the watermark information 171 is as follows.

まず区間検出部141によって、図7の文章ファイル162aのデータから2行目162a−2を検出する。   First, the section detection unit 141 detects the second line 162a-2 from the data of the text file 162a of FIG.

次に、文字数演算部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-characters computation unit 142 computes the number of characters in the second line corresponding to bit 1 according to the embedding rule information 181. First, it is read from the rule 2 of the embedding rule information 181 that the number of characters corresponding to bit 1 in the second row is 35. Next, the number of characters in the second line 162a-2 before embedding is counted and calculated to be 37. Next, the difference between the number of characters 35 corresponding to bit 1 and the number of characters 37 before embedding is calculated to obtain the amount of character change -2. Then, it is verified whether the number of characters in the second line 162b-2 can be reduced by two characters. First, the process of counting the number of characters by reducing the number of characters on the second line one by one is repeated, and the line feed position when the number of characters has decreased by two or more characters is obtained. When a line feed is made between the characters “out” and “se” at the position of −2 characters from the end of the line, the number of characters on the second line is 35. Therefore, it is possible to reduce two characters.

次に、文字数制御部143によって、文字数の変化量−2を元に、2行目162a−2の文字数の変更処理を行う。文字数の変化量が−2なので、2行目162a−2の行末から−2文字の位置である文字“出”と文字“せ”の間で改行を行う。以上の処理を行った上で、文章ファイル162aのデータを更新し、文章ファイル162bを作成する。   Next, the number-of-characters control unit 143 performs a process of changing the number of characters in the second line 162a-2 based on the amount-of-character change-2. Since the change amount of the number of characters is −2, a line feed is performed between the character “out” and the character “se” at the position of −2 characters from the end of the second line 162a-2. After performing the above processing, the data of the text file 162a is updated to create the text file 162b.

図9に、図8に引き続き、3行目に図5の3ビット目であるビット0に対応する情報を埋め込んだ文章ファイル162cを示す。透かし情報171の3ビット目の0に対応する情報を埋め込む手順は以下の通りである。   FIG. 9 shows a text file 162c in which information corresponding to bit 0, which is the third bit in FIG. 5, is embedded in the third line, following FIG. The procedure for embedding information corresponding to 0 of the third bit of the watermark information 171 is as follows.

まず区間検出部141によって、図8の文章ファイル162bのデータから3行目162b−3を検出する。   First, the section detection unit 141 detects the third line 162b-3 from the data of the text file 162b in FIG.

次に、文字数演算部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-characters calculation unit 142 calculates the number of characters in the third row corresponding to bit 0 according to the embedding rule information 181. First, it is read from rule 1 of the embedding rule information 181 that the number of characters corresponding to bit 0 in the third row is 36. Next, the number of characters in the third line 162b-3 before embedding is counted. The number of characters in the third line 162b-3 before embedding is 39 characters when counted up to "-" at the end of the line, but from the rule 5 of the embedding rule information 181, "-" at the end of the line is not counted as the number of characters. Next, the difference between the number of characters 36 corresponding to bit 0 and the number of characters 38 before embedding is calculated to obtain a character number variation -2. Then, it is verified whether the number of characters in the third line 162b-3 can be reduced by two characters. First, the process of counting the number of characters by reducing the number of characters on the third line one by one is repeated, and the line feed position when the number of characters decreases by two or more characters is obtained. When a line feed is made between the character “-” (the character immediately after the character “o”) and “ta” at the position of −1 character from the end of the line, the number of characters on the third line is determined from rule 5 of the embedding rule information 181. The number “o” is 35 because it is not counted in the number of characters, and is reduced by 3 characters from the original number of characters. Therefore, it cannot be reduced by 2 characters.

検証の結果、文字数の変更が不可能と判断された場合、埋め込み規則情報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 rule 1 of the embedding rule information 181. If there is no other character number corresponding to bit 0, the number of characters is obtained according to rule 3. In this case, there are 38 other character numbers corresponding to bit 0. Therefore, the difference between the number of characters 38 corresponding to bit 0 and the number of characters 38 before embedding is calculated to obtain a change amount 0 of the number of characters. When the amount of change is 0, verification regarding whether or not the number of characters can be changed is omitted.

次に、文字数制御部143によって、文字数の変化量0を元に、3行目162b−3の文字数の変更処理を行う。文字数の変化量が0なので、実際に改行は行わない。以上の処理を行った上で、オリジナル文章ファイル162bのデータを更新し、文章ファイル162cを作成する。   Next, the number-of-characters control unit 143 performs a process of changing the number of characters in the third line 162b-3 based on the amount of change 0 in the number of characters. Since the amount of change in the number of characters is 0, no line feed is actually performed. After performing the above processing, the data of the original sentence file 162b is updated to create a sentence file 162c.

以上で透かし情報171が全て埋め込まれた。以降の行は何も情報が埋め込まれないように処理する。まず区間検出部141によって、図9の文章ファイル162cのデータから4行目162c−4を検出する。   All the watermark information 171 is embedded as described above. The subsequent lines are processed so that no information is embedded. First, the section detection unit 141 detects the fourth line 162c-4 from the data of the text file 162c of FIG.

次に、文字数演算部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-characters calculation unit 142 calculates the number of characters in the fourth line 162c-4 when no information is embedded in accordance with the embedding rule information 181. It is read from rule 3 of the embedding rule information 181 that the number of characters when no information is embedded in the fourth line 162c-4 is 34 or less or 39 or more. Next, the number of characters in the fourth line 162c-4 before embedding is counted. The number of characters in the fourth line 162c-4 on the fourth line before embedding is 10 up to “.” At the end of the line, but from the rule 5 of the embedding rule information 181, “.” At the end of the line cannot be included in the number of characters. 9 Next, the difference between the number of characters read from the rule 5 of the embedding rule 181 and the number of characters before embedding is calculated. Since the number of characters in the fourth line 162c-4 before embedding is 34 or less, it is within the range of the number of characters when no information is embedded in rule 3 of the embedding rule 181, and the amount of change in the number of characters is zero.

次に、文字数制御部143によって、文字数の変化量0を元に、4行目162c−4の文字数の変更処理を行う。文字数の変化量が0なので、実際に改行は行わない。以上の処理を行った上で、オリジナル文章ファイル162cのデータを更新する。   Next, the number-of-characters control unit 143 performs a process for changing the number of characters in the fourth line 162c-4 based on the amount of change 0 in the number of characters. Since the amount of change in the number of characters is 0, no line feed is actually performed. After performing the above processing, the data of the original sentence file 162c is updated.

上記手順により生成された文章ファイル162cは、出力部150から、透かし情報171が埋め込まれた文章ファイルとして出力される。   The text file 162c generated by the above procedure is output from the output unit 150 as a text file in which the watermark information 171 is embedded.

以上の説明において用いたオリジナル文章ファイル162は一例であり、本実施形態による電子透かしの埋め込みは、要旨を逸脱しない範囲で任意の文章ファイルに適用できる。   The original sentence file 162 used in the above description is an example, and embedding of the digital watermark according to the present embodiment can be applied to an arbitrary sentence file without departing from the gist.

例えば、オリジナル文章ファイルは、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 section detection unit 141 identifies the multimedia data and the sentence, and detects a line from the sentence.

また、以上の説明において用いたオリジナル文章ファイル161の文章は日本語で記述されているが、オリジナル文章ファイルの文章は英語や中国語、韓国語、フランス語、ドイツ語等、日本語以外の言語で記述されていても良い。   The text of the original text file 161 used in the above description is written in Japanese, but the text in the original text file is in a language other than Japanese, such as English, Chinese, Korean, French, German, etc. It may be described.

また、以上の説明において用いた透かし情報171は一例であり、本実施形態による電子透かしの埋め込みは、要旨を逸脱しない範囲で任意の透かし情報に適用できる。
例えば、透かし情報は、0または1以外の数値や文字を含む情報であっても良い。
The watermark information 171 used in the above description is an example, and the embedding of the digital watermark according to the present embodiment can be applied to arbitrary watermark information without departing from the gist.
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 watermark reading apparatus 101 according to the present embodiment reads a text file input unit 111 that inputs a text file in which watermark information is embedded, and reads the correspondence between the number of characters included in one line and the embedded information. The information storage unit 130 stores the rule information, the reading processing unit 190 that performs digital watermark reading processing, and the output unit 151 that outputs watermark information.

図12は、読み出し処理部190の構成を示すブロック図である。図12に示すように、読み出し処理部190は、文章ファイルを構成する文章から行を検出する区間検出部191と、検出された行の文字数を数える文字数演算部192と、情報記憶部130に記憶された読み出し規則情報を参照し、文字数演算部192の結果に対応する情報を読み出す情報読み出し部193とから構成される。   FIG. 12 is a block diagram illustrating a configuration of the read processing unit 190. As shown in FIG. 12, the read processing unit 190 stores an interval detection unit 191 that detects a line from a sentence constituting a sentence file, a character number calculation unit 192 that counts the number of characters in the detected line, and an information storage unit 130. The information reading unit 193 reads out information corresponding to the result of the character number calculation unit 192 with reference to the read out rule information.

次に、電子透かし読み出し装置101を用いた電子透かし読み出し方法について説明する。図13は、電子透かし読み出し装置101の動作手順を示すフローチャートである。   Next, a digital watermark reading method using the digital watermark reading apparatus 101 will be described. FIG. 13 is a flowchart showing an operation procedure of the digital watermark reading apparatus 101.

図13に示すように、文章ファイル入力部111に透かし情報が埋め込まれた文章ファイル161を入力する(S101B)。   As shown in FIG. 13, a text file 161 in which watermark information is embedded is input to the text file input unit 111 (S101B).

入力された文章ファイル161のデータは読み出し処理部190に渡される。読み出し処理部190は下記手順を繰り返す。   The input text file 161 data is transferred to the read processing unit 190. The read processing unit 190 repeats the following procedure.

まず区間検出部191によって、文章ファイル161のデータから、先頭行から数えた行番号が最も若くまだ処理されていない一行を検出する(S102B)。
次に文字数演算部192によって、検出された行の文字数を数える(S103B)。
First, the section detection unit 191 detects, from the data in the text file 161, one line that has the youngest line number counted from the first line and has not been processed yet (S102B).
Next, the number-of-characters calculation unit 192 counts the number of characters in the detected line (S103B).

そして情報読み出し部193によって、情報記憶部130に記憶された読み出し規則情報180を参照し、文字数演算部192の演算結果に対応する情報を読み出す(S104B)。読み出した情報は、情報記憶部130に一時的に記憶する(S105B)。   Then, the information reading unit 193 reads the information corresponding to the calculation result of the character number calculation unit 192 with reference to the read rule information 180 stored in the information storage unit 130 (S104B). The read information is temporarily stored in the information storage unit 130 (S105B).

上記手順の繰り返しは、区間検出部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 information storage unit 130 is output from the output unit 151 as the watermark information 170 (S107B).

以下、具体的なデータを用いて電子透かし読み出し装置101の動作を詳細に説明する。
図9の透かし情報が埋め込まれた文章ファイル162cを文章ファイル入力部111から入力する。
Hereinafter, the operation of the digital watermark reading apparatus 101 will be described in detail using specific data.
The text file 162 c in which the watermark information of FIG. 9 is embedded is input from the text file input unit 111.

入力された文章ファイル162cのデータは読み出し処理部190に渡される。読み出し処理部190は、下記の手順により、文章ファイル162cのデータから透かし情報を読み出す。   The input data of the text file 162c is transferred to the read processing unit 190. The read processing unit 190 reads watermark information from the data of the text file 162c according to the following procedure.

透かし情報の1ビット目を読み出す手順は以下の通りである。まず区間検出部191によって、文章ファイル162cのデータから1行目を検出する。   The procedure for reading the first bit of the watermark information is as follows. First, the section detection unit 191 detects the first line from the data of the text file 162c.

次に文字数演算部192によって、1行目の文字数を数える。この場合の文字数は36である。   Next, the number-of-characters calculation unit 192 counts the number of characters in the first line. In this case, the number of characters is 36.

そして情報読み出し部193によって、情報記憶部130に記憶された図6の読み出し規則情報181を参照し、文字数36に対応するビット0を読み出す。読み出したビット0は情報記憶部130に一時的に記憶する。   Then, the information reading unit 193 reads the bit 0 corresponding to the number of characters 36 with reference to the reading rule information 181 of FIG. 6 stored in the information storage unit 130. The read bit 0 is temporarily stored in the information storage unit 130.

透かし情報の2ビット目を読み出す手順は以下の通りである。まず区間検出部191によって、文章ファイル162cのデータから2行目を検出する。   The procedure for reading the second bit of the watermark information is as follows. First, the section detection unit 191 detects the second line from the data of the text file 162c.

次に文字数演算部192によって、2行目の文字数を数える。この場合の文字数は35である。   Next, the number-of-characters calculation unit 192 counts the number of characters on the second line. In this case, the number of characters is 35.

そして情報読み出し部193によって、情報記憶部130に記憶された読み出し規則情報181を参照し、文字数35に対応するビット1を読み出す。読み出したビット1は1行目から読み出したビット0と合わせて情報記憶部130に一時的に記憶する。   Then, the information reading unit 193 reads the bit 1 corresponding to the number of characters 35 with reference to the reading rule information 181 stored in the information storage unit 130. The read bit 1 is temporarily stored in the information storage unit 130 together with the bit 0 read from the first row.

透かし情報の3ビット目を読み出す手順は以下の通りである。まず区間検出部191によって、文章ファイル162cのデータから3行目を検出する。   The procedure for reading the third bit of the watermark information is as follows. First, the section detection unit 191 detects the third line from the data of the text file 162c.

次に文字数演算部192によって、3行目の文字数を数える。この場合の文字数は38である。   Next, the number-of-characters calculation unit 192 counts the number of characters on the third line. In this case, the number of characters is 38.

そして情報読み出し部193によって、情報記憶部130に記憶された読み出し規則情報181を参照し、文字数38に対応するビット0を読み出す。読み出したビット0は1行目から読み出したビット0と2行目から読み出したビット1と合わせて情報記憶部130に一時的に記憶する。   Then, the information reading unit 193 reads the bit 0 corresponding to the number of characters 38 with reference to the reading rule information 181 stored in the information storage unit 130. The read bit 0 is temporarily stored in the information storage unit 130 together with the bit 0 read from the first row and the bit 1 read from the second row.

透かし情報の4ビット目を読み出す手順は以下の通りである。まず区間検出部191によって、文章ファイル162cのデータから4行目を検出する。   The procedure for reading the fourth bit of the watermark information is as follows. First, the section detection unit 191 detects the fourth line from the data of the text file 162c.

次に文字数演算部192によって、4行目の文字数を数える。この場合の文字数は9である。   Next, the number-of-characters calculation unit 192 counts the number of characters on the fourth line. In this case, the number of characters is nine.

そして情報読み出し部193によって、情報記憶部130に記憶された読み出し規則情報181を参照し、何も情報が埋め込まれていないことを意味するNULLを読み出す。
以上で文章ファイル162cの全ての行に対する読み出し処理を終了する。
Then, the information reading unit 193 reads NULL indicating that no information is embedded with reference to the read rule information 181 stored in the information storage unit 130.
This completes the reading process for all lines of the text file 162c.

上記手順により読み出し、情報記憶部130に一時的に記憶した情報は、出力部151から、図14の透かし情報172として出力される。   Information read by the above procedure and temporarily stored in the information storage unit 130 is output from the output unit 151 as watermark information 172 in FIG.

読み出した透かし情報172は、本実施形態における電子透かし埋め込み装置によって162cに埋め込まれた透かし情報171に等しい。このように、本実施形態における電子透かし読み出し装置は、本実施形態における電子透かし埋め込み装置で文章ファイルに埋め込んだ透かし情報を読み出すことができる。   The read watermark information 172 is equal to the watermark information 171 embedded in 162c by the digital watermark embedding apparatus in this embodiment. As described above, the digital watermark reading apparatus according to the present embodiment can read the watermark information embedded in the text file by the digital watermark embedding apparatus according to the present embodiment.

図15の文章ファイル162gは、文章ファイル162cを印刷し、スキャナで読み取った画像である。   The text file 162g in FIG. 15 is an image obtained by printing the text file 162c and reading it with a scanner.

図16の文章ファイル162hは、図15の文章ファイル162dに細線化処理を施した画像である。   The text file 162h in FIG. 16 is an image obtained by performing thinning processing on the text file 162d in FIG.

図17の文章ファイル162iは、図15の文章ファイル162dに太線化処理を施した画像である。   A text file 162i in FIG. 17 is an image obtained by performing thickening processing on the text file 162d in FIG.

図18の文章ファイル162jは、図15の文章ファイル162dに162j−1方向に歪曲処理を施した画像である。   The text file 162j in FIG. 18 is an image obtained by performing distortion processing on the text file 162d in FIG. 15 in the 162j-1 direction.

文章ファイル162cと文章ファイル162gとを比較すると、印刷とスキャンによって、各行に含まれる文字数は変化していない。また、文章ファイル162cと文章ファイル162h〜文章ファイル162jとを比較すると、各画像処理によって、各行に含まれる文字数は変化していない。   When the text file 162c and the text file 162g are compared, the number of characters included in each line is not changed by printing and scanning. Further, when the sentence file 162c and the sentence file 162h to the sentence file 162j are compared, the number of characters included in each line is not changed by each image processing.

本実施形態における電子透かし読み出し装置に入力可能な文章ファイルは、文章ファイル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 text file 162h to the text file 162j by an existing OCR technique or by visually confirming and manually inputting text. . Thereby, a sentence file having the same sentence as the sentence in the image (the number of characters included in one line is equal) is generated, and the sentence file includes a sentence that is equal to the sentence file 162c.

上記方法で文章ファイル162h〜文章ファイル162jの画像から生成した文章ファイルを本実施形態の電子透かし読み出し装置に入力することで、各画像中の文章に埋め込まれた透かし情報を読み出すことができる。   By inputting the sentence file generated from the images of the sentence file 162h to the sentence file 162j by the above method to the electronic watermark reading apparatus of the present embodiment, the watermark information embedded in the sentence in each image can be read out.

以上のように、本実施形態に係る埋め込み装置によって文章ファイルに埋め込まれた電子透かしは、その文章ファイルを印刷し、スキャナで読み取った後に細線化・太線化・歪曲等の画像処理を適用しても除去されない。そのため上記画像処理を施してコピーされた文書からも、埋め込まれた電子透かしの読み出しが可能である。   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 watermark embedding apparatus 200 according to the present embodiment includes a text file input unit 210 that inputs a text file to be embedded with watermark information, a watermark information input unit 220 that inputs watermark information, and a single character of the text. An information storage unit 230 that stores the correspondence between the amount of increase / decrease in the total number of characters from the eye to the end of each line and the embedded information as embedding rule information, an embedding processing unit 240 that performs digital watermark embedding processing, and a sentence file in which watermark information is embedded And an output unit 250 for outputting.

図20は、埋め込み処理部240の構成を示すブロック図である。図20に示すように、埋め込み処理部240は、文章ファイルを構成する文章から行を検出する区間検出部241と、検出された行に情報を埋め込んだ場合の文章の1文字目から該行末までの総文字数を情報記憶部230に記憶された埋め込み規則情報に従って演算する文字数演算部242と、文字数演算部242の結果に一致するように文章の1文字目から上記行末までの総文字数を増減する文字数制御部243とから構成される。   FIG. 20 is a block diagram illustrating a configuration of the embedding processing unit 240. As shown in FIG. 20, the embedding processing unit 240 includes a section detecting unit 241 that detects a line from a sentence that constitutes a sentence file, and the first character of the sentence to the end of the line when information is embedded in the detected line. The number of characters is calculated according to the embedding rule information stored in the information storage unit 230, and the total number of characters from the first character of the sentence to the end of the line is increased or decreased so as to match the result of the character number calculation unit 242. And a character number control unit 243.

次に、電子透かし埋め込み装置200を用いた電子透かし埋め込み方法について説明する。図21は、電子透かし埋め込み装置200の動作手順を示すフローチャートである。   Next, a digital watermark embedding method using the digital watermark embedding apparatus 200 will be described. FIG. 21 is a flowchart showing an operation procedure of the digital watermark embedding apparatus 200.

図21に示すように、文章ファイル入力部210に透かし情報の埋め込み対象であるオリジナル文章ファイル260を入力し(S201A)、透かし情報入力部220にn個の情報で構成される透かし情報270を入力する(S202A)。   As shown in FIG. 21, the original text file 260 to be embedded with the watermark information is input to the text file input section 210 (S201A), and the watermark information 270 composed of n pieces of information is input to the watermark information input section 220. (S202A).

入力されたオリジナル文章ファイル260のデータと透かし情報270は埋め込み処理部240に渡される。埋め込み処理部240は下記手順を繰り返す。   The input original text file 260 data and watermark information 270 are passed to the embedding processing unit 240. The embedding processing unit 240 repeats the following procedure.

まず区間検出部241によって、オリジナル文章ファイル260のデータから、先頭行から数えた行番号が最も若くまだ処理されていない一行を検出する(S203A)。   First, the section detection unit 241 detects the line that has the youngest line number counted from the first line and is not yet processed from the data of the original sentence file 260 (S203A).

次に、文字数演算部242によって、検出された行に情報を埋め込んだ場合の文章の1文字目から該行末までの総文字数を埋め込み規則情報280に従って演算する(S204A)。   Next, the character number calculation unit 242 calculates the total number of characters from the first character of the sentence to the end of the line when information is embedded in the detected line according to the embedding rule information 280 (S204A).

そして文字数制御部243によって、文字数演算部242の演算結果に一致するように文章の1文字目から該行末までの総文字数を増減することで該演算結果に対応する情報を埋め込み(S205A)、オリジナル文章ファイル260のデータを更新する(S206A)。   The character number control unit 243 embeds information corresponding to the calculation result by increasing or decreasing the total number of characters from the first character of the sentence to the end of the line so as to match the calculation result of the character number calculation unit 242 (S205A). The data of the text file 260 is updated (S206A).

上記手順の繰り返しは、区間検出部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 original sentence file 260 updated by the above procedure is output from the output unit 250 as a sentence file 261 in which the watermark information 270 is embedded (S208A).

以下、具体的なデータを用いて電子透かし埋め込み装置200の動作を詳細に説明する。   Hereinafter, the operation of the digital watermark embedding apparatus 200 will be described in detail using specific data.

図22の埋め込み規則情報281は、情報記憶部230に記憶されている埋め込み規則情報280の一例であり、文章の一文字目から各行末までの総文字数の増減量と埋め込まれる情報の対応関係を示す。   The embedding rule information 281 in FIG. 22 is an example of embedding rule information 280 stored in the information storage unit 230, and indicates the correspondence between the amount of increase / decrease in the total number of characters from the first character to the end of each line and the embedded information. .

図4のオリジナル文章ファイル162を文章ファイル入力部210から入力し、図5の透かし情報171を透かし情報入力部220から入力する。1行目162−1は36文字である。2行目162−4は37文字である。3行目162−3は37文字である。4行目162−4は10文字である。   The original text file 162 of FIG. 4 is input from the text file input unit 210, and the watermark information 171 of FIG. 5 is input from the watermark information input unit 220. The first line 162-1 is 36 characters. The second line 162-4 is 37 characters. The third line 162-3 has 37 characters. The fourth line 162-4 has 10 characters.

入力されたオリジナル文章ファイル162のデータと透かし情報171は埋め込み処理部240に渡される。埋め込み処理部240は、下記の手順により、オリジナル文章ファイル162のデータに透かし情報171に対応する情報を埋め込む。   The input original text file 162 data and watermark information 171 are passed to the embedding processing unit 240. The embedding processing unit 240 embeds information corresponding to the watermark information 171 in the data of the original sentence file 162 by the following procedure.

図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 watermark information 171 in FIG. 5 in the first row 162-1 is as follows. First, the section detection unit 241 detects the first line 162-1 from the data of the original sentence file 162 in FIG.

次に、文字数演算部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 number calculation unit 242 according to the embedding rule information 281. First, from the rules 1 and 4 of the embedding rule information 281, when the information corresponding to bit 0 is embedded in the first line 162-1, the number of characters is from the first character to the first line 162- It is read that one or more characters have decreased from the total number of characters up to the end of one line. Next, the total number of characters from the first character of the sentence before embedding to the end of the first line 162-1 is counted and calculated to be 36. Next, when the total number of characters up to the end of the first line 162-1 before embedding is reduced by one character from 36, the character at the end of the line becomes “i”, and from the rule 5 of the embedding rule information 281 to the end of the first line It is calculated that the total number of characters is 34.

次に、文字数制御部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 number control unit 243 so that the total number of characters from the first character of the sentence to the end of the first line 162-1 is 34 based on the calculation result. Make a line break at the eyes. After performing the above processing, the data of the original sentence file 162 is updated. FIG. 23 shows a text file 162d in which information corresponding to bit 0 is embedded in the first line.

透かし情報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 watermark information 171 in the second row 162-2 is as follows. First, the section detection unit 241 detects the first line, 162d-1, and the second line 162d-2 from the data of the text file 162d in FIG.

次に、文字数演算部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 number calculation unit 242 calculates the total number of characters from the first character of the sentence corresponding to bit 1 to the end of the second line according to the embedding rule information 281. First, from the rule 2 of the embedding rule information 281, when the information corresponding to bit 1 is embedded in the second line, the number of characters is the total from the first character of the sentence before embedding to the end of the first line 162d-2. Read the increase of one character or more from the number of characters. Next, the total number of characters from the first character of the sentence before embedding to the end of the second line 162d-2 is counted to calculate 73. In this count calculation, the rule 5 of the embedding rule information 281 is applied only to the row to be embedded. That is, the character at the end of the first line 162d-1 is “i”, but is counted as the number of characters. This is to reduce the application of rule 5 of the rule information 281 and perform the count operation at high speed. However, rule 5 of the embedding rule information 281 may be applied to a line other than the line to be embedded, and the number of characters may be counted.

次に、文字数制御部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 number control unit 243 sets the number of characters in the second line 162d-2 to 1 so that the total number of characters from the first character of the sentence to the end of the line 162d-2 is 74 or more based on the calculation result. Increase letters. That is, one character is moved from the beginning of the third line 162d-3 of 162d to the end of the line 162d-2 of the second line. After performing the above processing, the data of the text file 162d is updated. FIG. 24 shows a text file 162e in which information corresponding to bit 0 is embedded in the first line and information corresponding to bit 1 is embedded in the second line.

透かし情報171の3ビット目の0に対応する情報を埋め込む手順は以下の通りである。まず区間検出部141によって、図24の文章ファイル162eのデータから3行目162e−3を検出する。   The procedure for embedding information corresponding to 0 of the third bit of the watermark information 171 is as follows. First, the section detection unit 141 detects the third line 162e-3 from the data of the text file 162e in FIG.

次に、文字数演算部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-characters calculation unit 142 calculates the total number of characters from the first character of the sentence to the end of the third line 162e-3 when information corresponding to bit 0 is embedded according to the embedding rule information 281. First, from rules 1 and 5 of the embedding rule information 281, the number of characters when information corresponding to bit 0 is embedded in the third line is from the first character of the text before embedding to the end of the third line 162 e-2. It is read that the total number of characters decreases by one or more characters. Next, the total number of characters from the first character of the sentence before embedding to the end of the third line 162e-3 is counted to calculate 109. At this time, the character at the end of the three lines before embedding is “tar”, and from the rule 5 of the embedding rule information 281, “−” is not counted in the number of characters before embedding. In addition, in this count calculation, rule 5 of the embedding rule information 281 is applied only to a row for which information is to be embedded. That is, the character at the end of the first line 162e-1 is “i”, but is counted as the number of characters. This is to reduce the application of rule 5 of the rule information 281 and perform the count operation at high speed. However, rule 5 of the embedding rule information 281 may be applied to a line other than the line to be embedded, and the number of characters may be counted. Next, in order to embed the information corresponding to bit 0, if the character “tar” is reduced by one character by performing a process of moving to the fourth line 162e-4, the character at the end of the third line is “o”. The total number of characters from rule 5 of the embedding rule information 281 to the end of the third line at that time is 106.

次に、文字数制御部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-characters control unit 243 sets the number of characters in the third line 162e-3 to 3 characters so that the total number of characters from the first character of the sentence to the end of the line 162e-3 becomes 106 based on the calculation result. cut back. That is, a line feed is performed at three characters from the end of the third line 162d-3 of 162d. After performing the above processing, the data of the text file 162e is updated. FIG. 25 shows a sentence file 162f in which information corresponding to bit 0 is embedded in bit 0 on the first line, bit 1 on the second line, and 162f-3 on the third line.

以上で透かし情報171が全て埋め込まれた。以降の行は何も情報が埋め込まれないように処理する。まず区間検出部241によって、図25の文章ファイル162fのデータから4行目162f−4を検出する。   All the watermark information 171 is embedded as described above. The subsequent lines are processed so that no information is embedded. First, the section detection unit 241 detects the fourth line 162f-4 from the data of the text file 162f in FIG.

次に、文字数演算部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-characters calculation unit 242 calculates the total number of characters from the first character to the end of the fourth line of the sentence when no information is embedded according to the embedding rule information 281. First, it is read from rule 3 of the embedding rule information 281 that the amount of increase / decrease in the total number of characters from the first character to the end of the fourth line 162e-4 is ± 0. Next, the total number of characters from the first character of the sentence before embedding to the end of the third line 162e-3 is counted and calculated to be 119. At this time, the character at the end of the four lines before embedding is “.”, And from rule 5 of the embedding rule information 281, “.” Is not counted in the number of characters before embedding. In addition, in this count calculation, rule 5 of the embedding rule information 281 is applied only to a row for which information is to be embedded. That is, the character at the end of the first line 162e-1 is “i”, but is counted as the number of characters. The rule 5 of the embedding rule information 281 may be applied to a line other than the line to be embedded, and the number of characters may be counted.

次に、文字数制御部243によって、文章の1文字目から4行目162f−4の行末までの総文字数が119になるように文字数を増減する。埋め込み前の文字数が119であるため、4行目162f−4の文字数は変化しない。また、文章ファイル162fも変化しない。   Next, the character number control unit 243 increases or decreases the number of characters so that the total number of characters from the first character of the sentence to the end of the fourth line 162f-4 becomes 119. Since the number of characters before embedding is 119, the number of characters in the fourth line 162f-4 does not change. Also, the text file 162f does not change.

また、埋め込み前の文章の一文字目から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 fourth line 162e-4 is ± 0, the subsequent calculation may be omitted. By omitting calculations, the processing speed is improved.

上記手順により生成された文章ファイル162fのデータは、出力部250から、透かし情報171が埋め込まれた文章ファイルとして出力される。   Data of the text file 162f generated by the above procedure is output from the output unit 250 as a text file in which the watermark information 171 is embedded.

以上の説明で用いたように、本実施形態に係る電子透かし埋め込み装置は、第一の実施形態に係る電子透かし埋め込み装置と等しいオリジナル文章ファイル、透かし情報を扱える。   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 watermark reading apparatus 201 according to the present embodiment includes a text file input unit 211 that inputs an original text file in which watermark information is not embedded and a text file in which watermark information is embedded, and the first character of the text. From the information storage unit 230 that stores the correspondence between the amount of increase or decrease in the total number of characters from the end of each line and the embedded information as read rule information, the read processing unit 290 that performs digital watermark read processing, and the output unit 251 that outputs watermark information Composed.

図28は、読み出し処理部290の構成を示すブロック図である。図28に示すように、読み出し処理部290は、文章ファイルを構成する文章から行を検出する区間検出部291と、オリジナル文章ファイルと透かし情報が埋め込まれた文章ファイルの文章の1文字目から検出された行末までの総文字数の差を求める文字数演算部292と、情報記憶部230に記憶された読み出し規則情報を参照し、文字数演算部292の結果に対応する情報を読み出す情報読み出し部293とから構成される。   FIG. 28 is a block diagram illustrating a configuration of the read processing unit 290. As shown in FIG. 28, the read processing unit 290 detects from the section detection unit 291 that detects a line from the text that constitutes the text file, and the first text of the text in the text file in which the original text file and watermark information are embedded. From the number-of-characters calculation unit 292 that calculates the difference in the total number of characters up to the end of the line, and the information reading unit 293 that reads the information corresponding to the result of the number-of-characters calculation unit 292 with reference to the read rule information stored in the information storage unit 230 Composed.

次に、電子透かし読み出し装置201を用いた電子透かし読み出し方法について説明する。図29は、電子透かし読み出し装置201の動作手順を示すフローチャートである。   Next, a digital watermark reading method using the digital watermark reading device 201 will be described. FIG. 29 is a flowchart showing an operation procedure of the digital watermark reading apparatus 201.

図29に示すように、文章ファイル入力部211にオリジナル文章ファイル260を入力(S201B)し、同様に透かし情報が埋め込まれた文章ファイル261を入力する(S202B)。   As shown in FIG. 29, an original sentence file 260 is input to the sentence file input unit 211 (S201B), and similarly a sentence file 261 in which watermark information is embedded is input (S202B).

入力されたオリジナル文章ファイル260のデータと文章ファイル261のデータは読み出し処理部290に渡される。読み出し処理部290は下記手順を繰り返す。   The input data of the original text file 260 and the data of the text file 261 are transferred to the read processing unit 290. The read processing unit 290 repeats the following procedure.

まず区間検出部291によって、オリジナル文章ファイル260のデータから、先頭行から数えた行番号が最も若くまだ処理されていない一行を検出し、文章ファイル261のデータから、オリジナル文章ファイル260のデータから検出した行に対応する行を検出する(S203B)。   First, the section detecting unit 291 detects from the data of the original sentence file 260 the line that has the youngest line number counted from the first line and has not been processed, and detects from the data of the sentence file 261 from the data of the original sentence file 260. A line corresponding to the selected line is detected (S203B).

次に、文字数演算部292によって、文章ファイル261の文章の1文字目から検出された行末までの総文字数とオリジナル文章ファイル260の文章の1文字目から検出された行末までの総文字数の差(前者から後者を引いた値)を求める(S204B)。   Next, the difference between the total number of characters from the first character of the sentence of the sentence file 261 to the end of the line detected by the character number calculation unit 292 and the total number of characters from the first character of the sentence of the original sentence file 260 to the detected end of line ( A value obtained by subtracting the latter from the former) is obtained (S204B).

そして情報読み出し部293によって、情報記憶部230に記憶された読み出し規則情報280を参照し、文字数演算部292の演算結果に対応する情報を読み出す(S205B)。読み出した情報は、情報記憶部230に一時的に記憶する(S206B)。   Then, the information reading unit 293 refers to the read rule information 280 stored in the information storage unit 230 and reads information corresponding to the calculation result of the character number calculation unit 292 (S205B). The read information is temporarily stored in the information storage unit 230 (S206B).

上記手順の繰り返しは、区間検出部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 information storage unit 230 is output as watermark information 270 from the output unit 251 (S208B).

以下、具体的なデータを用いて電子透かし読み出し装置201の動作を詳細に説明する。   Hereinafter, the operation of the digital watermark reading apparatus 201 will be described in detail using specific data.

図4のオリジナル文章ファイル162と図25の透かし情報が埋め込まれた文章ファイル162fを文章ファイル入力部211から入力する。   The original text file 162 in FIG. 4 and the text file 162 f in which the watermark information in FIG. 25 is embedded are input from the text file input unit 211.

入力された文章ファイル162のデータと文章ファイル162fのデータは読み出し処理部290に渡される。読み出し処理部290は、下記の手順により、文章ファイル162fのデータから透かし情報を読み出す。   The input data of the text file 162 and the data of the text file 162f are transferred to the read processing unit 290. The read processing unit 290 reads watermark information from the data of the text file 162f according to the following procedure.

透かし情報の1ビット目を読み出す手順は以下の通りである。まず区間検出部291によって、オリジナル文章ファイル162のデータから1行目を検出し、文章ファイル162fのデータから1行目を検出する。   The procedure for reading the first bit of the watermark information is as follows. First, the section detection unit 291 detects the first line from the data of the original sentence file 162 and detects the first line from the data of the sentence file 162f.

次に、文字数演算部292によって、文章ファイル162fの文章の1文字目から1行末までの総文字数とオリジナル文章ファイル162の文章の1文字目から1行末までの総文字数の差(前者から後者を引いた値)を求める。この場合の該文字数差(増減量)は−2である。   Next, the number-of-characters calculation unit 292 makes a difference between the total number of characters from the first character of the sentence of the sentence file 162f to the end of the first line and the total number of characters from the first character of the sentence of the original sentence file 162 to the end of the first line (the former to the latter). Subtracted value). In this case, the character number difference (increase / decrease amount) is -2.

そして情報読み出し部293によって、情報記憶部230に記憶された図22の読み出し規則情報281を参照し、増減量−2に対応するビット0を読み出す。読み出したビット0は情報記憶部230に一時的に記憶する。   Then, the information reading unit 293 reads the bit 0 corresponding to the increase / decrease amount −2 with reference to the read rule information 281 of FIG. 22 stored in the information storage unit 230. The read bit 0 is temporarily stored in the information storage unit 230.

透かし情報の2ビット目を読み出す手順は以下の通りである。まず区間検出部291によって、オリジナル文章ファイル162のデータから2行目を検出し、文章ファイル162fのデータから2行目を検出する。   The procedure for reading the second bit of the watermark information is as follows. First, the section detection unit 291 detects the second line from the data of the original sentence file 162 and detects the second line from the data of the sentence file 162f.

次に、文字数演算部292によって、文章ファイル162fの文章の1文字目から2行末までの総文字数とオリジナル文章ファイル162の文章の1文字目から2行末までの総文字数の差(前者から後者を引いた値)を求める。この場合の該文字数差(増減量)は+1である。   Next, the number-of-characters calculation unit 292 makes a difference between the total number of characters from the first character to the end of the second line of the sentence in the sentence file 162f and the total number of characters from the first character to the end of the second line of the sentence in the original sentence file 162 (from the former to the latter). Subtracted value). In this case, the character number difference (increase / decrease amount) is +1.

そして情報読み出し部293によって、情報記憶部230に記憶された図22の読み出し規則情報281を参照し、増減量+1に対応するビット1を読み出す。読み出したビット1は情報記憶部230に一時的に記憶する。   Then, the information reading unit 293 reads the bit 1 corresponding to the increase / decrease amount + 1 with reference to the read rule information 281 of FIG. 22 stored in the information storage unit 230. The read bit 1 is temporarily stored in the information storage unit 230.

透かし情報の3ビット目を読み出す手順は以下の通りである。まず区間検出部291によって、オリジナル文章ファイル162のデータから3行目を検出し、文章ファイル162fのデータから3行目を検出する。   The procedure for reading the third bit of the watermark information is as follows. First, the section detection unit 291 detects the third line from the data of the original sentence file 162 and detects the third line from the data of the sentence file 162f.

次に、文字数演算部292によって、文章ファイル162fの文章の1文字目から3行末までの総文字数とオリジナル文章ファイル162の文章の1文字目から3行末までの総文字数の差(前者から後者を引いた値)を求める。この場合の該文字数差(増減量)は−3である。   Next, the number-of-characters calculation unit 292 makes a difference between the total number of characters from the first character to the end of the third line of the sentence in the sentence file 162f and the total number of characters from the first character to the end of the third line of the sentence in the original sentence file 162 (the former to the latter). Subtracted value). In this case, the character number difference (increase / decrease amount) is -3.

そして情報読み出し部293によって、情報記憶部230に記憶された図22の読み出し規則情報281を参照し、増減量−3に対応するビット0を読み出す。読み出したビット0は情報記憶部230に一時的に記憶する。   Then, the information read unit 293 reads the bit 0 corresponding to the increase / decrease amount −3 with reference to the read rule information 281 of FIG. 22 stored in the information storage unit 230. The read bit 0 is temporarily stored in the information storage unit 230.

透かし情報の4ビット目を読み出す手順は以下の通りである。まず区間検出部291によって、オリジナル文章ファイル162のデータから4行目を検出し、文章ファイル162fのデータから4行目を検出する。   The procedure for reading the fourth bit of the watermark information is as follows. First, the section detection unit 291 detects the fourth line from the data of the original sentence file 162 and detects the fourth line from the data of the sentence file 162f.

次に、文字数演算部292によって、文章ファイル162fの文章の1文字目から4行末までの総文字数とオリジナル文章ファイル162の文章の1文字目から4行末までの総文字数の差(前者から後者を引いた値)を求める。この場合の該文字数差(増減量)は0である。   Next, the number-of-characters calculation unit 292 makes a difference between the total number of characters from the first character of the sentence of the sentence file 162f to the end of the fourth line and the total number of characters from the first character of the sentence of the original sentence file 162 to the end of the four lines (the former to the latter). Subtracted value). In this case, the difference in the number of characters (increase / decrease amount) is zero.

そして情報読み出し部293によって、情報記憶部230に記憶された図22の読み出し規則情報281を参照し、何も情報が埋め込まれていないことを意味するNULLを読み出す。
以上で文章ファイル162fの全ての行に対する読み出し処理を終了する。
Then, the information reading unit 293 refers to the read rule information 281 of FIG. 22 stored in the information storage unit 230, and reads NULL which means that no information is embedded.
This completes the reading process for all the lines of the text file 162f.

上記手順により読み出し、情報記憶部230に一時的に記憶した情報は、出力部251から、図30の透かし情報271として出力される。   Information read by the above procedure and temporarily stored in the information storage unit 230 is output from the output unit 251 as the watermark information 271 in FIG.

読み出した透かし情報271は、本実施形態における電子透かし埋め込み装置によって162fに埋め込まれた透かし情報171に等しい。このように、本実施形態における電子透かし読み出し装置は、本実施形態における電子透かし埋め込み装置で文章ファイルに埋め込んだ透かし情報を読み出すことができる。   The read watermark information 271 is equal to the watermark information 171 embedded in 162f by the digital watermark embedding apparatus in this embodiment. As described above, the digital watermark reading apparatus according to the present embodiment can read the watermark information embedded in the text file by the digital watermark embedding apparatus according to the present embodiment.

また、第一の実施形態に係る埋め込み装置によって文章ファイルに埋め込まれた電子透かしと同様に、本実施形態に係る埋め込み装置によって文章ファイルに埋め込まれた電子透かしは、その文章ファイルを印刷し、スキャナで読み取った後に細線化・太線化・歪曲等の画像処理を適用しても除去されない。そのため上記画像処理を施してコピーされた文書からも、埋め込まれた電子透かしの読み出しが可能である。   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 watermark embedding device 101, 201 Digital watermark reading device 110, 111, 210, 211 Text file input unit 120, 220 Watermark information input unit 130, 230 Information storage unit 140, 240 Embed processing units 141, 191, 241, 291 Section detection unit 142, 192, 242, 292 Character number calculation unit 143, 243 Character number control unit 150, 151, 250, 251 Output unit 160, 162, 260 Original sentence file 161, 162a, 162b, 162c, 162d, 162e, 162f 162g, 162h, 162i, 162j, 261 Watermark embedded text file 170, 171, 172, 270, 271 Watermark information 180, 181, 182, 280, 281, 282 Embedding (reading) rule 190, 90 read processor 193,293 information reading unit

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.
前記文字数演算部は、前記区間の全体の前記文字数が前記コードと対応するように前記区間の文字数の増減数を算出する請求項1に記載の電子透かし埋め込み装置。   The digital watermark embedding apparatus according to claim 1, wherein the number-of-characters calculation unit calculates an increase / decrease number of characters in the section so that the number of characters in the entire section corresponds to the code. 前記文字数演算部は、前記区間の前記文字数の増減数が前記コードと対応するように前記区間の文字数の増減数を算出する請求項1に記載の電子透かし埋め込み装置。   The digital watermark embedding apparatus according to claim 1, wherein the number-of-characters calculation unit calculates the number of increase / decrease in the number of characters in the section so that the number of increase / decrease in the number of characters in the section corresponds to the code. 前記文字数制御部は、改行によって前記文字数を増減させることを特徴とする請求項1〜3のいずれか一項に記載の電子透かし埋め込み装置。   The electronic watermark embedding apparatus according to claim 1, wherein the character number control unit increases or decreases the number of characters by a line feed. 前記文字数制御部は、前記区間の文字間隔を増減させることによって前記文字数を増減させることを特徴とする請求項1〜3のいずれか一項に記載の電子透かし埋め込み装置。   The electronic watermark embedding apparatus according to claim 1, wherein the number-of-characters control unit increases or decreases the number of characters by increasing or decreasing a character interval of the section. 前記区間は、前記行の行頭から行末であることを特徴とする請求項1〜5のいずれか一項に記載の電子透かし埋め込み装置。   6. The digital watermark embedding apparatus according to claim 1, wherein the section is from the beginning of the line to the end of the line. 前記区間は、特徴文字の間の文章であることを特徴とする請求項1〜5のいずれか一項に記載の電子透かし埋め込み装置。   The digital watermark embedding apparatus according to claim 1, wherein the section is a sentence between characteristic characters. 前記情報記憶部は、前記透かし情報を複数の前記コードに対応させて記憶することを特徴とする請求項1〜7のいずれか一項に記載の電子透かし埋め込み装置。   8. The digital watermark embedding device according to claim 1, wherein the information storage unit stores the watermark information in association with a plurality of the codes. 複数の行から構成される文章ファイルに埋め込まれた透かし情報を読み出す電子透かし読み出し装置であって、
前記透かし情報がコードに変換され、コードとして埋め込まれた透かし情報文章ファイルを入力する文章ファイル入力部と、
前記透かし情報に対応するコードを記憶する情報記憶部と、
前記透かし情報文章ファイルに埋め込まれた電子透かし情報を読み出す情報読み出し処理部とを有し、
前記情報読み出し処理部は、
前記透かし情報文章ファイルから前記コードを読み出す読み出し区間を検出する区間検出部と、
検出された前記読み出し区間の文字数を数える文字数演算部と、
前記読み出し区間の前記文字数に対応する前記コードを特定し、前記透かし情報を読み出す情報読み出し部とを有することを特徴とする電子透かし読み出し装置。
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.
JP2010262636A 2010-11-25 2010-11-25 Digital watermark embedding apparatus and digital watermark reading apparatus Pending JP2012114725A (en)

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)

* Cited by examiner, † Cited by third party
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

Cited By (1)

* Cited by examiner, † Cited by third party
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