CN110781463B - Watermark information adding method and device - Google Patents
Watermark information adding method and device Download PDFInfo
- Publication number
- CN110781463B CN110781463B CN201911035289.XA CN201911035289A CN110781463B CN 110781463 B CN110781463 B CN 110781463B CN 201911035289 A CN201911035289 A CN 201911035289A CN 110781463 B CN110781463 B CN 110781463B
- Authority
- CN
- China
- Prior art keywords
- watermark
- target
- information
- file
- source file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 74
- 238000012545 processing Methods 0.000 claims abstract description 47
- 230000008569 process Effects 0.000 claims abstract description 26
- 230000002159 abnormal effect Effects 0.000 claims description 20
- 238000010586 diagram Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Technology Law (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Editing Of Facsimile Originals (AREA)
- Image Processing (AREA)
Abstract
The invention discloses a watermark information adding method, which comprises the following steps: when a watermark adding request for a source file is received, format information, position information and a file type of the source file which are contained in the watermark adding request are acquired; generating a target watermark matched with the format information according to the format information in a target watermark generating unit, wherein the target watermark generating unit is constructed by adopting a decorator mode; determining a target watermark processing unit according to the file type, wherein the target watermark processing unit is constructed by adopting a constructor mode; and adding the target watermark to the target position of the source file according to the position information in the target watermark processing unit to obtain a target file. According to the method, the decorator mode and the constructor mode are adopted to construct the corresponding units, so that the generation and addition processes of the watermark can be dynamically configured, the user can conveniently expand, and the universal requirements of the user are met.
Description
Technical Field
The present invention relates to the field of multimedia technologies, and in particular, to a method and an apparatus for adding watermark information.
Background
With the rapid development of computer multimedia technology, people can conveniently use digital equipment to make, process and store digital media such as images, voice, text and the like. This raises security issues for digital information transmission and copyright protection issues for digital products, as digital media is easily copied, handled, and disseminated.
In the prior art, copyright protection is carried out on digital information by adding a watermark, but the configuration process of the existing watermark adding method is static, has no universality and is not extensible.
Disclosure of Invention
In view of this, the invention provides a method and a device for adding watermark information, which solve the problems that the existing watermark adding method is static in configuration process, has no generality and is not extensible in watermark information, and the specific scheme is as follows:
a method of adding watermark information, comprising:
when a watermark adding request for a source file is received, format information, position information and a file type of the source file which are contained in the watermark adding request are acquired;
generating a target watermark matched with the format information according to the format information in a target watermark generating unit, wherein the target watermark generating unit is constructed by adopting a decorator mode;
determining a target watermark processing unit according to the file type, wherein the target watermark processing unit is constructed by adopting a constructor mode;
and adding the target watermark to the target position of the source file according to the position information in the target watermark processing unit to obtain a target file.
The method, optionally, further comprises:
acquiring log information in the watermark adding process;
judging whether the target file is abnormal or not according to preset characters in the log information;
if yes, obtaining the abnormal information of the target file and prompting.
In the method described above, the first step is performed, optionally, the method further comprises:
if not, obtaining the information of the distinguishing format of the watermark information knowledge base in the watermark adding request and the target watermark generation unit;
and adding the distinguishing format information into the watermark information knowledge base.
In the method described above, the first step is performed, alternatively to this, the method may comprise, generating, in the target watermark generating unit, a target watermark matching the format information according to the format information, including:
acquiring watermark content and watermark requirements in the format information;
and adjusting the watermark content to a target watermark meeting the watermark requirement.
In the above method, optionally, adding, in the target watermark processing unit, the target watermark to a target position of the source file according to the position information to obtain a target file, including:
opening the source file according to the file name and the storage path of the source file;
determining a target position of the target watermark in the source file according to the position information;
the target watermark is added to a target location of the source file.
An adding device of watermark information, comprising:
the first acquisition module is used for acquiring format information, position information and file type of the source file, wherein the format information and the position information are contained in a watermark adding request when the watermark adding request of the source file is received;
the generation module is used for generating a target watermark matched with the format information according to the format information in a target watermark generation unit, wherein the target watermark generation unit is constructed by adopting a decorator mode;
the determining module is used for determining a target watermark processing unit according to the file type, wherein the target watermark processing unit is constructed by adopting a constructor mode;
and the first adding module is used for adding the target watermark to the target position of the source file according to the position information in the target watermark processing unit to obtain a target file.
The above device, optionally, further comprises:
the second acquisition module is used for acquiring log information in the watermark adding process;
the judging module is used for judging whether the target file is abnormal or not according to preset characters in the log information;
and the third acquisition module is used for acquiring the abnormal information of the target file if yes, and prompting.
The above device, optionally, further comprises:
a fourth obtaining module, configured to obtain, if not, information in a format different from that of the watermark information knowledge base in the target watermark generation unit in the watermark adding request;
and the second adding module is used for adding the distinguishing format information into the watermark information knowledge base.
The above apparatus, optionally, the generating module includes:
the acquisition unit is used for acquiring watermark content and watermark requirements in the format information;
and the adjusting unit is used for adjusting the watermark content to be a target watermark meeting the watermark requirement.
The above apparatus, optionally, the first adding module includes:
an opening unit, configured to open the source file according to a file name and a storage path of the source file;
a determining unit, configured to determine a target position of the target watermark in the source file according to the position information;
and the adding unit is used for adding the target watermark to the target position of the source file.
Compared with the prior art, the invention has the following advantages:
the invention discloses a watermark information adding method, which comprises the following steps: when a watermark adding request for a source file is received, format information, position information and a file type of the source file which are contained in the watermark adding request are acquired; generating a target watermark matched with the format information according to the format information in a target watermark generating unit, wherein the target watermark generating unit is constructed by adopting a decorator mode; determining a target watermark processing unit according to the file type, wherein the target watermark processing unit is constructed by adopting a constructor mode; and adding the target watermark to the target position of the source file according to the position information in the target watermark processing unit to obtain a target file. According to the method, the decorator mode and the constructor mode are adopted to construct the corresponding units, so that the generation and addition processes of the watermark can be dynamically configured, the user can conveniently expand, and the universal requirements of the user are met.
Of course, it is not necessary for any one product to practice the invention to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for adding watermark information disclosed in an embodiment of the present application;
fig. 2 is a further flowchart of a method for adding watermark information according to an embodiment of the present application;
fig. 3 is a further flowchart of a method for adding watermark information according to an embodiment of the present application;
fig. 4 is a schematic diagram of watermarking of an Excel file disclosed in the embodiments of the present application;
fig. 5 is a block diagram of a watermark information adding apparatus according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The invention discloses a method and a device for adding watermark information, which are applied to the adding process of the watermark, wherein the watermark is to add certain digital information into data multimedia (such as images, documents and the like) so as to achieve the functions of file authenticity identification, copyright protection and the like. The embedded watermark information is hidden in the host file, so that the observability and the integrity of the original file are not affected. The adding method is based on Java language and is mainly used for adding text watermarks or picture watermarks into the source file. By adding specific watermark information (text or picture information) to the source file to achieve the functions of file identification, copyright protection and the like, the watermark information is embedded into the source file as background information, and the observability and the integrity of the source file are not affected. The execution flow of the adding method is shown in fig. 1, and comprises the following steps:
when a watermark adding request for a source file is received, format information, position information and a file type of the source file which are contained in the watermark adding request are acquired;
generating a target watermark matched with the format information according to the format information in a target watermark generating unit, wherein the target watermark generating unit is constructed by adopting a decorator mode;
and adding the target watermark to the target position of the source file according to the position information in the target watermark processing unit to obtain a target file.
S101, when a watermark adding request for a source file is received, format information, position information and a file type of the source file contained in the watermark adding request are acquired;
in the embodiment of the present invention, the source file is a file to be watermarked, and the file type includes: pdf file (suffix. Pdf), word (suffix. Doc,. Docx) picture file (suffix. Jpg,. Png) and excel (suffix. Xlsx,. Xls), the format information including: watermark content and watermark requirements, wherein the watermark content may be pictures and/or text, the watermark requirements comprising: the method comprises the steps of obtaining corresponding format information in the format information according to a specific adding request, wherein when the adding request is for adding a text watermark, the format information comprises the following steps of: text font style and transparency. The position information is a coordinate, where the coordinate may be a coordinate system constructed with any one of four vertices in the source file as an origin, and the coordinate represents a relative position with the coordinate system, for example: and constructing a coordinate system by taking the vertex of the left lower corner of the original document as a target origin, wherein the coordinate represents the distance between the X axis and the Y axis of the coordinate system.
S102, generating a target watermark matched with the format information in a target watermark generation unit according to the format information, wherein the target watermark generation unit is constructed by adopting a decorator mode;
in the embodiment of the invention, in the process of adding the watermark to the source file, the requirements for the watermark are different in different scenes, for example, the font, the size, the color and other patterns of the characters are required to be set in the character watermark, or special requirements are required to be set on the position, the transparency and other aspects of the characters in the target file, so that the target watermark generating unit can be required to flexibly set the watermark requirements, and the component adopts a decorator mode for the target watermark generating unit, so that different watermark requirements can be set according to specific requirements. In the target watermark generation unit, watermark content and watermark requirements in the format information are acquired, the watermark content is adjusted to be a target watermark meeting the watermark requirements, for example, the watermark content is ' internal data ', the watermark requirements are black Song's body number four, the transparency is 80%, and the internal data is set to be a watermark picture with the transparency of 80%.
S103, determining a target watermark processing unit according to the file type, wherein the target watermark processing unit is constructed by adopting a constructor mode;
in the embodiment of the invention, in the process of adding the watermark to the source file, the storage path of the source file is required to be set, the watermark is added to the target file, and the watermarked file is output in a plurality of steps in consideration of different file types, so that a builder mode is adopted to build the target watermark processing unit.
S104, adding the target watermark to the target position of the source file according to the position information in the target watermark processing unit to obtain a target file.
In the embodiment of the present invention, the source file is opened in the target watermark processing unit, and the target watermark is added to a target position of the source file according to the position information, where the target position is coordinate information in the position information, so as to obtain the target file, and further, the target file needs to be saved in a manner that the storage path and the file name of the source file are the same. And directly replacing the source files, wherein the storage paths are the same, the file names are different for storage, the storage paths and the file names are different for storage, the file names are the same, and the storage paths are different for storage.
The invention discloses a watermark information adding method, which comprises the following steps: when a watermarking request for a source file is received, obtaining format information, position information and file type of the source file contained in the watermark adding request; generating a target watermark matched with the format information according to the format information in a target watermark generating unit, wherein the target watermark generating unit is constructed by adopting a decorator mode; determining a target watermark processing unit according to the file type, wherein the target watermark processing unit is constructed by adopting a constructor mode; and adding the target watermark to the target position of the source file according to the position information in the target watermark processing unit to obtain a target file. According to the method, the decorator mode and the constructor mode are adopted to construct the corresponding units, so that the generation and addition processes of the watermark can be dynamically configured, the user can conveniently expand, and the universal requirements of the user are met.
In the embodiment of the present invention, after the target file is obtained, it is further required to verify whether the target file has an abnormality, where a verification process is shown in fig. 2, and the method includes the steps of:
s201, acquiring log information in the watermark adding process;
in the embodiment of the invention, the generated log information is stored in real time in the watermark adding process, the log information comprises whether abnormal record exists in the target watermark generating and adding process, and the corresponding log information is acquired according to the time information in the watermark adding process.
S202, judging whether the target file is abnormal or not according to preset characters in the log information;
according to the embodiment of the invention, the preset characters at the appointed position of the log information are searched, and whether the target file is abnormal or not is judged according to the preset characters, for example: if the preset character is a1, generating the target watermark, if the preset character is a2, generating the target watermark, and if the preset character is a3, generating the target file successfully, wherein the process of adding the target watermark into the source file is abnormal, and if the preset character is a2, generating the target file is not abnormal.
S203, acquiring the abnormal information of the target file and prompting.
In the embodiment of the invention, if the target file has abnormal information, the abnormal information is acquired from the log data, and prompt information is generated according to the abnormal information to prompt, so that a user can conveniently track and position the problem.
S204, obtaining the information of the distinguishing format of the watermark information knowledge base in the watermark adding request and the target watermark generation unit;
in the embodiment of the invention, a watermark information knowledge base exists in the target watermark generation unit, the watermark information knowledge base stores file type information and processing methods of various format information, format information used in the watermark adding request is compared with format information in the watermark information knowledge base, and if the watermark adding request exists in the distinguishing format information in the watermark information knowledge base, the distinguishing format information is obtained.
S205, adding the distinguishing format information into the watermark information knowledge base.
In the embodiment of the invention, the information in the distinguishing format is added into the watermark information knowledge base to be accumulated continuously to form the knowledge base, and the watermark generation unit is optimized.
In the embodiment of the present invention, in the target watermark processing unit, according to the location information, the target watermark is added to the target location of the source file, and the flow of the method for obtaining the target file is shown in fig. 3, and the method includes the steps of:
s301, opening the source file according to the file name and the storage path of the source file;
in the embodiment of the invention, the file name and the storage path of the source file are acquired, the file name is searched under the storage path, and the source file is opened.
S302, determining a target position of the target watermark in the source file according to the position information;
in the embodiment of the invention, the coordinate information in the position information is acquired, and the target position matched with the coordinate information is marked on the source file according to the coordinate information.
S303, adding the target watermark to the target position of the source file.
In the embodiment of the invention, the target watermark is added to the target position of the source file to obtain the target file.
In the embodiment of the present invention, after the target watermark is generated, an execution flow of the target watermark processing unit is described, for example: when the source file is excel, inputting: file name and path storage path of source file+target watermark+target file name and position after watermark is generated, processing: calling a watermark generation interface of the target watermark processing unit about excel, and outputting: the schematic diagram of the processing procedure of the target file is shown in fig. 4, wherein the processing procedures of Word, PDF and picture are similar to the Excel procedure, and the interfaces corresponding to the target watermark processing unit are respectively called for processing, which is not described herein again.
In the embodiment of the invention, the adding method is based on the fact that the target watermark generating unit and the target watermark processing unit generated by java language are developed and realized on an eclipse platform, and the realization is separated from a specific system, specific application and the characteristics of pluggable and multi-application of the device are met by utilizing a modularized development mode. The implementation mode not only enables the target watermark generation unit and the target watermark processing unit to be used for a plurality of applications, but also can meet long-term service of the system without the need of operating the system off line or restarting a server and the like when updating the watermark generation mode.
In the embodiment of the invention, the watermark generation unit adopts a decorator mode, and different watermark requirements can be set according to specific requirements. In the process of adding the watermark to the target file, considering that whether the type of the target file is pictures, PDF, excel or Word, in the process of adding the watermark, a source file path is required to be set, the watermark is assembled to the target file, and the watermark-added file is output in a plurality of assembly steps, and the implementation is realized by adopting a constructor mode. Can be adjusted according to the user's usage dynamics and support the user's customized configuration.
Based on the above-mentioned method for adding watermark information, the embodiment of the present invention further provides a watermark adding device, where a block diagram of a mechanism of the adding device is shown in fig. 5, and the method includes:
a first acquisition module 401, a generation module 402, a determination module 403 and a first addition module 404.
Wherein,,
the first obtaining module 401 is configured to obtain, when a watermark adding request for a source file is received, format information, location information and a file type of the source file included in the watermark adding request;
the generating module 402 is configured to generate, in a target watermark generating unit, a target watermark matching the format information according to the format information, the target watermark generation unit is constructed by adopting a decorator mode;
the determining module 403 is configured to determine a target watermark processing unit according to the file type, where the target watermark processing unit is constructed by adopting a constructor mode;
the first adding module 404 is configured to add, in the target watermark processing unit, the target watermark to a target location of the source file according to the location information, to obtain a target file.
The invention discloses an adding device of watermark information, comprising: when a watermark adding request for a source file is received, format information, position information and a file type of the source file which are contained in the watermark adding request are acquired; generating a target watermark matched with the format information according to the format information in a target watermark generating unit, wherein the target watermark generating unit is constructed by adopting a decorator mode; determining a target watermark processing unit according to the file type, wherein the target watermark processing unit is constructed by adopting a constructor mode; and adding the target watermark to the target position of the source file according to the position information in the target watermark processing unit to obtain a target file. The device adopts the decorator mode and the constructor mode to construct the corresponding units, can dynamically configure the generation and addition processes of the watermark, is convenient for users to expand, and meets the general requirements of the users.
In an embodiment of the present invention, the adding device further includes:
a second acquisition module 405, a determination module 406, and a third acquisition module 407.
Wherein,,
the second obtaining module 405 is configured to obtain log information in the watermarking process;
the judging module 406 is configured to judge whether the target file is abnormal according to a preset character in the log information;
the third obtaining module 407 is configured to obtain, if yes, the abnormal information of the target file, and prompt the abnormal information.
In an embodiment of the present invention, the adding device further includes: fourth acquisition module 408 and second addition module
Wherein,,
the fourth obtaining module 408 is configured to obtain, if not, information of a format different from that of the watermark information knowledge base in the target watermark generation unit in the watermark adding request;
the second adding module 409 adds the distinguishing format information to the watermark information repository.
In the embodiment of the present invention, the generating module 403 includes: an acquisition unit 410 and an adjustment unit 411.
Wherein,,
the acquiring unit 410 is configured to acquire watermark content and watermark requirements in the format information;
the adjusting unit 411 is configured to adjust the watermark content to a target watermark that meets the watermark requirement.
In the embodiment of the present invention, the first adding module 404 includes:
an opening unit 412, a determining unit 413, and an adding unit 414.
Wherein,,
the opening unit 412 is configured to open the source file according to a file name and a storage path of the source file;
the determining unit 413 is configured to determine a target location of the target watermark in the source file according to the location information;
the adding unit 414 is configured to add the target watermark to a target location of the source file.
It should be noted that, in the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described as different from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other. For the apparatus class embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference is made to the description of the method embodiments for relevant points.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in the same piece or pieces of software and/or hardware when implementing the present invention.
From the above description of embodiments, it will be apparent to those skilled in the art that the present invention may be implemented in software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments or some parts of the embodiments of the present invention.
The above description is made in detail of a method and apparatus for adding watermark information provided by the present invention, and specific examples are applied to illustrate the principles and embodiments of the present invention, and the above description of the examples is only used to help understand the method and core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.
Claims (10)
1. A method of adding watermark information, comprising:
when a watermark adding request for a source file is received, format information, position information and a file type of the source file which are contained in the watermark adding request are acquired;
generating a target watermark matched with the format information according to the format information in a target watermark generating unit, wherein the target watermark generating unit is constructed by adopting a decorator mode so that the target watermark generating unit can generate corresponding watermark demands according to different demands;
determining a target watermark processing unit according to the file types, wherein the target watermark processing unit is constructed by adopting a constructor mode so as to distribute corresponding watermark processing units according to different file types;
and adding the target watermark to the target position of the source file according to the position information in the target watermark processing unit to obtain a target file.
2. The method as recited in claim 1, further comprising:
acquiring log information in the watermark adding process;
judging whether the target file is abnormal or not according to preset characters in the log information;
if yes, obtaining the abnormal information of the target file and prompting.
3. The method as recited in claim 2, further comprising:
if not, obtaining the information of the distinguishing format of the watermark information knowledge base in the watermark adding request and the target watermark generation unit;
and adding the distinguishing format information into the watermark information knowledge base.
4. The method according to claim 1, wherein generating, in the target watermark generation unit, a target watermark matching the format information in accordance with the format information, comprises:
acquiring watermark content and watermark requirements in the format information;
and adjusting the watermark content to a target watermark meeting the watermark requirement.
5. The method according to claim 1, wherein adding the target watermark to a target location of the source file in the target watermark processing unit in dependence on the location information, resulting in a target file, comprises:
opening the source file according to the file name and the storage path of the source file;
determining a target position of the target watermark in the source file according to the position information;
the target watermark is added to a target location of the source file.
6. An apparatus for adding watermark information, comprising:
the first acquisition module is used for acquiring format information, position information and file type of the source file, wherein the format information and the position information are contained in a watermark adding request when the watermark adding request of the source file is received;
the generation module is used for generating a target watermark matched with the format information according to the format information in a target watermark generation unit, wherein the target watermark generation unit is constructed by adopting a decorator mode so as to facilitate the target watermark generation unit to generate corresponding watermark requirements according to different requirements;
the determining module is used for determining a target watermark processing unit according to the file types, wherein the target watermark processing unit is constructed by adopting a constructor mode so as to distribute the corresponding watermark processing units according to different file types;
and the first adding module is used for adding the target watermark to the target position of the source file according to the position information in the target watermark processing unit to obtain a target file.
7. The apparatus as recited in claim 6, further comprising:
the second acquisition module is used for acquiring log information in the watermark adding process;
the judging module is used for judging whether the target file is abnormal or not according to preset characters in the log information;
and the third acquisition module is used for acquiring the abnormal information of the target file if yes, and prompting.
8. The apparatus as recited in claim 7, further comprising:
a fourth obtaining module, configured to obtain, if not, information in a format different from that of the watermark information knowledge base in the target watermark generation unit in the watermark adding request;
and the second adding module is used for adding the distinguishing format information into the watermark information knowledge base.
9. The apparatus of claim 6, wherein the generating module comprises:
the acquisition unit is used for acquiring watermark content and watermark requirements in the format information;
and the adjusting unit is used for adjusting the watermark content to be a target watermark meeting the watermark requirement.
10. The apparatus of claim 6, wherein the first adding module comprises:
an opening unit, configured to open the source file according to a file name and a storage path of the source file;
a determining unit, configured to determine a target position of the target watermark in the source file according to the position information;
and the adding unit is used for adding the target watermark to the target position of the source file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911035289.XA CN110781463B (en) | 2019-10-29 | 2019-10-29 | Watermark information adding method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911035289.XA CN110781463B (en) | 2019-10-29 | 2019-10-29 | Watermark information adding method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110781463A CN110781463A (en) | 2020-02-11 |
CN110781463B true CN110781463B (en) | 2023-06-23 |
Family
ID=69387185
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911035289.XA Active CN110781463B (en) | 2019-10-29 | 2019-10-29 | Watermark information adding method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110781463B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113468486B (en) * | 2021-05-07 | 2023-12-08 | 北京东方通科技股份有限公司 | Big data watermarking method based on artificial intelligence |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102867515A (en) * | 2012-02-20 | 2013-01-09 | 我友网络科技有限公司 | Method for authenticating digital audio copyright through digital watermarking |
CN107464206A (en) * | 2017-07-26 | 2017-12-12 | 维沃移动通信有限公司 | A kind of watermark adding method and mobile terminal |
CN108763880A (en) * | 2018-06-06 | 2018-11-06 | 广西英腾教育科技股份有限公司 | Generation, detection method and the device of file watermark |
CN109635525A (en) * | 2018-12-11 | 2019-04-16 | 上海智臻智能网络科技股份有限公司 | Adding method, device, equipment and the storage medium of watermark |
CN110198492A (en) * | 2019-04-28 | 2019-09-03 | 腾讯科技(深圳)有限公司 | A kind of watermark adding method of video, device, equipment and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9319417B2 (en) * | 2012-06-28 | 2016-04-19 | Fortinet, Inc. | Data leak protection |
US8806217B2 (en) * | 2013-07-03 | 2014-08-12 | Sky Socket, Llc | Functionality watermarking and management |
US10049421B2 (en) * | 2015-02-27 | 2018-08-14 | The Sixth Flag, Inc. | Secure content and document watermarking |
US10169552B2 (en) * | 2015-07-17 | 2019-01-01 | Box, Inc. | Event-driven generation of watermarked previews of an object in a collaboration environment |
-
2019
- 2019-10-29 CN CN201911035289.XA patent/CN110781463B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102867515A (en) * | 2012-02-20 | 2013-01-09 | 我友网络科技有限公司 | Method for authenticating digital audio copyright through digital watermarking |
CN107464206A (en) * | 2017-07-26 | 2017-12-12 | 维沃移动通信有限公司 | A kind of watermark adding method and mobile terminal |
CN108763880A (en) * | 2018-06-06 | 2018-11-06 | 广西英腾教育科技股份有限公司 | Generation, detection method and the device of file watermark |
CN109635525A (en) * | 2018-12-11 | 2019-04-16 | 上海智臻智能网络科技股份有限公司 | Adding method, device, equipment and the storage medium of watermark |
CN110198492A (en) * | 2019-04-28 | 2019-09-03 | 腾讯科技(深圳)有限公司 | A kind of watermark adding method of video, device, equipment and storage medium |
Non-Patent Citations (3)
Title |
---|
A Watermarking Technique Based on File Page Objects for PDF;Umair Khadam et.al;《2019 IEEE Pacific Rim Conference on Communications, Computers and Signal Processing (PACRIM)》;20190823;全文 * |
图片格式转换器 为照片加入水印;《网友世界》;20100501(第09期);全文 * |
基于水印和特征的软件保护技术研究;罗养霞;《中国优秀硕士学位论文全文数据库》;20150315(第03期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN110781463A (en) | 2020-02-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1749995B (en) | Creation and management of content-related objects | |
US20140075301A1 (en) | Information processing apparatus, control method, and recording medium | |
CN107025252B (en) | Method, system, and program for enabling real-time availability of published documents | |
JP2001155023A (en) | Electronic publication system | |
US20090157716A1 (en) | Apparatus and method for acquiring data from memory of terminal | |
CN109446753A (en) | Detect method, apparatus, computer equipment and the storage medium of pirate application program | |
US9990477B2 (en) | Dynamic network construction | |
US20220269820A1 (en) | Artificial intelligence based data redaction of documents | |
KR100798465B1 (en) | Learning data formation system for the subject explanation | |
Vaidya et al. | DBpedia commons: structured multimedia metadata from the wikimedia commons | |
US8976003B2 (en) | Large-scale document authentication and identification system | |
KR102131895B1 (en) | Method and program for tracking replicated webtoon | |
CN112132710A (en) | Legal element processing method and device, electronic equipment and storage medium | |
CN110781463B (en) | Watermark information adding method and device | |
KR20150064822A (en) | System for management of electronic documents | |
CN117370242A (en) | Adapter and method for generating multilingual SDK client by parsing interface document | |
JP2012182737A (en) | Secret data leakage preventing system, determining apparatus, secret data leakage preventing method and program | |
JP5864251B2 (en) | Server providing permanent data records | |
CN103970799B (en) | A kind of generation method of electronic document, device and client | |
JP2009064220A (en) | Method and system for permitting access to web site for disclosing related information of printed matter, only to owner of printed matter | |
WO2006057639A1 (en) | Adapting rights to derivate works | |
Tiwari et al. | A novel steganographic methodology for high capacity data hiding in executable files | |
WO2022044758A1 (en) | Consignment management device, consignment management method, and recording medium | |
KR20160077833A (en) | Apparatus and method for retreiving related contents for electronic publication content | |
Hu et al. | Research on Presswork to eBook Conversion Method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |