CN111815499A - A kind of watermark deletion method and device - Google Patents
A kind of watermark deletion method and device Download PDFInfo
- Publication number
- CN111815499A CN111815499A CN201910289115.XA CN201910289115A CN111815499A CN 111815499 A CN111815499 A CN 111815499A CN 201910289115 A CN201910289115 A CN 201910289115A CN 111815499 A CN111815499 A CN 111815499A
- Authority
- CN
- China
- Prior art keywords
- pictures
- watermark
- watermarks
- identified
- page
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/0021—Image watermarking
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/16—Program or content traceability, e.g. by watermarking
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Multimedia (AREA)
- Technology Law (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- General Engineering & Computer Science (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
Description
技术领域technical field
本发明涉及数据处理技术领域,特别是涉及一种水印删除方法及装置。The invention relates to the technical field of data processing, and in particular, to a watermark deletion method and device.
背景技术Background technique
用户通过各种文件处理软件撰写文件时,通常会在文件中添加水印来对文件进行版权保护。而实际应用中,水印的存在又会对文件的使用造成不便,因此,一些应用场景下需要对文件中的水印进行删除。When a user writes a file through various file processing software, a watermark is usually added to the file to protect the copyright of the file. In practical applications, the existence of the watermark will cause inconvenience to the use of the file. Therefore, in some application scenarios, the watermark in the file needs to be deleted.
现有技术中,删除文件中的水印时,一般先识别文件中包含的水印标签,然后删除识别出的水印标签对应的水印。虽然应用上述方式可以删除文件中带有水印标签的水印,但是文件中还可能存在不带有水印标签的水印,应用上述方式无法删除文件中不带有水印标签的水印。也就是,应用上述方式删除文件中的水印时,被删除水印的覆盖度低。In the prior art, when deleting a watermark in a file, generally, the watermark tag contained in the file is first identified, and then the watermark corresponding to the identified watermark tag is deleted. Although the watermark with the watermark tag in the file can be deleted by applying the above method, there may also be a watermark without the watermark tag in the file, and the watermark without the watermark tag in the file cannot be deleted by using the above method. That is, when the watermark in the file is deleted by the above method, the coverage of the deleted watermark is low.
发明内容SUMMARY OF THE INVENTION
本发明实施例的目的在于提供一种水印删除方法及装置,以在删除文件中水印时提高被删除水印的覆盖度。The purpose of the embodiments of the present invention is to provide a watermark deletion method and apparatus, so as to improve the coverage of the deleted watermark when deleting the watermark in the file.
第一方面,本发明实施例提供了一种水印删除方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a watermark deletion method, the method includes:
识别文件页面中的图片;Identify pictures in document pages;
确定识别出的图片中符合预设分布规律的图片,作为水印;Determine the pictures that conform to the preset distribution law in the identified pictures as watermarks;
删除所述水印。Remove the watermark.
本发明的一个实施例中,所述确定识别出的图片中符合预设分布规律的图片,作为水印,包括:In an embodiment of the present invention, the pictures that conform to the preset distribution law among the identified pictures, as watermarks, include:
确定识别出的图片中相同、且在所述文件页面内呈规律性分布的图片,作为水印。Determine the pictures that are the same among the identified pictures and are regularly distributed in the document page as watermarks.
本发明的一个实施例中,所述确定识别出的图片中相同、且在所述文件页面内呈规律性分布的图片,作为水印,包括:In an embodiment of the present invention, the pictures that are the same among the identified pictures and are regularly distributed in the document page, as watermarks, include:
在识别出的图片中,确定水平方向间隔距离相等且垂直方向间隔距离相等的相同图片,作为水印。Among the identified pictures, the same pictures with the same distance in the horizontal direction and the same distance in the vertical direction are determined as watermarks.
本发明的一个实施例中,所述确定识别出的图片中符合预设分布规律的图片,作为水印,包括:In an embodiment of the present invention, the pictures that conform to the preset distribution law among the identified pictures, as watermarks, include:
从识别出的图片中,获得在包含所述文件页面的连续页面之间呈规律分布的图片,作为水印。From the identified pictures, pictures that are regularly distributed among consecutive pages containing the document pages are obtained as watermarks.
本发明的一个实施例中,所述从识别出的图片中,获得在包含所述文件页面的连续页面之间呈规律分布的图片,作为水印,包括:In an embodiment of the present invention, the pictures that are regularly distributed among the consecutive pages including the document pages are obtained from the identified pictures, as watermarks, including:
从识别出的图片中,获得在包含所述文件页面的每一连续页面中相同位置分布的图片,作为水印。From the identified pictures, pictures distributed at the same position in each successive page including the document page are obtained as watermarks.
第二方面,本发明实施例提供了一种水印删除装置,所述装置包括:In a second aspect, an embodiment of the present invention provides a watermark deletion device, the device comprising:
图片识别模块,用于识别文件页面中的图片;The picture recognition module is used to identify the pictures in the document page;
水印确定模块,用于确定识别出的图片中符合预设分布规律的图片,作为水印;The watermark determination module is used to determine the pictures that conform to the preset distribution law in the identified pictures as watermarks;
水印删除模块,用于删除所述水印。A watermark deletion module for deleting the watermark.
本发明的一个实施例中,所述水印确定模块,具体用于:In an embodiment of the present invention, the watermark determination module is specifically used for:
确定识别出的图片中相同、且在所述文件页面内呈规律性分布的图片,作为水印。Determine the pictures that are the same among the identified pictures and are regularly distributed in the document page as watermarks.
本发明的一个实施例中,所述水印确定模块,具体用于:In an embodiment of the present invention, the watermark determination module is specifically used for:
在识别出的图片中,确定水平方向间隔距离相等且垂直方向间隔距离相等的相同图片,作为水印。Among the identified pictures, the same pictures with the same distance in the horizontal direction and the same distance in the vertical direction are determined as watermarks.
本发明的一个实施例中,所述水印确定模块,具体用于:In an embodiment of the present invention, the watermark determination module is specifically used for:
从识别出的图片中,获得在包含所述文件页面的连续页面之间呈规律分布的图片,作为水印。From the identified pictures, pictures that are regularly distributed among consecutive pages containing the document pages are obtained as watermarks.
本发明的一个实施例中,所述水印确定模块,具体用于:In an embodiment of the present invention, the watermark determination module is specifically used for:
从识别出的图片中,获得在包含所述文件页面的每一连续页面中相同位置分布的图片,作为水印。From the identified pictures, pictures distributed at the same position in each successive page including the document page are obtained as watermarks.
第三方面,本发明实施例提供了一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
存储器,用于存放计算机程序;memory for storing computer programs;
处理器,用于执行存储器上所存放的程序时,实现上述第一方面任一所述的方法步骤。The processor is configured to implement any one of the method steps described in the first aspect above when executing the program stored in the memory.
第四方面,本发明实施例提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述第一方面任一所述的方法步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any one of the above-mentioned first aspect is implemented. method steps.
第五方面,本发明实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面任一所述的方法步骤。In a fifth aspect, an embodiment of the present invention further provides a computer program product including instructions, which, when executed on a computer, causes the computer to execute the method steps described in any one of the above-mentioned first aspect.
由以上可见,应用本发明实施例提供的方案删除文件中的水印时,将文件页面中符合分布规律的图片作为水印进行删除,这样即使文件中的水印不带有水印标签,只要在文件中是规律性呈现的,也能够被删除,因此,应用本申请实施例提供的方案删除文件中的水印时,能够提高被删除水印的覆盖度。As can be seen from the above, when applying the solution provided by the embodiment of the present invention to delete the watermark in the file, the pictures that conform to the distribution law in the file page are deleted as the watermark, so that even if the watermark in the file does not have a watermark label, as long as it is in the file. If the watermark is presented regularly, it can also be deleted. Therefore, when the watermark in the file is deleted by applying the solution provided by the embodiment of the present application, the coverage of the deleted watermark can be improved.
附图说明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 according to these drawings without creative efforts.
图1为本发明实施例提供的一种水印删除方法的流程示意图;1 is a schematic flowchart of a watermark deletion method according to an embodiment of the present invention;
图2为本发明实施例提供的一种页面示意图;2 is a schematic diagram of a page provided by an embodiment of the present invention;
图3为本发明实施例提供的另一种页面示意图;3 is another schematic diagram of a page provided by an embodiment of the present invention;
图4为本发明实施例提供的再一种页面示意图;4 is a schematic diagram of still another page provided by an embodiment of the present invention;
图5为本发明实施例提供的又一种页面示意图;FIG. 5 is another schematic diagram of a page provided by an embodiment of the present invention;
图6为本发明实施例提供的又一种页面示意图;FIG. 6 is another schematic diagram of a page provided by an embodiment of the present invention;
图7为本发明实施例提供的一种水印删除装置的结构示意图;7 is a schematic structural diagram of a watermark deletion apparatus provided by an embodiment of the present invention;
图8为本发明实施例提供的一种电子设备的结构示意图。FIG. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。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 are only a part of the embodiments of the present invention, but not all of the 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.
本发明实施例提供了一种水印删除方法及装置,以下分别进行详细说明。Embodiments of the present invention provide a method and apparatus for deleting a watermark, which will be described in detail below.
首先,对本发明实施例所提供的水印删除方案的执行主体进行说明。First, the execution body of the watermark deletion scheme provided by the embodiment of the present invention is described.
上述执行主体可以是软件客户端。例如,可以是WPS、Word、PDF等进行文件处理的软件客户端,还可以是进行图片处理的软件客户端等。The above-mentioned execution subject may be a software client. For example, it may be a software client for file processing such as WPS, Word, and PDF, or a software client for image processing.
另外,上述执行主体还可以是运行有上述软件客户端的电子设备。例如,台式计算机、笔记本电脑、平板电脑、智能手机等等。In addition, the above-mentioned execution body may also be an electronic device running the above-mentioned software client. For example, desktop computers, laptops, tablets, smartphones, etc.
下面再通过具体实施例对本发明实施例提供的水印删除方法进行说明。The watermark deletion method provided by the embodiment of the present invention will be described below through specific embodiments.
参见图1,图1为本发明实施例提供的一种水印删除方法的流程示意图,上述方法包括如下步骤101-103。Referring to FIG. 1, FIG. 1 is a schematic flowchart of a method for deleting a watermark according to an embodiment of the present invention. The above method includes the following steps 101-103.
步骤101,识别文件页面中的图片。
本发明的一种实现方式中,可以是在对文件页面中带有水印标签的水印删除完成之后,再对文件页面中的图片进行识别。In an implementation manner of the present invention, the pictures in the file page may be identified after the watermark with the watermark label in the file page is deleted.
具体的,上述文件页面可以是文件中用户指定的页面,也可以是文件中预设页码的页面,也可以是从文件随机选中的页面,本申请并不对此进行限定。Specifically, the above-mentioned file page may be a page designated by a user in the file, or a page with a preset page number in the file, or a page randomly selected from the file, which is not limited in this application.
具体的,识别文件页面中的图片时,可以从页面的左上角沿水平方向向右逐行进行识别,也可以从页面左上角沿垂直方向向下逐列进行识别,也可以以页面中预设的位置为初始位置,依次向四周进行识别,本申请并不对此进行限定。Specifically, when recognizing a picture in a document page, it can be recognized line by line from the upper left corner of the page along the horizontal direction to the right, or it can be recognized from the upper left corner of the page along the vertical direction and column by column, or it can be preset in the page. The position of , is the initial position, and is identified in turn to the four sides, which is not limited in this application.
步骤102,确定识别出的图片中符合预设分布规律的图片,作为水印。Step 102: Determine a picture that conforms to a preset distribution rule among the identified pictures as a watermark.
本发明的一种实现方式中,可以确定识别出的图片中相同、且在文件页面内呈规律性分布的图片,作为水印。也就是,单一页面内水印是呈规律性分布的。这种情况下,可以将页面内的水印称为平铺水印。In an implementation manner of the present invention, pictures that are the same among the identified pictures and are regularly distributed in the file page can be determined as watermarks. That is, the watermarks in a single page are distributed regularly. In this case, the watermark within the page can be referred to as a tiled watermark.
具体的,上述在文件页面内呈规律性分布,可以为文件页面内图片沿直线分布,如图片沿水平线分布、沿垂直线分布或者沿斜线分布,也可以为图片沿预设图形分布,如图片沿圆形分布、沿矩形分布、沿三角形分布等。Specifically, the above-mentioned regular distribution in the document page may be that the pictures in the document page are distributed along a straight line, such as the pictures are distributed along a horizontal line, a vertical line or an oblique line, or the pictures are distributed along a preset graph, such as Pictures are distributed along a circle, along a rectangle, along a triangle, etc.
例如,参见图2,以带有水印字符的矩形框表示图片,图示图片相同,且在页面内沿斜线分布,也就是说在文件页面内呈规律性分布,则可以认为图示图片为平铺水印。For example, referring to Fig. 2, a picture is represented by a rectangular box with a watermark character, the pictures shown are the same, and are distributed along a diagonal line in the page, that is to say, they are distributed regularly in the document page, then the picture in the picture can be considered as Tile the watermark.
另外,参见图3,图中各个相同的图片在文件页面内沿矩形分布,所以也可以认为图示图片为平铺水印。In addition, referring to FIG. 3 , each of the same pictures in the figure is distributed along a rectangle in the file page, so it can also be considered that the picture in the figure is a tiled watermark.
在确定水印时,除了从文件页面内图片分布所形成的图形考虑外,还可以考虑图片之间的距离。鉴于此,本发明的一个实施例中,可以从识别出的图片中,确定水平方向间隔距离相等且垂直方向间隔距离相等的相同图片,作为水印。When determining the watermark, in addition to the graphic consideration formed from the distribution of pictures in the document page, the distance between pictures can also be considered. In view of this, in an embodiment of the present invention, from the identified pictures, the same pictures with the same distance in the horizontal direction and the same distance in the vertical direction can be determined as watermarks.
具体的,参见图4,在文件页面内,图示带有水印字符的矩形框表示相同图片,且相同图片以矩阵的形式排列,每一行的相邻图片之间距离间隔相等,且每一列的相邻图片之间距离间隔相等,则认为上述图片为平铺水印。Specifically, referring to FIG. 4 , in the document page, a rectangular box with a watermark character represents the same pictures, and the same pictures are arranged in the form of a matrix, the distances between adjacent pictures in each row are equal, and the If the distances between adjacent pictures are equal, the above pictures are considered to be tiled watermarks.
本发明的另一种实现方式中,可以从识别出的图片中,获得在包含上述文件页面的连续页面之间呈规律分布的图片,作为水印。也就是,文件中的水印为在连续页面之间呈规律分布的水印。相对于上述平铺水印而言,可以将这种情况下的水印称为非平铺水印。In another implementation manner of the present invention, pictures that are regularly distributed among consecutive pages including the above-mentioned document pages may be obtained from the identified pictures as watermarks. That is, the watermarks in the file are watermarks that are regularly distributed between successive pages. Compared with the above tiled watermark, the watermark in this case can be called a non-tiled watermark.
其中,上述连续页面,可以为上述文件页面与上述文件页面左侧相邻的页面形成的连续页面,也可以上述文件页面与为上述文件页面右侧相邻的页面形成的连续页面,也可以为上述文件页面、与上述文件页面左侧相邻的页面以及与上述文件页面右侧相邻的页面形成的连续页面。The above-mentioned continuous page may be a continuous page formed by the above-mentioned document page and a page adjacent to the left side of the above-mentioned document page, or a continuous page formed by the above-mentioned document page and a page adjacent to the right side of the above-mentioned document page, or may be The above document page, the page adjacent to the left side of the above document page, and the page adjacent to the right side of the above document page form a continuous page.
具体的,上述在连续页面之间呈规律分布,可以为图片在连续页面之间的同一位置分布,例如,上述同一位置可以为各页面的页面中心、页面的左上角、右下角等等。Specifically, the above-mentioned regular distribution between consecutive pages may be the distribution of pictures in the same position between consecutive pages, for example, the above-mentioned same position may be the page center, the upper left corner, the lower right corner of each page, and so on.
上述在连续页面之间呈规律分布,也可以为图片在连续页面之间具有规律的位置分布。例如,图片在连续页面的各页面中的位置形成一条直线、形成特定的图形等等。The above-mentioned regular distribution among the consecutive pages may also mean that the pictures have regular positional distribution among the consecutive pages. For example, the position of the picture in each of the successive pages forms a straight line, forms a specific figure, and so on.
参见图5,以带有水印字符的矩形框表示图片,图示图片相同,且在连续的各个页面中的位置形成一条直线,所以可以认为在连续页面之间分布的位置具有相同规律,则可以认为图示图片为非平铺水印。Referring to Figure 5, the picture is represented by a rectangular box with a watermark character, the pictures are the same, and the positions in each consecutive page form a straight line, so it can be considered that the positions distributed between consecutive pages have the same law, then you can Consider the image as a non-tiled watermark.
本发明的一个实施例中,可以从识别出的图片中,获得在包含上述文件页面的每一连续页面中相同位置分布的图片,作为水印。In an embodiment of the present invention, pictures distributed at the same position in each continuous page including the above-mentioned document pages can be obtained from the identified pictures as watermarks.
具体的,参见图6,示出了连续的两页面,左侧的页面中包含图片A和图片B,右侧的页面中包含图片A和图片C,可见两页面中均包含图片A,假设图片A在两页面中的位置相同,因此,对于图6中的左侧页面而言,其中的图片A也在该页面的右侧连续页面中相同位置存在,因此,图片A为该页面中的水印。对于图6中的右侧页面而言,其中的图片A也在该页面的左侧连续页面中相同位置存在,因此,图片A也是该页面的水印。Specifically, referring to FIG. 6 , two consecutive pages are shown. The page on the left includes picture A and picture B, and the page on the right includes picture A and picture C. It can be seen that both pages include picture A. Suppose the picture The position of A in the two pages is the same. Therefore, for the left page in Figure 6, the picture A in it also exists in the same position in the consecutive pages on the right side of the page. Therefore, the picture A is the watermark in the page. . For the right page in FIG. 6 , the picture A also exists in the same position on the left consecutive pages of the page, so the picture A is also the watermark of the page.
步骤103,删除上述水印。
具体的,对于确定的平铺水印,可以删除上述页面内的所有平铺水印,还可以依据平铺水印的分布规律,将文件的其他页面内位于对应位置的图片认为是平铺水印,从而对文件其他页面内确定的平铺水印执行删除操作。Specifically, for a certain tiled watermark, all tiled watermarks in the above-mentioned pages can be deleted, and according to the distribution law of tiled watermarks, the pictures at the corresponding positions in other pages of the file can be considered as tiled watermarks, so that the The tile watermarks identified in other pages of the file are deleted.
同样的,对于非平铺水印,可以删除上述页面内的所有非平铺水印,还可以依据非平铺水印的分布规律,将文件的连续页面内对应位置的图片认为是非平铺水印,从而对文件连续页面内确定的非平铺水印执行删除操作。Similarly, for non-tiling watermarks, all non-tiling watermarks in the above pages can be deleted. According to the distribution law of non-tiling watermarks, the pictures at the corresponding positions in the consecutive pages of the file can be considered as non-tiling watermarks, so that the Deletion is performed on identified non-tiled watermarks within consecutive pages of the file.
本发明的另一种实现方式为,对于不呈规律分布的图片,无法被识别,只能由用户肉眼判断的方式确定的水印,通过获得用户选中的图片作为水印,进行删除。Another implementation manner of the present invention is that, for pictures that are not distributed regularly, the watermark cannot be identified but can only be determined by the user's naked eye, and the picture selected by the user is obtained as the watermark and deleted.
可见,应用本发明实施例提供的方案删除文件中的水印时,将文件页面中符合分布规律的图片作为水印进行删除,这样即使文件中的水印不带有水印标签,只要在文件中是规律性呈现的,也能够被删除,因此,应用本申请实施例提供的方案删除文件中的水印时,能够提高被删除水印的覆盖度It can be seen that when the solution provided by the embodiment of the present invention is applied to delete the watermark in the file, the pictures that conform to the distribution rules in the file page are deleted as the watermark, so that even if the watermark in the file does not have a watermark label, as long as the watermark in the file is regular It can also be deleted. Therefore, when the watermark in the file is deleted by applying the solution provided by the embodiment of the present application, the coverage of the deleted watermark can be improved.
与上述水印删除方法相对应,本发明实施例还提供了一种水印删除装置。Corresponding to the above watermark deletion method, an embodiment of the present invention further provides a watermark deletion apparatus.
图7为本发明实施例提供的一种水印删除装置,该装置包括:FIG. 7 is a watermark deletion device provided by an embodiment of the present invention, and the device includes:
图片识别模块701,用于识别文件页面中的图片;The
水印确定模块702,用于确定识别出的图片中符合预设分布规律的图片,作为水印;A
水印删除模块703,用于删除上述水印。The
本发明的一个实施例中,上述水印确定模块702,具体用于:In an embodiment of the present invention, the above-mentioned
确定识别出的图片中相同、且在上述文件页面内呈规律性分布的图片,作为水印。Determine the pictures that are the same among the identified pictures and are regularly distributed in the above-mentioned document pages as watermarks.
本发明的一种实现方式中,上述水印确定模块702,具体用于:In an implementation manner of the present invention, the above-mentioned
在识别出的图片中,确定水平方向间隔距离相等且垂直方向间隔距离相等的相同图片,作为水印。Among the identified pictures, the same pictures with the same distance in the horizontal direction and the same distance in the vertical direction are determined as watermarks.
本发明的一个实施例中,上述水印确定模块702,具体用于:In an embodiment of the present invention, the above-mentioned
从识别出的图片中,获得在包含上述文件页面的连续页面之间呈规律分布的图片,作为水印。From the identified pictures, pictures that are regularly distributed among consecutive pages including the above-mentioned document pages are obtained as watermarks.
本发明的一种实现方式中,上述水印确定模块702,具体用于:In an implementation manner of the present invention, the above-mentioned
从识别出的图片中,获得在包含上述文件页面的每一连续页面中相同位置分布的图片,作为水印。From the identified pictures, pictures distributed at the same position in each successive page including the above-mentioned document pages are obtained as watermarks.
可见,应用本发明实施例提供的装置删除文件中的水印时,将文件页面中符合分布规律的图片作为水印进行删除,这样即使文件中的水印不带有水印标签,只要在文件中是规律性呈现的,也能够被删除,因此,应用本申请实施例提供的方案删除文件中的水印时,能够提高被删除水印的覆盖度It can be seen that when the device provided by the embodiment of the present invention is used to delete the watermark in the file, the pictures that conform to the distribution law in the file page are deleted as the watermark, so that even if the watermark in the file does not have a watermark label, as long as the watermark in the file is regular It can also be deleted. Therefore, when the watermark in the file is deleted by applying the solution provided by the embodiment of the present application, the coverage of the deleted watermark can be improved.
本发明实施例还提供了一种电子设备,如图8所示,包括处理器801、通信接口802、存储器803和通信总线804,其中,处理器801,通信接口802,存储器803通过通信总线804完成相互间的通信。An embodiment of the present invention further provides an electronic device, as shown in FIG. 8 , including a
存储器803,用于存放计算机程序;a
处理器801,用于执行存储器803上所存放的程序时,实现本发明实施例提供的水印删除方法。The
上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral ComponentInterconnect,PCI)总线或扩展工业标准结构(Extended Industry StandardArchitecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus mentioned in the above electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus or the like. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
通信接口用于上述电子设备与其他设备之间的通信。The communication interface is used for communication between the above electronic device and other devices.
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital SignalProcessing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; may also be a digital signal processor (Digital Signal Processing, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
在本发明提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述任一水印删除方法的步骤。In another embodiment provided by the present invention, a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any one of the above watermark deletion methods is implemented A step of.
在本发明提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例中任一水印删除方法。In yet another embodiment provided by the present invention, there is also provided a computer program product containing instructions, which, when running on a computer, enables the computer to execute any of the watermark deletion methods in the above-mentioned embodiments.
可见,应用上述实施例提供的电子设备进行水印删除时、执行上述实施例提供的计算机可读存储介质中存储的计算机程序进行水印删除时以及在计算机上运行上述实施例提供的计算机程序产品而进行水印删除时,通过识别文件页面中的图片,确定识别出的图片中符合预设分布规律的图片,作为水印,从而删除所确定的水印。It can be seen that when applying the electronic equipment provided by the above embodiments to delete the watermark, executing the computer program stored in the computer-readable storage medium provided by the above embodiments to delete the watermark, and running the computer program products provided by the above embodiments on the computer. When the watermark is deleted, the pictures in the file page are identified, and the pictures that conform to the preset distribution law among the identified pictures are determined as watermarks, so that the determined watermarks are deleted.
本发明实施例提供的电子设备、可读存储介质以及计算机程序产品,可以快速准确地实现本发明实施例提供的水印删除方法。与现有技术相比,应用本发明实施例提供的方案进行水印删除时,将文件页面中符合分布规律的图片作为水印进行删除,这样即使文件中的水印不带有水印标签,只要在文件中是规律性呈现的,也能够被删除,因此,应用本申请实施例提供的方案删除文件中的水印时,能够提高被删除水印的覆盖度。The electronic device, the readable storage medium, and the computer program product provided by the embodiments of the present invention can quickly and accurately implement the watermark deletion method provided by the embodiments of the present invention. Compared with the prior art, when applying the solution provided by the embodiment of the present invention to delete the watermark, the pictures that conform to the distribution law in the file page are deleted as the watermark, so that even if the watermark in the file does not have a watermark label, as long as the watermark is in the file It is regularly presented and can also be deleted. Therefore, when the watermark in the file is deleted by the solution provided by the embodiments of the present application, the coverage of the deleted watermark can be improved.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media. The usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), among others.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. any such actual relationship or sequence exists. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例、电子设备实施例、计算机可读存储介质实施例以及计算机程序产品实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the apparatus embodiments, the electronic device embodiments, the computer-readable storage medium embodiments, and the computer program product embodiments, since they are basically similar to the method embodiments, the descriptions are relatively simple, and for relevant details, refer to the method embodiments part of the description.
以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910289115.XA CN111815499A (en) | 2019-04-11 | 2019-04-11 | A kind of watermark deletion method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910289115.XA CN111815499A (en) | 2019-04-11 | 2019-04-11 | A kind of watermark deletion method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN111815499A true CN111815499A (en) | 2020-10-23 |
Family
ID=72843750
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910289115.XA Pending CN111815499A (en) | 2019-04-11 | 2019-04-11 | A kind of watermark deletion method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111815499A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112667576A (en) * | 2020-12-22 | 2021-04-16 | 珠海豹趣科技有限公司 | Watermark content processing method and device, electronic equipment and storage medium |
| CN114862644A (en) * | 2022-04-26 | 2022-08-05 | 深圳市掌阅科技有限公司 | Watermark deleting method, electronic device and computer readable storage medium |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105989013A (en) * | 2015-01-28 | 2016-10-05 | 腾讯科技(深圳)有限公司 | Method and device for removing character watermarks |
| CN106331746A (en) * | 2016-09-19 | 2017-01-11 | 北京小度互娱科技有限公司 | Method and device for identifying position of watermark in video file |
| US20170053105A1 (en) * | 2015-08-18 | 2017-02-23 | International Business Machines Corporation | Increased security using dynamic watermarking |
| CN107194390A (en) * | 2017-04-11 | 2017-09-22 | 常诚 | A kind of method of watermark in identification PDF document |
| CN108550099A (en) * | 2018-04-13 | 2018-09-18 | 北京焦点新干线信息技术有限公司 | The method and apparatus of watermark in a kind of removal image |
| CN108959509A (en) * | 2018-06-27 | 2018-12-07 | 中国建设银行股份有限公司 | Webpage watermark processing method, device and electronic equipment |
| CN109598231A (en) * | 2018-12-03 | 2019-04-09 | 广州市百果园信息技术有限公司 | A kind of recognition methods of video watermark, device, equipment and storage medium |
-
2019
- 2019-04-11 CN CN201910289115.XA patent/CN111815499A/en active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105989013A (en) * | 2015-01-28 | 2016-10-05 | 腾讯科技(深圳)有限公司 | Method and device for removing character watermarks |
| US20170053105A1 (en) * | 2015-08-18 | 2017-02-23 | International Business Machines Corporation | Increased security using dynamic watermarking |
| CN106331746A (en) * | 2016-09-19 | 2017-01-11 | 北京小度互娱科技有限公司 | Method and device for identifying position of watermark in video file |
| CN107194390A (en) * | 2017-04-11 | 2017-09-22 | 常诚 | A kind of method of watermark in identification PDF document |
| CN108550099A (en) * | 2018-04-13 | 2018-09-18 | 北京焦点新干线信息技术有限公司 | The method and apparatus of watermark in a kind of removal image |
| CN108959509A (en) * | 2018-06-27 | 2018-12-07 | 中国建设银行股份有限公司 | Webpage watermark processing method, device and electronic equipment |
| CN109598231A (en) * | 2018-12-03 | 2019-04-09 | 广州市百果园信息技术有限公司 | A kind of recognition methods of video watermark, device, equipment and storage medium |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112667576A (en) * | 2020-12-22 | 2021-04-16 | 珠海豹趣科技有限公司 | Watermark content processing method and device, electronic equipment and storage medium |
| CN114862644A (en) * | 2022-04-26 | 2022-08-05 | 深圳市掌阅科技有限公司 | Watermark deleting method, electronic device and computer readable storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111444750B (en) | PDF document identification method and device and electronic equipment | |
| CN107077570A (en) | System and method for detecting the trial that sensitive information is sent by data distribution passage | |
| WO2019201076A1 (en) | Method, apparatus, and system for adding watermark to secret file, and medium | |
| CN111914279B (en) | An efficient and accurate privacy seeking intersection system, method and device | |
| CN109753641A (en) | A method, device, electronic device and storage medium for changing the position of an object | |
| CN106796644B (en) | Access control system and access control method | |
| CN111815499A (en) | A kind of watermark deletion method and device | |
| CN113297409A (en) | Image searching method and device, electronic equipment and storage medium | |
| CN111414727A (en) | Method and device for editing header and footer of PDF (Portable document Format) document and electronic equipment | |
| CN108959928A (en) | A kind of detection method, device, equipment and the storage medium at webpage back door | |
| CN116152816A (en) | Enclosed area identification method, device, electronic equipment and storage medium | |
| CN115357155A (en) | Window identification method, device, equipment and computer readable storage medium | |
| CN116797513A (en) | Defect detection method and device, electronic equipment and storage medium | |
| CN112214786B (en) | File label processing method and device | |
| CN111951349A (en) | A method, device and electronic device for adjusting the vertex type of a graph | |
| CN116166831A (en) | Graphic file loading method and device, electronic equipment and storage medium | |
| CN115116084A (en) | Citation identification method, device, equipment and storage medium | |
| CN111199144B (en) | Document content altering method and device, electronic equipment and readable storage medium | |
| CN112579991B (en) | Page data protection method, device, equipment and medium | |
| CN110874520B (en) | Method, device and terminal equipment for removing overlapping paths | |
| CN111767700B (en) | A graphics adjustment method and device | |
| US20170177557A1 (en) | Relational database for assigning orphan fillable fields of electronic fillable forms with associated captions | |
| CN110795914B (en) | Method, device and electronic device for converting PDF document into image | |
| CN111666733B (en) | Method and device for processing cells in document | |
| CN112783395B (en) | Method, device, electronic equipment and medium for displaying form field |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201023 |
|
| RJ01 | Rejection of invention patent application after publication |