CN114049247A - Watermark hiding method and device, electronic equipment and readable storage medium - Google Patents

Watermark hiding method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN114049247A
CN114049247A CN202111346226.3A CN202111346226A CN114049247A CN 114049247 A CN114049247 A CN 114049247A CN 202111346226 A CN202111346226 A CN 202111346226A CN 114049247 A CN114049247 A CN 114049247A
Authority
CN
China
Prior art keywords
watermark
layer
display
target
target image
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
CN202111346226.3A
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.)
Flash It Co ltd
Original Assignee
Flash It 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 Flash It Co ltd filed Critical Flash It Co ltd
Priority to CN202111346226.3A priority Critical patent/CN114049247A/en
Publication of CN114049247A publication Critical patent/CN114049247A/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

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 provides a watermark hiding method, a watermark hiding device, electronic equipment and a readable storage medium, wherein a display area of a watermark is determined according to the number of displays and the attributes of the displays of a target terminal; drawing a watermark image layer in the display area to generate a target image; wherein, the watermark layer is hidden and displayed in the target image; the target image is imaged on a display. By adopting the technical scheme provided by the application, the watermark layer can be generated and fused on the original image in real time, the image with the hidden watermark is generated, the real-time performance is high, the step of hiding the watermark is simplified, and the efficiency of generating the watermark is improved while the watermark is ensured not to be tampered.

Description

Watermark hiding method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of information identification technologies, and in particular, to a watermark hiding method and apparatus, an electronic device, and a readable storage medium.
Background
With the improvement of the informatization office degree of enterprises, more and more enterprise business processing adopts electronic office, so that the risk of leakage of sensitive information in the enterprises is increasingly prominent through screen capture or photographing and the like. Therefore, the leakage risk is reduced by adding the watermark to the screen sensitive information, the existing font library watermarks exist, the font library characters contain specific hidden information, and the information hiding is completed by replacing the characters in the screen image into the font library characters of the user.
Although the watermark mode is not easy to be perceived by a divulgent, a font library needs to be designed for each font in a computer system, the workload is large, the efficiency is low, and once the characters are artificially stained, the characters cannot be normally extracted. Therefore, how to design a watermark hiding method with high real-time performance and high accuracy becomes an urgent problem to be solved.
Disclosure of Invention
In view of this, an object of the present application is to provide a method and an apparatus for hiding a watermark, an electronic device, and a readable storage medium, which are capable of generating a watermark layer, hiding and displaying the watermark layer on an original image in real time, generating an image with a hidden watermark, and having high real-time performance, simplifying the step of hiding the watermark, and improving the efficiency of generating the watermark while ensuring that the watermark is not tampered.
The application mainly comprises the following aspects:
in a first aspect, an embodiment of the present application provides a watermark hiding method, where the method includes:
determining a display area of the watermark according to the number of displays of the target terminal and the display attribute;
drawing a watermark image layer in the display area to generate a target image; wherein the watermark layer is hidden and displayed in the target image;
imaging the target image on the display.
Further, the watermark layer is generated by the following steps:
determining the watermark of the target terminal according to the identification information of the target terminal and the mapping relation between the preset identification information and the watermark;
converting the watermark into a target character string in a preset form, and encoding the target character string;
converting the coded target character string to obtain an atom layer corresponding to the target character string;
and generating the watermark layer according to the atomic layer.
Further, before drawing a watermark layer in the display area and generating a target image, the hiding method further includes:
acquiring watermark display requirement information of the display;
determining the target image according to the requirement type of the watermark display requirement information;
wherein the demand types include: and superposing the watermark layer, removing the watermark layer and updating the watermark layer.
Further, the requirement type is a watermark layer removal type, and the step of determining the target image includes:
canceling a display area of the watermark;
and determining an original image of the display as the target image.
Further, the requirement type is updating a watermark layer, and the step of determining the target image includes:
determining an updated display area based on the updated number and/or the updated attribute of the display;
and drawing the watermark image layer to the updated display area to generate the target image.
Further, the requirement type is updating a watermark layer, and the step of determining the target image further includes:
acquiring updated identification information of the target terminal;
determining the updated watermark of the target terminal according to the updated identification information of the target terminal and the mapping relation between the preset identification information and the watermark;
determining an updated watermark layer according to the updated watermark mark;
and drawing the updated watermark layer in the display area to generate a target image.
In a second aspect, an embodiment of the present application further provides a device for hiding a watermark, where the device includes:
the judging module is used for determining the display area of the watermark according to the number of the displays of the target terminal and the display attribute;
the drawing module is used for drawing the watermark image layer in the display area to generate a target image; wherein the watermark layer is hidden and displayed in the target image;
a display module for imaging the target image on the display.
Further, the hiding device further includes a generating module, and when the generating module is configured to generate the watermark layer, the generating module is specifically configured to:
determining the watermark of the target terminal according to the identification information of the target terminal and the mapping relation between the preset identification information and the watermark;
converting the watermark into a target character string in a preset form, and encoding the target character string;
converting the coded target character string to obtain an atom layer corresponding to the target character string;
and generating the watermark layer according to the atomic layer.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a memory and a bus, the memory storing machine readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine readable instructions when executed by the processor performing the steps of the method of hiding a watermark as described above.
In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the method for hiding a watermark.
According to the method, the device, the electronic equipment and the readable storage medium for hiding the watermark, the display area of the watermark is determined according to the number of displays and the attributes of the displays of the target terminal; drawing a watermark image layer in the display area to generate a target image; wherein the watermark layer is hidden and displayed in the target image; imaging the target image on the display.
Therefore, by adopting the technical scheme provided by the application, the watermark layer can be generated and hidden and displayed on the original image in real time, the image with the hidden watermark is generated, the real-time performance is high, the step of hiding the watermark is simplified, and the efficiency of generating the watermark is improved while the watermark is ensured not to be tampered.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 shows a flowchart of a method for hiding a watermark provided by an embodiment of the present application;
fig. 2 shows a flowchart of another watermark hiding method provided by an embodiment of the present application;
FIG. 3 illustrates a flow chart for determining a target image provided by an embodiment of the present application;
fig. 4 shows one of the schematic structural diagrams of a watermark hiding apparatus provided in the embodiment of the present application;
fig. 5 is a second schematic structural diagram of a watermark hiding apparatus provided in the embodiment of the present application;
fig. 6 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
To make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and that steps without logical context may be performed in reverse order or concurrently. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
To enable those skilled in the art to use the present disclosure, the following embodiments are given in conjunction with the specific application scenario "hidden watermark information for screen", and it will be apparent to those skilled in the art that the general principles defined herein may be applied to other embodiments and application scenarios without departing from the spirit and scope of the present disclosure.
The method, the apparatus, the electronic device, or the computer-readable storage medium described in the embodiments of the present application may be applied to any scenario in which watermark information of a screen needs to be hidden, and the embodiments of the present application do not limit a specific application scenario.
It is worth noting that with the improvement of the informatization office degree of enterprises, more and more enterprise business processing adopts electronic office, so that the risk of leakage of sensitive information in the enterprises through screen capturing or photographing and the like is increasingly prominent. The traditional data protection system has good protection effect on exact data, but effective protection on non-exact data information leakage with an image as a carrier is difficult to carry out. Once the core secrets of the enterprise are leaked out through screen capturing or photographing and other modes, huge losses are caused to the enterprise, and the consequences are not imaginable.
In the prior art, the leakage risk is reduced by adding watermarks to screen sensitive information, for example, font library watermarks exist, and the font library characters contain specific hidden information.
Although the watermark mode is not easy to be perceived by a divulged person, a font library needs to be designed for each font in a computer system, the workload is large, the efficiency is low, if the watermark cannot be hidden in a non-character scene, the application scene is limited, and once a character is artificially stained, the character cannot be normally extracted. Therefore, how to design a watermark hiding method with wide application scenes, high real-time performance and high accuracy becomes an urgent problem to be solved.
Based on the above, the application provides a watermark hiding method, device, electronic device and readable storage medium, and the display area of the watermark is determined according to the number of displays and the display attribute of the target terminal; drawing a watermark image layer in the display area to generate a target image; wherein the watermark layer is hidden and displayed in the target image; imaging the target image on the display. By adopting the technical scheme provided by the application, the watermark layer can be generated and hidden and displayed on the original image in real time, the image with the hidden watermark is generated, the real-time performance is high, the step of hiding the watermark is simplified, and the efficiency of generating the watermark is improved while the watermark is ensured not to be tampered.
For the convenience of understanding of the present application, the technical solutions provided in the present application will be described in detail below with reference to specific embodiments.
Referring to fig. 1, fig. 1 is a flowchart illustrating a watermark hiding method according to an embodiment of the present disclosure. As shown in fig. 1, the hiding method includes:
s101, determining a display area of the watermark according to the number of displays of a target terminal and the attributes of the displays;
in the step, the display attributes comprise the physical size, the logical size, the scaling ratio, the display handle information and the like of the display, and the display area of the watermark is determined according to the number of the displays of the target terminal and the display attributes; illustratively, the number of the current terminal displays and the attribute of each display are obtained, and a corresponding full-screen transparent top window is created for each display according to the attribute information of each display, wherein the full-screen transparent top window is a display area of the watermark.
S102, drawing a watermark image layer in the display area to generate a target image; wherein the watermark layer is hidden and displayed in the target image;
it should be noted that the step of generating the watermark layer includes:
(1) determining the watermark of the target terminal according to the identification information of the target terminal and the mapping relation between the preset identification information and the watermark;
in the step, the identification information includes an MAC address, IPV4, a user name, and the like, each identification information has a watermark corresponding to the identification information one to one, the watermark is a unique hexadecimal character string, and according to a one-to-one mapping relationship between the identification information and the watermark, the watermark corresponding to the target terminal can be determined by the acquired identification information of the target terminal; illustratively, the identification information of the target terminal can be acquired through a generation system of a single watermark layer or a three-party monitoring system integrating the watermark layer, the MAC address in the identification information of the computer can be used as a unique watermark, a mapping table is designed, and the MAC address is mapped into the watermark; for example, the identification information is: "MAC: 00-C1-40-82-0A-1A; IPV 4: 168.10.10.155, respectively; the USER: tong ", maps the identification information string to a unique hexadecimal string in the database, such as" 1ABF7 ".
(2) Converting the watermark into a target character string in a preset form, and encoding the target character string;
converting the watermark acquired in the step (1) into a target character string in a preset form, and verifying and error-correcting the target character string; exemplarily, the watermark of the hexadecimal string "1 ABF 7" is converted into a binary bit string, which is denoted as bin _ id _ 1; performing CRC coding on the binary bit string bin _ id _1, and marking the binary bit string bin _ id _1 as bin _ id _2, wherein the coding is used for verifying whether the data is correct or not subsequently; the binary bit string bin _ id _2 is BCH encoded, denoted bin _ id _3, for subsequent data error correction, and errors within the design are automatically located and corrected.
(3) Converting the coded target character string to obtain an atom layer corresponding to the target character string;
in the step, the atomic layer refers to a minimum layer block with a complete watermark information, and the encoded target character string is converted according to a preset arrangement rule to obtain a corresponding atomic layer; illustratively, the most basic initial layer blocks representing 0 and 1 may be specified artificially, and then the binary bit string bin _ id _3 may be converted into a layer block-stitched atomic layer storing a complete piece of bin _ id _3 information.
(4) And generating the watermark layer according to the atomic layer.
In the step, the atomic layer obtained in the step (3) is spliced into a large watermark layer by a multi-copy principle, and the watermark layer is stored, wherein the watermark layer stores a plurality of complete bin _ id _3 information and is also a picture superposed with an original image on a subsequent display; illustratively, each atom layer displays one bin _ id _3 information, the atom layer is copied, and the copied atom layers are spliced to form a watermark layer with a plurality of bin _ id _3 information.
In step S102, generating a target image by drawing the watermark image layer generated in the above step (4) on the display area of the watermark created in step S101, and displaying the watermark image layer on the original image of the display in a hidden manner; illustratively, the watermark map layer is adaptively mapped to the display area of each watermark according to the display area size of each watermark.
Here, please refer to fig. 2 for steps before drawing a watermark layer in a display area and generating a target image, fig. 2 is a flowchart of another watermark hiding method provided in an embodiment of the present application, and as shown in fig. 2, the method further includes:
s201, acquiring watermark display requirement information of the display;
in the step, the watermark display requirement information of the terminal display is obtained by monitoring the response message of the operating system in real time.
S202, determining the target image according to the requirement type of the watermark display requirement information;
in this step, the demand types include: superposing the watermark layer, removing the watermark layer, updating the watermark layer, and determining a target image of the terminal display according to the type of the requirement; illustratively, if the watermark display requirement information of the display is that the watermark does not need to be displayed, the requirement type is the watermark removal layer, if the watermark display requirement information of the display needs to display the watermark, the requirement type is the watermark superposition layer, and if the watermark display requirement information of the display is the watermark mark change and/or the watermark display area change, the requirement type is the watermark updating layer.
Here, the specific step of determining the target image according to the requirement type of the watermark display requirement information includes the following cases:
1. when the requirement type is the superposition watermark layer, the step of determining the target image comprises the following steps:
in the step, when the requirement type is the superposition of the watermark layer, the watermark layer is drawn in real time in the display area, and the watermark layer is superposed on the original image of the display to generate the target image.
2. When the requirement type is removing the watermark layer, determining a target image, comprising the following steps:
2.1, canceling the display area of the watermark;
in the step, when the received requirement type is the watermark layer removal, the display area of the watermark is cancelled; illustratively, when the received requirement type is to remove the watermark layer, the transparent window corresponding to the terminal display is deleted, that is, the display area of the watermark is deleted, and the layers arranged on the window are also deleted.
2.2, determining the original image of the display as the target image.
In this step, after the display area of the watermark is canceled in step 2.1, the target image of the terminal display is the original image, that is, the original image of the watermark layer is not superimposed, and the target image of the terminal display at this time has no watermark information.
3. When the requirement type is updating the watermark layer, the step of determining the target image comprises the following steps:
3.1, determining an updated display area based on the updated number and/or the updated attribute of the display;
in the step, if the received requirement type is an update watermark layer, acquiring the number and/or attribute change message of the displays, updating the number and/or attribute information of the terminal displays again, re-determining the display area of the watermark as an update display area, and replacing the display area of the watermark determined in the step S101 with the update display area, wherein the attributes of the displays include physical size, logical size, scaling ratio, display handle information and the like; for example, the watermark display area of the display with variation is updated in real time according to the number of the displays increasing and decreasing, the arrangement of the plurality of displays, the variation information of the number and/or the attributes of the displays such as the scaling and the layout adjustment of each display.
And 3.2, drawing the watermark image layer to the updated display area to generate the target image.
In the step, the watermark image layer generated in the step (4) is drawn into the updated display area in the step 3.1, and a target image is generated, wherein the target image is an original image of the display with the watermark image layer superimposed thereon. Illustratively, the watermark layer has a transparent channel, and when the display superimposes the original image and the watermark layer, the two layers are fused into a final target image according to a channel fusion principle, where the target image includes hidden watermark information "MAC: 00-C1-40-82-0A-1A; IPV 4: 168.10.10.155, respectively; the USER: tong ".
4. When the requirement type is updating the watermark layer, the step of determining the target image further comprises the following steps:
4.1, acquiring the updated identification information of the target terminal;
in this step, if the received requirement type is to update the watermark layer, acquiring identification information of the updated target terminal, where the identification information includes an MAC address, IPV4, a user name, and the like, and if the identification information is changed, triggering a response that the requirement type is to update the watermark layer, and receiving the identification information updated by the target terminal; illustratively, when the system is turned on or off, and the hot plug is performed, the updated identification information of the target terminal is obtained, and the watermark layer is redrawn.
4.2, determining the updated watermark of the target terminal according to the updated identification information of the target terminal and the mapping relation between the preset identification information and the watermark;
in this step, according to the mapping relationship between the preset identification information and the watermark stored in the database, the updated watermark corresponding to the target terminal is determined through the updated identification information of the target terminal acquired in step 4.1.
4.3, determining an updated watermark layer according to the updated watermark;
in the step, the updated watermark mark determined in the step 4.2 is converted and encoded, an updated watermark layer is determined, and the watermark layer generated in the step (4) is replaced by the updated watermark layer; illustratively, after converting the updated watermark into a binary character string and performing CRC coding and BCH coding, converting the binary character string into an atomic layer, and splicing the copied atomic layers to form an updated watermark layer.
And 4.4, drawing the updated watermark image layer in the display area to generate a target image.
In this step, an updated watermark layer is drawn in the display area of the watermark determined in step S101, and a target image is generated, where the target image is an original image of the display superimposed with the updated watermark layer.
Referring to fig. 3, fig. 3 is a flowchart of determining a target image according to an embodiment of the present application, and as shown in fig. 3, the hiding method is a step for determining the content of the target image after determining the watermark layer, which is as follows:
step S301 obtains the number of displays and display attributes of the target terminal, where the display attributes include physical size, logical size, zoom ratio, display handle information, and the like of the display. Step S302 is entered to establish a watermark display area for each display, and a corresponding full-screen transparent top window is established for each display according to the attribute information of each display, wherein the full-screen transparent top window is the watermark display area. And step S307 is entered, the watermark image layer is drawn to the display area of the watermark, and the watermark image layer is directly drawn in the display area. And S308, displaying a target image on each display, wherein the target image is an original image of the display with the watermark layer superposed. Step S303 is entered to monitor the response information, and the demand type of the watermark display demand information of the display is obtained by monitoring the response information of the display in real time, wherein the demand type comprises: and superposing the watermark layer, removing the watermark layer and updating the watermark layer. Step S304 is entered to judge the type of the response requirement, if the requirement type is the watermark layer overlaying, step S307 is entered, if the requirement type is the watermark layer removing, step S309 is entered to cancel the display area of the watermark, the target image of the display is the original image, namely the original image without the watermark layer overlaying, and the target image of the terminal display does not have the watermark information. If the requirement type is updating the watermark layer, the method proceeds to step S305, after updating the number and/or attribute information of the displays, the method proceeds to step S306, the display area of the watermark is updated, the step S307 is performed, the watermark layer is drawn to the display area of the watermark, the display area of the watermark is the display area of the updated watermark, and step S308, each display displays a target image, and the target image is an original image of the display superimposed by the watermark layer. The step S303 continues to listen for the corresponding information.
According to the method, the device, the electronic equipment and the readable storage medium for hiding the watermark, the display area of the watermark is determined according to the number of displays and the attributes of the displays of the target terminal; drawing a watermark image layer in the display area to generate a target image; wherein the watermark layer is hidden and displayed in the target image; imaging the target image on the display.
Therefore, by adopting the technical scheme provided by the application, the watermark layer can be generated and hidden and displayed on the original image in real time, the image with the hidden watermark is generated, the real-time performance is high, the step of hiding the watermark is simplified, and the efficiency of generating the watermark is improved while the watermark is ensured not to be tampered.
Based on the same application concept, the embodiment of the present application further provides a watermark hiding apparatus corresponding to the method for hiding a watermark provided by the above embodiment, and since the principle of the apparatus in the embodiment of the present application for solving the problem is similar to that of the method for hiding a watermark provided by the above embodiment of the present application, the implementation of the apparatus may refer to the implementation of the method, and repeated details are not described herein.
Referring to fig. 4 and 5, fig. 4 is a schematic structural diagram of a watermark hiding apparatus according to an embodiment of the present application, and fig. 5 is a second schematic structural diagram of a watermark hiding apparatus according to an embodiment of the present application, as shown in fig. 4 and 5, the hiding apparatus 410 includes:
the judging module 411 is configured to determine a display area of the watermark according to the number of displays of the target terminal and the display attribute;
a drawing module 412, configured to draw a watermark layer in the display area to generate a target image; wherein the watermark layer is hidden and displayed in the target image;
a display module 413 for imaging the target image on the display.
Optionally, the hiding device 410 further includes a generating module 414, and when the generating module 414 is configured to generate the watermark layer, the generating module 414 is specifically configured to:
determining the watermark of the target terminal according to the identification information of the target terminal and the mapping relation between the preset identification information and the watermark;
converting the watermark into a target character string in a preset form, and encoding the target character string;
converting the coded target character string to obtain an atom layer corresponding to the target character string;
and generating the watermark layer according to the atomic layer.
Optionally, the hiding device 410 further includes a processing module 415, and the processing module 415 is specifically configured to:
acquiring watermark display requirement information of the display;
determining the target image according to the requirement type of the watermark display requirement information;
wherein the demand types include: and superposing the watermark layer, removing the watermark layer and updating the watermark layer.
Optionally, the requirement type is a watermark layer removal type, and when the processing module 415 is configured to determine the target image, the processing module 415 is specifically configured to:
canceling a display area of the watermark;
and determining an original image of the display as the target image.
Optionally, the requirement type is to update a watermark layer, and when the processing module 415 is configured to determine the target image, the processing module 415 is specifically configured to:
determining an updated display area based on the updated number and/or the updated attribute of the display;
and drawing the watermark image layer to the updated display area to generate the target image.
Optionally, the requirement type is to update a watermark layer, and when the processing module 415 is configured to determine the target image, the processing module 415 is further configured to:
acquiring updated identification information of the target terminal;
determining the updated watermark of the target terminal according to the updated identification information of the target terminal and the mapping relation between the preset identification information and the watermark;
determining an updated watermark layer according to the updated watermark mark;
and drawing the updated watermark layer in the display area to generate a target image.
The device for hiding the watermark, provided by the embodiment of the application, comprises a judging module, a display module and a display module, wherein the judging module is used for determining the display area of the watermark according to the number of displays of a target terminal and the attributes of the displays; the drawing module is used for drawing the watermark image layer in the display area to generate a target image; wherein the watermark layer is hidden and displayed in the target image; a display module for imaging the target image on the display.
Therefore, by adopting the technical scheme provided by the application, the watermark layer can be generated and hidden and displayed on the original image in real time, the image with the hidden watermark is generated, the real-time performance is high, the step of hiding the watermark is simplified, and the efficiency of generating the watermark is improved while the watermark is ensured not to be tampered.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 6, the electronic device 600 includes a processor 610, a memory 620, and a bus 630.
The memory 620 stores machine-readable instructions executable by the processor 610, when the electronic device 600 runs, the processor 610 communicates with the memory 620 through the bus 630, and when the machine-readable instructions are executed by the processor 610, the steps of the watermark hiding method in the method embodiments shown in fig. 1 and fig. 2 may be performed.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the step of the watermark hiding method in the method embodiments shown in fig. 1 and fig. 2 may be executed.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for hiding a watermark, the method comprising:
determining a display area of the watermark according to the number of displays of the target terminal and the display attribute;
drawing a watermark image layer in the display area to generate a target image; wherein the watermark layer is hidden and displayed in the target image;
imaging the target image on the display.
2. Concealment method according to claim 1, characterized in that the watermark layer is generated by the steps comprising:
determining the watermark of the target terminal according to the identification information of the target terminal and the mapping relation between the preset identification information and the watermark;
converting the watermark into a target character string in a preset form, and encoding the target character string;
converting the coded target character string to obtain an atom layer corresponding to the target character string;
and generating the watermark layer according to the atomic layer.
3. The concealment method according to claim 1, wherein before the watermark layer is drawn in the display area to generate the target image, the concealment method further comprises:
acquiring watermark display requirement information of the display;
determining the target image according to the requirement type of the watermark display requirement information;
wherein the demand types include: and superposing the watermark layer, removing the watermark layer and updating the watermark layer.
4. The concealment method according to claim 3, wherein the type of the requirement is a watermark layer removal, and the step of determining the target image comprises:
canceling a display area of the watermark;
and determining an original image of the display as the target image.
5. The concealment method according to claim 3, wherein the requirement type is updating a watermark layer, and the step of determining the target image comprises:
determining an updated display area based on the updated number and/or the updated attribute of the display;
and drawing the watermark image layer to the updated display area to generate the target image.
6. The concealment method according to claim 3, wherein the requirement type is updating a watermark layer, and the step of determining the target image further comprises:
acquiring updated identification information of the target terminal;
determining the updated watermark of the target terminal according to the updated identification information of the target terminal and the mapping relation between the preset identification information and the watermark;
determining an updated watermark layer according to the updated watermark mark;
and drawing the updated watermark layer in the display area to generate a target image.
7. A watermark hiding apparatus, characterized in that the hiding apparatus comprises:
the judging module is used for determining the display area of the watermark according to the number of the displays of the target terminal and the display attribute;
the drawing module is used for drawing the watermark image layer in the display area to generate a target image; wherein the watermark layer is hidden and displayed in the target image;
a display module for imaging the target image on the display.
8. The concealment apparatus according to claim 7, wherein the concealment apparatus further comprises a generation module, and when configured to generate the watermark layer, the generation module is specifically configured to:
determining the watermark of the target terminal according to the identification information of the target terminal and the mapping relation between the preset identification information and the watermark;
converting the watermark into a target character string in a preset form, and encoding the target character string;
converting the coded target character string to obtain an atom layer corresponding to the target character string;
and generating the watermark layer according to the atomic layer.
9. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when an electronic device is running, the machine-readable instructions being executed by the processor to perform the steps of the method of hiding a watermark according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, performs the steps of the method of hiding a watermark according to any one of claims 1 to 6.
CN202111346226.3A 2021-11-15 2021-11-15 Watermark hiding method and device, electronic equipment and readable storage medium Pending CN114049247A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111346226.3A CN114049247A (en) 2021-11-15 2021-11-15 Watermark hiding method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111346226.3A CN114049247A (en) 2021-11-15 2021-11-15 Watermark hiding method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN114049247A true CN114049247A (en) 2022-02-15

Family

ID=80208959

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111346226.3A Pending CN114049247A (en) 2021-11-15 2021-11-15 Watermark hiding method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114049247A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115358911A (en) * 2022-10-20 2022-11-18 北京万里红科技有限公司 Screen watermark generation method, device, equipment and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115358911A (en) * 2022-10-20 2022-11-18 北京万里红科技有限公司 Screen watermark generation method, device, equipment and computer readable storage medium
CN115358911B (en) * 2022-10-20 2023-01-31 北京万里红科技有限公司 Screen watermark generation method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN107610038B (en) Watermark display method, device and system
CN109801205B (en) Traceable implicit watermark adding method and device
EP3410685B1 (en) Image processing device, image processing method, and program
JP2013025326A (en) Object display device, object display method and object display program
CN112891946B (en) Game scene generation method and device, readable storage medium and electronic equipment
CN109446761B (en) Information security processing method, storage medium and terminal equipment
CN112650993B (en) Screen watermark display method and device, electronic equipment and storage medium
CN114049247A (en) Watermark hiding method and device, electronic equipment and readable storage medium
CN109711189A (en) Data desensitization method and device, storage medium, terminal
CN105306479A (en) Computer data embedding method, computer data displaying method and computer data embedding and displaying device
CN110634173A (en) Picture mark information adding method and device, electronic equipment and readable medium
CN111813466A (en) Watermark adding method, device, terminal equipment and computer storage medium
WO2015003493A1 (en) Data recovery method and electronic device
CN113391811B (en) Function compiling method, function compiling device, electronic equipment and computer readable storage medium
CN105389308A (en) Display processing method and device for web pages
CN109729076B (en) Data desensitization and inverse desensitization method and device, storage medium and terminal
CN113962838A (en) Watermark image embedding/enhancing method, device and computer system
CN113691835B (en) Video implantation method, device, equipment and computer readable storage medium
CN108597025B (en) Artificial intelligence-based virtual reality-oriented rapid model construction method and device
WO2020124454A1 (en) Font switching method and related product
CN114626968A (en) Watermark embedding method, watermark extracting method and device
CN111246140A (en) Digital mark display method and digital mark display system
CN108256611A (en) Quick Response Code image generating method, device, computing device and storage medium
CN109242763B (en) Picture processing method, picture processing device and terminal equipment
CN111259276A (en) Method and device for displaying title content, electronic equipment 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