CN113496451A - Watermark adding method and device and screen image leakage tracking method and device - Google Patents

Watermark adding method and device and screen image leakage tracking method and device Download PDF

Info

Publication number
CN113496451A
CN113496451A CN202010301147.XA CN202010301147A CN113496451A CN 113496451 A CN113496451 A CN 113496451A CN 202010301147 A CN202010301147 A CN 202010301147A CN 113496451 A CN113496451 A CN 113496451A
Authority
CN
China
Prior art keywords
watermark
information
dot matrix
character
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010301147.XA
Other languages
Chinese (zh)
Other versions
CN113496451B (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.)
Secworld Information Technology Beijing Co Ltd
Qax Technology Group Inc
Original Assignee
Secworld Information Technology Beijing Co Ltd
Qax Technology Group Inc
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 Secworld Information Technology Beijing Co Ltd, Qax Technology Group Inc filed Critical Secworld Information Technology Beijing Co Ltd
Publication of CN113496451A publication Critical patent/CN113496451A/en
Application granted granted Critical
Publication of CN113496451B publication Critical patent/CN113496451B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking
    • G06T1/0042Fragile watermarking, e.g. so as to detect tampering
    • 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

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 embodiment of the invention discloses a watermark adding method and a watermark adding device as well as a screen image leakage tracking method and a screen image leakage tracking device, wherein the watermark adding method comprises the following steps: determining equipment information and a character dot matrix graph corresponding to each character of the equipment information, and determining a check dot matrix graph corresponding to the equipment information based on the character of the equipment information; and generating a watermark pattern corresponding to the equipment information based on the character dot matrix pattern corresponding to each character and the check dot matrix pattern, and adding the watermark pattern corresponding to the equipment information to secret information. The method provided by the invention can reduce the misjudgment rate and improve the accuracy of the determined equipment information leaking the confidential information.

Description

一种水印添加方法、装置及屏幕图像泄漏追踪方法、装置A method and device for adding a watermark, and a method and device for tracking screen image leakage

技术领域technical field

本发明涉及信息安全技术领域,具体涉及一种水印添加方法、装置及屏幕图像泄漏追踪方法、装置。The invention relates to the technical field of information security, in particular to a method and device for adding a watermark, and a method and device for tracking screen image leakage.

背景技术Background technique

随着无纸化办公技术的不断发展,不可避免的会出现保密信息被通过截屏、拍照等方式泄漏的情况。为防止企业内的保密信息泄漏后无证可查,如何对含有保密信息的屏幕图像进行追踪也显得尤为重要。With the continuous development of paperless office technology, it is inevitable that confidential information will be leaked through screenshots, photos, etc. In order to prevent the leakage of confidential information in the enterprise from being undocumented, it is particularly important to track screen images containing confidential information.

现阶段,各企业通常通过数字水印技术对含有保密信息的屏幕图像进行追踪。具体的,可以在各台设备(如计算机、pc等终端设备)安装可以实现数字水印技术功能的软件,并管理设备上安装对前述各软件进行管理的管理软件。当有用户通过某台设备浏览/截图保密信息时,该设备可以通过前述软件将该设备的设备信息用九宫格点阵形式的图形表示,生成水印图形,并将该水印图形与保密信息融合后呈现给用户。当管理设备获取到含有保密信息的屏幕图像时,管理设备可以通过前述管理软件提取屏幕图像中的水印图形,通过预设的点阵图形对照表确定生成该屏幕图像的设备信息,并可以将该设备信息确定为泄漏保密信息的设备信息。At this stage, companies usually track screen images containing confidential information through digital watermarking technology. Specifically, software capable of realizing the function of digital watermarking technology can be installed on each device (such as a computer, pc and other terminal devices), and management software for managing the aforementioned software can be installed on the management device. When a user browses/screenshots confidential information through a certain device, the device can use the aforementioned software to represent the device information of the device in the form of a nine-square lattice, generate a watermark graphic, and fuse the watermark graphic with the confidential information and present it to users. When the management device obtains a screen image containing confidential information, the management device can extract the watermark graphic in the screen image through the aforementioned management software, determine the device information for generating the screen image through a preset dot-matrix graphic comparison table, and can use the The device information is determined to be the device information that leaks confidential information.

现有技术中,当水印图形被篡改时,可能会出现确定的泄漏保密信息的设备信息,并非真实的泄漏保密信息的设备信息,从而造成误判,进而会在一定程度上导致误判率较高。In the prior art, when the watermark image is tampered with, there may be certain device information leaking confidential information, which is not the real device information leaking confidential information, thereby causing misjudgment, which will lead to a higher misjudgment rate to a certain extent. high.

发明内容SUMMARY OF THE INVENTION

由于现有方法存在上述问题,本发明实施例提出一种水印添加方法、装置及屏幕图像泄漏追踪方法、装置。Due to the above problems in the existing methods, the embodiments of the present invention provide a method and device for adding a watermark, and a method and device for tracking screen image leakage.

第一方面,本发明实施例提出了一种水印添加方法,包括:In a first aspect, an embodiment of the present invention provides a method for adding a watermark, including:

确定设备信息及所述设备信息的各个字符对应的字符点阵图形,并基于所述设备信息的字符确定所述设备信息对应的校验点阵图形;determining the device information and the character lattice pattern corresponding to each character of the device information, and determining the check lattice pattern corresponding to the device information based on the characters of the device information;

基于所述各个字符对应的字符点阵图形和所述校验点阵图形,生成所述设备信息对应的水印图形,并将所述设备信息对应的水印图形添加至保密信息。Based on the character lattice pattern corresponding to each character and the check lattice pattern, a watermark pattern corresponding to the device information is generated, and the watermark pattern corresponding to the device information is added to the confidential information.

可选的,所述确定设备信息及所述设备信息的各个字符对应的字符点阵图形,包括:Optionally, the determining the device information and the character lattice graphics corresponding to each character of the device information, including:

基于预设点阵图形对照表,确定所述各个字符对应的字符点阵图形;Based on the preset lattice pattern comparison table, determine the character lattice pattern corresponding to each character;

所述基于所述设备信息的字符,确定所述设备信息对应的校验点阵图形,包括:The character based on the device information to determine the checkpoint pattern corresponding to the device information, including:

基于所述设备信息的字符及预设校验参数确定所述设备信息对应的校验信息;Determine the verification information corresponding to the device information based on the characters of the device information and preset verification parameters;

基于所述预设点阵图形对照表确定所述校验信息对应的点阵图形,并将所述校验信息对应的点阵图形确定为所述设备信息对应的校验点阵图形。The lattice pattern corresponding to the verification information is determined based on the preset lattice pattern comparison table, and the lattice pattern corresponding to the verification information is determined as the verification lattice pattern corresponding to the device information.

可选的,所述基于所述各个字符对应的字符点阵图形和所述校验点阵图形,生成所述设备信息对应的水印图形,包括:Optionally, generating a watermark pattern corresponding to the device information based on the character lattice pattern corresponding to each character and the check lattice pattern, including:

确定起始点阵,按照预设水印格式排列所述起始点阵、所述各个字符对应的字符点阵图形和所述校验点阵图形,生成所述设备信息对应的水印图形。Determining a starting dot matrix, arranging the starting dot matrix, the character dot matrix graphics corresponding to each character, and the check dot matrix graphics according to a preset watermark format, to generate a watermark graphic corresponding to the device information.

第二方面,本发明实施例还提出一种屏幕图像泄漏追踪方法,包括:In a second aspect, an embodiment of the present invention further provides a method for tracking screen image leakage, including:

提取获取的屏幕图像中的水印图形,其中,所述水印图形是采用如第一方面任一项所述的水印添加方法获取的;Extract the watermark graphic in the acquired screen image, wherein the watermark graphic is acquired by using the watermark adding method according to any one of the first aspects;

基于所述水印图形中的校验点阵图形确定第一检验信息,其中,所述校验点阵图形基于字符点阵图形生成,所述字符点阵图形与生成所述屏幕图像的设备的设备信息对应;The first check information is determined based on a check dot pattern in the watermark pattern, wherein the check dot pattern is generated based on a character dot pattern, and the character dot pattern is related to a device that generates the screen image. information correspondence;

基于所述水印图形中的所有字符点阵图形确定第二校验信息,并确定所述水印图形对应的设备信息;Determine the second check information based on all the character lattice graphics in the watermark graphics, and determine the device information corresponding to the watermark graphics;

当所述第一检验信息与所述第二校验信息相同时,将所述水印图形对应的设备信息,确定为泄漏所述保密信息的设备信息。When the first verification information is the same as the second verification information, the device information corresponding to the watermark image is determined as the device information that leaks the confidential information.

可选的,所述基于所述水印图形中的校验点阵图形确定第一检验信息,包括:Optionally, the determining the first check information based on the check dot matrix pattern in the watermark pattern includes:

在所述屏幕图像中确定起始点阵,基于所述起始点阵及预设水印格式,确定预设数量个字符点阵图形及校验点阵图形;determining a starting dot matrix in the screen image, and determining a preset number of character dot matrix graphics and check dot matrix graphics based on the starting dot matrix and a preset watermark format;

基于所述起始点阵和所述预设数量个字符点阵图形及校验点阵图形,生成所述水印图形,并基于所述校验点阵图形生成第一校验信息。The watermark pattern is generated based on the starting dot matrix and the preset number of character dot matrix patterns and check dot matrix patterns, and first verification information is generated based on the check dot matrix pattern.

可选的,所述基于所述水印图形中的所有实际字符点阵图形确定第二校验信息,包括:Optionally, the determining of the second check information based on all actual character lattice patterns in the watermark pattern includes:

基于预设点阵图形对照表,确定所述水印图形中的各个字符点阵图形对应的字符;Based on a preset lattice pattern comparison table, determine the character corresponding to each character lattice pattern in the watermark pattern;

基于所述各个字符点阵图形对应的字符,及预设校验参数确定所述水印图形对应的第二校验信息。The second verification information corresponding to the watermark graphics is determined based on the characters corresponding to the respective character lattice graphics and preset verification parameters.

可选的,所述确定所述水印图形对应的设备信息,包括:Optionally, the determining the device information corresponding to the watermark graphic includes:

基于所述水印图形中的各个字符点阵图形对应的水印信息,确定所述水印图形对应的设备信息。The device information corresponding to the watermark graphic is determined based on the watermark information corresponding to each character dot matrix graphic in the watermark graphic.

可选的,所述确定所述水印图形对应的实际设备信息之后,还包括:Optionally, after determining the actual device information corresponding to the watermark graphic, the method further includes:

当所述第一检验信息与所述第二校验信息相同时,确定所述水印图形未被篡改,否则,确定所述水印图形已被篡改。When the first verification information is the same as the second verification information, it is determined that the watermark graphic has not been tampered with; otherwise, it is determined that the watermark graphic has been tampered with.

可选的,所述校验信息包括校验值、校验点阵图形中的一种或两种。Optionally, the verification information includes one or both of a verification value and a verification lattice pattern.

第三方面,本发明实施例还提出一种水印添加装置,包括点阵图形确定单元和水印图形添加单元,其中:In a third aspect, an embodiment of the present invention further provides a watermark adding device, including a dot matrix pattern determination unit and a watermark pattern adding unit, wherein:

所述点阵图形确定单元,用于确定设备信息及所述设备信息的各个字符对应的字符点阵图形,并基于所述设备信息的字符确定所述设备信息对应的校验点阵图形;The lattice pattern determination unit is used to determine the device information and the character lattice pattern corresponding to each character of the device information, and determine the check lattice pattern corresponding to the device information based on the characters of the device information;

所述水印图形添加单元,用于基于所述各个字符对应的字符点阵图形和所述校验点阵图形,生成所述设备信息对应的水印图形,并将所述设备信息对应的水印图形添加至保密信息。The watermark graphic adding unit is configured to generate a watermark graphic corresponding to the device information based on the character dot matrix graphic corresponding to each character and the check dot matrix graphic, and add the watermark graphic corresponding to the device information to confidential information.

可选的,所述点阵图形确定单元,用于:Optionally, the lattice pattern determination unit is used for:

基于预设点阵图形对照表,确定所述各个字符对应的字符点阵图形;Based on the preset lattice pattern comparison table, determine the character lattice pattern corresponding to each character;

基于所述设备信息的字符及预设校验参数确定所述设备信息对应的校验信息;Determine the verification information corresponding to the device information based on the characters of the device information and preset verification parameters;

基于所述预设点阵图形对照表确定所述校验信息对应的点阵图形,并将所述校验信息对应的点阵图形确定为所述设备信息对应的校验点阵图形。The lattice pattern corresponding to the verification information is determined based on the preset lattice pattern comparison table, and the lattice pattern corresponding to the verification information is determined as the verification lattice pattern corresponding to the device information.

可选的,所述点阵图形确定单元,用于:Optionally, the lattice pattern determination unit is used for:

确定起始点阵,按照预设水印格式排列所述起始点阵、所述各个字符对应的字符点阵图形和所述校验点阵图形,生成所述设备信息对应的水印图形。Determining a starting dot matrix, arranging the starting dot matrix, the character dot matrix graphics corresponding to each character, and the check dot matrix graphics according to a preset watermark format, to generate a watermark graphic corresponding to the device information.

第四方面,本发明实施例还提出一种屏幕图像泄漏追踪装置,包括水印图形提取单元、信息确定单元及泄漏设备确定单元,其中:In a fourth aspect, an embodiment of the present invention further provides a screen image leak tracking device, including a watermark image extraction unit, an information determination unit, and a leak device determination unit, wherein:

所述水印图形提取单元,用于提取获取的屏幕图像中的水印图形,其中,所述水印图形是采用如第一方面任一项所述的水印添加方法获取的;The watermark graphic extraction unit is used to extract the watermark graphic in the acquired screen image, wherein the watermark graphic is acquired by using the watermark adding method according to any one of the first aspects;

所述信息确定单元,用于基于所述水印图形中的校验点阵图形确定第一检验信息,其中,所述校验点阵图形基于字符点阵图形生成,所述字符点阵图形与生成所述屏幕图像的设备的设备信息对应;以及用于基于所述水印图形中的所有字符点阵图形确定第二校验信息,并确定所述水印图形对应的设备信息;The information determination unit is configured to determine the first inspection information based on the check lattice pattern in the watermark pattern, wherein the check lattice pattern is generated based on the character lattice pattern, and the character lattice pattern is generated based on the character lattice pattern. The device information corresponding to the device of the screen image; and for determining the second check information based on all the character lattice graphics in the watermark graphics, and determining the device information corresponding to the watermark graphics;

所述泄漏设备确定单元,用于当所述第一检验信息与所述第二校验信息相同时,将所述水印图形对应的设备信息,确定为泄漏所述保密信息的设备信息。The leaking device determining unit is configured to determine the device information corresponding to the watermark image as the device information leaking the confidential information when the first verification information is the same as the second verification information.

可选的,所述信息确定单元,用于:Optionally, the information determining unit is used for:

在所述屏幕图像中确定起始点阵,基于所述起始点阵及预设水印格式,确定预设数量个字符点阵图形及校验点阵图形;determining a starting dot matrix in the screen image, and determining a preset number of character dot matrix graphics and check dot matrix graphics based on the starting dot matrix and a preset watermark format;

基于所述起始点阵和所述预设数量个字符点阵图形及校验点阵图形,生成所述水印图形,并基于所述校验点阵图形生成第一校验信息。The watermark pattern is generated based on the starting dot matrix and the preset number of character dot matrix patterns and check dot matrix patterns, and first verification information is generated based on the check dot matrix pattern.

可选的,所述信息确定单元,用于:Optionally, the information determining unit is used for:

基于预设点阵图形对照表,确定所述水印图形中的各个字符点阵图形对应的字符;Based on a preset lattice pattern comparison table, determine the character corresponding to each character lattice pattern in the watermark pattern;

基于所述各个字符点阵图形对应的字符,及预设校验参数确定所述水印图形对应的第二校验信息。The second verification information corresponding to the watermark graphics is determined based on the characters corresponding to the respective character lattice graphics and preset verification parameters.

可选的,所述泄漏设备确定单元,用于:Optionally, the leakage device determining unit is used for:

基于所述水印图形中的各个字符点阵图形对应的水印信息,确定所述水印图形对应的设备信息。The device information corresponding to the watermark graphic is determined based on the watermark information corresponding to each character dot matrix graphic in the watermark graphic.

可选的,所述泄漏设备确定单元,还用于:Optionally, the leakage device determining unit is further configured to:

当所述第一检验信息与所述第二校验信息相同时,确定所述水印图形未被篡改,否则,确定所述水印图形已被篡改。When the first verification information is the same as the second verification information, it is determined that the watermark graphic has not been tampered with; otherwise, it is determined that the watermark graphic has been tampered with.

可选的,所述校验信息包括校验值、校验点阵图形中的一种或两种。Optionally, the verification information includes one or both of a verification value and a verification lattice pattern.

第五方面,本发明实施例还提出一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如第一方面所述的水印添加方法的步骤。In a fifth aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and running on the processor, where the processor implements the first aspect when the processor executes the program The steps of the watermark adding method.

第六方面,本发明实施例还提出一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如第二方面所述的屏幕图像泄漏追踪方法的步骤。In a sixth aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and running on the processor, the processor implements the second aspect when the processor executes the program The steps of the screen image leak tracking method.

第七方面,本发明实施例还提出一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机程序,所述计算机程序使所述计算机执行如第一方面所述的水印添加方法的步骤。In a seventh aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, where the non-transitory computer-readable storage medium stores a computer program, and the computer program causes the computer to execute as described in the first aspect The steps of the watermark adding method.

第八方面,本发明实施例还提出一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机程序,所述计算机程序使所述计算机执行如第二方面所述的屏幕图像泄漏追踪方法的步骤。In an eighth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, where the non-transitory computer-readable storage medium stores a computer program, and the computer program causes the computer to execute as described in the second aspect Steps of the Screen Image Leak Tracking Method.

第九方面,本发明实施例还提出一种计算机程序产品,所述计算机程序产品包括计算机可执行指令,所述指令在被处理器执行时用于实现如第一方面所述的水印添加方法。In a ninth aspect, an embodiment of the present invention further provides a computer program product, where the computer program product includes computer-executable instructions, which when executed by a processor are used to implement the watermark adding method according to the first aspect.

第十方面,本发明实施例还提出一种计算机程序产品,所述计算机程序产品包括计算机可执行指令,所述指令在被处理器执行时用于实现如第二方面所述的屏幕图像泄漏追踪方法。In a tenth aspect, an embodiment of the present invention further provides a computer program product, where the computer program product includes computer-executable instructions, and when executed by a processor, the instructions are used to implement the screen image leak tracking according to the second aspect method.

由上述技术方案可知,本发明实施例通过基于设备信息的各个字符对应的字符点阵图形,基于设备信息的字符确定设备信息对应的校验点阵图形,并基于各个字符对应的字符点阵图形和校验点阵图形,生成设备信息对应的水印图形,并将设备信息对应的水印图形添加至保密信息。这样,在设备信息的各个字符对应的字符点阵图形的基础上,进一步结合基于设备信息的字符确定的校验点阵图形,生成设备信息对应的水印图形,可以在一定程度上避免水印图形被篡改,从而可以有效避免在水印图形被篡改时,将屏幕图像中的被篡改后的水印图形对应的设备信息,误判为泄漏保密信息的设备信息的概率,进而可以在一定程度上降低误判率,提高确定的泄漏保密信息的设备信息的准确性。It can be seen from the above technical solutions that in the embodiment of the present invention, the check lattice pattern corresponding to the device information is determined based on the character lattice pattern corresponding to each character based on the device information, and the character lattice pattern corresponding to each character is determined based on the character lattice pattern of the device information. and the check lattice pattern, generate the watermark pattern corresponding to the device information, and add the watermark pattern corresponding to the device information to the confidential information. In this way, on the basis of the character lattice pattern corresponding to each character of the device information, and further combining with the check lattice pattern determined based on the characters of the device information, the watermark pattern corresponding to the device information is generated, which can prevent the watermark pattern from being damaged to a certain extent. tampering, which can effectively avoid the probability of misjudging the device information corresponding to the tampered watermark graphic in the screen image as the device information leaking confidential information when the watermark graphic is tampered with, thereby reducing misjudgment to a certain extent. rate and improve the accuracy of device information identified to leak confidential information.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative efforts.

图1为本发明一实施例提供的一种水印添加方法的流程示意图;1 is a schematic flowchart of a method for adding a watermark according to an embodiment of the present invention;

图2为本发明一实施例提供的一种预设点阵图形对照表的示意图;FIG. 2 is a schematic diagram of a preset dot matrix graphic comparison table according to an embodiment of the present invention;

图3为本发明一实施例提供的一种字符点阵图形的示意图;3 is a schematic diagram of a character dot matrix graphic provided by an embodiment of the present invention;

图4为本发明一实施例提供的一种校验点阵图形的示意图;4 is a schematic diagram of a check lattice pattern provided by an embodiment of the present invention;

图5为本发明一实施例提供的一种水印图形的示意图;5 is a schematic diagram of a watermark graphic according to an embodiment of the present invention;

图6为本发明一实施例提供的一种屏幕图像泄漏追踪方法的流程示意图;6 is a schematic flowchart of a method for tracking screen image leakage according to an embodiment of the present invention;

图7为本发明一实施例提供的一种水印图形的示意图;7 is a schematic diagram of a watermark graphic according to an embodiment of the present invention;

图8为本发明一实施例提供的一种水印添加装置的结构示意图;FIG. 8 is a schematic structural diagram of a watermarking apparatus according to an embodiment of the present invention;

图9为本发明一实施例提供的一种屏幕图像泄漏追踪装置的结构示意图;FIG. 9 is a schematic structural diagram of a screen image leak tracking device according to an embodiment of the present invention;

图10为本发明一实施例提供的电子设备的逻辑框图;10 is a logical block diagram of an electronic device provided by an embodiment of the present invention;

图11为本发明一实施例提供的电子设备的逻辑框图。FIG. 11 is a logical block diagram of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

图1示出了本实施例提供的一种水印添加方法的流程示意图,包括:FIG. 1 shows a schematic flowchart of a watermark adding method provided in this embodiment, including:

S101,确定设备信息及设备信息的各个字符对应的字符点阵图形,并基于设备信息的字符确定设备信息对应的校验点阵图形。S101 , determining the device information and the character lattice pattern corresponding to each character of the device information, and determining the check lattice pattern corresponding to the device information based on the characters of the device information.

其中,所述设备信息指档查看保密信息的设备对应的信息,该设备信息可以是设备的ID、标识、IP等信息。Wherein, the device information refers to information corresponding to a device for viewing confidential information, and the device information may be information such as an ID, an identifier, an IP, and the like of the device.

所述字符点阵图形是与设备信息的各个字符对应的点阵图形。The character bitmap is a bitmap corresponding to each character of the device information.

所述校验点阵图形是基于设备信息的字符生成的点阵图形。The check dot pattern is a dot pattern generated based on characters of device information.

在实施中,当用户通过某设备查看保密信息时,设备可以调用内部安装的软件生成由字符点阵图形和校验点阵图形组成的水印图形,并在将该水印图形添加至前述保密信息后,呈现给用户,这样当有用户对保密信息进行屏幕截图或拍照时,其得到的屏幕图像中则包含有前述水印图形,以使管理设备在接收到含有保密信息的屏幕图像时可以提取相应的水印图形,以确定泄漏保密信息的设备信息。具体的,首先,可以确定该设备的设备信息,并可以确定设备信息中的各个字符对应的字符点阵图形。然后,可以基于前述设备信息的字符确定设备信息对应的校验点阵图形,可以理解,前述用于确定设备信息对应的校验点阵图形的字符,可以是设备信息的全部字符也可以是设备信息的部分字符,例如,当设备信息中含有字母(如为A13405)时,则可以仅基于设备信息中除字母之外的字符(即13405)确定设备信息对应的校验点阵图形。In implementation, when a user views confidential information through a certain device, the device can call the internally installed software to generate a watermark graphic composed of character dot matrix graphics and check dot matrix graphics, and after adding the watermark graphic to the aforementioned confidential information , presented to the user, so that when a user takes a screenshot or takes a picture of the confidential information, the obtained screen image contains the aforementioned watermark graphic, so that the management device can extract the corresponding screen image when it receives the confidential information. Watermark graphics to identify devices leaking confidential information. Specifically, first, the device information of the device can be determined, and the character dot matrix pattern corresponding to each character in the device information can be determined. Then, the check lattice pattern corresponding to the device information can be determined based on the characters of the aforementioned device information. It can be understood that the aforementioned characters used to determine the check lattice pattern corresponding to the device information can be all characters of the device information or the device information. Some characters of the information, for example, when the device information contains letters (eg A13405), the check dot pattern corresponding to the device information can be determined only based on the characters other than letters (ie 13405) in the device information.

S102,基于各个字符对应的字符点阵图形和校验点阵图形,生成设备信息对应的水印图形,并将设备信息对应的水印图形添加至保密信息。S102 , based on the character lattice pattern and the check lattice pattern corresponding to each character, generate a watermark pattern corresponding to the device information, and add the watermark pattern corresponding to the device information to the confidential information.

在实施中,在确定出设备信息的各个字符对应的字符点阵图形,及设备信息对应的校验点阵图形之后,可以基于前述各个字符对应的字符点阵图形以及前述校验点阵图形,生成前述设备信息对应的水印图形,如可以将前述各个字符对应的字符点阵图形以及前述校验点阵图形进行排列组合得到设备信息对应的水印图形。然后,可以将前述生成的设备信息对应的水印图形添加至上述保密信息,以使当有用户对保密信息进行屏幕截图或拍照时,其得到的屏幕图像中则包含有前述水印图形。In implementation, after determining the character lattice pattern corresponding to each character of the device information and the check lattice pattern corresponding to the device information, based on the character lattice pattern corresponding to each character and the foregoing check lattice pattern, To generate the watermark graphics corresponding to the aforementioned device information, for example, the character lattice graphics corresponding to the aforementioned respective characters and the aforementioned check lattice graphics can be arranged and combined to obtain the watermark graphics corresponding to the device information. Then, the watermark graphic corresponding to the generated device information can be added to the above-mentioned confidential information, so that when a user takes a screenshot or takes a picture of the confidential information, the obtained screen image contains the above-mentioned watermarked graphic.

由上述技术方案可知,本发明实施例通过基于设备信息的各个字符对应的字符点阵图形,基于设备信息的字符确定设备信息对应的校验点阵图形,并基于各个字符对应的字符点阵图形和校验点阵图形,生成设备信息对应的水印图形,并将设备信息对应的水印图形添加至保密信息。这样,在设备信息的各个字符对应的字符点阵图形的基础上,进一步结合基于设备信息的字符确定的校验点阵图形,生成设备信息对应的水印图形,可以在一定程度上避免水印图形被篡改,从而可以有效避免在水印图形被篡改时,将屏幕图像中的被篡改后的水印图形对应的设备信息,误判为泄漏保密信息的设备信息的概率,进而可以在一定程度上降低误判率,提高确定的泄漏保密信息的设备信息的准确性。It can be seen from the above technical solutions that in the embodiment of the present invention, the check lattice pattern corresponding to the device information is determined based on the character lattice pattern corresponding to each character based on the device information, and the character lattice pattern corresponding to each character is determined based on the character lattice pattern of the device information. and the check lattice pattern, generate the watermark pattern corresponding to the device information, and add the watermark pattern corresponding to the device information to the confidential information. In this way, on the basis of the character lattice pattern corresponding to each character of the device information, and further combining with the check lattice pattern determined based on the characters of the device information, the watermark pattern corresponding to the device information is generated, which can prevent the watermark pattern from being damaged to a certain extent. tampering, which can effectively avoid the probability of misjudging the device information corresponding to the tampered watermark graphic in the screen image as the device information leaking confidential information when the watermark graphic is tampered with, thereby reducing misjudgment to a certain extent. rate and improve the accuracy of device information identified to leak confidential information.

进一步地,在上述方法实施例的基础上,可以基于预设点阵图形及预设校验参数确定字符点阵图形和校验点阵图形,相应的上述步骤S101的处理可以如下:基于预设点阵图形对照表,确定各个字符对应的字符点阵图形。基于设备信息的字符及预设校验参数确定设备信息对应的校验信息;基于预设点阵图形对照表确定校验信息对应的点阵图形,并将校验信息对应的点阵图形确定为设备信息对应的校验点阵图形。Further, on the basis of the foregoing method embodiments, the character lattice pattern and the check lattice pattern may be determined based on the preset lattice pattern and the preset verification parameters, and the corresponding processing of the above step S101 may be as follows: based on the preset Dot matrix graphics comparison table, determine the character lattice graphics corresponding to each character. Determine the verification information corresponding to the device information based on the characters of the device information and the preset verification parameters; determine the bitmap corresponding to the verification information based on the preset bitmap comparison table, and determine the bitmap corresponding to the verification information as The checkpoint pattern corresponding to the device information.

其中,所述预设校验参数指预先设置的用于确定设备信息对应的校验信息的参数,如可以是512。The preset verification parameter refers to a preset parameter for determining verification information corresponding to the device information, such as 512.

在实施中,可以基于预设点阵图形对照表,确定上述设备信息中各个字符对应的字符点阵图形,并可以基于设备信息的字符预设校验参数确定设备信息对应的校验信息,该校验可以是一个具体的数值或者字符串。然后,可以基于前述预设点阵图形对照表确定前述校验信息对应的点阵图形,并可以将前述校验信息对应的点阵图形确定为设备信息对应的校验点阵图形。这样,基于预设点阵图形对照表和预设校验参数确定字符点阵图形和校验点阵图形,便于管理设备在接收到含有保密信息的屏幕图像时可以提取相应的水印图形,并可以基于相同的可以按照相同的预设点阵图形对照表和预设校验参数,确定泄漏保密信息的设备信息,从而可以进一步提高确定的屏幕图像中的水印图形对应的设备信息的准确性,进而可以进一步降低误判率。In implementation, the character lattice pattern corresponding to each character in the above-mentioned device information can be determined based on the preset lattice pattern comparison table, and the verification information corresponding to the device information can be determined based on the character preset verification parameters of the device information. Validation can be a specific number or string. Then, the lattice pattern corresponding to the verification information can be determined based on the preset lattice pattern comparison table, and the lattice pattern corresponding to the verification information can be determined as the verification lattice pattern corresponding to the device information. In this way, the character lattice pattern and the check lattice pattern are determined based on the preset lattice pattern comparison table and the preset verification parameters, so that the management device can extract the corresponding watermark pattern when receiving the screen image containing confidential information, and can Based on the same preset lattice pattern comparison table and preset verification parameters, the device information that leaks confidential information can be determined, so that the accuracy of the device information corresponding to the watermark graphics in the determined screen image can be further improved. The false positive rate can be further reduced.

进一步地,在上述方法实施例的基础上,可以结合起始点阵和预设水印格式生成设备信息对应的水印图形,相应的上述步骤S102的处理可以如下:确定起始点阵,按照预设水印格式排列起始点阵、各个字符对应的字符点阵图形和校验点阵图形,生成设备信息对应的水印图形。Further, on the basis of the above method embodiments, a watermark graphic corresponding to the device information can be generated in combination with the starting dot matrix and the preset watermark format, and the corresponding processing of the above step S102 can be as follows: determining the starting dot matrix, according to the preset watermark format. Arrange the starting dot matrix, the character dot matrix pattern corresponding to each character, and the check dot matrix pattern to generate the watermark pattern corresponding to the device information.

其中,所述预设水印格式指预先设定的对起始点阵、各个字符对应的字符点阵图形及校验点阵图形进行排列组合生成水印图形的格式。The preset watermark format refers to a preset format for generating a watermark graphic by arranging and combining a starting dot matrix, a character dot matrix pattern corresponding to each character, and a check dot matrix pattern.

在实施中,可以结合起始点阵和预设水印格式生成设备信息对应的水印图形,具体的,首先,可以确定起始点阵。然后,可以按照预设水印格式排列前述起始点阵、上述各个字符对应的字符点阵图形及校验点阵图形,生成上述设备信息对应的水印图形。这样,按照预设水印格式生成水印图形,可以使得在提取含有保密信息的屏幕图像中的水印图形时,可以按照相同的格式提取,使得提取到的屏幕图像中的水印图形更准确,从而可以进一步提高确定的屏幕图像中的水印图形对应的设备信息的准确性,降低误判率。In implementation, a watermark graphic corresponding to the device information may be generated by combining the starting dot matrix and the preset watermark format. Specifically, first, the starting dot matrix may be determined. Then, the above-mentioned starting dot matrix, the character dot matrix pattern corresponding to each of the above-mentioned characters, and the check dot matrix pattern can be arranged according to the preset watermark format, so as to generate the watermark pattern corresponding to the above-mentioned device information. In this way, the watermark graphics are generated according to the preset watermark format, so that when extracting the watermark graphics in the screen image containing confidential information, the watermark graphics can be extracted according to the same format, so that the extracted watermark graphics in the screen image are more accurate, and further The accuracy of the device information corresponding to the watermark graphic in the determined screen image is improved, and the misjudgment rate is reduced.

以预设点阵图形对照表如图2所示为例,假设设备信息为A1401,且水印图形的格式为9*9的九宫格形式,则可以得到设备信息的各个字符对应的字符点阵图形可以如图3所示。假设预设校验规则为:校验信息等于设备信息中的数字信息与预设校验参数的余数。且假设预设参数为512为例,可以得到1401与512的余数为377,即设备信息对应的校验信息为377。然后可以将校验信息377转化为二进制101111001,并用预设格式点阵表示,假设预设格式点阵为3*3点阵,则可以将校验信息对应的校验点阵图形表示如图4所示。然后,可以将图2中所示的起始点阵、前述设备信息的各个字符点阵图形按照顺序排列,将前述校验点阵图形排在九宫格的最后一格,生成设备信息对应的水印图形如图5所示。Taking the preset bitmap comparison table as shown in Figure 2 as an example, assuming that the device information is A1401, and the format of the watermark graphics is the nine-square grid format of 9*9, the character bitmap corresponding to each character of the device information can be obtained. As shown in Figure 3. It is assumed that the preset verification rule is: the verification information is equal to the remainder of the digital information in the device information and the preset verification parameter. And assuming that the preset parameter is 512 as an example, it can be obtained that the remainder of 1401 and 512 is 377, that is, the check information corresponding to the device information is 377. Then, the verification information 377 can be converted into binary 101111001 and represented by a preset format lattice. Assuming that the preset format lattice is a 3*3 lattice, the graphic representation of the verification lattice corresponding to the verification information can be shown in Figure 4 shown. Then, the starting lattice shown in FIG. 2 and each character lattice pattern of the aforementioned equipment information can be arranged in order, the aforementioned check lattice pattern can be arranged in the last grid of the nine-square grid, and the watermark pattern corresponding to the equipment information can be generated as follows: shown in Figure 5.

图6示出了本实施例提供的一种屏幕图像泄漏追踪方法的流程示意图,包括:FIG. 6 shows a schematic flowchart of a method for tracking screen image leakage provided by this embodiment, including:

S601,提取获取的屏幕图像中的水印图形。S601, extract the watermark graphic in the acquired screen image.

其中,所述水印图形是采用图1所示的各方法实施例中的任一水印添加方法获取的。Wherein, the watermark graphic is obtained by adopting any watermark adding method in each method embodiment shown in FIG. 1 .

在实施中,为在保密信息发生泄漏之后,可以追踪到泄漏该保密信息的设备,以根据泄漏保密的设备信息进行进一步查询和追责,可以根据屏幕图像中的水印图形及校验信息确定泄漏保密信息的设备信息。具体的,当管理设备获取到含有保密信息的屏幕图像(如可以是屏幕截图、或者照片等图像)时,可以从前述屏幕图像中提取水印图形。In implementation, after the leakage of confidential information, the device that leaked the confidential information can be traced, and further inquiry and accountability can be carried out according to the leaked device information, and the leakage can be determined according to the watermark pattern in the screen image and the verification information. Device Information for Confidential Information. Specifically, when the management device acquires a screen image containing confidential information (such as a screenshot, or an image such as a photo), the watermark graphic can be extracted from the aforementioned screen image.

S602,基于水印图形中的校验点阵图形确定第一检验信息。S602: Determine the first check information based on the check dot matrix pattern in the watermark pattern.

其中,所述第一校验信息指直接根据屏幕图像中的水印图形中的校验点阵图形确定的校验信息。Wherein, the first verification information refers to verification information directly determined according to the verification dot matrix pattern in the watermark pattern in the screen image.

所述校验点阵图形基于字符点阵图形生成,所述字符点阵图形与生成所述屏幕图像的设备的设备信息对应。The check lattice pattern is generated based on a character lattice pattern, and the character lattice pattern corresponds to device information of a device that generates the screen image.

在实施中,在提取到已经获取的屏幕图像中的水印图形之后,可以从前述屏幕图像中的水印图形中提取校验点阵图形,如可以采用图1所示的任一水印添加方法提取。然后,可以基于该从水印图形中提取的校验点阵图形确定第一校验信息。In implementation, after extracting the watermark pattern in the acquired screen image, the check dot pattern can be extracted from the watermark pattern in the aforementioned screen image, for example, any watermark adding method shown in FIG. 1 can be used to extract it. Then, the first check information may be determined based on the check lattice pattern extracted from the watermark pattern.

S603,基于水印图形中的所有字符点阵图形确定第二校验信息,并确定水印图形对应的设备信息。S603: Determine the second check information based on all the character lattice patterns in the watermark pattern, and determine the device information corresponding to the watermark pattern.

其中,所述第二校验信息指基于上述获取的屏幕图像中的水印图形中的所有字符点阵图形确定的校验信息,如可以是基于屏幕图像中的水印图形中的所有字符点阵图形通过分析和计算得出的。Wherein, the second verification information refers to verification information determined based on all character dot matrix graphics in the watermark graphics in the screen image obtained above, for example, it may be based on all character bit matrix graphics in the watermark graphics in the screen image. obtained through analysis and calculations.

在实施中,在提取到屏幕图像中的水印图形,并确定第一校验信息之后,可以基于前述屏幕图像中的水印图形中的所有字符点阵图形确定第二校验信息。然后,可以基于上述屏幕图像中的水印图形中的所有字符点阵图形,确定可能是泄漏上述保密信息的设备信息,如可以根据预设点阵图形对照表(参见图2)确定可能是泄漏上述保密信息的设备的设备信息,该设备信息可以是设备的ID、标识、IP等信息。In implementation, after the watermark pattern in the screen image is extracted and the first verification information is determined, the second verification information may be determined based on all character lattice patterns in the watermark pattern in the aforementioned screen image. Then, based on all the character bitmaps in the watermark graphics in the above-mentioned screen image, it can be determined that the device information that may leak the above-mentioned confidential information, for example, it can be determined according to a preset bitmap comparison table (see FIG. 2) that may be leaking the above-mentioned confidential information. The device information of the device of the confidential information, the device information may be information such as the ID, identification, and IP of the device.

S604,当第一检验信息与第二校验信息相同时,将水印图形对应的设备信息,确定为泄漏保密信息的设备信息。S604, when the first verification information is the same as the second verification information, determine the device information corresponding to the watermark image as the device information leaking confidential information.

在实施中,在确定第二校验信息,并确定上述水印图形对应的设备信息之后,可以判断上述第一校验信息以及前述第二校验信息是否相同,当上述第一校验信息以及前述第二校验信息相同时,则可以将前述基于屏幕图像中的水印图形得到设备信息,确定为泄漏保密信息的设备信息。否则,则认为该屏幕图像中的水印图形是无效图形,校验失败。可以理解,由于第一校验信息是直接根据从上述屏幕图像中提取的校验点阵图形确定的,第二校验信息是基于屏幕图像中的水印图形中的所有字符点阵图形确定的,故而,当屏幕图像中的水印图形中的所有字符点阵图形有一个或多个被篡改时,则可能会导致第一校验信息和第二校验信息不同。In implementation, after determining the second verification information and determining the device information corresponding to the watermark image, it can be determined whether the first verification information and the second verification information are the same. When the first verification information and the aforementioned When the second verification information is the same, the aforementioned device information obtained based on the watermark in the screen image may be determined as the device information leaking confidential information. Otherwise, it is considered that the watermark graphic in the screen image is an invalid graphic, and the verification fails. It can be understood that, since the first verification information is directly determined according to the verification lattice pattern extracted from the above-mentioned screen image, the second verification information is determined based on all character lattice patterns in the watermark graphics in the screen image, Therefore, when one or more of all the character lattice patterns in the watermark pattern in the screen image are tampered with, the first check information and the second check information may be different.

由上述技术方案可知,本发明实施例通过基于屏幕图像中的水印图形中的校验点阵图形确定第一校验信息,并基于水印图形中的所有字符点阵图形计算第二校验信息,在第一检验信息与第二校验信息相同时,将水印图形对应的设备信息确定为泄漏保密信息的设备信息。这样,在水印图形的基础上,进一步结合直接基于屏幕图像中的水印图形中的校验点阵图形确定的第一校验信息,及基于屏幕图像中的水印图形中的所有字符点阵图形确定的第二校验信息,确定泄漏保密信息的设备信息,且只有在第一检验信息与第二校验信息相同时,才将水印图形对应的设备信息确定为泄漏保密信息的设备信息,从而可以在一定程度上避免在水印图形被篡改时,将屏幕图像中的水印图形对应的设备信息,误判为泄漏保密信息的设备信息的概率,进而可以在一定程度上降低误判率,提高确定的泄漏保密信息的设备信息的准确性。It can be known from the above technical solutions that in the embodiment of the present invention, the first verification information is determined based on the verification dot matrix pattern in the watermark graphic in the screen image, and the second verification information is calculated based on all the character dot matrix graphics in the watermark graphic, When the first verification information is the same as the second verification information, the device information corresponding to the watermark image is determined as the device information leaking confidential information. In this way, on the basis of the watermark graphics, the first verification information directly determined based on the verification dot matrix graphics in the watermark graphics in the screen image is further combined, and the first verification information determined based on all the character bit matrix graphics in the watermark graphics in the screen image is further combined. The second verification information of the watermark is determined to determine the device information that leaks the confidential information, and only when the first verification information is the same as the second verification information, the device information corresponding to the watermark pattern is determined as the device information that leaks the confidential information, so that the To a certain extent, when the watermark graphic is tampered with, the probability of misjudging the device information corresponding to the watermark graphic in the screen image as the device information leaking confidential information can be avoided. Accuracy of device information leaking confidential information.

进一步地,在上述方法实施例的基础上,可以基于预设水印格式,确定屏幕图像中的水印图形,相应的上述步骤S602的处理可以如下:在屏幕图像中确定起始点阵,基于起始点阵及预设水印格式,确定预设数量个字符点阵图形及校验点阵图形;基于起始点阵和预设数量个字符点阵图形及校验点阵图形,生成水印图形,并基于前述校验点阵图形生成第一校验信息。Further, on the basis of the above method embodiments, the watermark graphics in the screen image may be determined based on the preset watermark format, and the corresponding processing of the above step S602 may be as follows: determining a starting dot matrix in the screen image, based on the starting dot matrix and a preset watermark format, determine a preset number of character lattice graphics and check lattice graphics; The first verification information is generated by verifying the lattice pattern.

其中,预设水印格式指预先设定的生成水印图形的格式,如可以是9*9的九宫格格式。The preset watermark format refers to a preset format for generating a watermark graphic, such as a 9*9 nine-square format.

所述起始点阵指预设的每个水印图形中的第一个点阵,即标志着水印图形的开始的点阵,如可以将图2中的起始符号设定为起始点阵。The starting dot matrix refers to the first dot matrix in each preset watermark pattern, that is, the dot matrix that marks the beginning of the watermark pattern. For example, the starting symbol in FIG. 2 can be set as the starting dot matrix.

所述预设数量指基于预设水印格式确定的水印图形中应包括的字符点阵图形的数量。The preset number refers to the number of character lattice graphics that should be included in the watermark graphics determined based on the preset watermark format.

在实施中,在接收到屏幕图像之后,首先,可以在屏幕图像中确定起始点阵,如可以根据上述设定的起始点阵的具体图案,在屏幕图像中找到与该起始点阵的具体图案相同的图案,确定为起始点阵。然后,可以按照预设水印格式,从该起始点阵开始确定预设数量个字符点阵图形,以及校验点阵图形。之后,可以基于前述起始点阵、前述字符点阵图形以及前述校验点阵图形,生成屏幕图像中的水印图形。然后,还可以基于前述校验点阵图形生成第一校验信息。In implementation, after receiving the screen image, first, the starting dot matrix can be determined in the screen image. For example, the specific pattern of the starting dot matrix can be found in the screen image according to the specific pattern of the starting dot matrix set above. The same pattern is determined as the starting lattice. Then, according to the preset watermark format, a preset number of character lattice patterns and check lattice patterns can be determined from the starting lattice. Afterwards, the watermark pattern in the screen image can be generated based on the aforementioned starting dot matrix, the aforementioned character dot matrix pattern, and the aforementioned check dot matrix pattern. Then, the first verification information may also be generated based on the aforementioned verification lattice pattern.

以屏幕图像中的水印图形如图5所示为例,其中第一个点阵为起始点阵,第2到第6个为字符点阵图形,第7和第8个点阵图形为空白点阵即未对应有字符或校验值的点阵,第9个为校验点阵图形。可以理解,前述获取水印图形和提取第一校验信息的过程,可以是前述对保密信息添加水印图形的逆过程,在此不再赘述。这样,根据起始点阵确定水印图形,可以进一步提高确定水印图形准确性,从而可以进一步降低误判率,提高确定的泄漏保密信息的设备信息的准确性。同时,根据起始点阵确定水印图形,还可以有效提高确定水印图形的速度,从而可以有效提高确定泄漏保密信息的设备信息的效率。Take the watermark graphic in the screen image as an example as shown in Figure 5, where the first dot matrix is the starting dot matrix, the second to sixth are character dot matrix graphics, and the seventh and eighth dot matrix graphics are blank dot matrixes. That is, there is no dot matrix with characters or check values, and the ninth is the check dot pattern. It can be understood that the foregoing process of acquiring the watermark pattern and extracting the first verification information may be the inverse process of the foregoing adding the watermark pattern to the confidential information, which will not be repeated here. In this way, determining the watermark pattern according to the starting lattice can further improve the accuracy of determining the watermark pattern, thereby further reducing the misjudgment rate and improving the accuracy of the determined device information leaking confidential information. At the same time, determining the watermark pattern according to the starting dot matrix can also effectively improve the speed of determining the watermark pattern, thereby effectively improving the efficiency of determining the device information leaking confidential information.

进一步地,在上述方法实施例的基础上,还可以根据水印图形中的所有字符点阵图形确定第二校验信息,相应的上述步骤S603的部分处理可以如下:基于预设点阵图形对照表,确定水印图形中的各个字符点阵图形对应的水印信息;基于各个字符点阵图形对应的水印信息,及预设校验参数确定水印图形对应的第二校验信息。Further, on the basis of the above method embodiments, the second verification information can also be determined according to all the character lattice graphics in the watermark graphics, and the corresponding part of the processing of the above step S603 can be as follows: based on the preset lattice graphics comparison table , determine the watermark information corresponding to each character dot-matrix pattern in the watermark pattern; determine the second check information corresponding to the watermark pattern based on the watermark information corresponding to each character dot-matrix pattern and the preset check parameters.

其中,所述第二校验信息指根据获取到的屏幕图像中的水印图形的各个字符点阵图形确定的校验信息。Wherein, the second verification information refers to verification information determined according to each character lattice pattern of the watermark graphic in the acquired screen image.

所述预设点阵图形对照表指预先设定的各个字符关系,如可以如图2所示。The preset dot matrix graphic comparison table refers to the preset relationship of each character, as shown in FIG. 2 .

所述水印信息指预设点阵图形对照表中各个点阵对应的字符,如可以是可能出现在设备信息中的字符。The watermark information refers to characters corresponding to each dot matrix in the preset dot matrix graphic comparison table, such as characters that may appear in device information.

在实施中,在获取到屏幕图像中的水印图形之后,可以确定水印图形对应的第二校验信息。具体的,首先,可以根据预设点阵图形对照表,确定各个字符点阵图形对应的水印信息。然后,可以基于前述确定出的各个字符点阵图形对应的水印信息,以及预设的校验参数计算水印图形实际对应的第二校验信息,以基于前述屏幕图像中的水印图形、上述第一校验信息和前述第二校验信息,确定泄漏保密信息的设备信息。可以理解,前述获取屏幕图像中的水印图形和提取第一校验信息的过程,可以是前述对保密信息添加水印图形的逆过程,在此不再赘述。这样,基于预设点阵图形对照表确定水印信息,并基于水印信息及预设校验参数确定第二校验信息,可以使得确定出的第二校验信息更准确,进而可以进一步提高确定出的泄漏保密信息的设备信息的准确性。In implementation, after the watermark graphic in the screen image is acquired, the second verification information corresponding to the watermark graphic can be determined. Specifically, first, the watermark information corresponding to each character bitmap can be determined according to a preset bitmap comparison table. Then, the second verification information actually corresponding to the watermark graphics can be calculated based on the watermark information corresponding to the respective character lattice graphics determined above and the preset verification parameters, so as to be based on the watermark graphics in the aforementioned screen image, the above-mentioned first verification information The verification information and the aforementioned second verification information are used to determine the device information that leaks the confidential information. It can be understood that the aforementioned process of acquiring the watermark graphic in the screen image and extracting the first verification information may be the reverse process of the aforementioned adding the watermark graphic to the confidential information, which will not be repeated here. In this way, the watermark information is determined based on the preset dot matrix graphic comparison table, and the second verification information is determined based on the watermark information and the preset verification parameters, so that the determined second verification information can be more accurate, and the determined second verification information can be further improved. accuracy of information on devices that leak confidential information.

进一步地,在上述方法实施例的基础上,可以基于字符点阵图形确定水印图形对应的设备信息,相应的上述步骤S604的部分处理可以如下:基于水印图形中的各个字符点阵图形对应的水印信息,确定水印图形对应的设备信息。Further, on the basis of the above method embodiments, the device information corresponding to the watermark graphics can be determined based on the character bitmap graphics, and the corresponding part of the processing in step S604 can be as follows: based on the watermark corresponding to each character bitmap graphics in the watermark graphics information to determine the device information corresponding to the watermark graphic.

在实施中,在确定出第二校验信息之后,可以基于屏幕图像中的水印图形确定该水印图形对应的设备信息。具体的,首先,可以基于上述预设点阵图形对照表确定上述水印图形中各个字符点阵图形对应的水印信息,即每个字符点阵图形对应的具体字符。然后,可以按照字符点阵图形的顺序对水印信息进行组合得到屏幕图像对应的设备信息。这样,基于各字符点阵图形对应的水印信息确定屏幕图像中的水印图形对应的设备信息,可以进一步提高确定出的屏幕图像中的水印图形对应的设备信息的准确性。In implementation, after the second verification information is determined, the device information corresponding to the watermark image may be determined based on the watermark image in the screen image. Specifically, first, the watermark information corresponding to each character bitmap in the above watermark graphics, that is, the specific character corresponding to each character bitmap, can be determined based on the above-mentioned preset bitmap comparison table. Then, the device information corresponding to the screen image can be obtained by combining the watermark information according to the sequence of the character bitmap. In this way, the device information corresponding to the watermark graphics in the screen image is determined based on the watermark information corresponding to each character dot matrix graphics, which can further improve the accuracy of the determined device information corresponding to the watermark graphics in the screen image.

进一步地,在上述方法实施例的基础上,在判断第一校验信息和第二校验信息是否相同之后,还可以确定水印图形是否被篡改,相应的处理可以如下:当第一检验信息与第二校验信息相同时,确定水印图形未被篡改,否则,确定水印图形已被篡改。Further, on the basis of the above method embodiments, after judging whether the first verification information and the second verification information are the same, it can also be determined whether the watermark image has been tampered with, and the corresponding processing can be as follows: when the first verification information and the second verification information are the same When the second check information is the same, it is determined that the watermark image has not been tampered with; otherwise, it is determined that the watermark image has been tampered with.

在实施中,判断第一校验信息和第二校验信息是否相同之后,还可以根据判断结果确定屏幕图像中的水印图形是否被篡改。具体的,若第一校验信息与第二校验信息相同,则可以认为屏幕图像中的水印图形未被篡改,即屏幕图像中的水印图形是原始生成的水印图形。若第一校验信息与第二校验信息不相同,则可以认为屏幕图像中的水印图形已经被篡改。这样,根据第一校验信息和第二校验信息是否相同,确定水印图形是否被篡改,不仅可以为保密信息的泄漏追责提供更多的依据,还可以进一步降低误判率,提高确定的泄漏保密信息的设备信息的准确性。In the implementation, after judging whether the first verification information and the second verification information are the same, it can also be determined whether the watermark graphic in the screen image has been tampered with according to the judgment result. Specifically, if the first verification information is the same as the second verification information, it can be considered that the watermark graphic in the screen image has not been tampered with, that is, the watermark graphic in the screen image is an originally generated watermark graphic. If the first verification information is different from the second verification information, it can be considered that the watermark graphic in the screen image has been tampered with. In this way, according to whether the first verification information and the second verification information are the same, it is determined whether the watermark image has been tampered with, which can not only provide more basis for accountability for the leakage of confidential information, but also further reduce the misjudgment rate and improve the certainty Accuracy of device information leaking confidential information.

可以理解,假设屏幕图像中的水印图形如图5所示,则上述第一校验信息可以是直接根据图5中九宫格的最后一格(即校验点阵图形)得到的,该第一校验信息可以表示为377;上述第二校验信息可以是根据图5中九宫格的前八格(即起始符号和所有字符点阵图形)计算得到的,该第二校验信息也可以表示为377。此时,第一校验信息与第二校验信息相同,则可以将基于屏幕图像中的水印图形中的各个字符点阵图形对应的水印信息,确定的该水印图形对应的设备信息A1401确定为泄漏保密信息的设备信息。It can be understood that, assuming that the watermark graphic in the screen image is shown in Figure 5, the above-mentioned first verification information can be obtained directly from the last grid (ie, the verification lattice graphic) of the nine-square grid in Figure 5. The verification information can be expressed as 377; the above-mentioned second verification information can be calculated according to the first eight grids of the nine-square grid in FIG. 377. At this time, the first verification information is the same as the second verification information, then the device information A1401 corresponding to the watermark graphic determined based on the watermark information corresponding to each character dot matrix graphic in the watermark graphic in the screen image can be determined as Device information that leaks confidential information.

反之,若屏幕图像中的水印图形中的所有字符点阵图形中有一个或多个被篡改,此时基于屏幕图像中的水印图形中的所有字符点阵图形确定的设备信息,则与实际生成该屏幕图像的设备信息不同。以屏幕图像中的水印图形如图7所示为例,根据图7可以得到第一校验信息为377,第二校验信息为1481与512的余数457,此时第一校验信息377与第二校验信息457明显不同,故而此时基于图7中的水印图形确定的设备信息A1481也不是实际生成该屏幕图像的设备信息。Conversely, if one or more of all character bitmaps in the watermark graphic in the screen image have been tampered with, then the device information determined based on all the character bitmaps in the watermark graphic in the screen image will be the same as the one actually generated. The device information for this screen image is different. Taking the watermark graphic in the screen image as shown in Figure 7 as an example, according to Figure 7, it can be obtained that the first verification information is 377, and the second verification information is 457, which is the remainder of 1481 and 512. At this time, the first verification information 377 and The second verification information 457 is obviously different, so the device information A1481 determined based on the watermark image in FIG. 7 at this time is not the device information that actually generated the screen image.

需要说明的是,在实施中,屏幕图像中的水印图形中的校验点阵图形也可能被篡改。当校验点阵图形被篡改时,确定出的屏幕图像中的水印图形对应的第一校验信息和第二校验信息也可能不同,具体的确定方法与上述方法实施例提供的方法相同,在此不再赘述。It should be noted that, in implementation, the check dot pattern in the watermark pattern in the screen image may also be tampered with. When the check dot pattern is tampered with, the first check information and the second check information corresponding to the watermark pattern in the determined screen image may also be different, and the specific determination method is the same as the method provided in the above method embodiment, It is not repeated here.

可以理解,上述方法实施例中提到的校验信息(包括第一校验信息和第二校验信息等)可以包括校验值、校验点阵图形中的一种或两种。当校验信息是校验值或校验点阵图形时,可以基于预设校验参数进行相互转换,也可以直接将校验值或校验点阵图形确定为校验信息。或者当校验信息包括校验值、校验点阵图形时,可以选择其中一个用于上述方法实施例的执行过程,也可以将校验值、校验点阵图形均用于上述方法实施例的执行过程。It can be understood that the verification information (including the first verification information and the second verification information, etc.) mentioned in the above method embodiments may include one or both of a verification value and a verification lattice pattern. When the verification information is a verification value or a verification lattice pattern, mutual conversion can be performed based on preset verification parameters, or the verification value or the verification lattice pattern can be directly determined as the verification information. Or when the verification information includes a verification value and a verification lattice pattern, one of them may be selected for the execution process of the above method embodiments, or both the verification value and the verification lattice pattern may be used in the above method embodiments. execution process.

可以理解,上述方法实施例的执行可以是具体的设备,且该设备中安装有上述方法实施例对应的功能的软件,设备可以通过前述软件执行上述方法实施例的过程。It can be understood that the execution of the foregoing method embodiments may be performed by a specific device in which software with functions corresponding to the foregoing method embodiments is installed, and the device may execute the processes of the foregoing method embodiments through the foregoing software.

图8示出了本实施例提供的一种水印添加装置,包括点阵图形确定单元801和水印图形添加单元802,其中:FIG. 8 shows a watermark adding apparatus provided in this embodiment, including a dot matrix pattern determining unit 801 and a watermark pattern adding unit 802, wherein:

所述点阵图形确定单元801,用于确定设备信息及所述设备信息的各个字符对应的字符点阵图形,并基于所述设备信息的字符确定所述设备信息对应的校验点阵图形;The lattice pattern determination unit 801 is configured to determine the device information and the character lattice patterns corresponding to each character of the device information, and determine the check lattice pattern corresponding to the device information based on the characters of the device information;

所述水印图形添加单元802,用于基于所述各个字符对应的字符点阵图形和所述校验点阵图形,生成所述设备信息对应的水印图形,并将所述设备信息对应的水印图形添加至保密信息。The watermark graphic adding unit 802 is configured to generate a watermark graphic corresponding to the device information based on the character dot matrix graphic corresponding to each character and the check dot matrix graphic, and add the watermark graphic corresponding to the device information. Added to Confidential Information.

可选的,所述点阵图形确定单元801,用于:Optionally, the lattice pattern determination unit 801 is used for:

基于预设点阵图形对照表,确定所述各个字符对应的字符点阵图形;Based on the preset lattice pattern comparison table, determine the character lattice pattern corresponding to each character;

基于所述设备信息的字符及预设校验参数确定所述设备信息对应的校验信息;Determine the verification information corresponding to the device information based on the characters of the device information and preset verification parameters;

基于所述预设点阵图形对照表确定所述校验信息对应的点阵图形,并将所述校验信息对应的点阵图形确定为所述设备信息对应的校验点阵图形。The lattice pattern corresponding to the verification information is determined based on the preset lattice pattern comparison table, and the lattice pattern corresponding to the verification information is determined as the verification lattice pattern corresponding to the device information.

可选的,所述点阵图形确定单元801,用于:Optionally, the lattice pattern determination unit 801 is used for:

确定起始点阵,按照预设水印格式排列所述起始点阵、所述各个字符对应的字符点阵图形和所述校验点阵图形,生成所述设备信息对应的水印图形。Determining a starting dot matrix, arranging the starting dot matrix, the character dot matrix graphics corresponding to each character, and the check dot matrix graphics according to a preset watermark format, to generate a watermark graphic corresponding to the device information.

本实施例所述的水印添加装置可以用于执行上述水印添加方法的各方法实施例,其原理和技术效果类似,此处不再赘述。The watermark adding apparatus described in this embodiment can be used to execute the method embodiments of the above-mentioned watermarking method, and the principles and technical effects thereof are similar, and are not repeated here.

图9示出了本实施例提供的一种屏幕图像泄漏追踪装置,包括水印图形提取单元901、信息确定单元902及泄漏设备确定单元903,其中:FIG. 9 shows a screen image leak tracking device provided in this embodiment, including a watermark graphic extraction unit 901, an information determination unit 902, and a leak device determination unit 903, wherein:

所述水印图形提取单元901,用于提取获取的屏幕图像中的水印图形,其中,所述水印图形是采用如第一方面任一项所述的水印添加方法获取的;The watermark graphic extraction unit 901 is configured to extract the watermark graphic in the acquired screen image, wherein the watermark graphic is acquired by using the watermark adding method described in any one of the first aspect;

所述信息确定单元902,用于基于所述水印图形中的校验点阵图形确定第一检验信息,其中,所述校验点阵图形基于字符点阵图形生成,所述字符点阵图形与生成所述屏幕图像的设备的设备信息对应;以及用于基于所述水印图形中的所有字符点阵图形确定第二校验信息,并确定所述水印图形对应的设备信息;The information determination unit 902 is configured to determine the first check information based on the check dot pattern in the watermark pattern, wherein the check dot pattern is generated based on the character dot pattern, and the character dot pattern is the same as the one. The device information corresponding to the device that generates the screen image; and the second check information is determined based on all the character lattice graphics in the watermark graphics, and the device information corresponding to the watermark graphics is determined;

所述泄漏设备确定单元903,用于当所述第一检验信息与所述第二校验信息相同时,将所述水印图形对应的设备信息,确定为泄漏所述保密信息的设备信息。The leaking device determining unit 903 is configured to, when the first verification information is the same as the second verification information, determine the device information corresponding to the watermark image as the device information that leaks the confidential information.

可选的,所述信息确定单元902,用于:Optionally, the information determining unit 902 is configured to:

在所述屏幕图像中确定起始点阵,基于所述起始点阵及预设水印格式,确定预设数量个字符点阵图形及校验点阵图形;determining a starting dot matrix in the screen image, and determining a preset number of character dot matrix graphics and check dot matrix graphics based on the starting dot matrix and a preset watermark format;

基于所述起始点阵和所述预设数量个字符点阵图形及校验点阵图形,生成所述水印图形,并基于所述校验点阵图形生成第一校验信息。The watermark pattern is generated based on the starting dot matrix and the preset number of character dot matrix patterns and check dot matrix patterns, and first verification information is generated based on the check dot matrix pattern.

可选的,所述信息确定单元902,用于:Optionally, the information determining unit 902 is configured to:

基于预设点阵图形对照表,确定所述水印图形中的各个字符点阵图形对应的字符;Based on a preset lattice pattern comparison table, determine the character corresponding to each character lattice pattern in the watermark pattern;

基于所述各个字符点阵图形对应的字符,及预设校验参数确定所述水印图形对应的第二校验信息。The second verification information corresponding to the watermark graphics is determined based on the characters corresponding to the respective character lattice graphics and preset verification parameters.

可选的,所述泄漏设备确定单元903,用于:Optionally, the leakage device determining unit 903 is configured to:

基于所述水印图形中的各个字符点阵图形对应的水印信息,确定所述水印图形对应的设备信息。The device information corresponding to the watermark graphic is determined based on the watermark information corresponding to each character dot matrix graphic in the watermark graphic.

可选的,所述泄漏设备确定单元903,还用于:Optionally, the leakage device determining unit 903 is further configured to:

当所述第一检验信息与所述第二校验信息相同时,确定所述水印图形未被篡改,否则,确定所述水印图形已被篡改。When the first verification information is the same as the second verification information, it is determined that the watermark graphic has not been tampered with; otherwise, it is determined that the watermark graphic has been tampered with.

可选的,所述校验信息包括校验值、校验点阵图形中的一种或两种。Optionally, the verification information includes one or both of a verification value and a verification lattice pattern.

本实施例所述的屏幕图像泄漏追踪装置可以用于执行上述屏幕图像泄漏追踪的各方法实施例,其原理和技术效果类似,此处不再赘述。The screen image leak tracking device described in this embodiment can be used to perform the above method embodiments for screen image leak tracking, and the principles and technical effects thereof are similar, and details are not described herein again.

如图10所示,本发明实施例还提供了一种电子设备,所述电子设备可以包括:处理器(processor)1001、存储器(memory)1002和总线1003;As shown in FIG. 10 , an embodiment of the present invention further provides an electronic device, and the electronic device may include: a processor (processor) 1001, a memory (memory) 1002, and a bus 1003;

其中,in,

所述处理器1001和存储器1002通过所述总线1003完成相互间的通信;The processor 1001 and the memory 1002 communicate with each other through the bus 1003;

所述处理器1001用于调用所述存储器1002中的程序指令,以执行上述水印添加方法的各方法实施例所提供的方法。The processor 1001 is configured to call the program instructions in the memory 1002 to execute the methods provided by the various method embodiments of the above watermark adding methods.

如图11所示,本发明实施例还提供了一种电子设备,所述电子设备可以包括:处理器(processor)1101、存储器(memory)1102和总线1103;As shown in FIG. 11 , an embodiment of the present invention further provides an electronic device, and the electronic device may include: a processor (processor) 1101, a memory (memory) 1102, and a bus 1103;

其中,in,

所述处理器1101和存储器1102通过所述总线1103完成相互间的通信;The processor 1101 and the memory 1102 communicate with each other through the bus 1103;

所述处理器1101用于调用所述存储器1102中的程序指令,以执行上述屏幕图像泄漏追踪方法的各方法实施例所提供的方法。The processor 1101 is configured to call the program instructions in the memory 1102 to execute the methods provided by the various method embodiments of the above-mentioned screen image leak tracking method.

此外,上述的存储器1002/存储器1102中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above-mentioned logic instructions in the memory 1002/memory 1102 may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .

另一方面,本发明实施例还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述水印添加方法的各方法实施例所提供的方法。On the other hand, an embodiment of the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and the computer program is implemented by a processor to execute the methods provided by each method embodiment of the above-mentioned watermarking method. Methods.

另一方面,本发明实施例还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述屏幕图像泄漏追踪方法的各方法实施例所提供的方法。On the other hand, an embodiment of the present invention further provides a non-transitory computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, it is implemented to execute each method embodiment of the above-mentioned screen image leak tracking method provided method.

另一方面,本实施例还提供一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述水印添加方法的各方法实施例所提供的方法。On the other hand, this embodiment also provides a computer program product, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, when the program instructions are When executed by a computer, the computer can execute the methods provided by the above method embodiments of the watermarking method.

另一方面,本实施例还提供一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述屏幕图像泄漏追踪方法的各方法实施例所提供的方法。On the other hand, this embodiment also provides a computer program product, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, when the program instructions are When executed by the computer, the computer can execute the methods provided by the above method embodiments of the screen image leak tracking method.

以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed over multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on this understanding, the above-mentioned technical solutions can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic A disc, an optical disc, etc., includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments or some parts of the embodiments.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still be The technical solutions described in the foregoing embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (14)

1. A watermarking method, comprising:
determining equipment information and a character dot matrix graph corresponding to each character of the equipment information, and determining a check dot matrix graph corresponding to the equipment information based on the character of the equipment information;
and generating a watermark pattern corresponding to the equipment information based on the character dot matrix pattern corresponding to each character and the check dot matrix pattern, and adding the watermark pattern corresponding to the equipment information to secret information.
2. The watermark pattern adding method according to claim 1, wherein the determining of the device information and the character dot pattern corresponding to each character of the device information includes:
determining a character dot matrix graph corresponding to each character based on a preset dot matrix graph comparison table;
the determining a check dot matrix pattern corresponding to the device information based on the characters of the device information includes:
determining verification information corresponding to the equipment information based on the characters of the equipment information and preset verification parameters;
and determining the dot matrix graph corresponding to the verification information based on the preset dot matrix graph comparison table, and determining the dot matrix graph corresponding to the verification information as the verification dot matrix graph corresponding to the equipment information.
3. The watermark pattern adding method according to claim 1, wherein the generating of the watermark pattern corresponding to the device information based on the character dot pattern corresponding to each character and the check dot pattern includes:
and determining an initial dot matrix, arranging the initial dot matrix, the character dot matrix graph corresponding to each character and the check dot matrix graph according to a preset watermark format, and generating a watermark graph corresponding to the equipment information.
4. A screen image leakage tracking method, comprising:
extracting a watermark pattern in the acquired screen image, wherein the watermark pattern is acquired by adopting the watermark adding method of any one of claims 1-3;
determining first inspection information based on a check dot matrix graph in the watermark graph, wherein the check dot matrix graph is generated based on a character dot matrix graph, and the character dot matrix graph corresponds to equipment information of equipment for generating the screen image;
determining second check information based on all character dot matrix graphs in the watermark graphs, and determining equipment information corresponding to the watermark graphs;
and when the first check information is the same as the second check information, determining the equipment information corresponding to the watermark pattern as the equipment information which leaks the secret information.
5. The screen image leakage tracking method of claim 4, wherein the determining the first check information based on the check dot pattern in the watermark pattern comprises:
determining an initial dot matrix in the screen image, and determining a preset number of character dot matrix graphs and check dot matrix graphs based on the initial dot matrix and a preset watermark format;
and generating the watermark graph based on the initial dot matrix, the preset number of character dot matrix graphs and the check dot matrix graph, and generating first check information based on the check dot matrix graph.
6. The screen image leakage tracking method of claim 5, wherein said determining second check information based on all actual character dot patterns in the watermark pattern comprises:
determining characters corresponding to each character dot matrix graph in the watermark graph based on a preset dot matrix graph comparison table;
and determining second check information corresponding to the watermark graph based on the characters corresponding to the character dot matrix graphs and preset check parameters.
7. The screen image leakage tracking method of claim 6, wherein the determining the device information corresponding to the watermark pattern comprises:
and determining equipment information corresponding to the watermark pattern based on the watermark information corresponding to each character dot matrix pattern in the watermark pattern.
8. The screen image leakage tracking method according to claim 7, wherein after determining the actual device information corresponding to the watermark pattern, further comprising:
and when the first check information is the same as the second check information, determining that the watermark pattern is not tampered, otherwise, determining that the watermark pattern is tampered.
9. The screen image leakage tracking method according to any one of claims 4 to 8, wherein the verification information includes one or both of a verification value and a verification dot pattern.
10. A watermark adding apparatus includes a dot pattern determining unit and a watermark pattern adding unit, wherein:
the dot matrix graph determining unit is used for determining equipment information and character dot matrix graphs corresponding to all characters of the equipment information, and determining check dot matrix graphs corresponding to the equipment information based on the characters of the equipment information;
and the watermark pattern adding unit is used for generating a watermark pattern corresponding to the equipment information based on the character dot pattern corresponding to each character and the check dot pattern, and adding the watermark pattern corresponding to the equipment information to secret information.
11. A screen image leakage tracking device is characterized by comprising a watermark image extraction unit, an information determination unit and a leakage equipment determination unit, wherein:
the watermark pattern extraction unit is used for extracting a watermark pattern in the acquired screen image, wherein the watermark pattern is acquired by adopting the watermark adding method of any one of claims 1 to 3;
the information determining unit is used for determining first checking information based on a check dot matrix graph in the watermark graph, wherein the check dot matrix graph is generated based on a character dot matrix graph, and the character dot matrix graph corresponds to equipment information of equipment for generating the screen image; the device is used for determining second check information based on all character dot matrix graphs in the watermark graphs and determining device information corresponding to the watermark graphs;
and the leaked device determining unit is used for determining the device information corresponding to the watermark pattern as the device information which leaks the confidential information when the first check information is the same as the second check information.
12. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the watermarking method according to any one of claims 1 to 3 or the screen image leakage tracking method according to any one of claims 4 to 9 when executing the program.
13. A non-transitory computer-readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the watermarking method according to any one of claims 1 to 3 or the screen image leakage tracking method according to any one of claims 4 to 9.
14. A computer program product comprising computer executable instructions for implementing a watermarking method according to any one of claims 1 to 3 or a screen image leakage tracking method according to any one of claims 4 to 9 when executed by a processor.
CN202010301147.XA 2020-04-07 2020-04-16 Watermark adding method and device and screen image leakage tracking method and device Active CN113496451B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2020102661606 2020-04-07
CN202010266160 2020-04-07

Publications (2)

Publication Number Publication Date
CN113496451A true CN113496451A (en) 2021-10-12
CN113496451B CN113496451B (en) 2024-07-19

Family

ID=77994620

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010301147.XA Active CN113496451B (en) 2020-04-07 2020-04-16 Watermark adding method and device and screen image leakage tracking method and device

Country Status (1)

Country Link
CN (1) CN113496451B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1418542A1 (en) * 2002-11-08 2004-05-12 European Central Bank Watermarking a security document
CN104348834A (en) * 2014-10-27 2015-02-11 深圳市京华科讯科技有限公司 Desktop-virtualization-based image transmission encryption method and system
CN107563245A (en) * 2017-08-24 2018-01-09 广东欧珀移动通信有限公司 Graphic code generation and verification method, device, terminal, and readable storage medium
CN107743123A (en) * 2017-09-30 2018-02-27 北京北信源软件股份有限公司 A kind of screen watermark handling method and device
CN109146759A (en) * 2018-07-23 2019-01-04 深圳市联软科技股份有限公司 A kind of forming method, device, medium and the equipment of figure watermark
CN110675304A (en) * 2018-07-03 2020-01-10 山东华软金盾软件股份有限公司 Picture watermark encoding method
CN110796586A (en) * 2019-10-29 2020-02-14 中国人民解放军63850部队 Blind watermarking method and system based on digital dot matrix and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1418542A1 (en) * 2002-11-08 2004-05-12 European Central Bank Watermarking a security document
CN104348834A (en) * 2014-10-27 2015-02-11 深圳市京华科讯科技有限公司 Desktop-virtualization-based image transmission encryption method and system
CN107563245A (en) * 2017-08-24 2018-01-09 广东欧珀移动通信有限公司 Graphic code generation and verification method, device, terminal, and readable storage medium
CN107743123A (en) * 2017-09-30 2018-02-27 北京北信源软件股份有限公司 A kind of screen watermark handling method and device
CN110675304A (en) * 2018-07-03 2020-01-10 山东华软金盾软件股份有限公司 Picture watermark encoding method
CN109146759A (en) * 2018-07-23 2019-01-04 深圳市联软科技股份有限公司 A kind of forming method, device, medium and the equipment of figure watermark
CN110796586A (en) * 2019-10-29 2020-02-14 中国人民解放军63850部队 Blind watermarking method and system based on digital dot matrix and readable storage medium

Also Published As

Publication number Publication date
CN113496451B (en) 2024-07-19

Similar Documents

Publication Publication Date Title
CN110245469B (en) Webpage watermark generation method, watermark analysis method, device and storage medium
EP3410685B1 (en) Image processing device, image processing method, and program
CN111191414A (en) Page watermark generation method, identification method, device, equipment and storage medium
CN108985066A (en) Intelligent contract security vulnerability detection method, device, terminal and storage medium
CN112307520A (en) Electronic seal adding and verifying method and system
US20220269820A1 (en) Artificial intelligence based data redaction of documents
CN109711189B (en) Data desensitization method and device, storage medium and terminal
CN113055153B (en) A data encryption method, system and medium based on a fully homomorphic encryption algorithm
CN115527101A (en) Image tampering detection method and processor
CN114782237A (en) Watermark generation method, device and equipment based on pattern coding and storage medium
CN111639313B (en) File transfer method, device, terminal and computer-readable storage medium
CN113901434B (en) Display terminal identification method, system and computer-readable storage medium
CN114626968A (en) Watermark embedding method, watermark extraction method and device
CN108090364B (en) Method and system for positioning data leakage source
CN114722361A (en) Data protection method, device, equipment and storage medium based on Morse coding
CN114049247A (en) Watermark hiding method and device, electronic equipment and readable storage medium
CN118278358A (en) Cross-platform PDF online preview and conversion system
CN113496451B (en) Watermark adding method and device and screen image leakage tracking method and device
US12147538B2 (en) Steganographic modification detection and mitigation for enhanced enterprise security
CN113742775B (en) Image data security detection method, system and storage medium
CN116702172A (en) Data processing method and device
CN108256611A (en) Quick Response Code image generating method, device, computing device and storage medium
CN114298882A (en) Embedding method, traceability method and electronic device of watermark in CAD data
CN117436041A (en) Data watermark generation method and device, storage medium and electronic equipment
CN110378829B (en) Method, device and equipment for providing information and extracting watermark

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
CB02 Change of applicant information

Country or region after: China

Address after: Room 332, 3 / F, Building 102, 28 xinjiekouwei street, Xicheng District, Beijing 100088

Applicant after: QAX Technology Group Inc.

Applicant after: Qianxin Wangshen information technology (Beijing) Co.,Ltd.

Address before: Room 332, 3 / F, Building 102, 28 xinjiekouwei street, Xicheng District, Beijing 100088

Applicant before: QAX Technology Group Inc.

Country or region before: China

Applicant before: LEGENDSEC INFORMATION TECHNOLOGY (BEIJING) Inc.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant