CN110069942A - Watermark embedding method, device, equipment and computer readable storage medium - Google Patents

Watermark embedding method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN110069942A
CN110069942A CN201910204803.1A CN201910204803A CN110069942A CN 110069942 A CN110069942 A CN 110069942A CN 201910204803 A CN201910204803 A CN 201910204803A CN 110069942 A CN110069942 A CN 110069942A
Authority
CN
China
Prior art keywords
watermark
unit
patterns
base unit
embedding method
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
CN201910204803.1A
Other languages
Chinese (zh)
Other versions
CN110069942B (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.)
GUANGDONG LIWEI NETWORK TECHNOLOGY CO LTD
Multi Benefit Network Co Ltd
Guangzhou Duoyi Network Co Ltd
Original Assignee
GUANGDONG LIWEI NETWORK TECHNOLOGY CO LTD
Multi Benefit Network Co Ltd
Guangzhou Duoyi Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by GUANGDONG LIWEI NETWORK TECHNOLOGY CO LTD, Multi Benefit Network Co Ltd, Guangzhou Duoyi Network Co Ltd filed Critical GUANGDONG LIWEI NETWORK TECHNOLOGY CO LTD
Priority to CN201910204803.1A priority Critical patent/CN110069942B/en
Publication of CN110069942A publication Critical patent/CN110069942A/en
Application granted granted Critical
Publication of CN110069942B publication Critical patent/CN110069942B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/32Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
    • H04N1/32101Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title
    • H04N1/32144Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title embedded in the image data, i.e. enclosed or integrated in the image, e.g. watermark, super-imposed logo or stamp
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/32Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
    • H04N1/32101Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title
    • H04N1/32144Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title embedded in the image data, i.e. enclosed or integrated in the image, e.g. watermark, super-imposed logo or stamp
    • H04N1/32149Methods relating to embedding, encoding, decoding, detection or retrieval operations
    • H04N1/3232Robust embedding or watermarking

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a kind of watermark embedding methods, comprising steps of obtaining pre-generated base unit and pre-generated watermark patterns;Wherein, the base unit is Xie Erbinsi group moment shape;The base unit is filled according to the watermark patterns, obtains watermark unit;Based on default queueing discipline, the watermark unit is embedded into file.The invention also discloses a kind of watermark embedding device, equipment and computer readable storage medium, embedded watermark unit has self-similarity, according to local watermark extracting watermark information and can restore global watermark, can effectively improve the anti-interference ability of watermark.

Description

Watermark embedding method, device, equipment and computer readable storage medium
Technical field
The present invention relates to digital watermark technology field more particularly to a kind of watermark embedding method, device, equipment and computers Readable storage medium storing program for executing.
Background technique
With the development and progress of information technology, multimedia messages exchange has reached unprecedented depth and range, but This also bring multimedia file infringement, bootlegging and propagate the problems such as, therefore, how to protect multimedia file copyright by To the great attention of people, and important means of the watermark embedding technique as multimedia file copyright protection, to promoting information skill The development of art plays important function.
Currently, the digital watermarking type of multimedia file insertion includes stealthy watermark and plaintext watermark, by by invisible water Print or plaintext watermark with specified arrangement, be abound with arrangement, arbitrarily arrangement, troop's arrangement or diagonally the arrangement modes such as arrange and be added to In multimedia file, to realize the watermark insertion of multimedia file.
Inventor has found in the practice of the invention, in the prior art, when the digital water of multimedia file insertion When print type is stealthy watermark, it is difficult to carry out restoring watermark letter in the photo that reproduction obtains to the multimedia file from cracker Breath, the anti-interference ability of stealthy watermark are lower.And when the digital watermarking type of multimedia file addition is plaintext watermark, due to Common plaintext watermark is usually horizontal, vertical or sideling discharges ciphertext, and regularity is strong, and cracker is more to this from specific angle Media file carries out reproduction, watermark region can be avoided, in addition, even if wrapping in the screenshot or reproduction from a photograph of the multimedia file Watermark containing plaintext can be broken once cracker such as amplifies to its screenshot or photo, reduces, distorts or cut at the geometric attacks Watermark in bad screenshot or photo, cause watermark information can not by accurate reproduction, the anti-interference ability of common plaintext watermark compared with It is low.
Summary of the invention
The embodiment of the present invention provides a kind of watermark embedding method, device, equipment and computer readable storage medium, embedded Watermark unit have self-similarity, can according to part watermark extracting watermark information and restore global watermark, can effectively mention The anti-interference ability of high watermark.
To achieve the above object, the embodiment of the invention provides a kind of watermark embedding methods, comprising steps of
Obtain pre-generated base unit and pre-generated watermark patterns;Wherein, the base unit is Xie Erbin This group moment shape;
The base unit is filled according to the watermark patterns, obtains watermark unit;
Based on default queueing discipline, the watermark unit is embedded into file.
As an improvement of the above scheme, the base unit generates as follows:
Based on preset minimum rectangle block size, predetermined rectangle is handled using recursive algorithm, generation is thanked Er Binsi group moment shape, using as the base unit.
As an improvement of the above scheme, the watermark patterns generate as follows:
Obtain pre-generated basic watermark patterns and pre-generated cipher-text information;
The basic watermark patterns are filled according to the cipher-text information, obtain the watermark patterns.
As an improvement of the above scheme, described that the basic watermark patterns are filled according to the cipher-text information, it obtains To the watermark patterns, comprising steps of
Based on preset corresponding relationship, graphic element is combined according to the cipher-text information, obtains figure ciphertext;Its In, the preset corresponding relationship is the corresponding relationship of each character and each graphic element in the cipher-text information;
The basic watermark patterns are filled according to the figure ciphertext, obtain the watermark patterns.
As an improvement of the above scheme, described that the basic watermark patterns are filled according to the figure ciphertext, it obtains To the watermark patterns, specifically:
Using depth-first search strategy, the basic watermark patterns are filled according to the figure ciphertext, are obtained The watermark patterns.
As an improvement of the above scheme, described that the watermark unit is embedded into file based on default queueing discipline, it wraps Include step:
The watermark unit is rotated according to preset watermark placement direction, obtains postrotational watermark unit;
Based on default queueing discipline, the postrotational watermark unit is embedded into file.
As an improvement of the above scheme, described that the base unit is filled according to the watermark patterns, obtain water After impression member, further comprise the steps of:
Obtain the setup parameter of the watermark unit;
According to the setup parameter, the property parameters of the watermark unit are adjusted.
The embodiment of the invention also provides a kind of watermark embedding devices, comprising:
Module is obtained, for obtaining pre-generated base unit and pre-generated watermark patterns;Wherein, the basis Unit is Xie Erbinsi group moment shape;
Watermark unit generation module obtains watermark for being filled according to the watermark patterns to the base unit Unit;
It is embedded in module, for based on default queueing discipline, the watermark unit to be embedded into file.
The embodiment of the invention also provides a kind of watermark embedding apparatus, including processor, memory and it is stored in described In memory and it is configured as the computer program executed by the processor, when the processor executes the computer program Realize watermark embedding method as described in any one of the above embodiments.
The embodiment of the invention also provides a kind of computer readable storage medium, the computer readable storage medium includes The computer program of storage, wherein control in computer program operation and set where the computer readable storage medium It is standby to execute watermark embedding method as described in any one of the above embodiments.
Compared with prior art, watermark embedding method disclosed by the invention, device, equipment and computer-readable storage medium Matter, by being filled out according to the pre-generated watermark patterns got to the pre-generated Xie Erbinsi group moment shape got It fills, obtains watermark unit, and then based on default queueing discipline, the watermark unit is embedded into file.Due to the watermark Unit can cover the full content in file, the safety of the file information can be effectively ensured, and the watermark unit has certainly Similitude can extract watermark information according to the localized watermark in the watermark unit and restore global watermark, can effectively improve The anti-interference ability of watermark.
Detailed description of the invention
Fig. 1 is a kind of flow diagram for watermark embedding method that one embodiment of the invention provides.
Fig. 2 is a kind of structural schematic diagram for Xie Erbinsi group moment shape that one embodiment of the invention provides.
Fig. 3 is a kind of structural schematic diagram for flakes figure that one embodiment of the invention provides.
Fig. 4 is a kind of watermark unit schematic diagram that one embodiment of the invention provides.
Fig. 5 is a kind of postrotational watermark unit schematic diagram that one embodiment of the invention provides.
Fig. 6 is a kind of effect diagram for realizing watermark insertion that one embodiment of the invention provides.
Fig. 7 is a kind of structural schematic diagram for watermark embedding device that one embodiment of the invention provides.
Fig. 8 is a kind of structural schematic diagram for watermark embedding apparatus that one embodiment of the invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
It is a kind of flow diagram for watermark embedding method that one embodiment of the invention provides referring to Fig. 1.This method can be with It is executed by mobile device, the mobile device for executing the interactive approach can be smart phone, tablet computer, desktop computer or notes This computer etc., those skilled in the art can select according to the actual situation, and it is obtainable beneficial to effect not influence the present invention Fruit.The watermark embedding method comprising steps of
S110, pre-generated base unit and pre-generated watermark patterns are obtained;Wherein, the base unit is to thank Er Binsi group moment shape.
It should be noted that Xie Erbinsi group moment shape is a kind of fractal graph similar with Chezy-Manning formula, it is certainly One kind of similar collection.Chezy-Manning formula is the figure on mathematical concept, uses square to carry out a point shape and constructs, unreal Border is applied in watermark field, similarly, is not also correspondingly improved for watermark feature, and the Xie Erbinsiji in the present invention Rectangle carries out a point shape using rectangle and constructs, and applies it in watermark field, to widen its scope of application.As shown in Fig. 2, Fig. 2 It is a kind of structural schematic diagram of Xie Erbinsi group moment shape provided in an embodiment of the present invention.
Further, the base unit generates as follows:
Based on preset minimum rectangle block size, predetermined rectangle is handled using recursive algorithm, generation is thanked Er Binsi group moment shape, using as the base unit.
Specifically, steps are as follows: step 1 for the recursive generation of Xie Erbinsi group moment shape, is by predetermined rectangular partition The rectangular block at each nine grids center is called center bulk by nine grids, and the rectangular block on center bulk periphery is known as periphery fritter; Each periphery fritter is divided into nine grids respectively by step 2, consistent with step 1, the rectangular block at each nine grids center Referred to as center bulk, the rectangular block on periphery are known as periphery fritter;Step 3, rerun step 2, until detecting that periphery is small When the size of block is less than preset minimum rectangle block size, out of service, the figure generated at this time is Xie Erbinsi group moment shape. It should be understood that in practical applications, the preset minimum rectangle block size can be selected according to the actual situation, not Influence beneficial effects of the present invention.Preferably, it can be and minimum rectangle block size be preset as the character size being less than in file, To guarantee all information covered in file, to further ensure the safety of the file information.
It should be understood that the pre-generated watermark patterns can be the watermark of digital form, it is also possible to text shape The watermark of formula, the watermark of image format or geometric format can be selected, according to the actual situation in practical applications Do not influence beneficial effects of the present invention.In practical applications, it can be the ciphertext arrangement mode of self-defining watermark patterns, such as With the ciphertext arrangement mode of " rice " font or snowflake shape mode radially outward, so that when by reproduction attack or geometric attack, No matter cracker with what angle is shot or is distorted, can be clearly apparent the ciphertext discharged in watermark patterns.
Further, the watermark patterns generate as follows:
S111, pre-generated basic watermark patterns and pre-generated cipher-text information are obtained.
It should be understood that the pre-generated basic watermark patterns can be number, be also possible to text, image or Geometric figure can be selected according to the actual situation in practical applications, not influence beneficial effects of the present invention.It is preferred that Ground, by taking the basic watermark patterns are geometric figure as an example, the basis watermark patterns can be flakes figure, so that meeting with When by reproduction attack or geometric attack, no matter cracker with what angle is shot or is distorted, can be clearly apparent watermark patterns The ciphertext of middle discharge.As shown in figure 3, Fig. 3 is a kind of structural schematic diagram of flakes figure provided in an embodiment of the present invention.
The cleartext information of user preset is converted using Encryption Algorithm it should be noted that can be, to generate State cipher-text information.It is to be appreciated that the cleartext information can be text, it is also possible to the data or other shapes of various systems The data of formula, do not influence beneficial effects of the present invention.The cipher-text information can be text, be also possible to the number of various systems According to or other forms data, do not influence beneficial effects of the present invention.
Further, the cipher-text information generates as follows:
Obtain the cleartext information of user preset;
The cleartext information is converted into binary data, using as the cipher-text information.
By taking the cleartext information is decimal data as an example, it can be and turn what radix-2 algorithm will acquire using the decimal system The decimal data of user preset is converted to binary data, using as the cipher-text information.
S112, the basic watermark patterns are filled according to the cipher-text information, obtain the watermark patterns.
By taking the cipher-text information is binary data as an example, it can be and fill the binary data to the base water Ciphertext section is used as on each line segment of impression shape, to obtain watermark patterns.
Further, described that the basic watermark patterns are filled according to the cipher-text information, obtain the watermark Figure, comprising steps of
Based on preset corresponding relationship, graphic element is combined according to the cipher-text information, obtains figure ciphertext;Its In, the preset corresponding relationship is the corresponding relationship of each character and each graphic element in the cipher-text information;
The basic watermark patterns are filled according to the figure ciphertext, obtain the watermark patterns.
It should be noted that the unlimited shape of the graphic element, pattern, size and color, can be according to the ciphertext Corresponding preset corresponding relationship, which is arranged, in the data mode of information can be the cipher-text information in the preset corresponding relationship In the corresponding graphic element of single character.By taking the cipher-text information is binary data " 011 " as an example, described preset right In should being related to, " " in " 0 " corresponding graphic element in cipher-text information, " 1 " corresponding pattern primitive in cipher-text information can be "-" in element is based on preset corresponding relationship, is combined according to binary data " 011 " to graphic element, obtains graphic element It combines " -- ", using as figure ciphertext, the figure ciphertext is filled to making on each line segment of the basic watermark patterns For ciphertext section, to obtain watermark patterns.By filling the basic watermark according to the figure ciphertext combined by graphic element Figure, to obtain having been filled with the watermark patterns of ciphertext, so that watermark after by reproduction attack or geometric attack, is convenient for confirmation simultaneously And cipher-text information is told, the resistivity that geometric attack and reproduction are attacked in watermark is further improved, so that watermark is passing through Watermark information can be still restored in high precision after crossing geometric attack or reproduction attack, to further increase the anti-interference ability of watermark.
Further, described that the basic watermark patterns are filled according to the figure ciphertext, obtain the watermark Figure, specifically:
Using depth-first search strategy, the basic watermark patterns are filled according to the figure ciphertext, are obtained The watermark patterns.
It is that for graphic element combines " -- ", can be using depth-first search strategy by the figure ciphertext, from The upper left corner of basic watermark patterns starts, wired with the institute of the sequential search from top to bottom from left to right basis watermark patterns Section, and graphic element combination " -- " is successively used to fill the line segment searched as ciphertext section, to obtain the watermark patterns.
S120, the base unit is filled according to the watermark patterns, obtains watermark unit.
It, can be with it should be understood that each rectangular block in the base unit is the region for placing the watermark patterns It is in each rectangular block that the watermark patterns are filled in the base unit, to obtain watermark unit.As shown in figure 4, Fig. 4 is a kind of watermark unit schematic diagram provided in an embodiment of the present invention.
S130, it is based on default queueing discipline, the watermark unit is embedded into file.
It is to be appreciated that can be based on preset N*M queueing discipline, N and M value is greater than 2, the watermark unit is pressed In default queueing discipline insertion file, it is also possible to based on the tangent rule of the adjacent watermark unit of any two or other rows The watermark unit is pressed in default queueing discipline insertion file, does not influence beneficial effects of the present invention by column rule.It needs It is bright, no matter the watermark unit is arranged with which kind of preset rules, requires to guarantee the adjacent watermark list of any two The distance between member is as small as possible, and the quantity of watermark unit is more as far as possible, and ciphertext is free of in watermark figure layer to reduce White space avoids the occurrence of cracker and is not covered by ciphertext to picture obtained from the file progress screenshot of insertion watermark or reproduction The case where, so that the resistivity that geometric attack and reproduction are attacked in watermark is improved, so that watermark is being passed through geometric attack or turned over Watermark information can be still restored in high precision after clapping attack.Preferably, the preset rules are the adjacent watermark unit phase of any two It cuts.
Further, described that the watermark unit is embedded into file based on default queueing discipline, comprising steps of
The watermark unit is rotated according to preset watermark placement direction, obtains postrotational watermark unit;
Based on default queueing discipline, the postrotational watermark unit is embedded into file.
In practical applications, the watermark placement direction can be preset according to the actual situation, not influence the present invention Beneficial effect.As shown in figure 5, Fig. 5 is a kind of postrotational watermark unit schematic diagram provided in an embodiment of the present invention, such as can To be default watermark placement direction for 45 degree of overturning angles, then 45 degree of overturning angle rotations is carried out to the watermark unit, rotated Watermark unit after 45 degree, in subsequent insertion file, and then to improve the resist geometric attacks ability of watermark, thus further Improve the anti-interference ability of watermark.As shown in fig. 6, Fig. 6 is a kind of effect for realizing watermark insertion provided in an embodiment of the present invention Schematic diagram.
Watermark embedding method disclosed by the embodiments of the present invention, by according to the pre-generated watermark patterns that get to obtaining The pre-generated Xie Erbinsi group moment shape got is filled, and watermark unit is obtained, and then based on default queueing discipline, by institute Watermark unit is stated to be embedded into file.The full content in file can be covered due to the watermark unit, can be effectively ensured The safety of the file information, and the watermark unit has self-similarity, can be mentioned according to the localized watermark in the watermark unit It takes watermark information and restores global watermark, the anti-interference ability of watermark can be effectively improved.
It is described that the base unit is filled out according to the watermark patterns in another preferred embodiment of the invention It fills, after obtaining watermark unit, further comprises the steps of:
Obtain the setup parameter of the watermark unit;
According to the setup parameter, the property parameters of the watermark unit are adjusted.
It should be noted that before the property parameters adjustment for not carrying out the watermark unit, the attribute of the watermark unit Parameter is default parameters, and the default parameters can be set according to the actual situation, does not influence beneficial effects of the present invention. In practical applications, the setup parameter of the watermark unit is set by the user, and the setup parameter of the watermark unit can be Lightness parameter is also possible to watermark color parameter, can also be the combination or other parameters of above-mentioned two parameter, does not influence Beneficial effects of the present invention.By taking the setup parameter of the watermark unit is watermark color parameter as an example, it can be basis and get The watermark unit set by user color parameter, adjust the shade of the watermark unit, as will be described watermark list The corresponding watermark color of bigger rectangular block is deeper in member, so that it is guaranteed that the readability of file is strong.
It is a kind of structural schematic diagram of watermark embedding device 20 provided in an embodiment of the present invention, described device packet referring to Fig. 7 It includes:
Module 21 is obtained, for obtaining pre-generated base unit and pre-generated watermark patterns;Wherein, the base Plinth unit is Xie Erbinsi group moment shape;
Watermark unit generation module 22 obtains water for being filled according to the watermark patterns to the base unit Impression member;
It is embedded in module 23, for based on default queueing discipline, the watermark unit to be embedded into file.
Watermark embedding method of the course of work of the watermark embedding device 20 as described in above-described embodiment, does not go to live in the household of one's in-laws on getting married herein It states.
Watermark embedding device disclosed by the embodiments of the present invention, by according to the pre-generated watermark patterns that get to obtaining The pre-generated Xie Erbinsi group moment shape got is filled, and watermark unit is obtained, and then based on default queueing discipline, by institute Watermark unit is stated to be embedded into file.The full content in file can be covered due to the watermark unit, can be effectively ensured The safety of the file information, and the watermark unit has self-similarity, can be mentioned according to the localized watermark in the watermark unit It takes watermark information and restores global watermark, the anti-interference ability of watermark can be effectively improved.
Referring to Fig. 8, one embodiment of the invention additionally provides a kind of watermark embedding apparatus 30, including processor 31, memory It 32 and is stored in the memory 32 and is configured as the computer program executed by the processor 31, the processor Watermark embedding method described in any embodiment as above is realized when the 31 execution computer program.Alternatively, the processor 31 The function of each module in watermark embedding device 20 is realized when executing the computer program.
One embodiment of the invention additionally provides a kind of computer readable storage medium, the computer readable storage medium packet Include the computer program of storage, wherein where controlling the computer readable storage medium in computer program operation Equipment executes watermark embedding method described in any embodiment as above.
Illustratively, the computer program can be divided into one or more modules, one or more of moulds Block is stored in the memory 32, and is executed by the processor 31, to complete the present invention.One or more of modules It can be the series of computation machine program instruction section that can complete specific function, the instruction segment is for describing the computer program Implementation procedure in the watermark embedding apparatus 30.For example, the computer program, which can be divided into, obtains module, watermark Unit generation module and insertion module, each module concrete function are as follows: module are obtained, for obtaining pre-generated base unit With pre-generated watermark patterns;Wherein, the base unit is Xie Erbinsi group moment shape;Watermark unit generation module, is used for The base unit is filled according to the watermark patterns, obtains watermark unit;It is embedded in module, for based on default arrangement The watermark unit is embedded into file by rule.
The watermark embedding apparatus 30 can be the meter such as desktop PC, notebook, palm PC and cloud server Calculate equipment.The watermark embedding apparatus 30 may include, but be not limited only to, processor 31, memory 32.Those skilled in the art can To understand, the schematic diagram is only the example of watermark embedding apparatus 30, does not constitute the restriction to watermark embedding apparatus 30, can To include perhaps combining certain components or different components, such as watermark insertion than illustrating more or fewer components Equipment 30 can also include input-output equipment, network access equipment, bus etc..
Alleged processor 31 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng the processor 31 is the control centre of the watermark embedding apparatus 30, utilizes various interfaces and the entire watermark of connection The various pieces of embedded equipment 30.
The memory 32 can be used for storing the computer program and/or module, and the processor is by operation or holds Row stores computer program and/or module in the memory, and calls the data being stored in memory, realizes institute State the various functions of watermark embedding apparatus 30.The memory 32 can mainly include storing program area and storage data area, wherein Storing program area can application program needed for storage program area, at least one function (for example sound-playing function, image play Function etc.) etc.;Storage data area, which can be stored, uses created data (such as audio data, phone directory etc.) according to mobile phone Deng.It can also include nonvolatile memory in addition, memory may include high-speed random access memory, such as hard disk, interior It deposits, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, Flash card (Flash Card), at least one disk memory, flush memory device or other volatile solid-state parts.
Wherein, if module/unit that the watermark embedding apparatus 30 integrates is realized in the form of SFU software functional unit simultaneously When sold or used as an independent product, it can store in a computer readable storage medium.Based on such reason Solution, the present invention realize all or part of the process in above-described embodiment method, can also instruct correlation by computer program Hardware complete, the computer program can be stored in a computer readable storage medium, the computer program is in quilt When processor executes, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program Code, the computer program code can be source code form, object identification code form, executable file or certain intermediate forms Deng.The computer-readable medium may include: any entity or device, record that can carry the computer program code Medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), with Machine access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..
It should be noted that the apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual It needs that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.In addition, device provided by the invention In embodiment attached drawing, the connection relationship between module indicate between them have communication connection, specifically can be implemented as one or A plurality of communication bus or signal wire.Those of ordinary skill in the art are without creative efforts, it can understand And implement.
Watermark embedding apparatus and computer readable storage medium disclosed by the embodiments of the present invention, by pre- according to getting The watermark patterns first generated are filled the pre-generated Xie Erbinsi group moment shape got, obtain watermark unit, in turn Based on default queueing discipline, the watermark unit is embedded into file.Since the watermark unit can cover in file Full content, the safety of the file information can be effectively ensured, and the watermark unit has self-similarity, can be according to the water Localized watermark in impression member extracts watermark information and restores global watermark, can effectively improve the anti-interference ability of watermark.
The above is a preferred embodiment of the present invention, it is noted that for those skilled in the art For, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as Protection scope of the present invention.

Claims (10)

1. a kind of watermark embedding method, which is characterized in that comprising steps of
Obtain pre-generated base unit and pre-generated watermark patterns;Wherein, the base unit is Xie Erbinsiji Rectangle;
The base unit is filled according to the watermark patterns, obtains watermark unit;
Based on default queueing discipline, the watermark unit is embedded into file.
2. watermark embedding method as described in claim 1, which is characterized in that the base unit generates as follows:
Based on preset minimum rectangle block size, predetermined rectangle is handled using recursive algorithm, generates Xie Erbin This group moment shape, using as the base unit.
3. watermark embedding method as described in claim 1, which is characterized in that the watermark patterns generate as follows:
Obtain pre-generated basic watermark patterns and pre-generated cipher-text information;
The basic watermark patterns are filled according to the cipher-text information, obtain the watermark patterns.
4. watermark embedding method as claimed in claim 3, which is characterized in that it is described according to the cipher-text information to the basis Watermark patterns are filled, and obtain the watermark patterns, comprising steps of
Based on preset corresponding relationship, graphic element is combined according to the cipher-text information, obtains figure ciphertext;Wherein, institute State the corresponding relationship that preset corresponding relationship is each character and each graphic element in the cipher-text information;
The basic watermark patterns are filled according to the figure ciphertext, obtain the watermark patterns.
5. watermark embedding method as claimed in claim 4, which is characterized in that it is described according to the figure ciphertext to the basis Watermark patterns are filled, and obtain the watermark patterns, specifically:
Using depth-first search strategy, the basic watermark patterns are filled according to the figure ciphertext, are obtained described Watermark patterns.
6. watermark embedding method as described in claim 1, which is characterized in that it is described based on default queueing discipline, by the water Impression member is embedded into file, comprising steps of
The watermark unit is rotated according to preset watermark placement direction, obtains postrotational watermark unit;
Based on default queueing discipline, the postrotational watermark unit is embedded into file.
7. watermark embedding method as described in claim 1, which is characterized in that it is described according to the watermark patterns to the basis Unit is filled, and after obtaining watermark unit, is further comprised the steps of:
Obtain the setup parameter of the watermark unit;
According to the setup parameter, the property parameters of the watermark unit are adjusted.
8. a kind of watermark embedding device characterized by comprising
Module is obtained, for obtaining pre-generated base unit and pre-generated watermark patterns;Wherein, the base unit For Xie Erbinsi group moment shape;
Watermark unit generation module obtains watermark unit for being filled according to the watermark patterns to the base unit;
It is embedded in module, for based on default queueing discipline, the watermark unit to be embedded into file.
9. a kind of watermark embedding apparatus, which is characterized in that including processor, memory and storage in the memory and by It is configured to the computer program executed by the processor, is realized when the processor executes the computer program as right is wanted Watermark embedding method described in asking 1 to 7.
10. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium includes the calculating of storage Machine program, wherein equipment where controlling the computer readable storage medium in computer program operation is executed as weighed Benefit require 1 to 7 described in watermark embedding method.
CN201910204803.1A 2019-03-18 2019-03-18 Watermark embedding method, device, equipment and computer readable storage medium Active CN110069942B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910204803.1A CN110069942B (en) 2019-03-18 2019-03-18 Watermark embedding method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910204803.1A CN110069942B (en) 2019-03-18 2019-03-18 Watermark embedding method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110069942A true CN110069942A (en) 2019-07-30
CN110069942B CN110069942B (en) 2021-01-19

Family

ID=67365326

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910204803.1A Active CN110069942B (en) 2019-03-18 2019-03-18 Watermark embedding method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110069942B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116127916A (en) * 2022-11-18 2023-05-16 百望股份有限公司 Method and device for dynamically adding watermark

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1790420A (en) * 2005-12-01 2006-06-21 北京北大方正电子有限公司 Method and apparatus for embedding and detecting digital watermark in text file
CN102054284A (en) * 2009-10-29 2011-05-11 夏普株式会社 Image processing apparatus, image data output processing apparatus and image processing method
US8792141B2 (en) * 2011-06-09 2014-07-29 Xerox Corporation Embedded form extraction definition to enable automatic workflow configuration
CN106385539A (en) * 2016-09-22 2017-02-08 深圳市思创奇科技有限公司 Photograph processing method and system
CN109146759A (en) * 2018-07-23 2019-01-04 深圳市联软科技股份有限公司 A kind of forming method, device, medium and the equipment of figure watermark

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1790420A (en) * 2005-12-01 2006-06-21 北京北大方正电子有限公司 Method and apparatus for embedding and detecting digital watermark in text file
CN102054284A (en) * 2009-10-29 2011-05-11 夏普株式会社 Image processing apparatus, image data output processing apparatus and image processing method
US8792141B2 (en) * 2011-06-09 2014-07-29 Xerox Corporation Embedded form extraction definition to enable automatic workflow configuration
CN106385539A (en) * 2016-09-22 2017-02-08 深圳市思创奇科技有限公司 Photograph processing method and system
CN109146759A (en) * 2018-07-23 2019-01-04 深圳市联软科技股份有限公司 A kind of forming method, device, medium and the equipment of figure watermark

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孔祥言: "《高等渗流力学》", 31 January 2010 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116127916A (en) * 2022-11-18 2023-05-16 百望股份有限公司 Method and device for dynamically adding watermark
CN116127916B (en) * 2022-11-18 2024-05-28 百望股份有限公司 Method and device for dynamically adding watermark

Also Published As

Publication number Publication date
CN110069942B (en) 2021-01-19

Similar Documents

Publication Publication Date Title
CN107463398B (en) Game rendering intent, device, storage device and terminal
CN106713964A (en) Method of generating video abstract viewpoint graph and apparatus thereof
CN108057245B (en) Map generation method and device, storage medium and terminal
CN108154548A (en) Image rendering method and device
CN108961141A (en) Dual Zero watermarking method, system, storage medium and the server of map vector
CN108269062A (en) Electronic contract production method, device, equipment and medium based on H5
CN108921266B (en) Static two-dimensional code encryption display method and device based on image segmentation
CN109379642A (en) It is a kind of for adding and detecting the method and apparatus of video watermark
CN108765520A (en) Rendering intent and device, storage medium, the electronic device of text message
CN114677473A (en) Method, device and equipment for reconstructing three-dimensional model and storage medium
CN103093127B (en) Method and system of dynamic copyright protection based on sudoku and multiple digital watermarks
CN110069942A (en) Watermark embedding method, device, equipment and computer readable storage medium
CN108668161A (en) Method of video image processing, computer installation and computer readable storage medium
Liao et al. Embedding information within dynamic visual patterns
CN108040190A (en) A kind of stealth watermark recognition methods, device and storage device
CN110111231A (en) Watermark embedding method, device, equipment and computer readable storage medium
CN110414243B (en) Two-dimensional code encryption method and device and two-dimensional code decryption method and device
CN110414663B (en) Convolution implementation method of neural network and related product
CN110675460A (en) Picture processing method, device and equipment
CN106201838A (en) Video download progress display packing and device
Markuš et al. Fast rendering of image mosaics and ascii art
CN109657514A (en) It is a kind of for generating and identifying the method and apparatus of two dimensional code
CN112516593B (en) Card drawing method, card drawing system and computer equipment
CN111612920B (en) Method and equipment for generating point cloud three-dimensional space image
CN115134473B (en) Image encryption method and device

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