CN111223032A - 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
CN111223032A
CN111223032A CN201811406244.4A CN201811406244A CN111223032A CN 111223032 A CN111223032 A CN 111223032A CN 201811406244 A CN201811406244 A CN 201811406244A CN 111223032 A CN111223032 A CN 111223032A
Authority
CN
China
Prior art keywords
information
watermark
color
carrier object
canvas
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
CN201811406244.4A
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.)
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 CN201811406244.4A priority Critical patent/CN111223032A/en
Publication of CN111223032A publication Critical patent/CN111223032A/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
    • G06T1/0085Time domain based watermarking, e.g. watermarks spread over several images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2201/00General purpose image data processing
    • G06T2201/005Image watermarking
    • G06T2201/0051Embedding of the watermark in the spatial domain

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

The application discloses a watermark embedding method, which comprises the following steps: determining a solid background area of the carrier object; obtaining watermark information to be embedded into the carrier object; embedding the watermark information into a canvas to obtain the canvas containing the watermark information; adding the canvas containing the watermark information into a solid background region of the carrier object. The problem that the watermark picture is difficult to embed under the condition that the carrier object does not comprise the image element capable of embedding the watermark is solved.

Description

Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting equipment and data processing method
Technical Field
The present application relates to the field of digital watermarking, 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 digital 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 media products such as images, videos and audios, and web watermarking technology is slowly developed.
The web page is used as a carrier for information dissemination, more and more information is presented on the web page content (such as video websites and the like), and the security problem of the web page content gradually becomes a hot problem. In order to ensure the security of the web page content, one approach is to embed a watermark picture in the web page image. However, embedding a watermark picture on a web page image requires that the web page has a picture. Therefore, how to embed watermark pictures without image elements in carrier objects including web pages is a problem to be solved.
Disclosure of Invention
The application provides a watermark embedding method, which aims to solve the problem that a watermark picture is difficult to embed under the condition that a carrier object does not comprise an image element capable of embedding a watermark.
The application provides a watermark embedding method, which comprises the following steps:
determining a solid background area of the carrier object;
obtaining watermark information to be embedded into the carrier object;
embedding the watermark information into a canvas to obtain the canvas containing the watermark information;
adding the canvas containing the watermark information into a solid background region of the carrier object.
Optionally, the embedding the watermark information into the canvas includes:
obtaining background color information of the pure color background area;
according to the background color information, determining watermark color information used for embedding the watermark information in the canvas; wherein a color difference value between the watermark color information and the background color information meets a preset color threshold;
and embedding the watermark information into a canvas according to the watermark color information.
Optionally, the embedding the watermark information into a canvas according to the watermark color information includes:
and drawing the watermark information on the canvas by using the watermark color information.
Optionally, the background color information is a color channel pixel value of the solid background area; the watermark color information is a color channel pixel value of the watermark information embedded in the canvas; the preset color threshold is a value not greater than 5 pixel values.
Optionally, the embedding the watermark information into the canvas includes: embedding the watermark information into the canvas for a plurality of times.
Optionally, the adding the canvas containing the watermark information into the solid background area of the carrier object includes: tiling the canvas onto a solid background area of the carrier object.
Optionally, the method further includes:
adding the canvas containing the watermark information to a solid background area of the carrier object multiple times.
The application also provides a watermark extraction method, which comprises the following steps:
obtaining a screenshot of the carrier object;
locating a solid background region of the carrier object from the screenshot; wherein the solid background area comprises a canvas embedded with watermark information;
and carrying out edge detection processing on the pure background area to obtain the watermark information.
Optionally, the positioning the solid background area of the carrier object from the screenshot includes:
and acquiring the color channel pixel value of the pixel point of the screenshot, and taking the area with the color ratio meeting a preset color distribution condition or the color channel pixel value meeting a preset pixel value condition as the pure color background area.
Optionally, the performing edge detection processing on the solid background area to obtain the watermark information includes:
aiming at the pure color background area, extracting the outline of the watermark information by adopting a Canny algorithm;
and determining the watermark information according to the outline of the watermark information.
Optionally, the extracting, by using a Canny algorithm, the contour of the watermark information for the solid background region includes:
acquiring a preset color difference threshold value between the watermark information and the pure color background area, and determining an edge detection operator according to the preset color difference threshold value; the color difference preset threshold is a preset difference range between a color channel pixel value of the watermark information and a color channel pixel value of the pure color background area;
and extracting the outline of the watermark information in the pure-color background region through a Canny algorithm according to the edge detection operator.
The present application further provides a data processing method, including:
determining a solid background region of the first carrier object;
obtaining first identification information to be embedded into the first carrier object;
embedding the first identification information into a second carrier object to obtain second identification information containing the first identification information;
adding the second identification information to a solid background region of the first carrier object.
Optionally, the embedding the first identification information into a second carrier object to obtain second identification information including the first identification information includes:
obtaining background color information of the pure color background area;
determining identification color information for embedding the first identification information in the second carrier object according to the background color information; wherein a color difference value between the identification color information and the background color information meets a preset color threshold;
and embedding the first identification information into the second carrier object according to the identification color information to obtain the second identification information.
Optionally, the embedding the first identification information into the second carrier object according to the identification color information to obtain the second identification information includes:
drawing the first identification information in the second carrier object using the identification color information;
and taking the second carrier object drawn with the first identification information as the second identification information.
Optionally, the embedding the first identification information into a second carrier object to obtain second identification information including the first identification information includes:
embedding the first identification information into a second carrier object a plurality of times;
and using the second carrier object embedded with a plurality of pieces of first identification information as the second identification information.
Optionally, the adding the second identification information to the solid background area of the first carrier object includes:
tiling the second identification information into a solid-color background region of the first carrier object.
Optionally, the method further includes: adding the second identification information to the solid background area of the first carrier object a plurality of times.
The present application also provides a watermark embedding apparatus, comprising:
a solid color region determining unit for determining a solid color background region of the carrier object;
a watermark information obtaining unit, configured to obtain watermark information that needs to be embedded in the carrier object;
the intermediate processing unit is used for embedding the watermark information into a canvas to obtain the canvas containing the watermark information;
an embedding unit for adding the canvas containing the watermark information to a solid background area of the carrier object.
The present application also provides a watermark extraction apparatus, 1 including:
a carrier object screenshot unit for obtaining a screenshot of the carrier object;
a solid color area positioning unit for positioning a solid color background area of the carrier object from the screenshot; wherein the solid background area comprises a canvas embedded with watermark information;
and the watermark extraction unit is used for carrying out edge detection processing on the pure color background area to obtain the watermark information.
The present application further provides an electronic device, comprising:
a memory, and a processor;
the memory is to store computer-executable instructions, and the processor is to execute the computer-executable instructions to:
determining a solid background area of the carrier object;
obtaining watermark information to be embedded into the carrier object;
embedding the watermark information into a canvas to obtain the canvas containing the watermark information;
adding the canvas containing the watermark information into a solid background region of the carrier object.
The present application further provides an electronic device, comprising:
a memory, and a processor;
the memory is to store computer-executable instructions, and the processor is to execute the computer-executable instructions to:
obtaining a screenshot of the carrier object;
locating a solid background region of the carrier object from the screenshot; wherein the solid background area comprises a canvas embedded with watermark information;
and carrying out edge detection processing on the pure background area to obtain the watermark information.
The present application further provides a storage device storing instructions that can be loaded by a processor and perform the steps of:
determining a solid background area of the carrier object;
obtaining watermark information to be embedded into the carrier object;
embedding the watermark information into a canvas to obtain the canvas containing the watermark information;
adding the canvas containing the watermark information into a solid background region of the carrier object.
The present application further provides a storage device storing instructions that can be loaded by a processor and perform the steps of:
obtaining a screenshot of the carrier object;
locating a solid background region of the carrier object from the screenshot; wherein the solid background area comprises a canvas embedded with watermark information;
and carrying out edge detection processing on the pure background area to obtain the watermark information.
The application also provides a watermark embedding method, which comprises the following steps:
determining a solid background area of the carrier object;
obtaining watermark information to be embedded into the carrier object;
determining watermark color information according to the background color information of the solid background area, and embedding the watermark information into the carrier object by using the watermark color information; and the color difference value of the watermark color information and the background color information meets a preset color threshold value.
The application also provides a watermark embedding method, which comprises the following steps:
acquiring watermark information to be embedded into a carrier object;
embedding the watermark information into a canvas to obtain the canvas containing the watermark information, wherein the canvas comprises an image container or an image element, and the image container or the image element is used for drawing a graph or an image which can be embedded into a carrier object;
adding the canvas containing the watermark information to the carrier object.
Compared with the prior art, the method has the following advantages:
according to the watermark embedding method, the watermark information which needs to be embedded into the carrier object is obtained, the watermark information is embedded into the canvas, the canvas containing the watermark information is added into the pure background area of the carrier object, and the watermark information is not embedded into the image elements of the carrier object, so that the watermark information can be embedded into the carrier object which does not contain the image elements, and the problem that the watermark picture is embedded into the carrier object without the image elements is solved.
Drawings
Fig. 1 is a process flow diagram of a watermark embedding method provided in a first embodiment of the present application;
fig. 2 is a schematic diagram of watermark embedding effect provided by the first embodiment of the present application;
fig. 3 is a process flow diagram of a watermark extraction method provided in a second embodiment of the present application;
FIG. 4 is a process flow diagram of a data processing method according to a third embodiment of the present application;
fig. 5 is a schematic diagram of a watermark embedding apparatus according to a fourth embodiment of the present application;
fig. 6 is a schematic diagram of a watermark extraction apparatus according to a fifth embodiment of the present application;
FIG. 7 is a schematic diagram of an electronic device provided herein;
fig. 8 is a process flow diagram of a watermark embedding method according to a tenth embodiment of the present application;
fig. 9 is a process flow diagram of a watermark embedding method according to an eleventh 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 application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The application provides a watermark embedding method, a watermark embedding device, electronic equipment and storage equipment. The application also provides a watermark extraction method, a watermark extraction device, electronic equipment and storage equipment. The application also provides a data processing method. Details are described in the following examples one by one.
A first embodiment of the present application provides a watermark embedding method.
A watermark embedding method provided by the embodiment of the present application is described below with reference to fig. 1 and fig. 2.
The watermark embedding method shown in fig. 1 includes: step S101 to step S104.
Step S101, a solid background area of the carrier object is determined.
The carrier object refers to an object to be embedded with watermark information. The carrier object may be a digital carrier, for example: web pages, multimedia, documents, software, etc. The carrier object is an application scene of a document, and comprises a Word document, a PDF document, a PPT document and the like.
The solid background area refers to a color feature of the background of the carrier object, which is a color or hue not mixed with other hues. For example, in the HSL color mode, a color with 100% saturation is a pure color, so-called HSL is a color standard in which H (abbreviation of Hue) is "Hue" or "Hue" of the color; s (abbreviation for Saturation) is the Saturation of the color; l (abbreviation for Lightness) is the brightness of the color, also known as "Lightness". As another example, in another color standard HSV color pattern, a color with a saturation of 50% is a pure color, where H (abbreviation for Hue) is the "Hue" or "Hue" of the color; s (abbreviation for Saturation) is the Saturation of the color; v (abbreviation for Value) is the brightness Value of the color.
In the embodiment of the application, specifically, to obtain the solid background area of the carrier object, watermark information is embedded in the airspace according to the color characteristics of the solid background area. The solid background area can be located by the HTML scripting language. The spatial domain is a pixel matrix of an image represented by each pixel in the image as a two-dimensional coordinate point. For example, the color channel pixel value RGB represents the color feature of the solid background region, and the color channel pixel value of the pixel point of the region in which the watermark information is embedded is directly processed, so that the watermark information is embedded into the carrier object. The purpose of embedding the watermark information according to the color characteristics of the solid background area is to facilitate extracting the watermark information, and an edge detection algorithm can be adopted to extract the watermark information from the carrier object.
Step S102, watermark information which needs to be embedded into the carrier object is obtained.
The watermark information refers to identification information to be embedded into the carrier object. The watermark information can be directly embedded into the carrier object or indirectly represent, for example, the structure of a specific area is modified, the use value of the original carrier object is not 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.
For example, user account information for logging in a system including a carrier object is acquired as watermark information; the watermark information may also include the time when the user logged into the system. For another example, the user account information of the access webpage is obtained as the watermark information, and the watermark information may further include any one of the following information: user access time, device information used by the user to access the webpage, and address information.
Further, the watermark information may be information in a character string form, or may be presented in other forms, for example, presented in an image form, and specifically, a grayscale image or a binary image in which each pixel takes a black or white value may be adopted.
Step S103, embedding the watermark information into a canvas to obtain the canvas containing the watermark information.
After obtaining the watermark information to be embedded into the carrier object, embedding the watermark information into the canvas.
The canvas refers to an image container or image element that can be used to draw graphics or images that can be embedded into a carrier object. For example, a Canvas in HTML language can be used to draw an image on a web page, and a graphic or an image, including a string, can be drawn by controlling a pixel point of the Canvas.
In the embodiment of the present application, the watermark information is specifically embedded into the canvas through the following processing:
obtaining background color information of the pure color background area;
according to the background color information, determining watermark color information used for embedding the watermark information in the canvas; wherein a color difference value between the watermark color information and the background color information meets a preset color threshold;
and embedding the watermark information into a canvas according to the watermark color information.
Wherein, the embedding the watermark information into the canvas according to the watermark color information comprises: and drawing the watermark information on the canvas by using the watermark color information.
In the embodiment of the present application, specifically, the color channel pixel value may be used to represent a background color and a watermark color, such as an RGB value. The background color information is that the color channel pixel value of the pure color background area can be obtained through an HTML (hypertext markup language) script language; the watermark color information is a color channel pixel value of the watermark information embedded in the canvas. Of course, the background color information and the watermark color information may also be information of color features using other color expression modes. The value range of the preset color threshold can represent the color difference range between the background color information and the watermark color information. The watermark information is embedded by utilizing the color difference between the background color and the watermark color, even if the image characteristics are changed due to the fact that the carrier object embedded with the watermark information or the screenshot of the carrier object is subjected to image scaling or image format change, the color difference value between the background color and the watermark exists, and therefore the attack of image scaling and format change can be resisted.
Preferably, after determining the background color information of the solid background area, a color that is relatively similar to the background color of the solid background area is selected as the watermark color used for rendering the watermark information. In order to obtain a watermark color that is similar to the background color, it is necessary to keep the color difference between the background color and the watermark color as a slight color difference. Specifically, in the embodiment of the present application, the preferred preset color threshold is a value not greater than 5 pixel values, and the watermark information is embedded in the canvas by using the watermark color meeting the condition, so that the watermark information can be hidden in a pure background area in the carrier object, the purpose of embedding the hidden watermark information in an airspace can be achieved, and attacks on the carrier object (for example, a webpage) such as screenshot can be resisted.
In order to avoid that partial data of the carrier object is damaged to cause failure of watermark extraction, when the watermark information is embedded into the canvas, the method comprises the following steps: embedding the watermark information into the canvas for a plurality of times.
Step S104, adding the canvas containing the watermark information into a pure color background area of the carrier object.
In this embodiment, the adding the canvas containing the watermark information into the solid background area of the carrier object includes: tiling the canvas onto a solid background area of the carrier object. Of course, the canvas containing the watermark information may also be added to the solid background area of the carrier object in other ways than tiling.
In order to avoid that part of the data of the carrier object is damaged to cause the failure of watermark extraction, when the watermark information is embedded into the canvas, the following processing can be adopted: adding the canvas containing the watermark information to a solid background area of the carrier object multiple times. Preferably, the position of the canvas is not repeatedly covered when the canvas containing the watermark information is added to the carrier object a plurality of times.
Referring to fig. 2, a web page background shown in an exemplary web page 201 includes a large number of white blocks, and watermark information is company name information in the form of a character string. In the figure, the micro-chromatic aberration watermark 202 is an effect after embedding the watermark, and comprises the steps of positioning to a webpage solid background area through an HTML (hypertext markup language) script language and obtaining a color value of the solid background area; and embedding character string watermark information by taking the color which is different from the color channel pixel value of the pure color background area of the webpage by 2 pixel values as a character string color channel pixel value. Watermark extraction 203 is shown as a watermark extraction effect diagram of a differential watermark 202.
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 watermark information is embedded into the canvas, the canvas containing the watermark information is added into the carrier object, the watermark information can be embedded when no image element capable of embedding the watermark exists in the carrier object, the condition of embedding the watermark information is widened, and the problem that a watermark picture cannot be embedded under the condition that no image element exists in the carrier object is solved. Furthermore, according to the background color information of the solid background area of the carrier object, the watermark color information for embedding the watermark is determined, and the watermark information can be embedded in a mode that the color difference between the watermark color and the background color is micro-color difference, so that the watermark information obtained by obtaining data through image scaling or image format change can resist screenshot, image scaling and image format change attacks, namely, the data is obtained through the screenshot mode or the data is obtained through the image scaling or the image format change, the tracing can still be carried out, and the safety problem of the watermark embedded in the carrier object is solved.
Based on the watermark embedding method provided in the first embodiment of the present application, a second embodiment of the present application provides a watermark extraction method.
Referring to fig. 3, it shows a processing flow chart of a watermark extraction method provided by the second embodiment, and since the second embodiment is based on the first embodiment, the description is relatively simple, and relevant portions can be referred to the corresponding description of the first embodiment.
The watermark extraction method shown in fig. 3 includes: step S301 to step S303.
Step S301, obtaining a screenshot of the carrier object.
The carrier object refers to an object to be embedded with watermark information. The carrier object may be a digital carrier, for example: web pages, multimedia, documents, software, etc. The carrier object is an application scene of a document, and comprises a Word document, a PDF document, a PPT document and the like.
Step S302, positioning a solid background area of the carrier object from the screenshot; wherein the solid background area comprises a canvas embedded with watermark information.
Locating a solid background region of the carrier object from the screenshot, comprising:
and acquiring the color channel pixel value of the pixel point of the screenshot, and taking the area with the color ratio meeting a preset color distribution condition or the color channel pixel value meeting a preset pixel value condition as the pure color background area.
For example, a pixel matrix of the screenshot is obtained, the number or proportion of pixels of which the pixel values fall into a specified range is determined according to the pixel matrix, the foreground and the background of the screenshot are identified, and a pure background area is extracted.
Step S303, performing edge detection processing on the solid background area to obtain the watermark information.
Performing edge detection processing on the solid background area to obtain the watermark information, including:
aiming at the pure color background area, extracting the outline of the watermark information by adopting a Canny algorithm;
and determining the watermark information according to the outline of the watermark information.
The Canny algorithm is a multi-level edge detection. Specifically, the embodiment of the present application includes the following processes:
acquiring a preset color difference threshold value between the watermark information and the pure color background area, and determining an edge detection operator according to the preset color difference threshold value; the color difference preset threshold is a preset difference range between a color channel pixel value of the watermark information and a color channel pixel value of the pure color background area;
and extracting the outline of the watermark information in the pure-color background region through a Canny algorithm according to the edge detection operator.
Referring to fig. 2, a web page background shown in an exemplary web page 201 includes a large number of white blocks, and watermark information is company name information in the form of a character string. In the figure, the micro-chromatic aberration watermark 202 is an effect after embedding the watermark, and comprises the steps of positioning to a webpage solid background area through an HTML (hypertext markup language) script language and obtaining a color value of the solid background area; and embedding character string watermark information by taking the color which is different from the color channel pixel value of the pure color background area of the webpage by 2 pixel values as a character string color channel pixel value. Watermark extraction 203 is shown as a watermark extraction effect diagram of a differential watermark 202.
Based on the watermark embedding method provided in the first embodiment of the present application, a third embodiment of the present application provides a data processing method.
Referring to fig. 4, it shows a processing flow chart of a data processing method provided by the third embodiment, and since the third embodiment is based on the first embodiment, the description is relatively simple, and relevant portions only need to refer to the corresponding description of the first embodiment.
The data processing method shown in fig. 4 includes: step S401 to step S404.
In step S401, a solid background region of the first carrier object is determined.
The first carrier object refers to an object in which first identification information needs to be embedded. The first carrier object, which may be a digital carrier, for example: web pages, multimedia, documents, software, etc. When the first carrier object in the application scene is a document, the first carrier object comprises a Word document, a PDF document, a PPT document and the like. The first identification information may be watermark information.
The solid background area refers to a color feature of the background of the first carrier object, which is a color or hue that is not mixed with other hues.
In the embodiment of the present application, to obtain the pure color background region of the first carrier object, first identification information is embedded in the airspace according to the color feature of the pure color background region. The method can be used for positioning a pure-color background area through an HTML (hypertext markup language) script language and directly processing the color channel pixel value of the pixel point of the area embedded with the first identification information. The purpose of embedding the identification information based on the color characteristics of the solid background area is to facilitate the extraction of said first identification information, which may be extracted from the first carrier object using an edge detection algorithm.
Step S402, obtaining first identification information to be embedded into the first carrier object.
The first identification information refers to identification information to be embedded into the first carrier object. The first identification information can be directly embedded into the carrier object, or indirectly indicate, for example, that the structure of a specific area is modified, so that the use value of the original first carrier object is not affected, and the first identification information is not easy to be ascertained and modified again. The first identification information may be recognized and recognized by the producer. The first identification 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 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.
For example, user account information for logging in a system including a carrier object is acquired as first identification information; the first identification information may further include a time when the user logs in the system. For another example, the user account information of the accessed webpage is obtained as the first identification information, and the first identification information may further include any one of the following information: user access time, device information used by the user to access the webpage, and address information.
Further, the first identification information may be information in a character string form, or information presented in other forms, for example, information presented in an image form, and specifically, a grayscale image or a binary image in which each pixel takes a black or white value may be adopted.
Step S403, embedding the first identification information into a second carrier object, and obtaining second identification information containing the first identification information.
After first identification information which needs to be embedded into a first carrier object is obtained, the first identification information is embedded into a second carrier object.
The second carrier object, which may be a canvas. The canvas refers to an image container or image element that may be used to draw graphics or images that can be embedded into a carrier object. For example, a Canvas in HTML language can be used to draw an image on a web page, and a graphic or an image, including a string, can be drawn by controlling a pixel point of the Canvas.
In this embodiment of the present application, the first identification information is specifically embedded in the second carrier object by the following processing:
obtaining background color information of the pure color background area;
determining identification color information for embedding the first identification information in the second carrier object according to the background color information; wherein a color difference value between the identification color information and the background color information meets a preset color threshold;
and embedding the first identification information into the second carrier object according to the identification color information to obtain the second identification information.
Preferably, the embedding the first identification information into the second carrier object according to the identification color information to obtain the second identification information includes:
drawing the first identification information in the second carrier object using the identification color information;
and taking the second carrier object drawn with the first identification information as the second identification information.
In this embodiment, specifically, the background color and the watermark color may be represented by a color channel pixel value, for example, an RGB value. The background color information is a color channel pixel value of the pure color background area; the identification color information is a color channel pixel value of the first identification information embedded in the second carrier object. Of course, the background color information and the identification color information may also be information of color features using other color expression modes. The value range of the preset color threshold can represent the color difference range between the background color information and the identification color information. The first identification information is embedded by utilizing the color difference between the background color and the identification color, so that even if the image characteristics are changed due to image scaling or image format change of the first carrier object embedded with the first identification information or a screenshot of the first carrier object, the color difference value between the background color and the identification exists, and the attack of image scaling and format change can be resisted.
Preferably, after determining the background color information of the solid background area, a color that is relatively similar to the background color of the solid background area is selected as the identification color used for drawing the first identification information. In order to obtain a logo color similar to the background color, it is necessary to keep the color difference between the background color and the logo color as a slight color difference. Specifically, in the embodiment of the present application, the preferred preset color threshold is a value not greater than 5 pixel values, and the identification color meeting the condition is used to embed the first identification information in the second carrier object, so that the identification information can be hidden in a pure-color background region in the first carrier object, the purpose of embedding hidden identification information in a airspace can be achieved, and attacks on the first carrier object (for example, a web page) such as screenshot can be resisted.
In order to avoid that part of the data of the first carrier object is damaged to cause failure of new extraction of the identifier, when the first identification information is embedded into the second carrier object, the method includes: embedding the first identification information into the second carrier object a plurality of times. And using the second carrier object embedded with a plurality of pieces of first identification information as the second identification information.
Step S404, adding the second identification information to the solid background area of the first carrier object.
In this example, the adding the second carrier object containing the first identification information to the solid background area of the first carrier object includes: tiling the second carrier object containing the first identification information to a solid background area of the first carrier object. Of course, it is also possible to add the second carrier object containing the first identification information to the solid-colored background area of the first carrier object in other ways than tiling.
In order to avoid that partial data of the carrier object is damaged to cause failure of watermark extraction, adding the second identification information to the pure-color background area of the first carrier object comprises: tiling the second identification information into a solid-color background region of the first carrier object.
Preferably, the second carrier object is added multiple times to contain said second identification information. Specifically, the second identification information is added to the solid background area of the first carrier object multiple times, and the position of adding the second carrier object is not repeated, that is, the second carrier object added before is not covered when each time the second carrier object is added.
Now, a detailed description is given of an embodiment of a data processing method according to a third embodiment of the present application. According to the method and the device, the first identification information is embedded into the second carrier object to obtain the second identification information, and then the second identification information is added into the first carrier object, so that the first identification information can be embedded even if no image element capable of being used for embedding the first identification exists in the first carrier object, the condition of embedding the first identification information is widened, and the problem that the first identification information cannot be embedded under the condition that no image element exists in the first carrier object is solved. Furthermore, according to the background color information of the pure color background area of the first carrier object, the identification color information used for embedding the first identification information is determined, and the first identification information can be embedded in a mode that the color difference between the identification color and the background color is micro-color difference, so that the first identification information obtained by obtaining data through image scaling or image format change can resist screenshot, image scaling and image format change attacks, namely the data is obtained through a screenshot mode or the data is obtained through image scaling or image format change, and the tracing can still be carried out, and therefore the safety problem of the first identification information embedded in the first carrier object is solved.
A fourth embodiment of the present application provides a watermark embedding apparatus, corresponding to the first embodiment of the present application.
Referring to fig. 5, a schematic diagram of a watermark embedding apparatus according to a fourth embodiment of the present application is shown. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple, and the relevant portions only need to refer to the corresponding description of the method embodiment.
The watermark embedding apparatus shown in fig. 5 includes:
a solid color region determining unit 501, configured to determine a solid color background region of the carrier object;
a watermark information obtaining unit 502, configured to obtain watermark information that needs to be embedded in the carrier object;
the intermediate processing unit 503 is configured to embed the watermark information into a canvas, and obtain the canvas containing the watermark information;
an embedding unit 504 for adding the canvas containing the watermark information to a solid background area of the carrier object.
Wherein, the intermediate processing unit 503 is specifically configured to:
obtaining background color information of the pure color background area;
according to the background color information, determining watermark color information used for embedding the watermark information in the canvas; wherein a color difference value between the watermark color information and the background color information meets a preset color threshold;
and embedding the watermark information into a canvas according to the watermark color information.
Wherein, the intermediate processing unit 503 is specifically configured to:
and drawing the watermark information on the canvas by using the watermark color information.
Wherein the background color information is a color channel pixel value of the solid background area; the watermark color information is a color channel pixel value of the watermark information embedded in the canvas; the preset color threshold is a value not greater than 5 pixel values.
Wherein, the intermediate processing unit 503 is specifically configured to: embedding the watermark information into the canvas for a plurality of times.
Wherein the embedding unit 504 is specifically configured to:
tiling the canvas onto a solid background area of the carrier object.
Wherein the embedding unit 504 is further configured to:
adding the canvas containing the watermark information to a solid background area of the carrier object multiple times.
Corresponding to the embodiment of the watermark extraction method provided in the second embodiment of the present application, a fifth embodiment of the present application provides a watermark extraction apparatus.
Referring to fig. 6, a schematic diagram of a watermark extraction apparatus according to a fifth embodiment of the present application is shown. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple, and the relevant portions only need to refer to the corresponding description of the method embodiment.
The watermark extraction apparatus shown in fig. 6 includes:
a carrier object screenshot unit 601, configured to obtain a screenshot of a carrier object;
a solid color region positioning unit 602, configured to position a solid color background region of the carrier object from the screenshot; wherein the solid background area comprises a canvas embedded with watermark information;
a watermark extracting unit 603, configured to perform edge detection processing on the solid background area to obtain the watermark information.
The pure color area positioning unit 602 is specifically configured to:
and acquiring the color channel pixel value of the pixel point of the screenshot, and taking the area with the color ratio meeting a preset color distribution condition or the color channel pixel value meeting a preset pixel value condition as the pure color background area.
The watermark extracting unit 603 is specifically configured to:
aiming at the pure color background area, extracting the outline of the watermark information by adopting a Canny algorithm;
and determining the watermark information according to the outline of the watermark information.
The watermark extracting unit 603 is specifically configured to:
acquiring a preset color difference threshold value between the watermark information and the pure color background area, and determining an edge detection operator according to the preset color difference threshold value; the color difference preset threshold is a preset difference range between a color channel pixel value of the watermark information and a color channel pixel value of the pure color background area;
and extracting the outline of the watermark information in the pure-color background region through a Canny algorithm according to the edge detection operator.
A sixth embodiment of the present application provides an electronic device, corresponding to the first embodiment.
Referring to fig. 7, a schematic diagram of an electronic device provided by a sixth embodiment is shown. The electronic device provided by the sixth embodiment is relatively simple to describe, and please refer to the corresponding description of the first embodiment for relevant portions.
The electronic device shown in fig. 7 includes:
a memory 701, and a processor 702;
the memory 701 is configured to store computer-executable instructions, and the processor 702 is configured to execute the computer-executable instructions to:
determining a solid background area of the carrier object;
obtaining watermark information to be embedded into the carrier object;
embedding the watermark information into a canvas to obtain the canvas containing the watermark information;
adding the canvas containing the watermark information into a solid background region of the carrier object.
Optionally, the processor 702 is further configured to execute the following computer-executable instructions:
obtaining background color information of the pure color background area;
according to the background color information, determining watermark color information used for embedding the watermark information in the canvas; wherein a color difference value between the watermark color information and the background color information meets a preset color threshold;
and embedding the watermark information into a canvas according to the watermark color information.
Optionally, the processor 702 is further configured to execute the following computer-executable instructions: and drawing the watermark information on the canvas by using the watermark color information.
Optionally, the background color information is a color channel pixel value of the solid background area; the watermark color information is a color channel pixel value of the watermark information embedded in the canvas; the preset color threshold is a value not greater than 5 pixel values.
Optionally, the processor 702 is further configured to execute the following computer-executable instructions: embedding the watermark information into the canvas for a plurality of times.
Optionally, the processor 702 is further configured to execute the following computer-executable instructions: tiling the canvas onto a solid background area of the carrier object.
Optionally, the processor 702 is further configured to execute the following computer-executable instructions: adding the canvas containing the watermark information to a solid background area of the carrier object multiple times.
A seventh embodiment of the present application provides an electronic apparatus, corresponding to the second embodiment. The schematic diagram is similar to fig. 7.
The electronic device provided by the seventh embodiment is relatively simple to describe, and please refer to the corresponding description of the first embodiment for relevant portions.
A seventh embodiment provides an electronic device, comprising:
a memory, and a processor;
the memory is to store computer-executable instructions, and the processor is to execute the computer-executable instructions to:
obtaining a screenshot of the carrier object;
locating a solid background region of the carrier object from the screenshot; wherein the solid background area comprises a canvas embedded with watermark information;
and carrying out edge detection processing on the pure background area to obtain the watermark information.
Optionally, the processor is further configured to execute the following computer-executable instructions: and acquiring the color channel pixel value of the pixel point of the screenshot, and taking the area with the color ratio meeting a preset color distribution condition or the color channel pixel value meeting a preset pixel value condition as the pure color background area.
Optionally, the processor is further configured to execute the following computer-executable instructions:
aiming at the pure color background area, extracting the outline of the watermark information by adopting a Canny algorithm;
and determining the watermark information according to the outline of the watermark information.
Optionally, the processor is further configured to execute the following computer-executable instructions:
acquiring a preset color difference threshold value between the watermark information and the pure color background area, and determining an edge detection operator according to the preset color difference threshold value; the color difference preset threshold is a preset difference range between a color channel pixel value of the watermark information and a color channel pixel value of the pure color background area;
and extracting the outline of the watermark information in the pure-color background region through a Canny algorithm according to the edge detection operator.
The eighth embodiment of the present application further provides an embodiment of a storage device for the watermark embedding method provided in the first embodiment, which is described relatively simply, and please refer to the corresponding description of the first embodiment for relevant portions.
An eighth embodiment of the present application provides a storage device, storing instructions, the instructions being capable of being loaded by a processor and performing the following steps:
determining a solid background area of the carrier object;
obtaining watermark information to be embedded into the carrier object;
embedding the watermark information into a canvas to obtain the canvas containing the watermark information;
adding the canvas containing the watermark information into a solid background region of the carrier object.
The ninth embodiment of the present application further provides an embodiment of a storage device for the watermark extraction method provided in the second embodiment, which is described more simply, and please refer to the corresponding description of the second embodiment for relevant portions.
A ninth embodiment of the present application provides a storage device storing instructions that can be loaded by a processor and perform the steps of:
obtaining a screenshot of the carrier object;
locating a solid background region of the carrier object from the screenshot; wherein the solid background area comprises a canvas embedded with watermark information;
and carrying out edge detection processing on the pure background area to obtain the watermark information.
Based on the foregoing embodiments, a tenth embodiment of the present application further provides a watermark embedding method. Since the present embodiment is based on the above-described embodiments, the description is relatively simple. For the relevant portions, refer to the corresponding descriptions of the above embodiments.
Referring to fig. 8, a flowchart of a watermark embedding method provided in a tenth embodiment is shown.
The watermark embedding method shown in fig. 8 includes: step S801 to step S803.
Step S801, determining a solid background area of the carrier object;
the carrier object refers to an object to be embedded with watermark information. The carrier object may be a digital carrier, for example: web pages, multimedia, documents, software, etc. The carrier object is an application scene of a document, and comprises a Word document, a PDF document, a PPT document and the like.
The solid background area refers to a color feature of the background of the carrier object, which is a color or hue not mixed with other hues.
Step S802, obtaining watermark information to be embedded into the carrier object;
the watermark information refers to identification information to be embedded into the carrier object. The watermark information can be directly embedded into the carrier object or indirectly represent, for example, the structure of a specific area is modified, the use value of the original carrier object is not 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.
Step S803, determining watermark color information according to the background color information of the solid background region, and embedding the watermark information into the carrier object using the watermark color information; and the color difference value of the watermark color information and the background color information meets a preset color threshold value.
The determining the watermark color information according to the background color information of the solid background area comprises:
obtaining background color information of the pure color background area;
according to the background color information, determining watermark color information used for embedding the watermark information in the carrier object; wherein the background color information is a color channel pixel value of the solid background area; the watermark color information is a color channel pixel value of the watermark information embedded in the canvas.
Preferably, after determining the background color information of the solid background area, a color that is relatively similar to the background color of the solid background area is selected as the watermark color used for rendering the watermark information. In order to obtain a watermark color that is similar to the background color, it is necessary to keep the color difference between the background color and the watermark color as a slight color difference. Specifically, in the embodiment of the present application, the preferred preset color threshold is a value not greater than 5 pixel values, and the watermark color information meeting the condition is used to embed the watermark information in the canvas, so that the watermark information can be hidden in a pure-color background region in the carrier object, the purpose of embedding the hidden watermark information in a spatial domain can be achieved, and attacks on the carrier object (for example, a webpage) such as screenshot can be resisted.
In order to avoid that partial data of the carrier object is damaged to cause the watermark extraction failure, the method further comprises the following steps: embedding the watermark information into the carrier object a plurality of times.
Based on the foregoing embodiments, an eleventh embodiment of the present application further provides a watermark embedding method. Since the present embodiment is based on the above-described embodiments, the description is relatively simple. For the relevant portions, refer to the corresponding descriptions of the above embodiments.
Referring to fig. 9, it shows a process flow diagram of a watermark embedding method provided in the eleventh embodiment.
The watermark embedding method shown in fig. 9 includes: step S901 to step S903.
Step S901 obtains watermark information to be embedded in the carrier object.
The carrier object refers to an object to be embedded with watermark information. The carrier object may be a digital carrier, for example: web pages, multimedia, documents, software, etc. The carrier object is an application scene of a document, and comprises a Word document, a PDF document, a PPT document and the like.
The watermark information refers to identification information to be embedded into the carrier object. The watermark information can be directly embedded into the carrier object or indirectly represent, for example, the structure of a specific area is modified, the use value of the original carrier object is not 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.
Step S902, embedding the watermark information into a canvas to obtain the canvas containing the watermark information, wherein the canvas includes an image container or an image element, and the image container or the image element is used for drawing a graphic or an image that can be embedded into a carrier object.
The embedding the watermark information into the canvas comprises: and drawing the watermark information on the canvas.
In order to avoid that partial data of the carrier object is damaged to cause the watermark extraction failure, the method further comprises the following steps: embedding the watermark information into the canvas for a plurality of times.
Step S903, adding the canvas containing the watermark information to the carrier object.
The adding the canvas containing the watermark information to the carrier object comprises: tiling the canvas onto a solid background area of the carrier object.
In order to avoid that partial data of the carrier object is damaged to cause the watermark extraction failure, the method further comprises the following steps: adding the canvas containing the watermark information to a solid background area of the carrier object multiple times.
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.
1. 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 (transmyedia), such as modulated data signals and carrier waves.
2. 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.
Although the present application has been described with reference to the preferred embodiments, it is not intended to limit the present application, and those skilled in the art can make variations and modifications without departing from the spirit and scope of the present application, therefore, the scope of the present application should be determined by the claims that follow.

Claims (25)

1. A watermark embedding method, comprising:
determining a solid background area of the carrier object;
obtaining watermark information to be embedded into the carrier object;
embedding the watermark information into a canvas to obtain the canvas containing the watermark information;
adding the canvas containing the watermark information into a solid background region of the carrier object.
2. The method of claim 1, wherein embedding the watermark information into a canvas comprises:
obtaining background color information of the pure color background area;
according to the background color information, determining watermark color information used for embedding the watermark information in the canvas; wherein a color difference value between the watermark color information and the background color information meets a preset color threshold;
and embedding the watermark information into a canvas according to the watermark color information.
3. The method of claim 2, wherein embedding the watermark information into a canvas according to the watermark color information comprises:
and drawing the watermark information on the canvas by using the watermark color information.
4. The method according to claim 2 or 3, wherein the background color information is color channel pixel values of the solid color background region; the watermark color information is a color channel pixel value of the watermark information embedded in the canvas; the preset color threshold is a value not greater than 5 pixel values.
5. The method of claim 1, wherein embedding the watermark information into a canvas comprises: embedding the watermark information into the canvas for a plurality of times.
6. The method of claim 1, wherein adding the canvas containing the watermark information into a solid background region of the carrier object comprises:
tiling the canvas onto a solid background area of the carrier object.
7. The method of claim 1, further comprising:
adding the canvas containing the watermark information to a solid background area of the carrier object multiple times.
8. A watermark extraction method, comprising:
obtaining a screenshot of the carrier object;
locating a solid background region of the carrier object from the screenshot; wherein the solid background area comprises a canvas embedded with watermark information;
and carrying out edge detection processing on the pure background area to obtain the watermark information.
9. The method of claim 8, wherein said locating a solid background region of the carrier object from the screenshot comprises:
and acquiring the color channel pixel value of the pixel point of the screenshot, and taking the area with the color ratio meeting a preset color distribution condition or the color channel pixel value meeting a preset pixel value condition as the pure color background area.
10. The method according to claim 8, wherein the performing an edge detection process on the solid background area to obtain the watermark information comprises:
aiming at the pure color background area, extracting the outline of the watermark information by adopting a Canny algorithm;
and determining the watermark information according to the outline of the watermark information.
11. The method according to claim 10, wherein the extracting the contour of the watermark information by using a Canny algorithm for the solid background region comprises:
acquiring a preset color difference threshold value between the watermark information and the pure color background area, and determining an edge detection operator according to the preset color difference threshold value; the color difference preset threshold is a preset difference range between a color channel pixel value of the watermark information and a color channel pixel value of the pure color background area;
and extracting the outline of the watermark information in the pure-color background region through a Canny algorithm according to the edge detection operator.
12. A data processing method, comprising:
determining a solid background region of the first carrier object;
obtaining first identification information to be embedded into the first carrier object;
embedding the first identification information into a second carrier object to obtain second identification information containing the first identification information;
adding the second identification information to a solid background region of the first carrier object.
13. The method according to claim 12, wherein said embedding the first identification information into a second carrier object, obtaining second identification information containing the first identification information, comprises:
obtaining background color information of the pure color background area;
determining identification color information for embedding the first identification information in the second carrier object according to the background color information; wherein a color difference value between the identification color information and the background color information meets a preset color threshold;
and embedding the first identification information into the second carrier object according to the identification color information to obtain the second identification information.
14. The method according to claim 13, wherein said embedding the first identification information into the second carrier object according to the identification color information, resulting in the second identification information, comprises:
drawing the first identification information in the second carrier object using the identification color information;
and taking the second carrier object drawn with the first identification information as the second identification information.
15. The method according to claim 12, wherein said embedding the first identification information into a second carrier object, obtaining second identification information containing the first identification information, comprises:
embedding the first identification information into a second carrier object a plurality of times;
and using the second carrier object embedded with a plurality of pieces of first identification information as the second identification information.
16. The method of claim 12, wherein the adding the second identification information to the solid background region of the first carrier object comprises:
tiling the second identification information into a solid-color background region of the first carrier object.
17. The method of claim 12, further comprising:
adding the second identification information to the solid background area of the first carrier object a plurality of times.
18. A watermark embedding apparatus, comprising:
a solid color region determining unit for determining a solid color background region of the carrier object;
a watermark information obtaining unit, configured to obtain watermark information that needs to be embedded in the carrier object;
the intermediate processing unit is used for embedding the watermark information into a canvas to obtain the canvas containing the watermark information;
an embedding unit for adding the canvas containing the watermark information to a solid background area of the carrier object.
19. A watermark extraction apparatus, comprising:
a carrier object screenshot unit for obtaining a screenshot of the carrier object;
a solid color area positioning unit for positioning a solid color background area of the carrier object from the screenshot; wherein the solid background area comprises a canvas embedded with watermark information;
and the watermark extraction unit is used for carrying out edge detection processing on the pure color background area to obtain the watermark information.
20. An electronic device, comprising:
a memory, and a processor;
the memory is to store computer-executable instructions, and the processor is to execute the computer-executable instructions to:
determining a solid background area of the carrier object;
obtaining watermark information to be embedded into the carrier object;
embedding the watermark information into a canvas to obtain the canvas containing the watermark information;
adding the canvas containing the watermark information into a solid background region of the carrier object.
21. An electronic device, comprising:
a memory, and a processor;
the memory is to store computer-executable instructions, and the processor is to execute the computer-executable instructions to:
obtaining a screenshot of the carrier object;
locating a solid background region of the carrier object from the screenshot; wherein the solid background area comprises a canvas embedded with watermark information;
and carrying out edge detection processing on the pure background area to obtain the watermark information.
22. A storage device having stored thereon instructions capable of being loaded by a processor and performing the steps of:
determining a solid background area of the carrier object;
obtaining watermark information to be embedded into the carrier object;
embedding the watermark information into a canvas to obtain the canvas containing the watermark information;
adding the canvas containing the watermark information into a solid background region of the carrier object.
23. A storage device having stored thereon instructions capable of being loaded by a processor and performing the steps of:
obtaining a screenshot of the carrier object;
locating a solid background region of the carrier object from the screenshot; wherein the solid background area comprises a canvas embedded with watermark information;
and carrying out edge detection processing on the pure background area to obtain the watermark information.
24. A watermark embedding method, comprising:
determining a solid background area of the carrier object;
obtaining watermark information to be embedded into the carrier object;
determining watermark color information according to the background color information of the solid background area, and embedding the watermark information into the carrier object by using the watermark color information; and the color difference value of the watermark color information and the background color information meets a preset color threshold value.
25. A watermark embedding method, comprising:
acquiring watermark information to be embedded into a carrier object;
embedding the watermark information into a canvas to obtain the canvas containing the watermark information, wherein the canvas comprises an image container or an image element, and the image container or the image element is used for drawing a graph or an image which can be embedded into a carrier object;
adding the canvas containing the watermark information to the carrier object.
CN201811406244.4A 2018-11-23 2018-11-23 Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting equipment and data processing method Pending CN111223032A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811406244.4A CN111223032A (en) 2018-11-23 2018-11-23 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
CN201811406244.4A CN111223032A (en) 2018-11-23 2018-11-23 Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting equipment and data processing method

Publications (1)

Publication Number Publication Date
CN111223032A true CN111223032A (en) 2020-06-02

Family

ID=70831879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811406244.4A Pending CN111223032A (en) 2018-11-23 2018-11-23 Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting equipment and data processing method

Country Status (1)

Country Link
CN (1) CN111223032A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112184535A (en) * 2020-10-29 2021-01-05 维沃移动通信有限公司 Image anti-counterfeiting method, device and equipment
CN112884631A (en) * 2021-02-24 2021-06-01 江苏保旺达软件技术有限公司 Watermark processing method, device, equipment and storage medium
CN112907433A (en) * 2021-03-25 2021-06-04 苏州科达科技股份有限公司 Digital watermark embedding method, digital watermark extracting device, digital watermark embedding apparatus, digital watermark extracting apparatus, and digital watermark extracting medium
CN113436052A (en) * 2021-06-23 2021-09-24 网易(杭州)网络有限公司 Image processing method and device and electronic equipment
CN114092307A (en) * 2021-11-25 2022-02-25 合芯科技(苏州)有限公司 Watermark generation method, watermark addition method, watermark tracing equipment and storage medium
CN116957893A (en) * 2023-06-26 2023-10-27 海易科技(北京)有限公司 Watermark generation method, watermark generation device, electronic device and computer readable medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080080009A1 (en) * 2006-09-28 2008-04-03 Fujitsu Limited Electronic watermark embedding apparatus and electronic watermark detection apparatus
CN102254295A (en) * 2011-07-13 2011-11-23 西安电子科技大学 Color halftoning image watermarking algorithm based on support vector machine
CN104504640A (en) * 2014-12-17 2015-04-08 北京齐尔布莱特科技有限公司 Method and device for adding watermark into picture and computation equipment
CN105760740A (en) * 2016-02-02 2016-07-13 广州市百成科技有限公司 Method for quickly making dynamic electronic seal based on mobile terminal
CN106023059A (en) * 2016-05-26 2016-10-12 北京启迪思创科技有限公司 Watermarking information generation method and apparatus
CN107392832A (en) * 2017-06-30 2017-11-24 广东欧珀移动通信有限公司 Image processing method and related product
CN107885848A (en) * 2017-11-10 2018-04-06 杭州美创科技有限公司 Web page screen-cutting method based on web technology
CN108230221A (en) * 2017-05-17 2018-06-29 深圳市创梦天地科技有限公司 Watermark generation method and device, terminal
CN108596916A (en) * 2018-04-16 2018-09-28 深圳市联软科技股份有限公司 Watermark recognition methods, system, terminal and medium similar in a kind of color
CN108629727A (en) * 2018-04-16 2018-10-09 深圳市联软科技股份有限公司 Method, terminal and the medium of watermark are generated according to color
CN108830771A (en) * 2018-05-17 2018-11-16 山东华软金盾软件股份有限公司 A kind of method of clipbook picture addition watermark

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080080009A1 (en) * 2006-09-28 2008-04-03 Fujitsu Limited Electronic watermark embedding apparatus and electronic watermark detection apparatus
CN102254295A (en) * 2011-07-13 2011-11-23 西安电子科技大学 Color halftoning image watermarking algorithm based on support vector machine
CN104504640A (en) * 2014-12-17 2015-04-08 北京齐尔布莱特科技有限公司 Method and device for adding watermark into picture and computation equipment
CN105760740A (en) * 2016-02-02 2016-07-13 广州市百成科技有限公司 Method for quickly making dynamic electronic seal based on mobile terminal
CN106023059A (en) * 2016-05-26 2016-10-12 北京启迪思创科技有限公司 Watermarking information generation method and apparatus
CN108230221A (en) * 2017-05-17 2018-06-29 深圳市创梦天地科技有限公司 Watermark generation method and device, terminal
CN107392832A (en) * 2017-06-30 2017-11-24 广东欧珀移动通信有限公司 Image processing method and related product
CN107885848A (en) * 2017-11-10 2018-04-06 杭州美创科技有限公司 Web page screen-cutting method based on web technology
CN108596916A (en) * 2018-04-16 2018-09-28 深圳市联软科技股份有限公司 Watermark recognition methods, system, terminal and medium similar in a kind of color
CN108629727A (en) * 2018-04-16 2018-10-09 深圳市联软科技股份有限公司 Method, terminal and the medium of watermark are generated according to color
CN108830771A (en) * 2018-05-17 2018-11-16 山东华软金盾软件股份有限公司 A kind of method of clipbook picture addition watermark

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
吴丽华 等: "《网络数字媒体技术在生物多样性数字博物馆中的应用研究》", 31 July 2013, 北京:国防工业出版社 *
孙翠华: "如何实现网店中图片数字水印的批量处理", 《编程疑难问题解答》 *
张志强 等: "Web图像动态嵌入水印设计", 《计算机安全与维护》 *
李念: "《基于HTML5的Web设计与前端开发研究分析》", 31 January 2017, 成都:电子科技大学出版社 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112184535A (en) * 2020-10-29 2021-01-05 维沃移动通信有限公司 Image anti-counterfeiting method, device and equipment
WO2022089482A1 (en) * 2020-10-29 2022-05-05 维沃移动通信有限公司 Image anti-counterfeiting method and apparatus, and device
CN112184535B (en) * 2020-10-29 2024-04-26 维沃移动通信有限公司 Image anti-counterfeiting method, device and equipment
CN112884631A (en) * 2021-02-24 2021-06-01 江苏保旺达软件技术有限公司 Watermark processing method, device, equipment and storage medium
CN112907433A (en) * 2021-03-25 2021-06-04 苏州科达科技股份有限公司 Digital watermark embedding method, digital watermark extracting device, digital watermark embedding apparatus, digital watermark extracting apparatus, and digital watermark extracting medium
CN113436052A (en) * 2021-06-23 2021-09-24 网易(杭州)网络有限公司 Image processing method and device and electronic equipment
CN114092307A (en) * 2021-11-25 2022-02-25 合芯科技(苏州)有限公司 Watermark generation method, watermark addition method, watermark tracing equipment and storage medium
CN116957893A (en) * 2023-06-26 2023-10-27 海易科技(北京)有限公司 Watermark generation method, watermark generation device, electronic device and computer readable medium
CN116957893B (en) * 2023-06-26 2024-04-16 海易科技(北京)有限公司 Watermark generation method, watermark generation device, electronic device and computer readable medium

Similar Documents

Publication Publication Date Title
CN111223032A (en) Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting equipment and data processing method
US9996891B2 (en) System and method for digital watermarking
US20150339806A1 (en) Image denoising method and image denoising apparatus
Wang et al. Watermarking for DIBR 3D images based on SIFT feature points
CN111932432B (en) Blind watermark implanting method, blind watermark detecting method, blind watermark implanting device, blind watermark detecting equipment and storage medium
CN111310134B (en) Screen watermark generation method, device and equipment
CN110969563A (en) Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting equipment and data processing method
CN109474830B (en) Embedding and extracting method of digital video steel seal
US11113537B2 (en) Image detection using multiple detection processes
CN113763224A (en) Image processing method and device
CN117011114A (en) Watermark embedding method and device for virtual desktop, electronic equipment and storage medium
CN104517259B (en) Embedding algorithm method and apparatus in color text file
CN114245053A (en) Video watermark generation method and device
Lenarczyk et al. Parallel blind digital image watermarking in spatial and frequency domains
CN113628091B (en) Safety information extraction method and device for electronic display screen content reproduction scene
Hashmi et al. Real time copyright protection and implementation of image and video processing on android and embedded platforms
CN115270084A (en) Blind watermark encryption implementation method based on screenshot information protection
CN110826033B (en) Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting equipment and data processing method
Fujimura et al. Application of saliency map to restraint scheme of attack to digital watermark using seam carving
Huy et al. Saliency guided image watermarking for anti-forgery
KR102036077B1 (en) Method for processing images into which visible watermark is embedded, and image processing apparatus thereof
KR102226706B1 (en) Apparatus for hiding data using multimedia contents in document file and method therefore
Singh et al. A new box segmentation based digital image watermark positioning method in spatial domain
Mishra et al. Robust adaptive watermarking in video for protecting intellectual properties
Pizzolante et al. Copyright Protection for Digital Images on Portable Devices.

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200602

RJ01 Rejection of invention patent application after publication