CN110969563B - Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting equipment and data processing method - Google Patents

Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting equipment and data processing method Download PDF

Info

Publication number
CN110969563B
CN110969563B CN201811138577.3A CN201811138577A CN110969563B CN 110969563 B CN110969563 B CN 110969563B CN 201811138577 A CN201811138577 A CN 201811138577A CN 110969563 B CN110969563 B CN 110969563B
Authority
CN
China
Prior art keywords
watermark information
camouflage
image
information image
dimensional code
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.)
Active
Application number
CN201811138577.3A
Other languages
Chinese (zh)
Other versions
CN110969563A (en
Inventor
刘永亮
归加琪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
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 Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN201811138577.3A priority Critical patent/CN110969563B/en
Publication of CN110969563A publication Critical patent/CN110969563A/en
Application granted granted Critical
Publication of CN110969563B publication Critical patent/CN110969563B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2201/00General purpose image data processing
    • G06T2201/005Image watermarking
    • G06T2201/0065Extraction of an embedded watermark; Reliable detection

Abstract

The application discloses a watermark embedding method, which comprises the following steps: acquiring watermark information to be embedded into a carrier object; converting the watermark information into a two-dimensional code image; carrying out camouflage processing on the two-dimensional code image to watermark an information image; and embedding the camouflage watermark information image into a background area with the same pixel value of the carrier object. The method is adopted to solve the security problem of the watermark embedded into the carrier object.

Description

Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting equipment and data processing method
Technical Field
The present application relates to digital watermark embedding technology, and in particular, to a watermark embedding method and apparatus, an electronic device, and a storage device. The application also relates to a watermark extraction method, a watermark extraction device, electronic equipment and storage equipment. The application also relates to a data processing method.
Background
The recent frequent occurrence of significant and pernicious data security events, particularly internal compromise, makes conventional data security architectures even more challenging. The data watermarking technology is a guarantee means for preventing data leakage, and can play a role in data tracing and copyright protection. At present, digital watermarking technology is mainly focused on digital products such as images, videos and audios, and the development of webpage watermarking technology is slow. The web page is used as a carrier for information dissemination, more and more information content appears on web page content (such as video websites and the like), and the security problem of the web page content gradually becomes a hot issue. In order to secure the contents of a web page, one approach is to embed a watermark in the web page. However, watermarks embedded on web pages are also vulnerable.
Therefore, how to secure watermarks embedded in carrier objects including web pages is a problem to be solved.
Disclosure of Invention
The application provides a watermark embedding method, a watermark embedding device and watermark embedding equipment, which are used for solving the safety problem of a watermark embedded into a carrier object.
The application provides a watermark embedding method, which comprises the following steps:
acquiring watermark information to be embedded into a carrier object;
converting the watermark information into a two-dimensional code image;
carrying out camouflage processing on the two-dimensional code image to obtain a camouflage watermark information image;
and embedding the camouflage watermark information image into a background area with the same pixel value of the carrier object.
Optionally, the method further includes: judging whether a background area with the same pixel value exists in the carrier object;
the converting the watermark information into a two-dimensional code image includes: and if the background areas with the same pixel value exist in the carrier object, converting the watermark information into a two-dimensional code image.
Optionally, the disguising the two-dimensional code image to obtain a disguised watermark information image includes:
carrying out reverse color processing on the two-dimensional code image to obtain a first camouflage watermark information image;
the embedding the camouflage watermark information image into the background area with the same pixel value of the carrier object comprises: and embedding the first camouflage watermark information image into a background area with the same pixel value of the carrier object.
Optionally, the performing a color reversal process on the two-dimensional code image to obtain a first camouflage watermark information image includes:
generating a standard image which is black and white and has the same size with the two-dimensional code image;
and carrying out XOR operation on corresponding pixel values of the two-dimensional code image and the standard image to obtain a first camouflage watermark information image.
Optionally, the method further includes:
performing desalination processing on the first camouflage watermark information image to obtain a second camouflage watermark information image;
the embedding the first camouflage watermark information image into the background area with the same pixel value of the carrier object comprises: and embedding the second camouflage watermark information image into a background area with the same pixel value of the carrier object.
Optionally, the performing a desalination process on the first disguised watermark information image to obtain a second disguised watermark information image includes:
and replacing the black pixel value in the first camouflage watermark information image with a fade color value which has the same pixel value and is different from the background area by a first pixel value to obtain a second camouflage watermark information image.
Optionally, the disguising the two-dimensional code image to obtain a disguised watermark information image includes:
generating a black and white standard image with the same size as the two-dimensional code image;
performing desalination treatment on the two-dimensional code image and the standard image;
performing XOR operation on corresponding pixel values of the two-dimensional code image after the desalination processing and the standard image to obtain a second camouflage watermark information image;
the embedding the camouflage watermark information image into the background area with the same pixel value of the carrier object comprises: and embedding the second camouflage watermark information image into a background area with the same pixel value of the carrier object.
Optionally, the method further includes:
determining positioning points on four vertex angle pixels of the second camouflage watermark information image;
replacing the color value of the positioning point with a color value which is lower than the fading color value of the second camouflage watermark information image by a second pixel value to obtain a third camouflage watermark information image;
the embedding the second camouflage watermark information image into the background area of the carrier object with the same pixel value comprises: and tiling the third camouflage watermark information image serving as an element of the carrier object to a background area with the same pixel value of the carrier object.
Optionally, the disguising the two-dimensional code image to obtain a disguised watermark information image includes:
and scrambling the two-dimensional code image by adopting a scrambling code to obtain a camouflage watermark information image.
Optionally, the method further includes:
and informing the scrambling code to a watermark information extraction end.
Optionally, the method further includes: and providing the embedded position information of the disguised watermark information image to a watermark information extraction end.
The application also provides a watermark extraction method, which comprises the following steps:
obtaining a carrier object;
extracting a camouflage watermark information image from the carrier object, wherein the camouflage watermark information image comprises watermark information embedded into the carrier object;
carrying out reverse camouflage processing on the camouflage watermark information image to obtain a two-dimensional code image;
and analyzing the two-dimensional code image to obtain the watermark information.
Optionally, the carrier object is a web page, and the extracting the camouflage watermark information image from the carrier object includes:
determining a js library and a css library associated with the webpage according to the position information of the camouflage watermark information image in the webpage; and finding the camouflage watermark information image from the js library and the css library associated with the webpage.
Optionally, the carrier object is a screenshot; the extracting of the camouflage watermark information image from the carrier object comprises:
determining the positions of the positioning points according to the color values of the 4 positioning points of the camouflage watermark information image;
and intercepting the camouflage watermark information image in the screenshot according to the positions of the 4 positioning points.
Optionally, the performing an inverse camouflage process on the camouflage watermark information image to obtain a two-dimensional code image includes:
and performing reverse color and reverse process and/or color restoration processing on the camouflage watermark information image to obtain a two-dimensional code image.
Optionally, the performing an inverse camouflage process on the camouflage watermark information image to obtain a two-dimensional code image includes:
and carrying out anti-scrambling processing on the disguised watermark information image by adopting a scrambling code to obtain the two-dimensional code image.
The present application further provides a watermark embedding apparatus, comprising:
a watermark information obtaining unit, for obtaining the watermark information to be embedded into the carrier object;
the watermark information conversion unit is used for converting the watermark information into a two-dimensional code image;
the two-dimensional code image disguising unit is used for disguising the two-dimensional code image to obtain a disguised watermark information image;
and the camouflage watermark information image embedding unit is used for embedding the camouflage watermark information image into the background area with the same pixel value of the carrier object.
The present application additionally provides an electronic device comprising:
a processor; and
a memory for storing a program of a watermark embedding method, the apparatus performing the following steps after being powered on and running the program of the watermark embedding method by the processor:
acquiring watermark information to be embedded into a carrier object;
converting the watermark information into a two-dimensional code image;
carrying out camouflage processing on the two-dimensional code image to obtain a camouflage watermark information image;
and embedding the camouflage watermark information image into a background area with the same pixel value of the carrier object.
The present application further provides a storage device,
a program storing a watermark embedding method, the program being executed by a processor to perform the steps of:
acquiring watermark information to be embedded into a carrier object;
converting the watermark information into a two-dimensional code image;
carrying out camouflage processing on the two-dimensional code image to obtain a camouflage watermark information image;
and embedding the camouflage watermark information image into a background area with the same pixel value of the carrier object.
The present application further provides a watermark extraction apparatus, including:
a carrier object obtaining unit for obtaining a carrier object;
a camouflaged watermark information image extraction unit, which is used for extracting a camouflaged watermark information image from the carrier object, wherein the camouflaged watermark information image comprises watermark information embedded into the carrier object;
a two-dimensional code image obtaining unit, configured to perform inverse camouflage processing on the camouflage watermark information image to obtain a two-dimensional code image;
and the watermark information obtaining unit is used for analyzing the two-dimensional code image to obtain the watermark information.
The present application additionally provides an electronic device comprising:
a processor; and
a memory for storing a program of a watermark extraction method, the apparatus performing the following steps after being powered on and running the program of the watermark extraction method by the processor:
obtaining a carrier object;
extracting a camouflage watermark information image from the carrier object, wherein the camouflage watermark information image comprises watermark information embedded into the carrier object;
carrying out reverse camouflage processing on the camouflage watermark information image to obtain a two-dimensional code image;
and analyzing the two-dimensional code image to obtain the watermark information.
The present application further provides a storage device,
a program storing a watermark extraction method, the program being executed by a processor to perform the steps of:
obtaining a carrier object;
extracting a camouflage watermark information image from the carrier object, wherein the camouflage watermark information image comprises watermark information embedded into the carrier object;
carrying out reverse camouflage processing on the camouflage watermark information image to obtain a two-dimensional code image;
and analyzing the two-dimensional code image to obtain the watermark information.
The present application further provides a data processing method, including:
acquiring a carrier object and first identification information;
converting the first identification information into second identification information, wherein the second identification information is to-be-embedded data;
and embedding the second identification information into an area of the carrier object, wherein the pixel value of the area meets a preset condition.
Optionally, an area where the pixel value of the carrier object meets a preset condition is a background area of the carrier object.
Optionally, the preset conditions include: the pixel values are the same or the pixel value difference is within a preset range.
Optionally, the converting the first identification information into the second identification information includes:
converting the first identification information into a two-dimensional code image;
converting the two-dimensional code image into second identification information;
optionally, the converting the first identification information into a two-dimensional code image includes:
judging whether a background area with the same pixel value exists in the carrier object;
if yes, converting the first identification information into a two-dimensional code image.
Optionally, the converting the two-dimensional code image into second identification information includes:
generating a standard image which is black and white and has the same size with the two-dimensional code image;
carrying out XOR operation on corresponding pixel values of the two-dimensional code image and the standard image; obtaining a first camouflage watermark information image;
and performing desalination processing on the first camouflage watermark information image to obtain the second identification information.
Optionally, the performing a fading process on the first camouflage watermark information image to obtain the second identification information includes:
and replacing the black pixel value in the first camouflage watermark information image with a fade color value which has the same pixel value and has a first pixel value difference with the background area to obtain the second identification information.
Optionally, the method further includes:
determining positioning points on four corner pixels of the second identification information;
replacing the color value of the positioning point with a color value lower than the fading color value of the second identification information by a second pixel value to obtain third identification information;
the embedding the second identification information into the area where the pixel value of the carrier object meets the preset condition includes: tiling the third identification information as an element of a carrier object to a background area of the carrier object having the same pixel value.
Compared with the prior art, the method has the following advantages:
the application provides a watermark embedding method, a watermark embedding device, electronic equipment and storage equipment, firstly, watermark information is converted into a two-dimensional code image; then, carrying out camouflage processing on the two-dimensional code image to obtain a camouflage watermark information image; and finally, embedding the camouflage watermark information image into a background area with the same pixel value of the carrier object. According to the method and the device, the camouflage watermark information image is embedded into the background area with the same pixel value of the carrier object, so that the camouflage watermark information image is not easy to be found by an attacker, and the screenshot attack can be resisted, so that the safety problem of the watermark embedded into the carrier object is solved.
Drawings
Fig. 1 is a flowchart of a watermark embedding method according to a first embodiment of the present application.
Fig. 2 is a schematic diagram of a two-dimensional code image converted from watermark information according to a first embodiment of the present application.
Fig. 3 is a schematic view of a carrier object provided in the first embodiment of the present application.
Fig. 4 is a schematic diagram of a standard image provided in the first embodiment of the present application.
Fig. 5 is a schematic diagram of a first camouflage watermark information image obtained by performing a color reversal process on a two-dimensional code image according to a first embodiment of the present application.
Fig. 6 is a schematic diagram of obtaining a second camouflage watermark information image according to the first embodiment of the present application.
Fig. 7 is a schematic diagram of a third masquerading watermark information image containing 4 anchor points according to the first embodiment of the present application.
Fig. 8 is a schematic diagram of tiling a third camouflage watermark information image as an element of a carrier object onto a background area of the carrier object with the same pixel value according to the first embodiment of the present application.
Fig. 9 is a flowchart of a watermark extraction method according to a second embodiment of the present application.
Fig. 10 is a schematic diagram of a watermark embedding apparatus according to a third embodiment of the present application.
Fig. 11 is a schematic diagram of an electronic device according to a fourth embodiment of the present application.
Fig. 12 is a schematic diagram of a watermark extraction apparatus according to a sixth embodiment of the present application.
Fig. 13 is a schematic diagram of an electronic device according to a seventh embodiment of the present application.
Fig. 14 is a flowchart of a data processing method according to a ninth embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, but rather construed as limited to the embodiments set forth herein.
A first embodiment of the present application provides a watermark embedding method, which is described below with reference to fig. 1 to 5.
As shown in fig. 1, in step S101, watermark information that needs to be embedded in the carrier object is obtained.
The carrier object refers to an object to be embedded with watermark information. The carrier object, an index carrier, comprising: web pages, Word documents, etc.
The watermark information refers to identification information to be embedded into the carrier object. The watermark information can be hidden and embedded into the carrier object, the use value of the original carrier object cannot be influenced, and the watermark information is not easy to be ascertained and modified again. But the watermark information can be identified and recognized by the producer. The watermark information hidden in the carrier can achieve the purposes of confirming content creators and purchasers, transmitting secret information, judging whether the carrier object is tampered or not and the like. The watermark information may be a company name of a certain company, or may be an employee number or other identification information of a certain employee.
As shown in fig. 1, in step S102, the watermark information is converted into a two-dimensional code image.
And after watermark information needing to be embedded into the carrier object is obtained, converting the watermark information into a two-dimensional code image. As shown in fig. 2, it is a two-dimensional code image converted according to some watermark information.
Before the step of converting the watermark information into the two-dimensional code image, whether a background area with the same pixel value exists in the carrier object can be judged; and if the background areas with the same pixel value exist in the carrier object, converting the watermark information into a two-dimensional code image. For example, the Baidu header of FIG. 3 has a background region with the same pixel value, and when it is used as a carrier object, the watermark information can be converted into a two-dimensional code image. The pixel values are the same, which means that the pixel values of the pixel points are the same.
As shown in fig. 1, in step S103, the two-dimensional code image is subjected to a disguise process to obtain a disguise watermark information image.
The disguising the two-dimensional code image to obtain a disguised watermark information image comprises the following steps:
carrying out reverse color processing on the two-dimensional code image to obtain a first camouflage watermark information image;
the embedding the camouflage watermark information image into the background area with the same pixel value of the carrier object comprises: and embedding the first camouflage watermark information image into a background area with the same pixel value of the carrier object.
Performing reverse color processing on the two-dimensional code image to obtain a first camouflage watermark information image, wherein the method comprises the following steps:
generating a standard image which is black and white and has the same size with the two-dimensional code image;
and carrying out XOR operation on corresponding pixel values of the two-dimensional code image and the standard image to obtain a first camouflage watermark information image.
As shown in fig. 2, 4, and 5, first, a standard image (fig. 4) of the same size as the two-dimensional code image in fig. 2 is generated, and then the two-dimensional code image (fig. 2) and the standard image (fig. 4) are subjected to an exclusive or operation of corresponding pixel values to obtain a first false watermark information image (fig. 5).
The two-dimensional code image after the reverse color processing becomes a first camouflage watermark information image, and an attacker cannot see that the first camouflage watermark information image is the two-dimensional code image, so that the camouflage effect is achieved.
Since directly embedding the first camouflage watermark information image into the carrier object also easily causes the doubts of attackers, further, in order to avoid the doubts of attackers, the first camouflage watermark information image can be subjected to desalination treatment to obtain a second camouflage watermark information image.
Performing desalination processing on the first camouflage watermark information image to obtain a second camouflage watermark information image, wherein the desalination processing comprises the following steps:
and replacing the black pixel value in the first camouflage watermark information image with a fade-out color value which has the same pixel value and has a first pixel value difference with the background area to obtain a second camouflage watermark information image.
For example, black pixel values in the first pseudo watermark information image (fig. 5) are replaced by fade color values that differ by 2 pixel values in the same background region as the pixel values, resulting in the second pseudo watermark information image (fig. 6). Since the background color of the Baidu webpage is white, the first camouflage watermark information image is modified to be a whitish color.
After the first camouflage watermark information image is subjected to desalination processing, the color of the background area with the same pixel value of the second camouflage watermark information image and the carrier object is coordinated, so that the doubts of attackers are not easily caused.
When the second camouflage watermark information image is obtained, besides the way of fading the first color and then fading the second color, the way of fading the first color and then fading the second color can be adopted.
Camouflaging the two-dimensional code image to obtain a camouflaged watermark information image, comprising:
generating a black and white standard image with the same size as the two-dimensional code image;
performing desalination treatment on the two-dimensional code image and the standard image;
and carrying out XOR operation on the pixel values of the two-dimensional code image after the desalination processing and the standard image to obtain a second camouflage watermark information image.
Embedding the camouflage watermark information image into a background area with the same pixel value of the carrier object, wherein the background area comprises: and embedding the second camouflage watermark information image into a background area with the same pixel value of the carrier object.
Furthermore, in order to tile the information image of the false watermark in the background area with the same pixel value of the carrier object, positioning points need to be determined on the four vertex angle pixels of the second information image of the false watermark, so that the information image of the false watermark is conveniently positioned during extraction. Replacing the color value of the positioning point with a color value which is lower than the fading color value of the second camouflage watermark information image by a second pixel value to obtain a third camouflage watermark information image; and then, the third camouflage watermark information image is used as an element of a carrier object and is tiled to a background area with the same pixel value of the carrier object. The color value of the positioning point is replaced by the color value which is lower than the fading color value of the second camouflage watermark information image by the color value of the second pixel value, so that the positioning point can be distinguished from the common pixel points of the third camouflage watermark information image, an attacker cannot easily see the information of the positioning point, and finally the effect of positioning the whole image of the third camouflage watermark information image can be realized. For example, as shown in fig. 7, four anchor points are located at four corners, and color values of the anchor points are replaced with color values that are 5 pixel values lower than the fade color values of the second camouflage watermark information image, so as to obtain a third camouflage watermark information image. As shown in fig. 8, the third steganographic watermark information image is tiled as an element of the carrier object to a background area of the carrier object having the same pixel value.
It should be noted that, the two-dimensional code image is subjected to camouflage processing to obtain a camouflage watermark information image, and the two-dimensional code image can be camouflage into a new style through other image transformation methods besides a method of fading a reverse color. For example, the two-dimensional code image may be scrambled using a scrambling code to obtain a pseudo watermark information image. In order to enable the watermark information extraction end to successfully extract the watermark information, the scrambling code may be notified to the watermark information extraction end.
In order to enable the watermark extraction end to more accurately obtain the position of watermark embedding, the watermark embedding end may provide the determined embedding position information to the watermark information extraction end.
As shown in fig. 1, in step S104, the false watermark information image is embedded in the background area of the carrier object having the same pixel value.
Since embedding the watermark in a large area in a carrier object (e.g., a web page) with a cluttered background can cause an effect of structure mismatch, which is likely to cause damage to the attention of an attacker, the first embodiment of the present application only embeds background areas with the same pixel value.
As shown in fig. 8, the third steganographic watermark information image is tiled as an element of the carrier object to a background area of the carrier object having the same pixel value. The Baidu webpage after embedding the watermark is not greatly different from the original webpage, only a layer of tiled disguised watermark information image is added on the background, but an attacker cannot see essential information of the watermark, so that the disguising and hiding effect is achieved.
Now, a detailed description is given of an implementation of the watermark embedding method provided in the first embodiment of the present application. According to the method and the device, the camouflage watermark information image is embedded into the background area with the same pixel value of the carrier object, the camouflage watermark information image containing the watermark information is not easy to find by an attacker, and screenshot attack can be resisted, namely data are obtained and leaked in a screen capture mode, and the source can still be traced, so that the safety problem of the watermark embedded into the carrier object is solved.
A second embodiment of the present application provides a watermark extraction method, which is described in detail below with reference to fig. 8.
As shown in fig. 9, in step S901, a carrier object is obtained.
The carrier object is an object embedded with an image containing camouflage watermark information. The carrier object, an index carrier, comprising: web pages, screenshots, photographs taken, and the like.
As shown in fig. 9, in step S902, a masquerading watermark information image containing watermark information embedded in the carrier object is extracted from the carrier object.
The information image of the disguised watermark may be a first information image of the disguised watermark, a second information image of the disguised watermark, or a third information image of the disguised watermark in the first embodiment of the present application.
The carrier object is a webpage, and the extracting of the camouflage watermark information image from the carrier object comprises the following steps:
determining a js library and a css library associated with the webpage according to the position information of the camouflage watermark information image in the webpage; and finding the camouflage watermark information image from the js library and the css library associated with the webpage.
The carrier object is a screenshot; the extracting of the camouflage watermark information image from the carrier object comprises:
determining the positions of the positioning points according to the color values of the 4 positioning points of the camouflage watermark information image;
and intercepting the camouflage watermark information image in the screenshot according to the positions of the 4 positioning points.
Because the color value of the anchor point is different from the color values of the pixels in other areas of the camouflage watermark information image, the position of the anchor point can be determined according to the color values of the 4 anchor points.
As shown in fig. 9, in step S903, the camouflage watermark information image is subjected to an inverse camouflage process to obtain a two-dimensional code image.
The performing an inverse camouflage process on the camouflage watermark information image to obtain a two-dimensional code image includes: and performing reverse color and reverse process and/or color restoration processing on the camouflage watermark information image to obtain a two-dimensional code image.
Specifically, if the extracted camouflage watermark information image is a first camouflage watermark information image, the first camouflage watermark information image is subjected to reverse color inversion processing to obtain a two-dimensional code image.
If the extracted camouflage watermark information image is a second camouflage watermark information image, color reduction processing can be firstly carried out on the second camouflage watermark image to obtain a first camouflage watermark information image, and then reverse color inversion processing is carried out on the first camouflage watermark information image to obtain a two-dimensional code image; or, firstly, the second camouflage watermark information image is subjected to reverse color and reverse process processing, and then color restoration processing is carried out, so that a two-dimensional code image is obtained.
If the extracted camouflage watermark information image is a third camouflage watermark information image, firstly carrying out color reduction processing on a positioning point of the third camouflage watermark information image to obtain a second camouflage watermark image, then carrying out color reduction processing on the second camouflage watermark image to obtain a first camouflage watermark information image, and finally carrying out reverse color and reverse process processing on the first camouflage watermark information image to obtain a two-dimensional code image; or firstly carrying out color reduction processing on the positioning point of the third camouflage watermark information image to obtain a second camouflage watermark image, then carrying out reverse color and reverse process processing on the second camouflage watermark information image, and finally carrying out color reduction processing to obtain a two-dimensional code image.
As shown in fig. 9, in step S904, the two-dimensional code image is analyzed to obtain the watermark information.
In specific implementation, the watermark information can be obtained by scanning a two-dimensional code image.
Corresponding to the above-mentioned watermark embedding method, a third embodiment of the present application further provides a watermark embedding apparatus.
As shown in fig. 10, the watermark embedding apparatus includes:
a watermark information obtaining unit 1001 configured to obtain watermark information to be embedded in a carrier object;
a watermark information conversion unit 1002 configured to convert the watermark information into a two-dimensional code image;
a two-dimensional code image disguising unit 1003, configured to perform disguising processing on the two-dimensional code image to obtain a disguised watermark information image;
a false watermark information image embedding unit 1004, configured to embed the false watermark information image in a background area of the carrier object having the same pixel value.
Optionally, the apparatus further comprises: the background area judging unit is used for judging whether a background area with the same pixel value exists in the carrier object;
the watermark information conversion unit is specifically configured to: and if the background areas with the same pixel value exist in the carrier object, converting the watermark information into a two-dimensional code image.
Optionally, the two-dimensional code image disguising unit is specifically configured to:
carrying out reverse color processing on the two-dimensional code image to obtain a first camouflage watermark information image;
the disguised watermark information image embedding unit is specifically configured to: and embedding the first camouflage watermark information image into a background area with the same pixel value of the carrier object.
Optionally, the two-dimensional code image disguising unit is specifically configured to:
generating a black and white standard image with the same size as the two-dimensional code image;
and carrying out XOR operation on corresponding pixel values of the two-dimensional code image and the standard image to obtain a first camouflage watermark information image.
Optionally, the apparatus further comprises:
the fading processing unit is used for fading the first camouflage watermark information image to obtain a second camouflage watermark information image;
the embedding the first camouflage watermark information image into the background area with the same pixel value of the carrier object comprises: and embedding the second camouflage watermark information image into a background area with the same pixel value of the carrier object.
Optionally, the desalination processing unit is specifically configured to:
and replacing the black pixel value in the first camouflage watermark information image with a fade-out color value which has the same pixel value and has a first pixel value difference with the background area to obtain a second camouflage watermark information image.
Optionally, the two-dimensional code image disguising unit is specifically configured to:
generating a black and white standard image with the same size as the two-dimensional code image;
performing desalination treatment on the two-dimensional code image and the standard image;
performing XOR operation on corresponding pixel values of the two-dimensional code image after the desalination processing and the standard image to obtain a second camouflage watermark information image;
the embedding the camouflage watermark information image into the background area with the same pixel value of the carrier object comprises: and embedding the second camouflage watermark information image into a background area with the same pixel value of the carrier object.
Optionally, the apparatus further comprises:
a positioning point determining unit, configured to determine positioning points on four vertex angle pixels of the second camouflage watermark information image;
a third camouflage watermark information image obtaining unit, configured to replace the color value of the anchor point with a color value that is lower than the fade-out color value of the second camouflage watermark information image by a second pixel value, to obtain a third camouflage watermark information image;
the embedding the second camouflage watermark information image into the background area of the carrier object with the same pixel value comprises: and tiling the third camouflage watermark information image serving as an element of the carrier object to a background area with the same pixel value of the carrier object.
Optionally, the two-dimensional code image disguising unit is specifically configured to:
and scrambling the two-dimensional code image by adopting a scrambling code to obtain a camouflage watermark information image.
Optionally, the apparatus further comprises:
and the scrambling code notification unit is used for notifying the scrambling code to the watermark information extraction end.
Optionally, the apparatus further comprises:
and the embedded position information providing unit is used for providing the embedded position information of the camouflage watermark information image to a watermark information extraction end.
It should be noted that, for the detailed description of the watermark embedding apparatus provided in the third embodiment of the present application, reference may be made to the related description of the first embodiment of the present application, and details are not described here again.
Corresponding to the watermark embedding method provided above, a fourth embodiment of the present application further provides an electronic device.
As shown in fig. 11, the electronic apparatus includes:
a processor 1101; and
a memory 1102 for storing a program of a watermark embedding method, the apparatus performing the following steps after being powered on and running the program of the watermark embedding method by the processor:
acquiring watermark information to be embedded into a carrier object;
converting the watermark information into a two-dimensional code image;
carrying out camouflage processing on the two-dimensional code image to obtain a camouflage watermark information image;
and embedding the camouflage watermark information image into a background area with the same pixel value of the carrier object.
Optionally, the electronic device further performs the following steps: judging whether a background area with the same pixel value exists in the carrier object;
the converting the watermark information into a two-dimensional code image includes: and if the background areas with the same pixel value exist in the carrier object, converting the watermark information into a two-dimensional code image.
Optionally, the disguising the two-dimensional code image to obtain a disguised watermark information image includes:
carrying out reverse color processing on the two-dimensional code image to obtain a first camouflage watermark information image;
the embedding the camouflage watermark information image into the background area with the same pixel value of the carrier object comprises: and embedding the first camouflage watermark information image into a background area with the same pixel value of the carrier object.
Optionally, the performing a color reversal process on the two-dimensional code image to obtain a first camouflage watermark information image includes:
generating a black and white standard image with the same size as the two-dimensional code image;
and carrying out XOR operation on corresponding pixel values of the two-dimensional code image and the standard image to obtain a first camouflage watermark information image.
Optionally, the electronic device further performs the following steps:
performing desalination treatment on the first camouflage watermark information image to obtain a second camouflage watermark information image;
the embedding the first camouflage watermark information image into the background area of the carrier object with the same pixel value comprises: and embedding the second camouflage watermark information image into a background area with the same pixel value of the carrier object.
Optionally, the performing a desalination process on the first disguised watermark information image to obtain a second disguised watermark information image includes:
and replacing the black pixel value in the first camouflage watermark information image with a fade-out color value which has the same pixel value and has a first pixel value difference with the background area to obtain a second camouflage watermark information image.
Optionally, the disguising the two-dimensional code image to obtain a disguised watermark information image includes:
generating a black and white standard image with the same size as the two-dimensional code image;
performing desalination treatment on the two-dimensional code image and the standard image;
performing XOR operation on corresponding pixel values of the two-dimensional code image after the desalination processing and the standard image to obtain a second camouflage watermark information image;
the embedding the camouflage watermark information image into the background area with the same pixel value of the carrier object comprises: and embedding the second camouflage watermark information image into a background area with the same pixel value of the carrier object.
Optionally, the electronic device further performs the following steps:
determining positioning points on four vertex angle pixels of the second camouflage watermark information image;
replacing the color value of the positioning point with a color value which is lower than the fading color value of the second camouflage watermark information image by a second pixel value to obtain a third camouflage watermark information image;
the embedding the second camouflage watermark information image into the background area of the carrier object with the same pixel value comprises: and tiling the third camouflage watermark information image serving as an element of the carrier object to a background area with the same pixel value of the carrier object.
Optionally, the disguising the two-dimensional code image to obtain a disguised watermark information image includes:
and scrambling the two-dimensional code image by adopting a scrambling code to obtain a camouflage watermark information image.
Optionally, the electronic device further performs the following steps:
and informing the scrambling code to a watermark information extraction end.
Optionally, the electronic device further performs the following steps: and providing the embedded position information of the disguised watermark information image to a watermark information extraction end.
It should be noted that, for the detailed description of the electronic device provided in the fourth embodiment of the present application, reference may be made to the related description of the first embodiment of the present application, and details are not repeated here.
In accordance with the foregoing watermark embedding method, a fifth embodiment of the present application further provides a storage device storing a program of the watermark embedding method, where the program is executed by a processor to perform the following steps:
acquiring watermark information to be embedded into a carrier object;
converting the watermark information into a two-dimensional code image;
carrying out camouflage processing on the two-dimensional code image to obtain a camouflage watermark information image;
and embedding the camouflage watermark information image into a background area with the same pixel value of the carrier object.
It should be noted that, for the detailed description of the storage device provided in the fifth embodiment of the present application, reference may be made to the related description of the first embodiment of the present application, and details are not described here again.
Corresponding to the above-mentioned watermark embedding method, a sixth embodiment of the present application further provides a watermark extraction apparatus.
As shown in fig. 12, the watermark extraction apparatus includes:
a carrier object obtaining unit 1201 for obtaining a carrier object;
a masquerading watermark information image extraction unit 1202, configured to extract a masquerading watermark information image from the carrier object, where the masquerading watermark information image includes watermark information embedded in the carrier object;
a two-dimensional code image obtaining unit 1203, configured to perform inverse camouflage processing on the camouflage watermark information image to obtain a two-dimensional code image;
a watermark information obtaining unit 1204, configured to analyze the two-dimensional code image, and obtain the watermark information.
Optionally, the carrier object is a web page, and the camouflaged watermark information image extracting unit is specifically configured to:
determining a js library and a css library associated with the webpage according to the position information of the camouflage watermark information image in the webpage; and finding the camouflage watermark information image from the js library and the css library associated with the webpage.
Optionally, the carrier object is a screenshot; the disguised watermark information image extraction unit includes:
determining the positions of the positioning points according to the color values of the 4 positioning points of the camouflage watermark information image;
and intercepting the camouflage watermark information image in the screenshot according to the positions of the 4 positioning points.
Optionally, the two-dimensional code image obtaining unit is specifically configured to:
and performing an inverse color and inverse process and/or color restoration processing on the camouflage watermark information image to obtain a two-dimensional code image.
Optionally, the two-dimensional code image obtaining unit includes:
and carrying out anti-scrambling processing on the disguised watermark information image by adopting a scrambling code to obtain the two-dimensional code image.
It should be noted that, for the detailed description of the watermark extraction apparatus provided in the sixth embodiment of the present application, reference may be made to the related description of the second embodiment of the present application, and details are not described here again.
A seventh embodiment of the present application further provides an electronic device corresponding to the above-mentioned watermark extraction method.
As shown in fig. 13, the electronic apparatus includes:
a processor 1301; and
a memory 1302, configured to store a program of a watermark extraction method, and after the device is powered on and the program of the watermark extraction method is executed by the processor, perform the following steps:
obtaining a carrier object;
extracting a camouflage watermark information image from the carrier object, wherein the camouflage watermark information image comprises watermark information embedded into the carrier object;
carrying out reverse camouflage processing on the camouflage watermark information image to obtain a two-dimensional code image;
and analyzing the two-dimensional code image to obtain the watermark information.
Optionally, the carrier object is a web page, and the extracting the camouflage watermark information image from the carrier object includes:
determining a js library and a css library associated with the webpage according to the position information of the camouflage watermark information image in the webpage; and finding the camouflage watermark information image from the js library and the css library associated with the webpage.
Optionally, the carrier object is a screenshot; the extracting of the camouflage watermark information image from the carrier object comprises:
determining the positions of the positioning points according to the color values of the 4 positioning points of the camouflage watermark information image;
and intercepting the camouflage watermark information image in the screenshot according to the positions of the 4 positioning points.
Optionally, the performing an inverse camouflage process on the camouflage watermark information image to obtain a two-dimensional code image includes:
and performing reverse color and reverse process and/or color restoration processing on the camouflage watermark information image to obtain a two-dimensional code image.
Optionally, the performing an inverse camouflage process on the camouflage watermark information image to obtain a two-dimensional code image includes:
and carrying out reverse scrambling processing on the camouflage watermark information image by adopting a scrambling code to obtain the two-dimensional code image.
It should be noted that, for the detailed description of the electronic device provided in the seventh embodiment of the present application, reference may be made to the related description of the second embodiment of the present application, and details are not described here again.
Corresponding to the above-mentioned watermark extraction method, an eighth embodiment of the present application further provides a storage device, in which a program of the watermark extraction method is stored, where the program is executed by a processor to perform the following steps:
obtaining a carrier object;
extracting a camouflage watermark information image from the carrier object, wherein the camouflage watermark information image comprises watermark information embedded into the carrier object;
carrying out reverse camouflage processing on the camouflage watermark information image to obtain a two-dimensional code image;
and analyzing the two-dimensional code image to obtain the watermark information.
It should be noted that, for the detailed description of the storage device provided in the eighth embodiment of the present application, reference may be made to the related description of the second embodiment of the present application, and details are not described here again.
A ninth embodiment of the present application provides a data processing method, which is described in detail below with reference to fig. 14.
As shown in fig. 14, in step S1401, a carrier object and first identification information are acquired.
The carrier object refers to an object in which the first identification information needs to be embedded. The carrier object, an index carrier, comprising: web pages, word documents, etc.
The first identification information refers to information which can be embedded into the carrier object, does not affect the use value of the original carrier object, and is not easy to be ascertained and modified again. The first identification information may be a company name of a certain company, or may be an employee number of a certain employee or other identification information.
As shown in fig. 14, in step S1402, the first identification information is converted into second identification information, where the second identification information is to-be-embedded data.
The converting the first identification information into second identification information includes:
converting the first identification information into a two-dimensional code image;
and converting the two-dimensional code image into second identification information.
Before the step of converting the first identification information into the two-dimensional code image, whether a background area with the same pixel value exists in the carrier object can be judged; and if the background areas with the same pixel value exist in the carrier object, converting the first identification information into a two-dimensional code image.
It should be noted that, in addition to the method of converting the first identification information into the two-dimensional code image and then converting the two-dimensional code image into the second identification information, the first identification information may be converted into an image in another form, such as a barcode image.
Disguising the two-dimensional code image as second identification information includes:
generating a black and white standard image with the same size as the two-dimensional code image;
carrying out XOR operation on corresponding pixel values of the two-dimensional code image and the standard image; obtaining a first camouflage watermark information image;
and performing desalination processing on the first camouflage watermark information image to obtain the second identification information.
The converting the two-dimensional code image into second identification information includes:
generating a black and white standard image with the same size as the two-dimensional code image;
carrying out XOR operation on corresponding pixel values of the two-dimensional code image and the standard image; obtaining a first camouflage watermark information image;
and performing desalination processing on the first camouflage watermark information image to obtain the second identification information.
The performing the fading process on the first camouflage watermark information image to obtain the second identification information includes:
and replacing the black pixel value in the first camouflage watermark information image with a fade color value which has the same pixel value and has a first pixel value difference with the background area to obtain the second identification information.
As shown in fig. 14, in step S1403, the second identification information is embedded in an area where the pixel values of the carrier object satisfy a preset condition.
And the area where the pixel value of the carrier object meets the preset condition is a background area of the carrier object.
Wherein the preset conditions include: the pixel values are the same or the difference between the pixel values is within a preset range.
In order to tile the second identification information in the background area with the same pixel value of the carrier object, positioning points need to be determined on four top corner pixels of the second identification information, so that the second identification information is conveniently positioned during extraction. Replacing the color value of the positioning point with a color value lower than the fading color value of the second identification information by a second pixel value to obtain third identification information; and then, the third identification information is used as an element of the carrier object and is tiled to the background area with the same pixel value of the carrier object. The color value of the positioning point is replaced by the color value which is lower than the fading color value of the second camouflage watermark information image by the color value of the second pixel value, so that the positioning point can be distinguished from the common pixel points of the second identification information, an attacker cannot easily find the information of the positioning point, and finally the function of positioning the whole second identification information can be realized.
Although the present invention has been described with reference to the preferred embodiments, it should be understood that the invention is not limited thereto, and that various changes and modifications may be made by those skilled in the art without departing from the spirit and scope of the present invention.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Claims (19)

1. A watermark embedding method, comprising:
acquiring watermark information to be embedded into a carrier object;
converting the watermark information into a two-dimensional code image;
carrying out camouflage processing on the two-dimensional code image to obtain a camouflage watermark information image; the method comprises the following steps: performing reverse color processing on the two-dimensional code image to obtain a first camouflage watermark information image, and performing desalination processing on the first camouflage watermark information image to obtain a second camouflage watermark information image; or, performing fading processing on the two-dimensional code image, and performing reverse color processing on the faded two-dimensional code image to obtain a second camouflage watermark information image; determining locating points on four vertex angle pixels of the second camouflage watermark information image, and replacing color values of the locating points with color values lower than the fading color values of the second camouflage watermark information image by a second pixel value to obtain a third camouflage watermark information image;
and embedding the third camouflage watermark information image into a background area with the same pixel value of the carrier object.
2. The method of claim 1, further comprising: judging whether a background area with the same pixel value exists in the carrier object;
the converting the watermark information into a two-dimensional code image includes: and if the background areas with the same pixel value exist in the carrier object, converting the watermark information into a two-dimensional code image.
3. The method of claim 1, wherein the performing a color reversal process on the two-dimensional code image to obtain a first camouflage watermark information image comprises:
generating a black and white standard image with the same size as the two-dimensional code image;
and carrying out XOR operation on corresponding pixel values of the two-dimensional code image and the standard image to obtain a first camouflage watermark information image.
4. The method of claim 1, wherein the step of performing a fade-out process on the first steganographic watermark information image to obtain a second steganographic watermark information image comprises:
and replacing the black pixel value in the first camouflage watermark information image with a fade-out color value which has the same pixel value and has a first pixel value difference with the background area to obtain a second camouflage watermark information image.
5. The method of claim 1, further comprising:
generating a black and white standard image with the same size as the two-dimensional code image;
performing desalination processing on the standard image;
the step of performing reverse color processing on the two-dimensional code image after the desalination processing to obtain a second camouflage watermark information image comprises the following steps:
and carrying out XOR operation on corresponding pixel values of the two-dimensional code image after the desalination processing and the standard image to obtain a second camouflage watermark information image.
6. The method of any one of claims 1-5, further comprising: and providing the embedded position information of the third camouflage watermark information image to a watermark information extraction end.
7. A watermark extraction method, comprising:
obtaining a carrier object;
extracting a camouflage watermark information image from the carrier object, wherein the camouflage watermark information image comprises watermark information embedded into the carrier object, and the camouflage watermark information image is embedded into background areas with the same pixel value of the carrier object;
carrying out inverse camouflage processing on the camouflage watermark information image to obtain a two-dimensional code image;
analyzing the two-dimensional code image to obtain the watermark information;
the camouflage watermark information image is generated by the following method:
converting the watermark information into a two-dimensional code image;
performing reverse color processing on the two-dimensional code image to obtain a first camouflage watermark information image, and performing desalination processing on the first camouflage watermark information image to obtain a second camouflage watermark information image; or, performing fading processing on the two-dimensional code image, and performing reverse color processing on the faded two-dimensional code image to obtain a second camouflage watermark information image;
and determining positioning points on four vertex angle pixels of the second camouflage watermark information image, and replacing the color values of the positioning points with color values lower than the fading color values of the second camouflage watermark information image by a second pixel value to obtain the camouflage watermark information image.
8. The method of claim 7, wherein the carrier object is a web page, and the extracting the steganographic watermark information image from the carrier object comprises:
determining a js library and a css library associated with the webpage according to the position information of the camouflage watermark information image in the webpage; and finding the camouflage watermark information image from the js library and the css library associated with the webpage.
9. The method of claim 7, wherein the carrier object is a screenshot; the extracting of the camouflage watermark information image from the carrier object comprises:
determining the positions of the positioning points according to the color values of the 4 positioning points of the camouflage watermark information image;
and intercepting the camouflage watermark information image in the screenshot according to the positions of the 4 positioning points.
10. The method of claim 7, wherein the performing an inverse masquerading process on the masquerading watermark information image to obtain a two-dimensional code image comprises:
and performing reverse color and reverse process and/or color restoration processing on the camouflage watermark information image to obtain a two-dimensional code image.
11. A watermark embedding apparatus, comprising:
a watermark information obtaining unit, configured to obtain watermark information that needs to be embedded in a carrier object;
the watermark information conversion unit is used for converting the watermark information into a two-dimensional code image;
the two-dimensional code image disguising unit is used for disguising the two-dimensional code image to obtain a disguised watermark information image; the method comprises the following steps: performing reverse color processing on the two-dimensional code image to obtain a first camouflage watermark information image, and performing desalination processing on the first camouflage watermark information image to obtain a second camouflage watermark information image; or, performing fading processing on the two-dimensional code image, and performing reverse color processing on the faded two-dimensional code image to obtain a second camouflage watermark information image; determining positioning points on four vertex angle pixels of the second camouflage watermark information image, and replacing color values of the positioning points with color values lower than fading color values of the second camouflage watermark information image by color values of a second pixel value to obtain a third camouflage watermark information image;
and the camouflage watermark information image embedding unit is used for embedding the third camouflage watermark information image into the background area with the same pixel value of the carrier object.
12. An electronic device, comprising:
a processor; and
a memory for storing a program of a watermark embedding method, the apparatus performing the following steps after being powered on and running the program of the watermark embedding method by the processor:
acquiring watermark information to be embedded into a carrier object;
converting the watermark information into a two-dimensional code image;
carrying out camouflage processing on the two-dimensional code image to obtain a camouflage watermark information image; the method comprises the following steps: performing reverse color processing on the two-dimensional code image to obtain a first camouflage watermark information image, and performing desalination processing on the first camouflage watermark information image to obtain a second camouflage watermark information image; or, performing fading processing on the two-dimensional code image, and performing reverse color processing on the faded two-dimensional code image to obtain a second camouflage watermark information image; determining locating points on four vertex angle pixels of the second camouflage watermark information image, and replacing color values of the locating points with color values lower than the fading color values of the second camouflage watermark information image by a second pixel value to obtain a third camouflage watermark information image;
and embedding the third camouflage watermark information image into a background area with the same pixel value of the carrier object.
13. A storage device, characterized in that,
a program storing a watermark embedding method, the program being executed by a processor to perform the steps of:
acquiring watermark information to be embedded into a carrier object;
converting the watermark information into a two-dimensional code image;
carrying out camouflage processing on the two-dimensional code image to obtain a camouflage watermark information image; the method comprises the following steps: performing reverse color processing on the two-dimensional code image to obtain a first camouflage watermark information image, and performing desalination processing on the first camouflage watermark information image to obtain a second camouflage watermark information image; or, performing fading processing on the two-dimensional code image, and performing reverse color processing on the faded two-dimensional code image to obtain a second camouflage watermark information image; determining locating points on four vertex angle pixels of the second camouflage watermark information image, and replacing color values of the locating points with color values lower than the fading color values of the second camouflage watermark information image by a second pixel value to obtain a third camouflage watermark information image;
and embedding the third camouflage watermark information image into a background area of the carrier object with the same pixel value.
14. A watermark extraction apparatus, comprising:
a carrier object obtaining unit for obtaining a carrier object;
a camouflaged watermark information image extraction unit, which is used for extracting a camouflaged watermark information image from the carrier object, wherein the camouflaged watermark information image comprises watermark information embedded into the carrier object; the camouflage watermark information image is embedded in a background area with the same pixel value of the carrier object; a two-dimensional code image obtaining unit, configured to perform inverse camouflage processing on the camouflage watermark information image to obtain a two-dimensional code image;
the watermark information obtaining unit is used for analyzing the two-dimensional code image to obtain the watermark information;
the camouflage watermark information image is generated by the following method:
converting the watermark information into a two-dimensional code image;
carrying out reverse color processing on the two-dimensional code image to obtain a first camouflage watermark information image, and carrying out desalination processing on the first camouflage watermark information image to obtain a second camouflage watermark information image; or, performing fading processing on the two-dimensional code image, and performing reverse color processing on the faded two-dimensional code image to obtain a second camouflage watermark information image;
and determining positioning points on four vertex angle pixels of the second camouflage watermark information image, and replacing the color values of the positioning points with color values lower than the fading color values of the second camouflage watermark information image by a second pixel value to obtain the camouflage watermark information image.
15. An electronic device, comprising:
a processor; and
a memory for storing a program of a watermark extraction method, the apparatus performing the following steps after being powered on and running the program of the watermark extraction method by the processor:
obtaining a carrier object;
extracting a camouflage watermark information image from the carrier object, wherein the camouflage watermark information image comprises watermark information embedded into the carrier object, and the camouflage watermark information image is embedded into background areas with the same pixel value of the carrier object;
carrying out reverse camouflage processing on the camouflage watermark information image to obtain a two-dimensional code image;
analyzing the two-dimensional code image to obtain the watermark information;
the camouflage watermark information image is generated by the following method:
converting the watermark information into a two-dimensional code image;
performing reverse color processing on the two-dimensional code image to obtain a first camouflage watermark information image, and performing desalination processing on the first camouflage watermark information image to obtain a second camouflage watermark information image; or, performing fading processing on the two-dimensional code image, and performing reverse color processing on the faded two-dimensional code image to obtain a second camouflage watermark information image;
and determining positioning points on four vertex angle pixels of the second camouflage watermark information image, and replacing the color values of the positioning points with color values lower than the fading color values of the second camouflage watermark information image by a second pixel value to obtain the camouflage watermark information image.
16. A storage device, characterized in that,
a program storing a watermark extraction method, the program being executed by a processor to perform the steps of:
obtaining a carrier object;
extracting a camouflage watermark information image from the carrier object, wherein the camouflage watermark information image comprises watermark information embedded into the carrier object, and the camouflage watermark information image is embedded into background areas with the same pixel value of the carrier object; carrying out reverse camouflage processing on the camouflage watermark information image to obtain a two-dimensional code image;
analyzing the two-dimensional code image to obtain the watermark information;
the camouflage watermark information image is generated by the following method:
converting the watermark information into a two-dimensional code image;
performing reverse color processing on the two-dimensional code image to obtain a first camouflage watermark information image, and performing desalination processing on the first camouflage watermark information image to obtain a second camouflage watermark information image; or, performing fading processing on the two-dimensional code image, and performing reverse color processing on the faded two-dimensional code image to obtain a second camouflage watermark information image;
and determining positioning points on four vertex angle pixels of the second camouflage watermark information image, and replacing the color values of the positioning points with color values lower than the fading color values of the second camouflage watermark information image by a second pixel value to obtain the camouflage watermark information image.
17. A data processing method, comprising:
acquiring a carrier object and first identification information; converting the first identification information into a two-dimensional code image;
carrying out camouflage processing on the two-dimensional code image to obtain a camouflage watermark information image; the method comprises the following steps: performing reverse color processing on the two-dimensional code image to obtain a first camouflage watermark information image, performing desalination processing on the first camouflage watermark information image to obtain second identification information, or performing desalination processing on the two-dimensional code image, and performing reverse color processing on the desalinated two-dimensional code image to obtain the second identification information; determining positioning points on four corner pixels of the second identification information; replacing the color value of the positioning point with a color value lower than the fading color value of the second identification information by a second pixel value to obtain third identification information;
tiling the third identification information as an element of a carrier object to a background area of the carrier object having the same pixel value.
18. The method of claim 17, wherein converting the first identification information into a two-dimensional code image comprises:
judging whether a background area with the same pixel value exists in the carrier object;
if yes, converting the first identification information into a two-dimensional code image.
19. The method of claim 17, wherein the step of fading the first steganographic watermark information image to obtain the second identification information comprises:
and replacing the black pixel value in the first camouflage watermark information image with a fade color value which has the same pixel value and has a first pixel value difference with the background area to obtain the second identification information.
CN201811138577.3A 2018-09-28 2018-09-28 Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting equipment and data processing method Active CN110969563B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811138577.3A CN110969563B (en) 2018-09-28 2018-09-28 Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting equipment and data processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811138577.3A CN110969563B (en) 2018-09-28 2018-09-28 Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting equipment and data processing method

Publications (2)

Publication Number Publication Date
CN110969563A CN110969563A (en) 2020-04-07
CN110969563B true CN110969563B (en) 2022-06-24

Family

ID=70026772

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811138577.3A Active CN110969563B (en) 2018-09-28 2018-09-28 Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting equipment and data processing method

Country Status (1)

Country Link
CN (1) CN110969563B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112184535B (en) * 2020-10-29 2024-04-26 维沃移动通信有限公司 Image anti-counterfeiting method, device and equipment
CN113379582A (en) * 2021-05-13 2021-09-10 北京元讯通科技有限公司 Information adding method, information extracting device and electronic equipment
CN113806806B (en) * 2021-09-18 2024-02-27 罗普特科技集团股份有限公司 Desensitization and restoration method and system for webpage screenshot

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155249A (en) * 2006-09-28 2008-04-02 富士通株式会社 Electronic watermark embedding apparatus and electronic watermark detection apparatus
CN102496135A (en) * 2011-12-06 2012-06-13 银江股份有限公司 Deadweight tonnage (DWT) domain-based digital watermark method and system
CN103020496A (en) * 2012-11-05 2013-04-03 王少夫 Digital watermark encryption realization method
CN104063834A (en) * 2013-03-22 2014-09-24 中国水利水电科学研究院 Watermark embedding method, watermark detecting method and device thereof
CN107103577A (en) * 2017-04-11 2017-08-29 中国科学院信息工程研究所 Half fragile uniqueness image watermark insertion and extracting method for integrity protection
CN107622470A (en) * 2017-09-01 2018-01-23 杭州趣维科技有限公司 A kind of real-time robust embedding algorithm and extracting method based on Quick Response Code
CN108230221A (en) * 2017-05-17 2018-06-29 深圳市创梦天地科技有限公司 Watermark generation method and device, terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010140639A1 (en) * 2009-06-04 2010-12-09 国立大学法人 鹿児島大学 Watermark information embedding apparatus, watermark information processing system, watermark information embedding method, and program
CN105701758A (en) * 2016-01-13 2016-06-22 华南理工大学 Digital watermarking image generation method based on graphic code and apparatus thereof
US10200692B2 (en) * 2017-03-16 2019-02-05 Cisco Technology, Inc. Compressed domain data channel for watermarking, scrambling and steganography

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155249A (en) * 2006-09-28 2008-04-02 富士通株式会社 Electronic watermark embedding apparatus and electronic watermark detection apparatus
CN102496135A (en) * 2011-12-06 2012-06-13 银江股份有限公司 Deadweight tonnage (DWT) domain-based digital watermark method and system
CN103020496A (en) * 2012-11-05 2013-04-03 王少夫 Digital watermark encryption realization method
CN104063834A (en) * 2013-03-22 2014-09-24 中国水利水电科学研究院 Watermark embedding method, watermark detecting method and device thereof
CN107103577A (en) * 2017-04-11 2017-08-29 中国科学院信息工程研究所 Half fragile uniqueness image watermark insertion and extracting method for integrity protection
CN108230221A (en) * 2017-05-17 2018-06-29 深圳市创梦天地科技有限公司 Watermark generation method and device, terminal
CN107622470A (en) * 2017-09-01 2018-01-23 杭州趣维科技有限公司 A kind of real-time robust embedding algorithm and extracting method based on Quick Response Code

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
High-definition digital color image watermark algorithm based on QR code and DWT;Guangmin Sun等;《2015 IEEE 10th Conference on Industrial Electronics and Applications (ICIEA)》;20151123;第220-223页 *
一种基于Amold变换的彩色图像水印算法;李树全;《微电子学与计算机》;20170131;第34卷(第1期);第53-57页 *
一种基于二维码的数字水印算法;赵杰;《商洛学院学报》;20160430;第30卷(第2期);第6-9、42页 *

Also Published As

Publication number Publication date
CN110969563A (en) 2020-04-07

Similar Documents

Publication Publication Date Title
Piva An overview on image forensics
Singh et al. A survey of digital watermarking techniques, applications and attacks
EP3308371B1 (en) System and method for digital watermarking
Ekici et al. Comparative evaluation of semifragile watermarking algorithms
CN110969563B (en) Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting equipment and data processing method
CN111223032A (en) Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting equipment and data processing method
Zhu et al. A copyright protection watermarking algorithm for remote sensing image based on binary image watermark
CN111932432B (en) Blind watermark implanting method, blind watermark detecting method, blind watermark implanting device, blind watermark detecting equipment and storage medium
Xu et al. Rotation and scale invariant image watermarking based on polar harmonic transforms
Roy et al. An indirect watermark hiding in discrete cosine transform–singular value decomposition domain for copyright protection
Roy et al. Watermarking through image geometry change tracking
Agreste et al. Wavelet-based watermarking algorithms: theory, applications and critical aspects
WO2019192375A1 (en) Multimedia processing method and device thereof, storage medium, and electronic product
Sarma et al. A study on digital image forgery detection
CN109345440B (en) Digital media watermark processing method, computer device and storage medium
Naseem et al. An optimum modified bit plane splicing LSB algorithm for secret data hiding
Saju et al. An effective method for detection and localization of tampering
CN114245053A (en) Video watermark generation method and device
Voigt et al. High-capacity reversible watermarking for 2D vector data
Iacobici et al. Digital imaging processing and reconstruction for general applications
CN110826033B (en) Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting equipment and data processing method
Macit et al. Tamper detection and recovery on RGB images
Fujimura et al. Application of saliency map to restraint scheme of attack to digital watermark using seam carving
Thakur et al. Technique for Estimation of the Position of the Pirate in-Theater Piracy
Hashem et al. Passive aproaches for detecting image tampering: a review

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
GR01 Patent grant
GR01 Patent grant