[go: up one dir, main page]

CN111986065A - Digital watermark embedding method and device - Google Patents

Digital watermark embedding method and device Download PDF

Info

Publication number
CN111986065A
CN111986065A CN201910436148.2A CN201910436148A CN111986065A CN 111986065 A CN111986065 A CN 111986065A CN 201910436148 A CN201910436148 A CN 201910436148A CN 111986065 A CN111986065 A CN 111986065A
Authority
CN
China
Prior art keywords
watermark information
text
embedded
embedding
hidden
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
CN201910436148.2A
Other languages
Chinese (zh)
Inventor
徐皓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201910436148.2A priority Critical patent/CN111986065A/en
Publication of CN111986065A publication Critical patent/CN111986065A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/16Program or content traceability, e.g. by watermarking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Technology Law (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

本发明公开了一种数字水印嵌入方法及装置,该方法包括:获取待嵌入的文本和水印信息,通过二值化转换算法,隐藏所述水印信息,确定隐藏的所述水印信息嵌入所述文本的嵌入位置,根据所述嵌入位置,在所述文本内嵌入隐藏的所述水印信息。利用上述发明,可以将隐藏的水印嵌入到文本内,用以证实数字产品的所有权归属,更有效的保护文本类型的数字产品。

Figure 201910436148

The invention discloses a digital watermark embedding method and device. The method includes: acquiring text to be embedded and watermark information, hiding the watermark information through a binarization conversion algorithm, and determining that the hidden watermark information is embedded in the text According to the embedding position, the hidden watermark information is embedded in the text according to the embedding position. Using the above invention, a hidden watermark can be embedded in the text to verify the ownership of the digital product, and the text-type digital product can be protected more effectively.

Figure 201910436148

Description

一种数字水印嵌入方法及装置A digital watermark embedding method and device

技术领域technical field

本发明涉及水印处理技术领域,具体涉及一种数字水印嵌入方法及装置、电子设备、存储介质。The present invention relates to the technical field of watermark processing, in particular to a method and device for embedding a digital watermark, an electronic device and a storage medium.

背景技术Background technique

随着网络时代的快速发展,数字产品逐渐被大量广泛的传播,为了实现数字产品版权的保护,通常需要在数字产品内添加数字水印,数字水印是包含于原始数字数据(如,文本、图像、音频、视频等)中的不可消除的标识信息,是嵌于数字产品中的数字标识,用以证实数字产品的所有权归属。With the rapid development of the Internet era, digital products are gradually widely disseminated. In order to protect the copyright of digital products, it is usually necessary to add digital watermarks in digital products. Digital watermarks are contained in original digital data (such as text, images, The indelible identification information in audio, video, etc.) is the digital identification embedded in the digital product to verify the ownership of the digital product.

目前,尽管数字水印可以应用到文本、图像、音频、视频在内的数字产品内,但是由于图像和视频产品更被重视版权的保护,使得现有的数字水印嵌入技术都是针对图像和视频产品的特点开发的,并不适用于其他类型的数字产品,而在实际应用中,文本类型的数字产品(如,数字图书杂志、契约、文件等)比那些音频、图像和视频的更有保护价值,因此,需要提供一种基于文本的数字水印嵌入方法。At present, although digital watermarking can be applied to digital products including text, images, audio, and video, because image and video products are more valued for copyright protection, the existing digital watermark embedding technologies are aimed at image and video products. It is not suitable for other types of digital products, and in practical applications, text-type digital products (such as digital books, magazines, contracts, documents, etc.) have more protection value than those of audio, image and video. Therefore, it is necessary to provide a text-based digital watermark embedding method.

发明内容SUMMARY OF THE INVENTION

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的数字水印嵌入方法及装置、电子设备、存储介质。In view of the above problems, the present invention is proposed to provide a digital watermark embedding method and apparatus, electronic device, and storage medium that overcome the above problems or at least partially solve the above problems.

根据本发明的一个方面,一种数字水印嵌入方法,所述方法包括:According to one aspect of the present invention, a digital watermark embedding method, the method includes:

获取待嵌入的文本和水印信息;Get the text and watermark information to be embedded;

通过二值化转换算法,隐藏所述水印信息;Through a binarization conversion algorithm, the watermark information is hidden;

确定隐藏的所述水印信息嵌入所述文本的嵌入位置;determining the embedded position where the hidden watermark information is embedded in the text;

根据所述嵌入位置,在所述文本内嵌入隐藏的所述水印信息。According to the embedding position, the hidden watermark information is embedded in the text.

可选的,通过可逆加密算法加密所述水印信息,对加密后的水印信息进行二值化处理,根据预设的转换字符,对二值化后的水印信息进行转换。Optionally, encrypt the watermark information through a reversible encryption algorithm, perform binarization processing on the encrypted watermark information, and convert the binarized watermark information according to preset conversion characters.

可选的,根据预设的文本指定位置,确定隐藏的所述水印信息嵌入所述文本的嵌入位置。Optionally, according to a preset text designation position, the embedded position where the hidden watermark information is embedded in the text is determined.

可选的,按照预设的字符串长度,分割所述文本内的字符串,根据字符串分割的位置,确定隐藏的所述水印信息嵌入所述文本的嵌入位置。Optionally, the character string in the text is divided according to a preset length of the character string, and the embedding position of the hidden watermark information in the text is determined according to the position of the character string division.

可选的,对所述文本内的字符串进行取模运算,根据模数,确定隐藏的所述水印信息嵌入所述文本的嵌入位置。Optionally, a modulo operation is performed on the character string in the text, and according to the modulo, an embedding position of the hidden watermark information is embedded in the text is determined.

可选的,所述方法还包括:Optionally, the method further includes:

获取待提取水印信息的文本,根据所述嵌入位置,从所述待提取水印信息的文本内提取水印信息,根据预设的转换字符,对所提取的水印信息进行转换,对转换后的水印信息进行二值化处理,通过所述可逆加密算法解密二值化处理后的水印信息。Obtaining the text of the watermark information to be extracted, extracting the watermark information from the text of the watermark information to be extracted according to the embedded position, converting the extracted watermark information according to the preset conversion characters, and converting the converted watermark information Binarization processing is performed, and the binarized watermark information is decrypted through the reversible encryption algorithm.

根据本发明的另一方面,提供了一种数字水印嵌入装置,所述装置包括:According to another aspect of the present invention, a digital watermark embedding apparatus is provided, the apparatus comprising:

获取模块,用于获取待嵌入的文本和水印信息;The acquisition module is used to acquire the text and watermark information to be embedded;

隐藏模块,用于通过二值化转换算法,隐藏所述水印信息;a hiding module, used for hiding the watermark information through a binarization conversion algorithm;

确定模块,用于确定隐藏的所述水印信息嵌入所述文本的嵌入位置;A determining module, for determining the embedded position of the hidden watermark information embedded in the text;

嵌入模块,用于根据所述嵌入位置,在所述文本内嵌入隐藏的所述水印信息。an embedding module, configured to embed the hidden watermark information in the text according to the embedding position.

可选的,所述隐藏模块具体用于,通过可逆加密算法加密所述水印信息,对加密后的水印信息进行二值化处理,根据预设的转换字符,对二值化后的水印信息进行转换。Optionally, the hiding module is specifically configured to encrypt the watermark information through a reversible encryption algorithm, perform binarization processing on the encrypted watermark information, and perform binarization processing on the binarized watermark information according to a preset conversion character. convert.

可选的,所述确定模块具体用于,根据预设的文本指定位置,确定隐藏的所述水印信息嵌入所述文本的嵌入位置。Optionally, the determining module is specifically configured to, according to a preset text designation position, determine an embedding position where the hidden watermark information is embedded in the text.

可选的,所述确定模块具体用于,按照预设的字符串长度,分割所述文本内的字符串,根据字符串分割的位置,确定隐藏的所述水印信息嵌入所述文本的嵌入位置。Optionally, the determining module is specifically configured to, according to a preset string length, divide the character string in the text, and determine the embedded position where the hidden watermark information is embedded in the text according to the position of the character string division. .

可选的,所述确定模块具体用于,对所述文本内的字符串进行取模运算,根据模数,确定隐藏的所述水印信息嵌入所述文本的嵌入位置。Optionally, the determining module is specifically configured to perform a modulo operation on the character string in the text, and determine the embedding position where the hidden watermark information is embedded in the text according to the modulo.

可选的,所述装置还包括:Optionally, the device further includes:

提取模块,用于获取待提取水印信息的文本,根据所述嵌入位置,从所述待提取水印信息的文本内提取水印信息,根据预设的转换字符,对所提取的水印信息进行转换,对转换后的水印信息进行二值化处理,通过所述可逆加密算法解密二值化处理后的水印信息。The extraction module is used for acquiring the text of the watermark information to be extracted, extracting the watermark information from the text of the watermark information to be extracted according to the embedded position, and converting the extracted watermark information according to the preset conversion characters, The converted watermark information is binarized, and the binarized watermark information is decrypted by the reversible encryption algorithm.

根据本发明的另一方面,提供了一种电子设备,包括:处理器、存储器、通信接口和通信总线,所述处理器、所述存储器和所述通信接口通过所述通信总线完成相互间的通信;According to another aspect of the present invention, an electronic device is provided, comprising: a processor, a memory, a communication interface, and a communication bus, and the processor, the memory, and the communication interface can communicate with each other through the communication bus. communication;

所述存储器用于存放至少一可执行指令,所述可执行指令使所述处理器执行以下操作:The memory is used to store at least one executable instruction, and the executable instruction causes the processor to perform the following operations:

获取待嵌入的文本和水印信息;Get the text and watermark information to be embedded;

通过二值化转换算法,隐藏所述水印信息;Through a binarization conversion algorithm, the watermark information is hidden;

确定隐藏的所述水印信息嵌入所述文本的嵌入位置;determining the embedded position where the hidden watermark information is embedded in the text;

根据所述嵌入位置,在所述文本内嵌入隐藏的所述水印信息。According to the embedding position, the hidden watermark information is embedded in the text.

根据本发明的又一方面,提供了一种存储介质,所述存储介质中存储有至少一可执行指令,所述可执行指令使处理器执行以下操作:According to yet another aspect of the present invention, a storage medium is provided, wherein at least one executable instruction is stored in the storage medium, and the executable instruction causes a processor to perform the following operations:

获取待嵌入的文本和水印信息;Get the text and watermark information to be embedded;

通过二值化转换算法,隐藏所述水印信息;Through a binarization conversion algorithm, the watermark information is hidden;

确定隐藏的所述水印信息嵌入所述文本的嵌入位置;determining the embedded position where the hidden watermark information is embedded in the text;

根据所述嵌入位置,在所述文本内嵌入隐藏的所述水印信息。According to the embedding position, the hidden watermark information is embedded in the text.

根据本发明提供的数字水印嵌入方法及装置,该方法包括:获取待嵌入的文本和水印信息,通过二值化转换算法,隐藏所述水印信息,确定隐藏的所述水印信息嵌入所述文本的嵌入位置,根据所述嵌入位置,在所述文本内嵌入隐藏的所述水印信息。利用上述发明,可以将隐藏的水印嵌入到文本内,用以证实数字产品的所有权归属,更有效的保护文本类型的数字产品。According to the method and device for embedding a digital watermark provided by the present invention, the method includes: acquiring the text to be embedded and watermark information, hiding the watermark information through a binarization conversion algorithm, and determining whether the hidden watermark information is embedded in the text. An embedding position, according to the embedding position, the hidden watermark information is embedded in the text. Using the above invention, a hidden watermark can be embedded in the text to verify the ownership of the digital product, and the text-type digital product can be protected more effectively.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, in order to be able to understand the technical means of the present invention more clearly, it can be implemented according to the content of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand , the following specific embodiments of the present invention are given.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are for the purpose of illustrating preferred embodiments only and are not to be considered limiting of the invention. Also, the same components are denoted by the same reference numerals throughout the drawings. In the attached image:

图1示出了根据本发明一个实施例的数字水印嵌入方法的流程图;1 shows a flowchart of a method for embedding a digital watermark according to an embodiment of the present invention;

图2示出了根据本发明一个实施例的数字水印嵌入的装置结构图;Fig. 2 shows the apparatus structure diagram of digital watermark embedding according to an embodiment of the present invention;

图3示出了根据本发明实施例的一种电子设备的结构示意图。FIG. 3 shows a schematic structural diagram of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure will be more thoroughly understood, and will fully convey the scope of the present disclosure to those skilled in the art.

图1示出了根据本发明一个实施例的数字水印嵌入方法的流程图。如图1所示,该方法包括如下步骤:FIG. 1 shows a flowchart of a method for embedding a digital watermark according to an embodiment of the present invention. As shown in Figure 1, the method includes the following steps:

S101:获取待嵌入的文本和水印信息。S101: Acquire text and watermark information to be embedded.

在实际应用中,由于文本类型的数字产品(如,数字图书杂志、契约、文件等)比那些音频、图像和视频的更有保护价值,因此,在本说明书实施例中,需要对文本类型的数字产品加以保护,保护数字产品的所有权归属。In practical applications, since text-type digital products (eg, digital books, magazines, contracts, documents, etc.) have more protection value than those of audio, image, and video, in the embodiment of this specification, it is necessary to protect text-type digital products Digital products are protected and the ownership of digital products is protected.

由于为了实现数字产品版权的保护,通常需要在数字产品内添加数字水印,数字水印是包含于原始数字数据(如,文本、图像、音频、视频等)中的不可消除的标识信息,是嵌于数字产品中的数字标识,用以证实数字产品的所有权归属,因此,在本说明书实施例中,可以通过将数字水印嵌入到文本内的方式来保护文本类型的数字产品。Because in order to realize the copyright protection of digital products, it is usually necessary to add digital watermarks in digital products. Digital watermarks are irremovable identification information contained in original digital data (such as text, images, audio, video, etc.) The digital identification in the digital product is used to verify the ownership of the digital product. Therefore, in the embodiment of this specification, a digital product of text type can be protected by embedding a digital watermark into the text.

进一步的,本说明书实施例在将数字水印嵌入到文本的过程中,首先需要获取待嵌入的文本和水印信息。Further, in the process of embedding the digital watermark into the text in the embodiments of the present specification, it is first necessary to obtain the text to be embedded and the watermark information.

在此需要说明的是,水印信息可根据需求来确定,可以包括文本的作者,也可以包括文本的时间等一种或多种个性化信息。It should be noted here that the watermark information may be determined according to requirements, and may include the author of the text, and may also include one or more personalized information such as the time of the text.

S102:通过二值化转换算法,隐藏所述水印信息。S102: Hide the watermark information through a binarization conversion algorithm.

为了增加嵌入到文本内的水印信息的保密性,防止所嵌入的水印信息被他人获知,在本说明书实施例中,需要通过二值化转换算法,隐藏待嵌入的水印信息。In order to increase the confidentiality of the watermark information embedded in the text and prevent the embedded watermark information from being known to others, in the embodiment of this specification, it is necessary to hide the watermark information to be embedded through a binary conversion algorithm.

进一步的,本说明书实施例给出了一种通过二值化转换算法,隐藏待嵌入的水印信息的实施方式,具体如下:Further, the embodiment of this specification provides an implementation manner of hiding the watermark information to be embedded through a binarization conversion algorithm, as follows:

通过可逆加密算法加密所述水印信息,对加密后的水印信息进行二值化处理,根据预设的转换字符,对二值化后的水印信息进行转换。The watermark information is encrypted by a reversible encryption algorithm, the encrypted watermark information is subjected to binarization processing, and the binarized watermark information is converted according to a preset conversion character.

在此需要说明的是,由于在实际应用中,在将待嵌入的水印信息嵌入到文本后,有可能会将嵌入文本后的水印信息提取出来,因此,在本说明书实施例中,需要使用可逆加密算法来加密水印信息,如,数据加密标准算法,高级加密标准算法以及非对称加密算法。并且,对加密后的水印信息进行二值化处理指的是将加密后的水印信息所包含的字符通过二值化(如,0和1)来表示,相对于仅仅通过可逆加密算法加密水印信息而言更加保密。It should be noted here that, in practical applications, after the watermark information to be embedded is embedded in the text, the watermark information embedded in the text may be extracted. Therefore, in the embodiments of this specification, it is necessary to use a reversible Encryption algorithm to encrypt watermark information, such as Data Encryption Standard Algorithm, Advanced Encryption Standard Algorithm and Asymmetric Encryption Algorithm. Moreover, performing binarization processing on the encrypted watermark information means that the characters contained in the encrypted watermark information are represented by binarization (for example, 0 and 1), which is different from encrypting the watermark information only by the reversible encryption algorithm. more confidential.

另外,预设的转换字符可根据需求来设定,也就是说,针对0或1,预先设定一个转换字符,也就是说,0或1最终由转换字符来表示。In addition, the preset conversion character can be set according to requirements, that is, for 0 or 1, a conversion character is preset, that is, 0 or 1 is finally represented by the conversion character.

例如,假设待嵌入到文本内的水印信息为:作者:张三,时间:2019/03/26,通过可逆加密算法加密所述水印信息,得到如下字符串:5L2c6ICF77ya5byg5LiJ77yM5pe26Ze077yaMjAxOS8wMy8yNg==For example, assuming that the watermark information to be embedded in the text is: Author: Zhang San, Time: 2019/03/26, encrypt the watermark information through a reversible encryption algorithm, and obtain the following string: 5L2c6ICF77ya5byg5LiJ77yM5pe26Ze077yaMjAxOS8wMy8yNg==

再对加密后的水印信息进行二值化处理,得到如下字符串:The encrypted watermark information is then binarized to obtain the following string:

110101 1001100 110010 1100011 110110 1001001 1000011 1000110 110111110111 1111001 1100001 110101 1100010 1111001 1100111 110101 1001100 11010011001010 110111 110111 1111001 1001101 110101 1110000 1100101 110010 1101101011010 1100101 110000 110111 110111 1111001 1100001 1001101 1101010 10000011111000 1001111 1010011 111000 1110111 1001101 1111001 111000 1111001 10011101100111 111101 111101110101 1001100 110010 1100011 110110 1001001 1000011 1000110 110111110111 1111001 1100001 110101 1100010 1111001 1100111 110101 1001100 11010011001010 110111 110111 1111001 1001101 110101 1110000 1100101 110010 1101101011010 1100101 110000 110111 110111 1111001 1100001 1001101 1101010 10000011111000 1001111 1010011 111000 1110111 1001101 1111001 111000 1111001 10011101100111 111101 111101

最后根据预设的转换字符,对二值化后的水印信息进行转换,假设预设的转换字符为:\u200e用来表示水印分割符;\u200b用来表示1;\u200c用来表示0;\u200d用来表示空格,得到如下的字符串:Finally, convert the binarized watermark information according to the preset conversion characters, assuming that the preset conversion characters are: \u200e is used to represent the watermark separator; \u200b is used to represent 1; \u200c is used to represent 0; \u200d is used to represent spaces, resulting in the following string:

\u200e\u200b\u200b\u200c\u200b\u200c\u200b\u200d\u200b\u200c\u200c\u200b\u200b\u200c\u200c\u200d\u200b\u200b\u200c\u200c\u200b\u200c\u200d\u200b\u200b\u200c\u200c\u200c\u200b\u200b\u200d\u200b\u200b\u200c\u200b\u200b\u200c\u200d\u200b\u200c\u200c\u200b\u200c\u200c\u200b\u200d\u200b\u200c\u200c\u200c\u200c\u200b\u200b\u200d\u200b\u200c\u200c\u200c\u200b\u200b\u200c\u200d\u200b\u200b\u200c\u200b\u200b\u200b\u200d\u200b\u200b\u200c\u200b\u200b\u200b\u200d\u200b\u200b\u200b\u200b\u200c\u200c\u200b\u200d\u200b\u200b\u200c\u200c\u200c\u200c\u200b\u200d\u200b\u200b\u200c\u200b\u200c\u200b\u200d\u200b\u200b\u200c\u200c\u200c\u200b\u200c\u200d\u200b\u200b\u200b\u200b\u200c\u200c\u200b\u200d\u200b\u200b\u200c\u200c\u200b\u200b\u200b\u200d\u200b\u200b\u200c\u200b\u200c\u200b\u200d\u200b\u200c\u200c\u200b\u200b\u200c\u200c\u200d\u200b\u200b\u200c\u200b\u200c\u200c\u200b\u200d\u200b\u200c\u200c\u200b\u200c\u200b\u200c\u200d\u200b\u200b\u200c\u200b\u200b\u200b\u200d\u200b\u200b\u200c\u200b\u200b\u200b\u200d\u200b\u200b\u200b\u200b\u200c\u200c\u200b\u200d\u200b\u200c\u200c\u200b\u200b\u200c\u200b\u200d\u200b\u200b\u200c\u200b\u200c\u200b\u200d\u200b\u200b\u200b\u200c\u200c\u200c\u200c\u200d\u200b\u200b\u200c\u200c\u200b\u200c\u200b\u200d\u200b\u200b\u200c\u200c\u200b\u200c\u200d\u200b\u200b\u200c\u200b\u200b\u200c\u200d\u200b\u200c\u200b\u200b\u200c\u200b\u200c\u200d\u200b\u200b\u200c\u200c\u200b\u200c\u200b\u200d\u200b\u200b\u200c\u200c\u200c\u200c\u200d\u200b\u200b\u200c\u200b\u200b\u200b\u200d\u200b\u200b\u200c\u200b\u200b\u200b\u200d\u200b\u200b\u200b\u200b\u200c\u200c\u200b\u200d\u200b\u200b\u200c\u200c\u200c\u200c\u200b\u200d\u200b\u200c\u200c\u200b\u200b\u200c\u200b\u200d\u200b\u200b\u200c\u200b\u200c\u200b\u200c\u200d\u200b\u200c\u200c\u200c\u200c\u200c\u200b\u200d\u200b\u200b\u200b\u200b\u200c\u200c\u200c\u200d\u200b\u200c\u200c\u200b\u200b\u200b\u200b\u200d\u200b\u200c\u200b\u200c\u200c\u200b\u200b\u200d\u200b\u200b\u200b\u200c\u200c\u200c\u200d\u200b\u200b\u200b\u200c\u200b\u200b\u200b\u200d\u200b\u200c\u200c\u200b\u200b\u200c\u200b\u200d\u200b\u200b\u200b\u200b\u200c\u200c\u200b\u200d\u200b\u200b\u200b\u200c\u200c\u200c\u200d\u200b\u200b\u200b\u200b\u200c\u200c\u200b\u200d\u200b\u200c\u200c\u200b\u200b\u200b\u200c\u200d\u200b\u200b\u200c\u200c\u200b\u200b\u200b\u200d\u200b\u200b\u200b\u200b\u200c\u200b\u200d\u200b\u200b\u200b\u200b\u200c\u200b\u200e\u200b\u200b\u200c\u200b\u200c\u200b\u200d\u200b\u200c\u200c\u200b\u200b\u200c\u200c\u200d\u200b\u200b\u200c\u200c\u200b\u200c\u200d\u200b\u200b \u200c\u200c\u200c\u200b\u200b\u200d\u200b\u200b\u200c\u200b\u200b\u200c\u200d\u200b\u200c\u200c\u200b\u200c\u200c\u200b\u200d\u200b\u200c\u200c\u200c \u200c\u200b\u200b\u200d\u200b\u200c\u200c\u200c\u200b\u200b\u200c\u200d\u200b\u200b\u200c\u200b\u200b\u200b\u200d\u200b\u200b\u200c\u200b\u200b\u200b \u200d\u200b\u200b\u200b\u200b\u200c\u200c\u200b\u200d\u200b\u200b\u200c\u200c\u200c\u200c\u200b\u200d\u200b\u200b\u200c\u200b\u200c\u200b\u200d\u200b \u200b\u200c\u200c\u200c\u200b\u200c\u200d\u200b\u200b\u200b\u200b\u200c\u200c\u200b\u200d\u200b\u200b\u200c\u200c\u200b\u200b\u200b\u200d\u200b\u200b \u200c\u200b\u200c\u200b\u200d\u200b\u200c\u200c\u200b\u200b\u200c\u200c\u200d\u200b\u200b\u200c\u200b\u200c\u200c\u200b\u200d\u200b\u200c\u200c\u200b \u200c\u200b\u200c\u200d\u200b\u200b\u200c\u200b\u200b\u200b\u200d\u200b\u200b\u200c\u200b\u200b\u20 0b\u200d\u200b\u200b\u200b\u200b\u200c\u200c\u200b\u200d\u200b\u200c\u200c\u200b\u200b\u200c\u200b\u200d\u2000b\u200b\u20b\u200c20u2 u200b\u200b\u200b\u200c\u200c\u200c\u200c\u200d\u200b\u200b\u200c\u200c\u200b\u200c\u200b\u200d\u200b\u200b\u200c\u200c\u200b\u200c\u200d\u200b\u200b\ u200c\u200b\u200b\u200c\u200d\u200b\u200c\u200b\u200b\u200c\u200b\u200c\u200d\u200b\u200b\u200c\u200c\u200b\u200c\u200b\u200d\u200b\u200b\u200c\u200c\ u200c\u200c\u200d\u200b\u200b\u200c\u200b\u200b\u200b\u200d\u200b\u200b\u200c\u200b\u200b\u200b\u200d\u200b\u200b\u200b\u200b\u200c\u200c\u200b\u200d\ u200b\u200b\u200c\u200c\u200c\u200c\u200b\u200d\u200b\u200c\u200c\u200b\u200b\u200c\u200b\u200d\u200b\u200b\u200c\u200b\u200c\u200b\u200c\u200d\u200b\ u200c\u200c\u200c\u200c\u200c\u200b\u200d\u200b\u200b\u200b\u200b\u200c\u200c\u200c\u200d\u200b\u200c\u200c\u200b\u200b\u200b\u200b\u200d\u200b\u200c\ u200b\u200c\u200c\u200b\u200b\u200d\u200b\u200b\u200b\u200c\u200c\u200c\u200d\u200b\u200b\u200b\u200c\u 200b\u200b\u200b\u200d\u200b\u200c\u200c\u200b\u200b\u200c\u200b\u200d\u200b\u200b\u200b\u200b\u200c\u200c\u200b\u200d\u200b\u200b\u200b\u200c\u200c\ u200c\u200d\u200b\u200b\u200b\u200b\u200c\u200c\u200b\u200d\u200b\u200c\u200c\u200b\u200b\u200b\u200c\u200d\u200b\u200b\u200c\u200c\u200b\u200b\u200b\ u200d\u200b\u200b\u200b\u200b\u200c\u200b\u200d\u200b\u200b\u200b\u200b\u200c\u200b

S103:确定隐藏的所述水印信息嵌入所述文本的嵌入位置。S103: Determine the embedded position where the hidden watermark information is embedded in the text.

S104:根据所述嵌入位置,在所述文本内嵌入隐藏的所述水印信息。S104: Embed the hidden watermark information in the text according to the embedding position.

进一步的,由于在实际应用中还需要知道水印信息到底嵌入到文本的哪个位置,因此,在本说明书实施例中,在对待嵌入的水印信息进行二值化转换,得到隐藏的水印信息后,需要确定隐藏的所述水印信息嵌入所述文本的嵌入位置。Further, since it is necessary to know where the watermark information is embedded in the text in practical applications, in the embodiment of this specification, after the watermark information to be embedded is converted into a binary value to obtain the hidden watermark information, it is necessary to An embedding position where the hidden watermark information is embedded in the text is determined.

在此需要说明的是,本说明书实施例给出了三种确定隐藏的所述水印信息嵌入所述文本的嵌入位置的实施方式,具体如下:It should be noted here that the embodiments of this specification provide three implementation manners for determining the embedding position where the hidden watermark information is embedded in the text, as follows:

第一种实施方式:根据预设的文本指定位置,确定隐藏的所述水印信息嵌入所述文本的嵌入位置。The first implementation manner: according to a preset text designation position, determine the embedded position where the hidden watermark information is embedded in the text.

在此需要说明的是,预设的文本指定位置可以是文本的开头位置,也可以是文本的结尾位置,当然也可以是文本内的任何位置。It should be noted here that the preset text designation position may be the beginning position of the text, or the end position of the text, and certainly may be any position within the text.

第二种实施方式:按照预设的字符串长度,分割所述文本内的字符串,根据字符串分割的位置,确定隐藏的所述水印信息嵌入所述文本的嵌入位置。The second embodiment: according to the preset length of the character string, the character string in the text is divided, and according to the position of the character string division, the embedded position of the hidden watermark information is determined to be embedded in the text.

在此需要说明的是,按照预设的字符串长度,分割所述文本内的字符串指的是通过预设的字符串长度,将文本内的字符串分割成若干个子字符串,再根据子字符串的数量,将待嵌入的水印信息分割成与子字符串数量相同的子水印信息,最后在子字符串之间的分割位置嵌入至少一个子水印信息。It should be noted here that dividing the character string in the text according to the preset character string length refers to dividing the character string in the text into several substrings according to the preset character string length, and then dividing the character string in the text into several substrings according to the preset character string length. The number of strings, the watermark information to be embedded is divided into sub-watermark information with the same number of sub-strings, and at least one sub-watermark information is embedded at the split position between the sub-strings.

第三种实施方式:对所述文本内的字符串进行取模运算,根据模数,确定隐藏的所述水印信息嵌入所述文本的嵌入位置。The third implementation manner: perform a modulo operation on the character string in the text, and determine the embedding position where the hidden watermark information is embedded in the text according to the modulo.

在此需要说明的是,根据模数,确定隐藏的所述水印信息嵌入所述文本的嵌入位置,具体可以是在文本内的字符串内找到模数对应的字符,在该字符的前后均嵌入隐藏的水印信息。It should be noted here that, according to the modulus, the embedded position where the hidden watermark information is embedded in the text is determined. Specifically, the character corresponding to the modulus can be found in the character string in the text, and embedded before and after the character. Hidden watermark information.

以上为本说明书实施例提供的三种确定隐藏的所述水印信息嵌入所述文本的嵌入位置的实施方式,但并局限于上述三种方式,选用的实施方式只要遵循以下原则即可:所确定的隐藏的所述水印信息嵌入文本的嵌入位置要有足够稳定性,不能因为文本内容变化了导致特则不可用;分布均匀,这样可以保证水印信息尽可能松散存放,提升水印被提取的难度;要有足够的空间存放水印信息。The above three implementations for determining the embedding position of the hidden watermark information into the text provided in the embodiments of the present specification are not limited to the above three implementations, and the selected implementations only need to follow the following principles: The embedded position of the hidden watermark information embedded in the text must be stable enough, and it cannot be unavailable because the text content changes; the distribution is uniform, which can ensure that the watermark information is stored as loosely as possible, and improve the difficulty of watermark extraction; There must be enough space to store the watermark information.

最后,在确定出隐藏的所述水印信息嵌入所述文本的嵌入位置后,根据所述嵌入位置,在所述文本内嵌入隐藏的所述水印信息。Finally, after determining the embedding position where the hidden watermark information is embedded in the text, the hidden watermark information is embedded in the text according to the embedding position.

通过上述方法,可以将隐藏的水印嵌入到文本内,用以证实数字产品的所有权归属,更有效的保护文本类型的数字产品。Through the above method, a hidden watermark can be embedded in the text to verify the ownership of the digital product, and the text-type digital product can be protected more effectively.

在实际应用中,有可能存在为了知道已添加水印信息的文本的归属权,也就是说,已添加水印信息的文本是谁的,需要提取文本内的水印信息的情况,因此,在本说明书实施例中,提供了一种提取文本内水印信息的实施方式,具体如下:In practical applications, it may be necessary to extract the watermark information in the text in order to know the attribution of the text to which the watermark information has been added, that is, who owns the text to which the watermark information has been added. In the example, an implementation manner of extracting the watermark information in the text is provided, as follows:

获取待提取水印信息的文本,根据所述嵌入位置,从所述待提取水印信息的文本内提取水印信息,根据预设的转换字符,对所提取的水印信息进行转换,对转换后的水印信息进行二值化处理,通过所述可逆加密算法解密二值化处理后的水印信息。Obtaining the text of the watermark information to be extracted, extracting the watermark information from the text of the watermark information to be extracted according to the embedded position, converting the extracted watermark information according to the preset conversion characters, and converting the converted watermark information Binarization processing is performed, and the binarized watermark information is decrypted through the reversible encryption algorithm.

在此需要说明的是,从中可以看出水印信息是通过什么样的流程嵌入到文本内的,后续,在提取文本内的水印信息时就通过相反的流程来提取,在本说明书实施例中,提取文本内水印信息也叫叛逆追踪。What needs to be explained here is that it can be seen from which process the watermark information is embedded into the text. Subsequently, when extracting the watermark information in the text, it is extracted through the reverse process. In the embodiment of this specification, Extracting the watermark information in the text is also called treason tracking.

以上是本申请实施例提供的数字水印嵌入的方法,基于此,本申请实施例提供了一种数字水印嵌入的装置,如图2所示,该装置包括:The above is the method for embedding a digital watermark provided by the embodiment of the present application. Based on this, the embodiment of the present application provides a device for embedding a digital watermark. As shown in FIG. 2 , the device includes:

获取模块201,用于获取待嵌入的文本和水印信息;Obtaining module 201, for obtaining the text and watermark information to be embedded;

隐藏模块202,用于通过二值化转换算法,隐藏所述水印信息;a hiding module 202, configured to hide the watermark information through a binarization conversion algorithm;

确定模块203,用于确定隐藏的所述水印信息嵌入所述文本的嵌入位置;A determination module 203, configured to determine the embedded position where the hidden watermark information is embedded in the text;

嵌入模块204,用于根据所述嵌入位置,在所述文本内嵌入隐藏的所述水印信息。The embedding module 204 is configured to embed the hidden watermark information in the text according to the embedding position.

所述隐藏模块202具体用于,通过可逆加密算法加密所述水印信息,对加密后的水印信息进行二值化处理,根据预设的转换字符,对二值化后的水印信息进行转换。The hiding module 202 is specifically configured to encrypt the watermark information through a reversible encryption algorithm, perform binarization processing on the encrypted watermark information, and convert the binarized watermark information according to preset conversion characters.

所述确定模块203具体用于,根据预设的文本指定位置,确定隐藏的所述水印信息嵌入所述文本的嵌入位置。The determining module 203 is specifically configured to, according to a preset text designation position, determine an embedding position where the hidden watermark information is embedded in the text.

所述确定模块203具体用于,按照预设的字符串长度,分割所述文本内的字符串,根据字符串分割的位置,确定隐藏的所述水印信息嵌入所述文本的嵌入位置。The determining module 203 is specifically configured to divide the character string in the text according to the preset length of the character string, and determine the embedding position where the hidden watermark information is embedded in the text according to the position of the character string division.

所述确定模块203具体用于,对所述文本内的字符串进行取模运算,根据模数,确定隐藏的所述水印信息嵌入所述文本的嵌入位置。The determining module 203 is specifically configured to perform a modulo operation on the character string in the text, and determine the embedded position where the hidden watermark information is embedded in the text according to the modulo.

所述装置还包括:The device also includes:

提取模块205,用于获取待提取水印信息的文本,根据所述嵌入位置,从所述待提取水印信息的文本内提取水印信息,根据预设的转换字符,对所提取的水印信息进行转换,对转换后的水印信息进行二值化处理,通过所述可逆加密算法解密二值化处理后的水印信息。The extraction module 205 is configured to obtain the text of the watermark information to be extracted, extract the watermark information from the text of the watermark information to be extracted according to the embedded position, and convert the extracted watermark information according to the preset conversion characters, Binarization is performed on the converted watermark information, and the binarized watermark information is decrypted through the reversible encryption algorithm.

本申请实施例还提供了一种非易失性计算机存储介质,所述计算机存储介质存储有至少一可执行指令,该计算机可执行指令可执行上述任意方法实施例中的数字水印嵌入方法。Embodiments of the present application further provide a non-volatile computer storage medium, where the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the digital watermark embedding method in any of the above method embodiments.

图3示出了根据本发明实施例的一种电子设备的结构示意图,本发明具体实施例并不对电子设备的具体实现做限定。FIG. 3 shows a schematic structural diagram of an electronic device according to an embodiment of the present invention. The specific embodiment of the present invention does not limit the specific implementation of the electronic device.

如图3所示,该电子设备可以包括:处理器(processor)302、通信接口(Communications Interface)304、存储器(memory)306、以及通信总线308。As shown in FIG. 3 , the electronic device may include: a processor (processor) 302 , a communication interface (Communications Interface) 304 , a memory (memory) 306 , and a communication bus 308 .

其中:in:

处理器302、通信接口304、以及存储器306通过通信总线308完成相互间的通信。The processor 302 , the communication interface 304 , and the memory 306 communicate with each other through the communication bus 308 .

通信接口304,用于与其它设备比如客户端或其它服务器等的网元通信。The communication interface 304 is used for communicating with network elements of other devices such as clients or other servers.

处理器302,用于执行程序310,具体可以执行上述数字水印嵌入方法实施例中的相关步骤。The processor 302 is configured to execute the program 310, and specifically may execute the relevant steps in the above embodiments of the digital watermark embedding method.

具体地,程序310可以包括程序代码,该程序代码包括计算机操作指令。Specifically, the program 310 may include program code including computer operation instructions.

处理器302可能是中央处理器CPU,或者是特定集成电路ASIC(ApplicationSpecific Integrated Circuit),或者是被配置成实施本发明实施例的一个或多个集成电路。电子设备包括的一个或多个处理器,可以是同一类型的处理器,如一个或多个CPU;也可以是不同类型的处理器,如一个或多个CPU以及一个或多个ASIC。The processor 302 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. The one or more processors included in the electronic device may be the same type of processors, such as one or more CPUs; or may be different types of processors, such as one or more CPUs and one or more ASICs.

存储器306,用于存放程序310。存储器306可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The memory 306 is used to store the program 310 . Memory 306 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk memory.

程序310具体可以用于使得处理器302执行以下操作:The program 310 can specifically be used to cause the processor 302 to perform the following operations:

获取待嵌入的文本和水印信息;Get the text and watermark information to be embedded;

通过二值化转换算法,隐藏所述水印信息;Through a binarization conversion algorithm, the watermark information is hidden;

确定隐藏的所述水印信息嵌入所述文本的嵌入位置;determining the embedded position where the hidden watermark information is embedded in the text;

根据所述嵌入位置,在所述文本内嵌入隐藏的所述水印信息。According to the embedding position, the hidden watermark information is embedded in the text.

可选地,程序310还可以用于使得处理器302执行以下操作:Optionally, program 310 may also be used to cause processor 302 to perform the following operations:

通过可逆加密算法加密所述水印信息;Encrypt the watermark information by a reversible encryption algorithm;

对加密后的水印信息进行二值化处理;Binarize the encrypted watermark information;

根据预设的转换字符,对二值化后的水印信息进行转换。Convert the binarized watermark information according to the preset conversion characters.

可选地,程序310还可以用于使得处理器302执行以下操作:Optionally, program 310 may also be used to cause processor 302 to perform the following operations:

根据预设的文本指定位置,确定隐藏的所述水印信息嵌入所述文本的嵌入位置。According to a preset text designation position, determine the embedded position where the hidden watermark information is embedded in the text.

可选地,程序310还可以用于使得处理器302执行以下操作:Optionally, program 310 may also be used to cause processor 302 to perform the following operations:

按照预设的字符串长度,分割所述文本内的字符串;According to the preset string length, the string in the text is divided;

根据字符串分割的位置,确定隐藏的所述水印信息嵌入所述文本的嵌入位置。According to the position where the character string is split, the embedded position where the hidden watermark information is embedded in the text is determined.

可选地,程序310还可以用于使得处理器302执行以下操作:Optionally, program 310 may also be used to cause processor 302 to perform the following operations:

对所述文本内的字符串进行取模运算;performing a modulo operation on the character string in the text;

根据模数,确定隐藏的所述水印信息嵌入所述文本的嵌入位置。According to the modulus, the embedded position where the hidden watermark information is embedded in the text is determined.

可选地,程序310还可以用于使得处理器302执行以下操作:Optionally, program 310 may also be used to cause processor 302 to perform the following operations:

获取待提取水印信息的文本;Obtain the text of the watermark information to be extracted;

根据所述嵌入位置,从所述待提取水印信息的文本内提取水印信息;According to the embedded position, extract watermark information from the text of the to-be-extracted watermark information;

根据预设的转换字符,对所提取的水印信息进行转换;Convert the extracted watermark information according to the preset conversion characters;

对转换后的水印信息进行二值化处理;Binarize the converted watermark information;

通过所述可逆加密算法解密二值化处理后的水印信息。The binarized watermark information is decrypted through the reversible encryption algorithm.

在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used with teaching based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not directed to any particular programming language. It is to be understood that various programming languages may be used to implement the inventions described herein, and that the descriptions of specific languages above are intended to disclose the best mode for carrying out the invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. It will be understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it is to be understood that in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together into a single embodiment, figure, or its description. This disclosure, however, should not be construed as reflecting an intention that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. The modules or units or components in the embodiments may be combined into one module or unit or component, and further they may be divided into multiple sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method so disclosed may be employed in any combination, unless at least some of such features and/or procedures or elements are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will appreciate that although some of the embodiments described herein include certain features, but not others, included in other embodiments, that combinations of features of different embodiments are intended to be within the scope of the invention within and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的用于扫地机器人的任务调度设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。Various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that, in practice, a microprocessor or a digital signal processor (DSP) may be used to implement some or all of some or all of some or all of the components in the task scheduling apparatus for a cleaning robot according to an embodiment of the present invention Function. The present invention can also be implemented as apparatus or apparatus programs (eg, computer programs and computer program products) for performing part or all of the methods described herein. Such a program implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such signals may be downloaded from Internet sites, or provided on carrier signals, or in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-described embodiments illustrate rather than limit the invention, and that alternative embodiments may be devised by those skilled in the art without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. do not denote any order. These words can be interpreted as names.

本发明还公开了A7、一种数字水印嵌入装置,包括:The invention also discloses A7, a digital watermark embedding device, comprising:

获取模块,用于获取待嵌入的文本和水印信息;The acquisition module is used to acquire the text and watermark information to be embedded;

隐藏模块,用于通过二值化转换算法,隐藏所述水印信息;a hiding module, used for hiding the watermark information through a binarization conversion algorithm;

确定模块,用于确定隐藏的所述水印信息嵌入所述文本的嵌入位置;A determining module, for determining the embedded position of the hidden watermark information embedded in the text;

嵌入模块,用于根据所述嵌入位置,在所述文本内嵌入隐藏的所述水印信息。an embedding module, configured to embed the hidden watermark information in the text according to the embedding position.

A8、根据权利要求A7所述的装置,所述隐藏模块具体用于,通过可逆加密算法加密所述水印信息,对加密后的水印信息进行二值化处理,根据预设的转换字符,对二值化后的水印信息进行转换。A8. The device according to claim A7, wherein the concealment module is specifically configured to encrypt the watermark information through a reversible encryption algorithm, perform binarization processing on the encrypted watermark information, and perform binary processing on the two The valued watermark information is converted.

A9、根据权利要求A7所述的装置,所述确定模块具体用于,根据预设的文本指定位置,确定隐藏的所述水印信息嵌入所述文本的嵌入位置。A9. The apparatus according to claim A7, wherein the determining module is specifically configured to, according to a preset text designation position, determine an embedding position where the hidden watermark information is embedded in the text.

A10、根据权利要求A7所述的装置,所述确定模块具体用于,按照预设的字符串长度,分割所述文本内的字符串,根据字符串分割的位置,确定隐藏的所述水印信息嵌入所述文本的嵌入位置。A10. The apparatus according to claim A7, wherein the determining module is specifically configured to, according to a preset length of the character string, divide the character string in the text, and determine the hidden watermark information according to the position of the character string division Embed position to embed the text.

A11、根据权利要求A7所述的装置,所述确定模块具体用于,对所述文本内的字符串进行取模运算,根据模数,确定隐藏的所述水印信息嵌入所述文本的嵌入位置。A11. The apparatus according to claim A7, wherein the determining module is specifically configured to perform a modulo operation on a character string in the text, and determine the embedded position where the hidden watermark information is embedded in the text according to the modulo .

A12、根据权利要求A8所述的装置,所述装置还包括:A12. The apparatus of claim A8, further comprising:

提取模块,用于获取待提取水印信息的文本,根据所述嵌入位置,从所述待提取水印信息的文本内提取水印信息,根据预设的转换字符,对所提取的水印信息进行转换,对转换后的水印信息进行二值化处理,通过所述可逆加密算法解密二值化处理后的水印信息。The extraction module is used for acquiring the text of the watermark information to be extracted, extracting the watermark information from the text of the watermark information to be extracted according to the embedded position, and converting the extracted watermark information according to the preset conversion characters, The converted watermark information is binarized, and the binarized watermark information is decrypted by the reversible encryption algorithm.

Claims (10)

1. A digital watermark embedding method, comprising:
acquiring a text to be embedded and watermark information;
hiding the watermark information through a binarization conversion algorithm;
determining an embedding position of the hidden watermark information embedded into the text;
and embedding the hidden watermark information in the text according to the embedding position.
2. The method according to claim 1, hiding the watermark information through a binarization conversion algorithm, specifically comprising:
encrypting the watermark information by a reversible encryption algorithm;
carrying out binarization processing on the encrypted watermark information;
and converting the binarized watermark information according to a preset conversion character.
3. The method according to claim 1, wherein determining an embedding position where the hidden watermark information is embedded in the text specifically includes:
And determining the embedding position of the hidden watermark information embedded into the text according to the preset specified position of the text.
4. The method according to claim 1, wherein determining an embedding position where the hidden watermark information is embedded in the text specifically includes:
dividing character strings in the text according to a preset character string length;
and determining the embedding position of the hidden watermark information embedded into the text according to the character string segmentation position.
5. The method according to claim 1, wherein determining an embedding position where the hidden watermark information is embedded in the text specifically includes:
performing modular operation on the character strings in the text;
and determining the embedding position of the hidden watermark information embedded into the text according to the modulus.
6. The method of claim 2, further comprising:
acquiring a text of watermark information to be extracted;
extracting watermark information from the text of the watermark information to be extracted according to the embedding position;
converting the extracted watermark information according to a preset conversion character;
carrying out binarization processing on the converted watermark information;
and decrypting the watermark information after the binarization processing through the reversible encryption algorithm.
7. A digital watermark embedding apparatus, comprising:
the acquisition module is used for acquiring the text to be embedded and the watermark information;
the hiding module is used for hiding the watermark information through a binarization conversion algorithm;
the determining module is used for determining the embedding position of the hidden watermark information embedded into the text;
and the embedding module is used for embedding the hidden watermark information into the text according to the embedding position.
8. The apparatus according to claim 7, wherein the hiding module is specifically configured to encrypt the watermark information through a reversible encryption algorithm, perform binarization processing on the encrypted watermark information, and convert the binarized watermark information according to a preset conversion character.
9. An electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the corresponding operation of the digital watermark embedding method according to any one of claims 1-6.
10. A computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the digital watermark embedding method according to any one of claims 1 to 6.
CN201910436148.2A 2019-05-23 2019-05-23 Digital watermark embedding method and device Pending CN111986065A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910436148.2A CN111986065A (en) 2019-05-23 2019-05-23 Digital watermark embedding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910436148.2A CN111986065A (en) 2019-05-23 2019-05-23 Digital watermark embedding method and device

Publications (1)

Publication Number Publication Date
CN111986065A true CN111986065A (en) 2020-11-24

Family

ID=73437175

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910436148.2A Pending CN111986065A (en) 2019-05-23 2019-05-23 Digital watermark embedding method and device

Country Status (1)

Country Link
CN (1) CN111986065A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024066271A1 (en) * 2022-09-27 2024-04-04 北京柏睿数据技术股份有限公司 Database watermark embedding method and apparatus, database watermark tracing method and apparatus, and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1700205A (en) * 2005-06-24 2005-11-23 清华大学 A Method of Embedding and Extracting Watermark in English Text
CN1924925A (en) * 2006-09-28 2007-03-07 北京理工大学 Document data waterprint embedded method
CN103049682A (en) * 2013-01-28 2013-04-17 上海理工大学 Character pitch encoding-based dual-watermark embedded text watermarking method
CN105989253A (en) * 2015-03-06 2016-10-05 北京万方数据股份有限公司 Watermark embedding method as well as extraction method and apparatus
CN107330306A (en) * 2017-06-28 2017-11-07 百度在线网络技术(北京)有限公司 Text Watermarking is embedded in and extracting method, device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1700205A (en) * 2005-06-24 2005-11-23 清华大学 A Method of Embedding and Extracting Watermark in English Text
CN1924925A (en) * 2006-09-28 2007-03-07 北京理工大学 Document data waterprint embedded method
CN103049682A (en) * 2013-01-28 2013-04-17 上海理工大学 Character pitch encoding-based dual-watermark embedded text watermarking method
CN105989253A (en) * 2015-03-06 2016-10-05 北京万方数据股份有限公司 Watermark embedding method as well as extraction method and apparatus
CN107330306A (en) * 2017-06-28 2017-11-07 百度在线网络技术(北京)有限公司 Text Watermarking is embedded in and extracting method, device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024066271A1 (en) * 2022-09-27 2024-04-04 北京柏睿数据技术股份有限公司 Database watermark embedding method and apparatus, database watermark tracing method and apparatus, and electronic device

Similar Documents

Publication Publication Date Title
US11922532B2 (en) System for mitigating the problem of deepfake media content using watermarking
TW522722B (en) Method of integrating a watermark into a compressed image
US7873183B2 (en) Embedding and detecting watermarks based on embedded positions in document layout
JP2010158024A (en) Fingerprinting of data object
WO2021109691A1 (en) Blockchain-based picture watermark processing method and apparatus
JP6442060B2 (en) Method and apparatus for publishing watermarked video protected by local copyright
KR101143233B1 (en) Desynchronized fingerprinting method and system for digital multimedia data
CN110457873A (en) A watermark embedding and detection method and device
Bucerzan et al. SmartSteg: A new android based steganography application.
CN104850765A (en) Watermark processing method, device and system
CN106845242B (en) A Hidden Information Detection and Extraction Method Based on IS4 Software Features
JP2008187608A (en) Data transmission system
US20160035058A1 (en) Digital watermarking
CN109859090B (en) Reversible watermarking method and device based on human visual system
CN108681982A (en) A kind of embedding algorithm and extracting method and system based on singular value decomposition
Tayan et al. An adaptive zero-watermarking approach for text documents protection
CN110874456B (en) Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting device and data processing method
CN110619197A (en) Digital asset right-confirming registration information processing system and method
CN112015806A (en) Method and device for storing data in blockchain
CN111986065A (en) Digital watermark embedding method and device
CN111881425B (en) Picture copyright authentication method, device and storage medium
Kumar et al. Developing a secure image steganographic system using TPVD adaptive LSB matching revisited algorithm for maximizing the embedding rate
CN113177193A (en) Watermark adding method, watermark verifying method and terminal equipment
CN110008663B (en) Method for quickly embedding and extracting information for PDF document protection and distribution tracking
CN106603244A (en) Digital right management protection method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination