CN112529757B - Screen information protection method, device, computer equipment and readable storage medium - Google Patents

Screen information protection method, device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN112529757B
CN112529757B CN202011415082.8A CN202011415082A CN112529757B CN 112529757 B CN112529757 B CN 112529757B CN 202011415082 A CN202011415082 A CN 202011415082A CN 112529757 B CN112529757 B CN 112529757B
Authority
CN
China
Prior art keywords
watermark
information
screen
hidden
hidden 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.)
Active
Application number
CN202011415082.8A
Other languages
Chinese (zh)
Other versions
CN112529757A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202011415082.8A priority Critical patent/CN112529757B/en
Publication of CN112529757A publication Critical patent/CN112529757A/en
Priority to PCT/CN2021/096977 priority patent/WO2022116493A1/en
Application granted granted Critical
Publication of CN112529757B publication Critical patent/CN112529757B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking
    • G06T1/0028Adaptive watermarking, e.g. Human Visual System [HVS]-based watermarking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/84Protecting input, output or interconnection devices output devices, e.g. displays or monitors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2201/00General purpose image data processing
    • G06T2201/005Image watermarking
    • G06T2201/0065Extraction of an embedded watermark; Reliable detection

Abstract

The application discloses a screen information protection method, a device, computer equipment and a readable storage medium, wherein the method comprises the following steps: obtaining a watermark display strategy in real time, wherein the watermark display strategy is displayed by at least using one or two of a blind watermark and a visible watermark containing hidden information, the visible watermark containing the hidden information is a watermark containing hidden information in the visible watermark text, and the blind watermark is a invisible watermark; acquiring a local domain account number in real time, and determining the hidden information according to the domain account number; and generating a screen picture containing the watermark according to the hidden information and the watermark display strategy. According to the method and the device, the preset watermark display strategy is obtained in real time, hidden information is determined according to the local domain account, then a screen picture containing the watermark is generated, the blind watermark or the visible watermark containing the hidden information is used for hiding the watermark information, so that the attack resistance of screen information protection is improved, and the information security is guaranteed.

Description

Screen information protection method, device, computer equipment and readable storage medium
Technical Field
The present invention relates to the field of information protection technologies, and in particular, to a method, an apparatus, a computer device, and a readable storage medium for protecting screen information.
Background
In the information age, business development, backup support, administrative office and other works of enterprises are changed from offline to online, and a large amount of enterprise information and data exist in an electronic mode and circulate inside the enterprises. Meanwhile, mobile devices such as mobile phones and the like are popular, and wireless Internet is applied, so that staff can shoot and transmit information to the Internet at any time and any place. The factors increase the difficulty of confidentiality of information and data of enterprises, and how to protect and trace the watermark information of the screen of a terminal computer becomes one of the concerns of the enterprise information security field.
The screen information protection and tracing device of the current mainstream adopts the watermark with visible meaning added in the screen background, the watermark plaintext displays the identity information of the current operation user, and the screen information tracing is carried out. The method has poor attack resistance, and can prevent the identity information of the information leakage person with certain technical capability from being traced after the screen shot or the photographed picture is technically processed and the plaintext watermark is removed. Therefore, a set of information protection and tracing device with stronger attack resistance and robustness is needed, and the screen information protection of the terminal computer is enhanced.
Disclosure of Invention
The main purpose of the application is to provide a screen information protection method, a device, a computer device and a readable storage medium, which aim to solve the technical problems of poor anti-attack capability and lower robustness of the existing screen information protection scheme.
In order to achieve the above object, the present application proposes a screen information protection method, including:
obtaining a watermark display strategy in real time, wherein the watermark display strategy at least uses one or two of a blind watermark and a visible watermark containing hidden information, the visible watermark containing the hidden information is a watermark containing hidden information in visible watermark characters, and the blind watermark is a invisible watermark invisible to naked eyes;
acquiring a local domain account number in real time, and determining the hidden information according to the domain account number;
and generating a screen picture containing the watermark according to the hidden information and the watermark display strategy.
Further, when the watermark display policy is to display using a bright watermark containing hidden information, the step of generating a screen picture containing a watermark according to the hidden information and the watermark display policy includes:
coding the hidden information to obtain a hidden code;
and selecting a hidden information-containing clear watermark corresponding to the hidden code from a preset hidden information-containing clear watermark library according to the hidden code, and generating a screen picture containing the hidden information-containing clear watermark, wherein the preset hidden information-containing clear watermark library is generated by hiding 0 or 1 binary code information according to information hidden points in each character in the watermark and through character stroke form changes, so as to obtain a maximum set of different forms of each character and corresponding code information.
Further, after the step of generating the screen picture containing the watermark according to the hidden information and the watermark display policy, the method further includes:
acquiring a screenshot or a screen shot image to obtain text information containing hidden information;
obtaining the coding information according to the information hidden point in each text in the text information;
and obtaining the hidden information according to the coded information.
Further, when the watermark display policy is to display using a blind watermark, the step of generating a screen picture including a watermark according to the hidden information and the watermark display policy includes:
acquiring a current screen background image in real time;
determining the display position of the hidden information on the current screen background picture according to the watermark display strategy to obtain a set of all pixel points of the display position of the hidden information on the current screen background picture;
and performing preset calculation on RGB color values of all pixels in the pixel set in the current screen background image to obtain a screen image containing the blind watermark.
Further, when the watermark display policy is to display using a blind watermark, the step of generating a screen picture including a watermark according to the hidden information and the watermark display policy further includes:
acquiring a current screen background image in real time;
determining the display position of the hidden information on the current screen background picture according to the watermark display strategy to obtain a set of all pixel points of the display position of the hidden information on the current screen background picture;
creating a transparent bitmap, drawing the hidden information on the transparent bitmap, and covering the transparent bitmap on the current screen background image, so that RGB color values of all pixel points of the pixel point set in the covered screen background image are calculated in a preset mode, and the covered screen image is used as a screen image containing a blind watermark.
Further, after the step of generating the screen picture containing the watermark according to the hidden information and the watermark display policy, the method includes:
acquiring a screenshot or a screen shot;
processing a screenshot or a screen shot image through a color matrix and gray gamma setting to obtain a first image;
performing color reversal processing on the screenshot or the screen shot image to obtain a second image;
gamma correction is carried out on the second picture to obtain a third picture;
and comparing the brightness values of the pixel points corresponding to the first picture and the third picture, and drawing the pixel points with high brightness values to obtain a fourth picture with hidden information.
The embodiment of the application also provides a screen information protection device, which comprises:
the system comprises a strategy acquisition unit, a watermark display unit and a watermark display unit, wherein the strategy acquisition unit is used for acquiring a watermark display strategy in real time, wherein the watermark display strategy is at least one or two of a blind watermark and a visible watermark containing hidden information, the visible watermark containing the hidden information is a watermark containing hidden information in a visible watermark text, and the blind watermark is invisible to naked eyes;
the hidden information determining unit is used for acquiring a local domain account in real time and determining the hidden information according to the domain account;
and the watermark picture generation unit is used for generating a screen picture containing the watermark according to the hidden information and the watermark display strategy.
Further, the screen information protection device further includes a watermark generation unit including hidden information, the watermark generation unit including hidden information includes:
the coding module is used for coding the hidden information to obtain a hidden code;
the hidden information-containing bright watermark generation module is used for selecting a bright watermark containing hidden information corresponding to the hidden code from a preset bright watermark library containing hidden information according to the hidden code, and generating a screen picture containing the bright watermark containing hidden information, wherein the preset bright watermark library containing hidden information is generated by hiding 0 or 1 binary code information according to information hidden points in each character in the watermark and through character stroke form change, so as to obtain the maximum set of different forms of each character and corresponding code information generation.
The present application also provides a computer device comprising a memory storing a computer program and a processor implementing the steps of any of the methods described above when the computer program is executed by the processor.
The present application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of any of the above.
According to the screen information protection method, device, computer equipment and readable storage equipment, the preset watermark display strategy is obtained in real time, hidden information is determined according to the local domain account, the screen picture containing the watermark is generated, the watermark information is hidden through the blind watermark or the clear watermark containing the hidden information, so that the attack resistance of screen information protection is improved, and the information security is guaranteed.
Drawings
FIG. 1 is a flowchart of a screen information protection method according to an embodiment of the present application;
FIG. 2 is a diagram of 6 types of "label" words and corresponding encoded information according to an embodiment of the present disclosure;
FIG. 3 is a standard information diagram of LOGO text, for example, "industry standard" in accordance with one embodiment of the present application;
FIG. 4 is a schematic diagram of LOGO text incorporating hidden information, for example, an "industry standard" text, in accordance with one embodiment of the present application;
FIG. 5 is a block diagram of a screen information protecting apparatus according to an embodiment of the present application;
FIG. 6 is a block diagram of a computer device according to an embodiment of the present application.
The realization, functional characteristics and advantages of the present application will be further described with reference to the embodiments, referring to the attached drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
Referring to fig. 1, an embodiment of the present application provides a screen information protection method, including the steps of:
s1, acquiring a watermark display strategy in real time, wherein the watermark display strategy at least uses one or two of a blind watermark and a visible watermark containing hidden information, the visible watermark containing the hidden information is a watermark containing hidden information in visible watermark characters, and the blind watermark is invisible to naked eyes;
s2, acquiring a local domain account in real time, and determining the hidden information according to the domain account;
s3, generating a screen picture containing the watermark according to the hidden information and the watermark display strategy.
As described above, in the scheme of the present embodiment, the screen information protection method may be applied to a system including the following 5 components.
Assembly 1: the background logic library is used for generating a water printing library according to a watermarking algorithm so as to generate a complete screen watermark according to the dynamically transmitted information.
Assembly 2: a post-management service (comprising a relational database) for supporting an administrator to configure a watermarking scheme on the service, set watermarking strategy and issue and take effect.
And (3) an assembly 3: and the firewall is used for setting a firewall policy on the component, protecting the post-management service and preventing attacks from the client.
Assembly 4: the proxy service is used as an interface between the post-management service and the client program, only performs information forwarding, has no processing logic, and plays a role in protecting the post-management service together with the firewall.
And (5) an assembly: the client program is responsible for acquiring client information, hiding the information according to the instruction of the watermark strategy, generating a watermark, refreshing the watermark according to fixed frequency and displaying the watermark in the client background.
The components realize real-time display and management of screen watermarks of a large number of client computers (more than 10 ten thousand levels) through real-time interaction.
The client program obtains the watermark strategy from the post-management service, and generates and refreshes the watermark form on the client computer in real time according to the user information logged in by the client program and the watermark display strategy applicable to the machine. The client program is a process which resides on the client computer for a long time, the work of generating and refreshing the watermark is continuously and circularly executed according to a certain frequency, and the latest watermark form is generated and displayed according to the user information at the time and the latest watermark strategy issued by the post-management service during each execution. The above-described operation is not terminated unless the client computer is turned off.
The client program obtains the latest watermark display strategy through interaction with the post-management service, wherein the latest watermark display strategy comprises information such as watermark types, watermark densities, watermark depths, watermark inclination angles, watermark sizes, whether the client is in a white list and the like which are required to be displayed by the client.
The local domain account information is obtained through a client program, for example: wangwu/domain, wherein wangwu is a user name of a login machine, hidden information to be hidden is determined according to domain account information, watermark pictures are generated according to a watermark display strategy and displayed on a screen, and screen information is protected.
The watermark types in the watermark display strategy may include a bright watermark, a bright watermark containing hidden information, and a blind watermark, and in this embodiment, at least one of the bright watermark and the blind watermark containing hidden information is used.
As described above, the clear watermark refers to a conventional screen watermark displayed in the clear text of information, which mainly has a deterrent effect on information leakage, and takes the above user name wangwu as an example, the clear watermark directly displays wangwu on the screen according to parameters such as watermark density, watermark depth, watermark size, watermark inclination angle, and the like. The watermark containing hidden information is that the encrypted binary coded information is hidden in the watermark, for example, the enterprise LOGO containing characters, so that an information leakage person cannot decipher and understand the hidden information, only consider the hidden information as the common enterprise LOGO, and cannot realize that the hidden information is processed and removed. Meanwhile, the clear watermark containing hidden information is still very clear after screen capture and screen shooting, can completely support information tracing, and increases the attack resistance and robustness. Blind watermarks refer to completely hidden, invisible screen watermarks that cannot be seen by the unaided human eye. The existence of the watermark information can not be perceived by information leakage personnel, and the anti-attack performance is very good. The method has good robustness in screenshot, but has poor robustness in a scene photographed by the screen.
In one embodiment, when the watermark display policy is to display using a bright watermark containing hidden information, the step of generating a screen picture containing a watermark according to the hidden information and the watermark display policy includes:
s301, coding the hidden information to obtain a hidden code;
s302, selecting a hidden information-containing clear watermark corresponding to the hidden code from a preset hidden information-containing clear watermark library according to the hidden code, and generating a screen picture containing the hidden information-containing clear watermark, wherein the preset hidden information-containing clear watermark library is generated by hiding 0 or 1 binary code information according to information hidden points in each word in the watermark and through the change of word stroke forms, so as to obtain the maximum set of different forms of each word and corresponding code information generation.
As described above, by varying the stroke form of a word, hiding binary coded information of 0 or 1, e.g., where two strokes of a word intersect, may imply information:
the upper horizontal stroke and the upper vertical stroke of the Wang word are not separated and can be recorded as a state 0,
the upper one of the Wang character is divided into two strokes, namely a horizontal stroke and a vertical stroke, and can be recorded as a state 1;
the relative length positions of two lines of text may imply information:
the lower horizontal length of the "flat" word, which can be noted as state 0,
the lower horizontal of the "flat" word is shorter and can be noted as state 1;
the relative angle of the two lines of text may imply information:
the angle in the middle of the right-falling stroke of the Chinese character 'tai' is smaller and can be marked as a state 0,
the angle in the middle of the right-falling stroke of the word "tai" is larger and can be denoted as state 1.
The above is merely an example, any hidden information by changing the form of the strokes of the characters is possible, and generally, each character can find 4 to 5 hidden points of information and hide 4 to 5 bits of information, and referring to fig. 2, fig. 2 shows 6 forms of the "mark" word and corresponding coded information.
Then, the information to be hidden is encoded, the bit occupied by the encoding is shortened as much as possible, so that the information quantity in the LOGO is increased, the wangwu is taken as the hidden information again for example, the corresponding encoded information is (101010101101011010), and the deformed LOGO characters are corresponding to the encoding, so that the information hiding is completed.
Fig. 3 shows a standard form of a LOGO letter, for example, "industry standard", and fig. 4 shows a form of the LOGO after embedding the string information "wangwu" (wang five).
In one embodiment, after the step of generating the screen picture including the watermark according to the hidden information and the watermark display policy, the method further includes:
s401, acquiring a screenshot or a screen shot image to obtain text information containing hidden information;
s402, obtaining the coding information according to information hidden points in each word in the word information;
s403, obtaining the hidden information according to the coded information.
After the screen shot or the screen shot picture is taken, the LOGO text picture is translated into the binary code according to the corresponding relation between the LOGO text and the binary code in the picture, and then the binary code is converted into the hidden information, so that the information can be traced.
In one embodiment, when the watermark display policy is to display using a blind watermark, the step of generating a screen picture including a watermark according to the hidden information and the watermark display policy includes:
s311, acquiring a current screen background image in real time;
s312, determining the display position of the hidden information on the current screen background picture according to the watermark display strategy to obtain a set of all pixel points of the display position of the hidden information on the current screen background picture;
s313, performing preset calculation on RGB color values of all pixels in the pixel set in the current screen background image to obtain a screen image containing the blind watermark.
As described above, the rendering process of the blind watermark may be completed by generating a watermarked screen picture and copying it to the top window, wherein the preset calculation is to add 1 or subtract 1 to the RGB color values.
Specifically, real-time image information of a specified window can be extracted through a screen recording function, then a specified position is intercepted, and then an image of the position is rendered on the top window again through the top window, so that blind watermark drawing is realized.
As an example, the main function call logic is as follows:
1, firstly calling CGWindow ListCreate to acquire all window lists being displayed on a current screen, and taking a window object list array to contain window information in each object;
and 2, transmitting all other window sets excluding the watermark window into the CGWindow ListCreateMageFromArray function to obtain the picture information of one window of the set.
And 3, finally synthesizing the self-defined blind watermark image information and the picture information of the blind watermark image information through a CGBtmapCintCreate function, finally outputting a modified screen picture with watermark, and copying the screen picture onto the top window.
The rendering process of the blind watermark is completed through the 3 steps, the whole 3 parts are operated according to the frame rate, and the default is 32 frames per second.
Because the color value difference between the pixel point of the watermark position and the original pixel point is 1, the hidden blind watermark cannot be resolved by naked eyes, but the hidden blind watermark can be reversely resolved by a graphic processing technology, so that the information tracing effect is achieved.
In one embodiment, when the watermark display policy is to display using a blind watermark, the step of generating a screen picture including a watermark according to the hidden information and the watermark display policy further includes:
s321, acquiring a current screen background image in real time;
s322, determining the display position of the hidden information on the current screen background picture according to the watermark display strategy to obtain a set of all pixel points of the display position of the hidden information on the current screen background picture;
s323, creating a transparent bitmap, drawing the hidden information on the transparent bitmap, and covering the transparent bitmap on the current screen background image, so that RGB color values of all pixel points of the pixel point set in the covered screen background image are calculated in a preset mode, and the covered screen image is used as a screen image containing a blind watermark.
As described above, the rendering of the blind watermark may also be accomplished by creating a transparent bitmap in advance, displaying the watermark on the transparent bitmap, and overlaying the watermark on the original background map.
Specifically, a transparent window is created, then the watermark is drawn in the memory bitmap, the memory image is rendered in the appointed transparent window by utilizing a mechanism of the layered window, and then the blind watermark drawing function is realized according to the settings of parameters such as watermark fonts, transparency, anti-toning and the like, wherein the preset calculation is to increase the RGB color value by 1 or decrease the RGB color value by 1.
The main function call logic is as follows:
1, firstly creating a transparent watermark window through a CreateWindowEx function, and keeping the window in a top-set mode.
And 2, creating a memory bitmap through a CreateCompatibleDC function, and drawing blind watermarks on the memory bitmap according to parameters such as transparency, array density and the like. And the color difference between the watermark character boundary and the filling part is utilized to achieve the capability of resisting the color matching attack.
And 3, associating the memory bitmap with the watermark window through an UpdateLayered Window function, and displaying the memory bitmap on the window with the corresponding coordinates.
In one embodiment, when the watermark display policy is to display using a blind watermark, the step of generating a screen picture including a watermark according to the hidden information and the watermark display policy includes:
s411, acquiring a screenshot or a screen shot;
s412, processing the screenshot or the screen shot image through the color matrix and the gray gamma setting to obtain a first image;
s413, performing inverse color processing on the screenshot or the screen shot image to obtain a second image;
s414, gamma correction is carried out on the second picture to obtain a third picture;
s415, comparing the brightness values of the pixel points corresponding to the first picture and the third picture, and drawing the pixel point with the high brightness value to obtain a fourth picture with hidden information.
As described above, the blind watermark is mainly realized by hiding the watermark through pixel differentiation, the watermark is actually present in the picture, and the hidden blind watermark can be reversely resolved through a graphic processing technology. Blind watermarks have a sharp picture or text outline but this outline is not easily perceived.
Specifically, display enhancement of hidden watermarks is achieved by using gamma, brightness and contrast correction, and picture adjustment is performed by using color adjustment information used by a specified GDI+ object through a net running environment, wherein typical values of gamma parameters are between 0.01 and 50.0; the brightness is between-0.1 and 1.0, and the contrast is between 0.9 and 1.1. The anti-color processing means that the RGB of each pixel is respectively processed by locking the pixel value into the system memory, and the brightness value is obtained by adopting a formulaAnd (5) performing calculation.
According to the screen information protection method, through setting the strategies of combining various watermarks, the attack resistance of the screen watermarks is greatly improved, a common person is hard to realize that the screen watermarks contain information capable of tracking the source, namely, the watermarks cannot be attacked and removed by adopting a technical means, a blind watermark strategy can be adopted for protecting some special scenes, rather than completely removing watermark information as in the prior art, and terminal equipment runs without protection under the special scenes.
Referring to fig. 5, an embodiment of the present application further provides a screen information protection device, including:
a policy obtaining unit 1, configured to obtain a watermark display policy in real time, where the watermark display policy uses at least one or two of a blind watermark and a visible watermark containing hidden information, the visible watermark containing hidden information is a watermark containing hidden information in a visible watermark text, and the blind watermark is a invisible watermark that is invisible to naked eyes;
the hidden information determining unit 2 is used for acquiring a local domain account in real time and determining the hidden information according to the domain account;
the watermark picture generation unit 3 is used for acquiring the local domain account number in real time, and generating a screen picture containing the watermark according to the domain account number and the watermark display strategy.
In one embodiment, the screen information protecting apparatus further includes a bright watermark generating unit including hidden information, the bright watermark generating unit including hidden information including:
the coding module is used for coding the hidden information to obtain a hidden code;
the hidden information-containing bright watermark generation module is used for selecting a bright watermark containing hidden information corresponding to the hidden code from a preset bright watermark library containing hidden information according to the hidden code, and generating a screen picture containing the bright watermark containing hidden information, wherein the preset bright watermark library containing hidden information is generated by hiding 0 or 1 binary code information according to information hidden points in each character in the watermark and through character stroke form change, so as to obtain the maximum set of different forms of each character and corresponding code information generation.
In one embodiment, the screen information protection device further includes a hidden information-containing bright watermark information tracing unit for tracing the hidden information-containing bright watermark information, and the hidden information-containing bright watermark information tracing unit includes:
the character acquisition module is used for acquiring a screenshot or a screen shooting picture to obtain character information containing hidden information;
the coded information acquisition module is used for acquiring the coded information according to the information hidden point in each word in the word information;
and the tracing module is used for obtaining the hidden information according to the coding information.
In one embodiment, the screen information protecting apparatus further includes a first blind watermark realization unit for generating a blind watermark, the first blind watermark realization unit including:
the acquisition module is used for acquiring the current screen background image in real time;
the watermark pixel point determining module is used for determining the display position of the hidden information on the current screen background image according to the watermark display strategy to obtain a set of all pixel points of the display position of the hidden information on the current screen background image;
and the first blind watermark realization module is used for carrying out preset calculation on RGB color values of all pixel points in the pixel point set in the current screen background image to obtain a screen picture containing the blind watermark.
In one embodiment, the screen information protecting apparatus further includes a second blind watermark realization unit for generating a blind watermark, the second blind watermark realization unit including:
the acquisition module is used for acquiring the current screen background image in real time;
the watermark pixel point determining module is used for determining the display position of the hidden information on the current screen background image according to the watermark display strategy to obtain a set of all pixel points of the display position of the hidden information on the current screen background image;
and the second blind watermark realization module is used for creating a transparent bitmap, drawing the hidden information on the transparent bitmap, and covering the transparent bitmap on the current screen background image, so that RGB color values of all pixel points of the pixel point set in the covered screen background image are calculated in a preset manner, and the covered screen image is used as a screen image containing the blind watermark.
In one embodiment, the screen information protection device further includes a blind watermark information tracing unit for tracing the blind watermark information, and the blind watermark information tracing unit includes:
the screen picture acquisition module is used for acquiring a screenshot or a screen shot picture;
the first processing module is used for processing the screen shot or the screen shot image through the color matrix and the gray gamma setting to obtain a first image;
the second processing module is used for carrying out inverse color processing on the screen shot or the screen shot image to obtain a second image;
the third processing module is used for carrying out gamma correction on the second picture to obtain a third picture;
and the fourth processing module is used for comparing the brightness values of the pixel points corresponding to the first picture and the third picture, and drawing the pixel points with high brightness values to obtain a fourth picture with hidden information.
As described above, it may be understood that each component of the screen information protection device set forth in the present application may implement a function of any one of the screen information protection methods described above, and a specific structure is not described herein.
Referring to fig. 6, a computer device is further provided in the embodiment of the present application, where the computer device may be a server, and the internal structure of the computer device may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing data such as watermark display strategies and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a screen information protection method.
The processor executes the screen information protection method, which comprises the following steps:
obtaining a watermark display strategy in real time, wherein the watermark display strategy at least uses one or two of a blind watermark and a visible watermark containing hidden information, the visible watermark containing the hidden information is a watermark containing hidden information in visible watermark characters, and the blind watermark is a invisible watermark invisible to naked eyes;
acquiring a local domain account number in real time, and determining the hidden information according to the domain account number;
and generating a screen picture containing the watermark according to the hidden information and the watermark display strategy.
An embodiment of the present application further provides a computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements a screen information protection method, including the steps of:
obtaining a watermark display strategy in real time, wherein the watermark display strategy is displayed by at least using one or two of a blind watermark and a visible watermark containing hidden information, the visible watermark containing the hidden information is a watermark containing hidden information in visible watermark characters, and the blind watermark is invisible to naked eyes;
acquiring a local domain account number in real time, and determining the hidden information according to the domain account number;
and generating a screen picture containing the watermark according to the hidden information and the watermark display strategy.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in embodiments may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, apparatus, article or method that comprises the element.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the claims, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the claims of the present application.

Claims (8)

1. A screen information protection method, comprising:
obtaining a watermark display strategy in real time, wherein the watermark display strategy is displayed by at least using one or two of a blind watermark and a visible watermark containing hidden information, the visible watermark containing the hidden information is a watermark containing hidden information in visible watermark characters, and the blind watermark is invisible to naked eyes;
acquiring a local domain account number in real time, and determining the hidden information according to the domain account number;
generating a screen picture containing a watermark according to the hidden information and the watermark display strategy;
the step of generating a screen picture containing a watermark according to the hidden information and the watermark display strategy further comprises the following steps:
acquiring a current screen background image in real time;
determining the display position of the hidden information on the current screen background picture according to the watermark display strategy to obtain a set of all pixel points of the display position of the hidden information on the current screen background picture;
creating a transparent bitmap, drawing the hidden information on the transparent bitmap, and covering the transparent bitmap on the current screen background image, so that RGB color values of all pixel points of the pixel point set in the covered screen background image are calculated in a preset mode, and the covered screen image is used as a screen image containing a blind watermark;
after the step of generating the screen picture containing the watermark according to the hidden information and the watermark display strategy, the method comprises the following steps:
acquiring a screenshot or a screen shot;
processing a screenshot or a screen shot image through a color matrix and gray gamma setting to obtain a first image;
performing color reversal processing on the screenshot or the screen shot image to obtain a second image;
gamma correction is carried out on the second picture to obtain a third picture;
comparing the brightness values of the pixel points corresponding to the first picture and the third picture, and drawing the pixel points with high brightness values to obtain a fourth picture with hidden information; the brightness value is obtained by adopting a formulaAnd (5) performing calculation.
2. The screen information protection method according to claim 1, wherein when the watermark display policy is to display using a bright watermark containing hidden information, the step of generating a screen picture containing a watermark according to the hidden information and the watermark display policy includes:
coding the hidden information to obtain a hidden code;
and selecting a hidden information-containing clear watermark corresponding to the hidden code from a preset hidden information-containing clear watermark library according to the hidden code, and generating a screen picture containing the hidden information-containing clear watermark, wherein the preset hidden information-containing clear watermark library is generated by hiding 0 or 1 binary code information according to information hidden points in each character in the watermark and through character stroke form changes, so as to obtain a maximum set of different forms of each character and corresponding code information.
3. The screen information protection method according to claim 2, further comprising, after the step of generating a screen picture containing a watermark according to the hidden information and the watermark display policy:
acquiring a screenshot or a screen shot image to obtain text information containing hidden information;
obtaining the coding information according to the information hidden point in each text in the text information;
and obtaining the hidden information according to the coded information.
4. The screen information protection method according to claim 1, wherein when the watermark display policy is to display using a blind watermark, the step of generating a screen picture including a watermark according to the hidden information and the watermark display policy includes:
acquiring a current screen background image in real time;
determining the display position of the hidden information on the current screen background picture according to the watermark display strategy to obtain a set of all pixel points of the display position of the hidden information on the current screen background picture;
and performing preset calculation on RGB color values of all pixels in the pixel set in the current screen background image to obtain a screen image containing the blind watermark.
5. A screen information protecting apparatus, comprising:
the system comprises a strategy acquisition unit, a watermark display unit and a watermark display unit, wherein the strategy acquisition unit is used for acquiring a watermark display strategy in real time, the watermark display strategy is at least one or two of blind watermarks and visible watermarks containing hidden information, the visible watermarks containing the hidden information are watermarks containing hidden information in the visible watermark characters, and the blind watermarks are invisible watermarks;
the hidden information determining unit is used for acquiring a local domain account in real time and determining the hidden information according to the domain account;
a watermark picture generation unit for generating a screen picture containing a watermark according to the hidden information and the watermark display strategy;
the screen information protection device further comprises a second blind watermark realization unit for generating a blind watermark, and the second blind watermark realization unit comprises:
the acquisition module is used for acquiring the current screen background image in real time;
the watermark pixel point determining module is used for determining the display position of the hidden information on the current screen background image according to the watermark display strategy to obtain a set of all pixel points of the display position of the hidden information on the current screen background image;
the second blind watermark realization module is used for creating a transparent bitmap, drawing the hidden information on the transparent bitmap, covering the transparent bitmap on the current screen background image, and enabling RGB color values of all pixels of the pixel point set in the covered screen background image to be calculated in a preset mode, wherein the covered screen image is used as a screen image containing the blind watermark;
the screen information protection device also comprises a blind watermark information tracing unit for tracing the blind watermark information, and the blind watermark information tracing unit comprises:
the screen picture acquisition module is used for acquiring a screenshot or a screen shot picture;
the first processing module is used for processing the screen shot or the screen shot image through the color matrix and the gray gamma setting to obtain a first image;
the second processing module is used for carrying out inverse color processing on the screen shot or the screen shot image to obtain a second image;
the third processing module is used for carrying out gamma correction on the second picture to obtain a third picture;
the fourth processing module is used for comparing the brightness values of the pixel points corresponding to the first picture and the third picture, drawing the pixel points with high brightness values, and obtaining a fourth picture with hidden information; the brightness value is obtained by adopting a formulaAnd (5) performing calculation.
6. The screen information protecting apparatus according to claim 5, further comprising a bright watermark generating unit containing hidden information, the bright watermark generating unit containing hidden information comprising:
the coding module is used for coding the hidden information to obtain a hidden code;
the hidden information-containing bright watermark generation module is used for selecting a bright watermark containing hidden information corresponding to the hidden code from a preset bright watermark library containing hidden information according to the hidden code, and generating a screen picture containing the bright watermark containing hidden information, wherein the preset bright watermark library containing hidden information is generated by hiding 0 or 1 binary code information according to information hidden points in each character in the watermark and through character stroke form change, so as to obtain the maximum set of different forms of each character and corresponding code information generation.
7. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 4 when the computer program is executed.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 4.
CN202011415082.8A 2020-12-04 2020-12-04 Screen information protection method, device, computer equipment and readable storage medium Active CN112529757B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011415082.8A CN112529757B (en) 2020-12-04 2020-12-04 Screen information protection method, device, computer equipment and readable storage medium
PCT/CN2021/096977 WO2022116493A1 (en) 2020-12-04 2021-05-28 Screen information protection method and apparatus, and computer device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011415082.8A CN112529757B (en) 2020-12-04 2020-12-04 Screen information protection method, device, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112529757A CN112529757A (en) 2021-03-19
CN112529757B true CN112529757B (en) 2024-01-19

Family

ID=74997135

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011415082.8A Active CN112529757B (en) 2020-12-04 2020-12-04 Screen information protection method, device, computer equipment and readable storage medium

Country Status (2)

Country Link
CN (1) CN112529757B (en)
WO (1) WO2022116493A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112529757B (en) * 2020-12-04 2024-01-19 平安科技(深圳)有限公司 Screen information protection method, device, computer equipment and readable storage medium
CN113298726A (en) * 2021-05-14 2021-08-24 漳州万利达科技有限公司 Image display adjusting method and device, display equipment and storage medium
CN114998086B (en) * 2022-07-28 2022-10-21 合肥高维数据技术有限公司 Method for manufacturing test sample of screen invisible watermark embedding program and test method
CN116228507B (en) * 2023-03-14 2023-10-27 上海阅文信息技术有限公司 Digital text watermark tracing method and system
CN116630131A (en) * 2023-07-25 2023-08-22 北京和人广智科技有限公司 Coding and decoding system and method for invisible screen watermark

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1740943A (en) * 2004-08-27 2006-03-01 北京北大方正电子有限公司 A file enciphering method
CN110489944A (en) * 2019-07-17 2019-11-22 招联消费金融有限公司 Background picture generation method, device and the storage medium of information management system
CN111988672A (en) * 2020-08-13 2020-11-24 北京达佳互联信息技术有限公司 Video processing method and device, electronic equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101311286B1 (en) * 2011-10-11 2013-09-25 주식회사 파수닷컴 Apparatus and method for displaying a watermark on screen
CN110097488B (en) * 2018-01-29 2023-10-24 阿里巴巴集团控股有限公司 Invisible digital watermark generation and extraction method and device
CN110335189B (en) * 2019-05-31 2024-01-16 平安科技(深圳)有限公司 Method, device, computer equipment and storage medium for filling anti-counterfeiting information
CN110414194B (en) * 2019-07-02 2023-08-04 南京理工大学 Text watermark embedding and extracting method
CN112529757B (en) * 2020-12-04 2024-01-19 平安科技(深圳)有限公司 Screen information protection method, device, computer equipment and readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1740943A (en) * 2004-08-27 2006-03-01 北京北大方正电子有限公司 A file enciphering method
CN110489944A (en) * 2019-07-17 2019-11-22 招联消费金融有限公司 Background picture generation method, device and the storage medium of information management system
CN111988672A (en) * 2020-08-13 2020-11-24 北京达佳互联信息技术有限公司 Video processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2022116493A1 (en) 2022-06-09
CN112529757A (en) 2021-03-19

Similar Documents

Publication Publication Date Title
CN112529757B (en) Screen information protection method, device, computer equipment and readable storage medium
Wan et al. A comprehensive survey on robust image watermarking
Jia et al. RIHOOP: Robust invisible hyperlinks in offline and online photographs
CN109872284A (en) Image information desensitization method, device, computer equipment and storage medium
US11489984B2 (en) Frequency and spatial domain image processing method for image marking and mark detection, apparatus, and storage medium
CN111784588A (en) Image data enhancement method and device, computer equipment and storage medium
CN107316269A (en) A kind of micro- aberration watermark handling method tracked for information-leakage and system
Pal et al. Weighted matrix based reversible watermarking scheme using color image
CN109003218A (en) A method of construction thresholding visual cryptography matrix
CN108256360A (en) The display methods and terminal of a kind of sensitive information
CN114332895A (en) Text image synthesis method, text image synthesis device, text image synthesis equipment, storage medium and program product
CN110060193B (en) Screen digital watermark embedding method and system
CN112800718A (en) PDF document display method, computer equipment and storage medium
CN106650395A (en) Moire fringe-based confidential information display method
CN115270084A (en) Blind watermark encryption implementation method based on screenshot information protection
CN110766597A (en) Picture camouflaging method, picture camouflaging device, electronic equipment and storage medium
CN116094811A (en) Secret information anti-photographing alarm method, system, equipment and readable storage medium
US20230153402A1 (en) System and method for deterring data leakage through photographing of display screen by external camera
CN110955889A (en) Electronic document tracing method based on digital fingerprints
CN116028901A (en) Watermark embedding method, device, equipment and storage medium
JP3881810B2 (en) Digital watermark with adjustable watermark mark visibility
CN115841413A (en) Image processing method and device
CN112434267B (en) Method, device, medium and equipment for generating blind watermark
CN113704828A (en) System and method for preventing file from being tampered and leaked through watermark encryption
JPWO2017130333A1 (en) Image processing apparatus, image processing method, and program

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