CN115358911A - Screen watermark generation method, device, equipment and computer readable storage medium - Google Patents

Screen watermark generation method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN115358911A
CN115358911A CN202211284185.4A CN202211284185A CN115358911A CN 115358911 A CN115358911 A CN 115358911A CN 202211284185 A CN202211284185 A CN 202211284185A CN 115358911 A CN115358911 A CN 115358911A
Authority
CN
China
Prior art keywords
watermark
screen
block
content
information
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.)
Granted
Application number
CN202211284185.4A
Other languages
Chinese (zh)
Other versions
CN115358911B (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.)
Beijing Superred Technology Co Ltd
Original Assignee
Beijing Superred Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Superred Technology Co Ltd filed Critical Beijing Superred Technology Co Ltd
Priority to CN202211284185.4A priority Critical patent/CN115358911B/en
Publication of CN115358911A publication Critical patent/CN115358911A/en
Application granted granted Critical
Publication of CN115358911B publication Critical patent/CN115358911B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • H04N19/467Embedding additional information in the video signal during the compression process characterised by the embedded information being invisible, e.g. watermarking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2201/00General purpose image data processing
    • G06T2201/005Image watermarking
    • G06T2201/0053Embedding of the watermark in the coding stream, possibly without decoding; Embedding of the watermark in the compressed domain

Landscapes

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

Abstract

The embodiment of the application provides a screen watermark generation method, a screen watermark generation device, screen watermark generation equipment and a computer-readable storage medium. The method comprises the steps of coding watermark information to obtain a binary code character string, and processing the binary code character string based on time information of a current system to obtain watermark codes; grouping the watermark codes to obtain coding information with fixed code length; determining the size of the watermark block based on the display resolution of the screen and the coding information of the fixed code length to obtain the watermark block with the fixed size; and dynamically fusing the watermark block and the pixel value of the screen display content based on the display color of the screen, circularly embedding the fused watermark block into the screen display content, and displaying the content and the watermark on the screen. In this way, better user experience is provided, and the tracing success rate is also improved.

Description

Screen watermark generation method, device, equipment and computer readable storage medium
Technical Field
Embodiments of the present application relate to the field of watermarking, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for generating a screen watermark.
Background
Along with the progress of science and technology, the way of divulging a secret is more abundant. Particularly, with the popularization of smart devices, such as mobile phones, watches, glasses, and the like, the shooting function of the devices enables users to shoot desired materials more conveniently. The confidential information is transmitted in modes of candid shooting, screenshot and the like, and huge influence and economic loss are brought to enterprises or individuals.
For the above situation, the current market often adopts a method of directly adding clear watermarks including color watermarks, dot matrix watermarks, and the like, and a method of encrypting user information into text to protect the information. However, the clear watermark can influence the appearance of the user and cause trouble to the user; the hidden watermark embedded into the text has insufficient protection force on the screen and has low tracing success rate.
Therefore, how to design a watermarking technology for solving the technical pain point is a problem which needs to be solved urgently at present.
Disclosure of Invention
According to an embodiment of the present application, a screen watermark generation scheme is provided.
In a first aspect of the present application, a method for generating a screen watermark is provided. The method comprises the following steps:
encoding the watermark information to obtain a binary code character string, and processing the binary code character string based on the time information of the current system to obtain a watermark code;
grouping the watermark codes to obtain coding information with fixed code length;
determining the size of the watermark block based on the display resolution of the screen and the coding information of the fixed code length to obtain the watermark block with the fixed size;
and dynamically fusing the watermark block and the pixel value of the screen display content based on the display color of the screen, circularly embedding the fused watermark block into the screen display content, and displaying the content and the watermark on the screen.
Further, the processing the binary code string based on the time information of the current system to obtain the watermark code includes:
designing a plurality of signals with periodicity based on the time information of the current system;
and processing the binary code character string through the plurality of signals with periodicity to obtain the watermark code.
Further, the grouping the watermark codes to obtain the coding information with the fixed code length includes:
dividing the watermark codes into a plurality of groups of codes based on the length of the watermark codes;
and each group of codes respectively adopts CRC check and BCH codes to carry out recoding, and coding information with fixed code length is obtained.
Further, the determining the size of the watermark block based on the display resolution of the screen and the coding information with the fixed code length to obtain the watermark block with the fixed size includes:
calculating the number of watermark blocks of a screen based on the height and width of the display resolution of the screen;
and determining the size of the watermark block based on the number of the watermark blocks and the coding information with the fixed code length to obtain the watermark block with the fixed size.
Further, the dynamically fusing the watermark block and the pixel value of the screen display content based on the display color of the screen comprises:
converting a color space of the screen content into an HSL color space;
and dynamically fusing the watermark block and the pixel value of the screen display content by adopting the S component in the HSL color space.
Further, the circularly embedding the fused watermark block into the content displayed on the screen includes:
calculating similarity values before and after the watermark blocks are fused according to SSIM structural similarity indexes, if the similarity values are larger than a preset threshold value, embedding the current watermark block into content displayed on a screen, and simultaneously taking the current watermark strength value as an initial value for fusing the next watermark block until all the watermark blocks are embedded into the content displayed on the screen, so as to obtain a screen content image after the watermark is fused.
Further, the displaying the content and the watermark on the screen includes:
calculating a mask attached to the screen based on the screen content image fused with the watermark to obtain a mask image;
and displaying the mask image on the screen through a system function to finish the display of the screen content and the watermark.
In a second aspect of the present application, a screen watermark generation apparatus is provided. The device includes:
the encoding module is used for encoding the watermark information to obtain a binary encoding character string, and processing the binary encoding character string based on the time information of the current system to obtain a watermark code;
the grouping module is used for grouping the watermark codes to obtain coding information with fixed code length;
the determining module is used for determining the size of the watermark block based on the display resolution of the screen and the coding information of the fixed code length to obtain the watermark block with the fixed size;
and the display module is used for dynamically fusing the pixel values of the watermark block and the screen display content based on the screen display color, circularly embedding the fused watermark block into the screen display content, and displaying the content and the watermark on the screen.
In a third aspect of the present application, an electronic device is provided. The electronic device includes: a memory having a computer program stored thereon and a processor implementing the method as described above when executing the program.
In a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the method as according to the first aspect of the present application.
According to the method for generating the screen watermark, the watermark information is encoded to obtain the binary code character string, and the binary code character string is processed based on the time information of the current system to obtain the watermark code; grouping the watermark codes to obtain coding information with fixed code length; determining the size of the watermark block based on the display resolution of the screen and the coding information of the fixed code length to obtain the watermark block with the fixed size; based on the screen display color, the watermark block and the pixel value of the screen display content are dynamically fused, the fused watermark block is circularly embedded into the screen display content, and the screen display content and the watermark not only provide better user experience, but also improve the tracing success rate.
It should be understood that the statements described in this summary are not intended to limit the scope of the disclosure, or the various features described in this summary. Other features of the present application will become apparent from the following description.
Drawings
The above and other features, advantages and aspects of various embodiments of the present application will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. In the drawings, like or similar reference characters designate like or similar elements, and wherein:
FIG. 1 illustrates a schematic diagram of an exemplary operating environment in which embodiments of the present disclosure can be implemented;
fig. 2 is a flowchart of a method of generating a screen watermark according to an embodiment of the present application;
fig. 3 is a block diagram of a screen watermark generation apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a terminal device or a server suitable for implementing the embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
In addition, the term "and/or" herein is only one kind of association relationship describing the association object, and means that there may be three kinds of relationships, for example, a and/or B, and may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter associated objects are in an "or" relationship.
FIG. 1 illustrates a schematic diagram of an exemplary operating environment 100 in which embodiments of the present disclosure can be implemented. Included in the operating environment 100 are a device 101, a network 102, and a server 103.
Network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may use terminal device 101 to interact with server 103 over network 102 to receive or send messages and the like. Various communication client applications, such as a model training application, a video recognition application, a web browser application, social platform software, etc., may be installed on the terminal device 101.
The terminal apparatus 101 may be hardware or software. When the terminal device 101 is a hardware, it may be various electronic devices having a display screen, including but not limited to a smart phone, a tablet computer, an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III, motion Picture Experts Group Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion Picture Experts Group Audio Layer 4), a laptop portable computer, a desktop computer, and the like. When the terminal device 101 is software, it can be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
When the terminal device 101 is hardware, a video (image) capturing device may be mounted thereon. The video acquisition device can be various devices capable of realizing the function of acquiring video, such as a camera, a sensor and the like. A user may capture video and/or pictures with a video capture device on the terminal 101.
The server 103 may be a server that provides various services, such as a background server that processes data displayed on the terminal apparatus 101. The background server may analyze and perform other processing on the received data, and may feed back a processing result (e.g., the watermarked image) to the terminal device.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster composed of multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules used to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be understood that the number of devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of devices, networks, and servers, as desired for an implementation. In particular, in the case where the target data does not need to be acquired from a remote location, the above system architecture may not include a network, but only include a device and a server.
Fig. 2 shows a flowchart of a screen watermark generation method according to an embodiment of the present disclosure. The method comprises the following steps:
s210, encoding the watermark information to obtain a binary code character string, and processing the binary code character string based on the time information of the current system to obtain the watermark code.
In some embodiments, the watermark information is obtained by a server as shown in fig. 1; the watermark information includes time, department code and/or traceability ID.
In some embodiments, time, department code and/or traceability ID, etc. may be encoded by encoding watermark information into a binary code string (length 20+ n):
the department code can be formed by 52 ASCII codes from A to Z and a to Z, if the number of departments is large, new ASCII codes can be added according to specific application scenes, the new ASCII codes are usually represented by 8-bit binary, and when tracing is carried out, the corresponding departments can be searched in a database by the decoded ASCII codes;
the source tracing ID can be formed by 0 to 4096 numbers and is usually represented by 12-bit binary;
time, which may be represented by an N-bit binary; for example, the time of sending the watermark information by the server is 12::00::00, namely 12 hours, 0 min and 0 sec, the watermark information is converted into 12 x 60 x 1000 milliseconds, and then the millisecond is converted into a binary number with the length of N;
in summary, the length of the entire binary code string is 20+ N.
In practical application, more 0 or 1 exists in the obtained binary code string, which causes the watermark to become more sparse or secret during subsequent watermark generation, and greatly affects user experience.
In the disclosure, by designing various ways with periodic signals, the experience of a user is improved.
Specifically, two periodic signals are designed as an example:
and setting the currently obtained timestamp as T, if the T is an odd number, adopting a first signal, and if the T is an even number, adopting a second signal, wherein the length of the signal is equal to the length of the encoding character string.
The time represented by the timestamp is the current system time, only the second part (the minutes and the hours are not used) is used in the present disclosure, the value range is 1-60, if the value can be divided by 2, the first signal is adopted, otherwise, the second signal is adopted. Wherein, the efficiency and the accuracy of subsequent treatment can be improved by taking the second as a unit.
Based on the periodic signal, calculating by the following formula to obtain the watermark code:
Figure DEST_PATH_IMAGE001
wherein H represents the processed encoding, i.e. watermark encoding;
i represents an input character string, namely a binary code character string;
b represents a periodic signal;
Figure 278591DEST_PATH_IMAGE002
representing the xor sign.
S220, grouping the watermark codes to obtain coding information with fixed code length.
In some embodiments, the watermark encodings are grouped by:
the length of string code H (watermark code) is denoted by L, i.e., L =20+ n;
obtaining the code length after grouping by a formula P = L/G, wherein G is the number of groups and can be divided by L;
wherein, each group of codes contains self check and error correction information.
It should be noted that, H is generally divided into 2 groups or four groups, and when there are too many groups, too much error correction information is added; when the grouping is not carried out, if the grouping cannot be realized (decoding cannot be carried out), any information cannot be obtained;
furthermore, each group of data is sampled according to the length of a sampling interval, the length of the sampling interval is generally equal to the code length P after grouping, each group of codes is coded by using CRC (cyclic redundancy check) and BCH (broadcast channel) codes, and the coded length is Po; and combining the coded data to obtain final watermark coding information, namely obtaining the coding information with a fixed code length.
In some embodiments, in the decoding stage, the successfully decoded groups may be combined to obtain complete tracing information;
even if complete tracing information cannot be obtained (complete decoding cannot be achieved), the investigation range of information leakage can be reduced according to the decoded partial information.
And S230, determining the size of the watermark block based on the display resolution of the screen and the coding information of the fixed code length to obtain the watermark block with the fixed size.
In some embodiments, based on the content of the current device screen, a corresponding screen display resolution is derived.
Let the width of the screen resolution be denoted by w and the height by h, take the example of laying out three rows and four columns of 12 watermarks on the whole screen:
each watermarkRespectively has a width and a height of
Figure 336677DEST_PATH_IMAGE003
. If it is
Figure 381994DEST_PATH_IMAGE004
And/or
Figure 308361DEST_PATH_IMAGE005
When the number is not an integer, rounding downwards;
further, converting the coded information with the coding length of Po into a two-dimensional watermark with the width of Po _ w and the height of Po _ h;
wherein the content of the first and second substances,
Figure 17341DEST_PATH_IMAGE006
indicating the size of a set of information;
Figure 105383DEST_PATH_IMAGE007
the value of (A) is as small as possible;
further, the width and height of each watermark block are calculated, i.e.,
width:
Figure 903575DEST_PATH_IMAGE008
height:
Figure 243420DEST_PATH_IMAGE009
wherein, if
Figure 177878DEST_PATH_IMAGE010
And/or
Figure 702400DEST_PATH_IMAGE011
And when the number is a non-integer, rounding down.
S240, based on the display color of the screen, dynamically fusing the pixel values of the watermark block and the screen display content, circularly embedding the fused watermark block into the screen display content, and displaying the content and the watermark on the screen.
In some embodiments, the color space of the screen content is converted to an HSL color space. Dynamically fusing the screen content and the watermark block obtained in the step S230 through the S component in the HSL color space; in the HSL color space, the H component represents hue; the S component represents saturation; the L component represents luminance.
Specifically, the screen content RGB color space is converted into an HSL color space, and the watermark block is embedded using the S component. The values of the watermark blocks are converted from 0 and 1 to-1 and 1, i.e.,
Figure 846943DEST_PATH_IMAGE012
further, the screen content is dynamically fused with the pixel values of the watermark block by the following formula:
Figure 849534DEST_PATH_IMAGE013
wherein, the first and the second end of the pipe are connected with each other,
Figure 638498DEST_PATH_IMAGE014
representing the fused pixel values;
Figure 474867DEST_PATH_IMAGE015
pixel values representing pre-fusion screen content;
Figure 982072DEST_PATH_IMAGE016
representing the watermark strength;
Figure 522775DEST_PATH_IMAGE016
the initial value of (a) can be set according to historical data, manual experience and other modes;
Figure 323503DEST_PATH_IMAGE017
pixel values representing watermark blocks;
in order to minimize the fusion waterThe printed contents affect the look and feel of the user, and each watermark block is used in the fusion
Figure 924248DEST_PATH_IMAGE016
The values are the same as
Figure 590853DEST_PATH_IMAGE016
The dynamic adjustment can be carried out, and the adjustment rule is as follows:
based on
Figure 935247DEST_PATH_IMAGE016
The initial value of the first pixel is subjected to pixel fusion, when a watermark block is fused, similarity values before and after fusion are calculated through SSIM structural similarity indexes, and if the SSIM value is larger than a threshold value, the current value is
Figure 89016DEST_PATH_IMAGE016
The value is in accordance with the standard, the current watermark block is embedded into the content displayed on the screen, and the current watermark block is simultaneously embedded into the content displayed on the screen
Figure 126243DEST_PATH_IMAGE016
The initial value of fusing the next watermark block is used until all the watermark blocks are embedded into the content displayed on the screen; if the SSIM value is less than the threshold, then adjust
Figure 342460DEST_PATH_IMAGE016
The values of (c) are re-fused.
Further, the screen content image after the watermark fusion is converted into an RGB color space, which is denoted as SW. The mask SM pasted on the screen is calculated by the following formula:
Figure 490545DEST_PATH_IMAGE018
Figure 669460DEST_PATH_IMAGE019
Figure 877587DEST_PATH_IMAGE020
wherein, A is the transparency, can set up according to the application scene;
SI is an image of the screen content before the fusion watermark;
r, G and B are three channel images of the image respectively.
Further, the mask image is displayed on the screen through a system function, and screen content and watermark display are completed.
According to the embodiment of the disclosure, the following technical effects are achieved:
by the method, the screen content can be protected under the condition that reading of a user is not influenced, and the risk of leakage of confidential information of an enterprise is reduced.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are all alternative embodiments and that the acts and modules referred to are not necessarily required for the application.
The above is a description of method embodiments, and the embodiments of the present application are further described below by way of apparatus embodiments.
Fig. 3 shows a block diagram of a screen watermark generation apparatus 300 according to an embodiment of the present application as shown in fig. 3, the apparatus 300 includes:
the encoding module 310 is configured to encode the watermark information to obtain a binary code string, and process the binary code string based on the time information of the current system to obtain a watermark code;
a grouping module 320, configured to group the watermark codes to obtain coding information with a fixed code length;
a determining module 330, configured to determine the size of the watermark block based on the display resolution of the screen and the coding information of the fixed code length, to obtain a watermark block of a fixed size;
and the display module 340 is configured to dynamically fuse the watermark block with a pixel value of a screen display content based on a display color of the screen, circularly embed the fused watermark block into the screen display content, and display the content and the watermark on the screen.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the described module may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Fig. 4 shows a schematic structural diagram of a terminal device or a server suitable for implementing the embodiments of the present application.
As shown in fig. 4, the terminal device or the server includes a Central Processing Unit (CPU) 401 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage section 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the terminal device or the server are also stored. The CPU 401, ROM 402, and RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
The following components are connected to the I/O interface 405: an input section 406 including a keyboard, a mouse, and the like; an output section 407 including a display device such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 408 including a hard disk and the like; and a communication section 409 including a network interface card such as a LAN card, a modem, or the like. The communication section 409 performs communication processing via a network such as the internet. A driver 410 is also connected to the I/O interface 405 as needed. A removable medium 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 410 as necessary, so that a computer program read out therefrom is mounted into the storage section 408 as necessary.
In particular, the above method flow steps may be implemented as a computer software program according to embodiments of the present application. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 409, and/or installed from the removable medium 411. The above-described functions defined in the system of the present application are executed when the computer program is executed by a Central Processing Unit (CPU) 401.
It should be noted that the computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor. Wherein the designation of such a unit or module does not in some way constitute a limitation on the unit or module itself.
As another aspect, the present application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments; or may be separate and not incorporated into the electronic device. The computer readable storage medium stores one or more programs that, when executed by one or more processors, perform the methods described herein.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the application referred to in the present application is not limited to the embodiments in which the above-mentioned features are combined in particular, and also encompasses other embodiments in which the above-mentioned features or their equivalents are combined arbitrarily without departing from the concept of the application. For example, the above features may be replaced with (but not limited to) features having similar functions as those described in this application.

Claims (10)

1. A method for generating a screen watermark, comprising:
encoding the watermark information to obtain a binary code character string, and processing the binary code character string based on the time information of the current system to obtain a watermark code;
grouping the watermark codes to obtain coding information with fixed code length;
determining the size of the watermark block based on the display resolution of the screen and the coding information of the fixed code length to obtain the watermark block with the fixed size;
and dynamically fusing the watermark block and the pixel value of the screen display content based on the display color of the screen, circularly embedding the fused watermark block into the screen display content, and displaying the content and the watermark on the screen.
2. The method of claim 1, wherein the processing the binary-coded string based on the time information of the current system to obtain the watermark code comprises:
designing a plurality of signals with periodicity based on time information of a current system;
and processing the binary code character string through the plurality of signals with periodicity to obtain the watermark code.
3. The method of claim 2, wherein the grouping the watermark encoding to obtain the encoding information with a fixed code length comprises:
dividing the watermark codes into a plurality of groups of codes based on the length of the watermark codes;
and each group of codes respectively adopts CRC check and BCH codes to carry out recoding, and coding information with fixed code length is obtained.
4. The method of claim 2, wherein determining the size of the watermark block based on the screen resolution and the fixed code length encoding information, resulting in a fixed size watermark block comprises:
calculating the number of watermark blocks of the screen based on the height and width of the display resolution of the screen;
and determining the size of the watermark block based on the number of the watermark blocks and the coding information of the fixed code length to obtain the watermark block with the fixed size.
5. The method of claim 4, wherein dynamically fusing the watermark blocks with pixel values of screen display content based on the display color of the screen comprises:
converting a color space of the screen content into an HSL color space;
and dynamically fusing the watermark block and the pixel value of the screen display content by adopting the S component in the HSL color space.
6. The method of claim 5, wherein the embedding the fused watermark block into the content of the screen display in a loop comprises:
and calculating similarity values before and after the watermark blocks are fused through an SSIM (structural similarity) index, if the similarity values are larger than a preset threshold value, embedding the current watermark block into the content displayed on the screen, and simultaneously taking the current watermark strength value as an initial value of the next watermark block to be fused until all the watermark blocks are embedded into the content displayed on the screen to obtain the screen content image fused with the watermark.
7. The method of claim 6, wherein the displaying the content and the watermark on the screen comprises:
calculating a mask attached to the screen based on the screen content image fused with the watermark to obtain a mask image;
and displaying the mask image on the screen through a system function to finish the display of the screen content and the watermark.
8. An apparatus for generating a screen watermark, comprising:
the encoding module is used for encoding the watermark information to obtain a binary encoding character string, and processing the binary encoding character string based on the time information of the current system to obtain the watermark code;
the grouping module is used for grouping the watermark codes to obtain coding information with fixed code length;
the determining module is used for determining the size of the watermark block based on the display resolution of the screen and the coding information of the fixed code length to obtain the watermark block with the fixed size;
and the display module is used for dynamically fusing the watermark block and the pixel value of the screen display content based on the display color of the screen, circularly embedding the fused watermark block into the screen display content, and displaying the content and the watermark on the screen.
9. An electronic device comprising a memory and a processor, the memory having a computer program stored thereon, wherein the processor when executing the computer program implements the method according to any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202211284185.4A 2022-10-20 2022-10-20 Screen watermark generation method, device, equipment and computer readable storage medium Active CN115358911B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211284185.4A CN115358911B (en) 2022-10-20 2022-10-20 Screen watermark generation method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211284185.4A CN115358911B (en) 2022-10-20 2022-10-20 Screen watermark generation method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN115358911A true CN115358911A (en) 2022-11-18
CN115358911B CN115358911B (en) 2023-01-31

Family

ID=84008349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211284185.4A Active CN115358911B (en) 2022-10-20 2022-10-20 Screen watermark generation method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115358911B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116703688A (en) * 2023-08-09 2023-09-05 江苏中威科技软件系统有限公司 Algorithm technology capable of guaranteeing watermark display effect of terminal
CN116957893A (en) * 2023-06-26 2023-10-27 海易科技(北京)有限公司 Watermark generation method, watermark generation device, electronic device and computer readable medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10303755A (en) * 1997-04-25 1998-11-13 Nippon Telegr & Teleph Corp <Ntt> Electronic watermark generating method using quantized encoding parameter and method for the watermark
JP2006086906A (en) * 2004-09-17 2006-03-30 Dainippon Printing Co Ltd Method for embedding and extracting electronic watermark
CN103258314A (en) * 2005-09-16 2013-08-21 北京书生国际信息技术有限公司 Method for embedding and detecting cryptical code
CN103413267A (en) * 2013-07-17 2013-11-27 北京视博数字电视科技有限公司 Digital watermark smooth transition embedded method and device
CN105095699A (en) * 2014-05-20 2015-11-25 富士通株式会社 Watermark information embedding method and device, and watermark information decoding method
CN108521613A (en) * 2018-05-15 2018-09-11 中南民族大学 A kind of compressed domain video watermark insertion and extracting method based on moving target
CN109657769A (en) * 2018-12-29 2019-04-19 安徽大学 A kind of two-dimensional barcode information hidden method run-length coding based
CN109919823A (en) * 2019-02-13 2019-06-21 阿里巴巴集团控股有限公司 A kind of watermark generation method and device
CN110503591A (en) * 2018-05-16 2019-11-26 武汉智云星达信息技术有限公司 The method that effective intelligent image zooming-out and certification based on feature contour two dimension code watermark compare
CN111107370A (en) * 2019-12-31 2020-05-05 银河互联网电视有限公司 Video watermark embedding processing method and device, electronic equipment and storage medium
CN112579993A (en) * 2020-12-22 2021-03-30 浙江财经大学 Watermark shading-based source tracing and evidence obtaining system and method for resisting screen shooting attack
CN114049247A (en) * 2021-11-15 2022-02-15 闪捷信息科技有限公司 Watermark hiding method and device, electronic equipment and readable storage medium
CN114782237A (en) * 2022-04-11 2022-07-22 平安科技(深圳)有限公司 Watermark generation method, device and equipment based on pattern coding and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10303755A (en) * 1997-04-25 1998-11-13 Nippon Telegr & Teleph Corp <Ntt> Electronic watermark generating method using quantized encoding parameter and method for the watermark
JP2006086906A (en) * 2004-09-17 2006-03-30 Dainippon Printing Co Ltd Method for embedding and extracting electronic watermark
CN103258314A (en) * 2005-09-16 2013-08-21 北京书生国际信息技术有限公司 Method for embedding and detecting cryptical code
CN103413267A (en) * 2013-07-17 2013-11-27 北京视博数字电视科技有限公司 Digital watermark smooth transition embedded method and device
CN105095699A (en) * 2014-05-20 2015-11-25 富士通株式会社 Watermark information embedding method and device, and watermark information decoding method
CN108521613A (en) * 2018-05-15 2018-09-11 中南民族大学 A kind of compressed domain video watermark insertion and extracting method based on moving target
CN110503591A (en) * 2018-05-16 2019-11-26 武汉智云星达信息技术有限公司 The method that effective intelligent image zooming-out and certification based on feature contour two dimension code watermark compare
CN109657769A (en) * 2018-12-29 2019-04-19 安徽大学 A kind of two-dimensional barcode information hidden method run-length coding based
CN109919823A (en) * 2019-02-13 2019-06-21 阿里巴巴集团控股有限公司 A kind of watermark generation method and device
CN111107370A (en) * 2019-12-31 2020-05-05 银河互联网电视有限公司 Video watermark embedding processing method and device, electronic equipment and storage medium
CN112579993A (en) * 2020-12-22 2021-03-30 浙江财经大学 Watermark shading-based source tracing and evidence obtaining system and method for resisting screen shooting attack
CN114049247A (en) * 2021-11-15 2022-02-15 闪捷信息科技有限公司 Watermark hiding method and device, electronic equipment and readable storage medium
CN114782237A (en) * 2022-04-11 2022-07-22 平安科技(深圳)有限公司 Watermark generation method, device and equipment based on pattern coding and storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
吕冬梅等: "基于密文域扩展和DNA双向编码的可逆水印算法", 《微电子学与计算机》 *
周蓓蓓等: "一种基于word文档的数字水印方法", 《南昌航空工业学院学报(自然科学版)》 *
牛月蕊等: "基于RGB的文本数字水印算法", 《数据通信》 *
秦娜等: "一种在图像中嵌入有意义文本信息的新型鲁棒水印算法", 《中国图象图形学报》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN116703688A (en) * 2023-08-09 2023-09-05 江苏中威科技软件系统有限公司 Algorithm technology capable of guaranteeing watermark display effect of terminal
CN116703688B (en) * 2023-08-09 2023-11-17 江苏中威科技软件系统有限公司 Method capable of guaranteeing watermark display effect of terminal

Also Published As

Publication number Publication date
CN115358911B (en) 2023-01-31

Similar Documents

Publication Publication Date Title
CN115358911B (en) Screen watermark generation method, device, equipment and computer readable storage medium
US20190164250A1 (en) Method and apparatus for adding digital watermark to video
CN109889843B (en) Techniques for encoding, decoding, and representing high dynamic range images
US20230008085A1 (en) Method for embedding watermark in video data and apparatus, method for extracting watermark in video data and apparatus, device, and storage medium
CN113642673B (en) Image generation method, device, equipment and storage medium
CN109948762A (en) Method and apparatus for generating two dimensional code
CN113469869B (en) Image management method and device
CN114581336A (en) Image restoration method, device, equipment, medium and product
CN111859210A (en) Image processing method, device, equipment and storage medium
CN110751251B (en) Method and device for generating and transforming two-dimensional code image matrix
CN111836054B (en) Video anti-piracy method, electronic device and computer readable storage medium
CN112261417B (en) Video pushing method and system, equipment and readable storage medium
CN114339447B (en) Method, device and equipment for converting picture into video and storage medium
CN111432142B (en) Video synthesis method, device, equipment and storage medium
CN110705536A (en) Chinese character recognition error correction method and device, computer readable medium and electronic equipment
CN116156072A (en) Steganographic image generation method, steganographic information extraction method and related devices
CN111383289A (en) Image processing method, image processing device, terminal equipment and computer readable storage medium
CN115757933A (en) Recommendation information generation method, device, equipment, medium and program product
CN114626968A (en) Watermark embedding method, watermark extracting method and device
CN109729233B (en) Information hiding method and device based on image, storage medium and electronic equipment
CN110807784A (en) Method and device for segmenting an object
CN113674387B (en) Video processing method and device for unnatural scene video
CN111738899B (en) Method, apparatus, device and computer readable medium for generating watermark
CN112073731B (en) Image decoding method, image decoding device, computer-readable storage medium and electronic equipment
CN117857762B (en) Image processing method and device of display module, chip and storage medium

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