CN108174051A - A kind of vector watermark decoding method, device and electronic equipment - Google Patents

A kind of vector watermark decoding method, device and electronic equipment Download PDF

Info

Publication number
CN108174051A
CN108174051A CN201711295954.XA CN201711295954A CN108174051A CN 108174051 A CN108174051 A CN 108174051A CN 201711295954 A CN201711295954 A CN 201711295954A CN 108174051 A CN108174051 A CN 108174051A
Authority
CN
China
Prior art keywords
vector
information
watermark
symbol
character
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
CN201711295954.XA
Other languages
Chinese (zh)
Other versions
CN108174051B (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201711295954.XA priority Critical patent/CN108174051B/en
Publication of CN108174051A publication Critical patent/CN108174051A/en
Application granted granted Critical
Publication of CN108174051B publication Critical patent/CN108174051B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/32267Methods relating to embedding, encoding, decoding, detection or retrieval operations combined with processing of the image
    • H04N1/32277Compression

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the present application provides a kind of vector watermark decoding method, device and electronic equipment, applied to field of information security technology, the method includes:Obtain information to be encoded;Correspondence based on character in default vector watermark encoder mode and first kind vector symbol determines that each the corresponding first kind vector of character to be encoded accords in information to be encoded, obtains the vector watermark information of information to be encoded, vector watermark information includes:Each corresponding first kind vector symbol of character to be encoded, wherein, it is to be accorded with using the vector of 2 points expression characters to preset the first kind vector symbol in vector watermark encoder mode;Vector watermark information is added in picture to be added.The embodiment of the present application realizes the vector watermark encoder of much information by using the vector symbol of 2 points, and vector watermark encoder is more efficient, and by the addition of vector watermark information in picture to be added, concealment is stronger, to the interference smaller of initial data in picture to be added.

Description

A kind of vector watermark decoding method, device and electronic equipment
Technical field
This application involves field of information security technology, more particularly to a kind of vector watermark decoding method, device and electricity Sub- equipment.
Background technology
Information medium is digitized as the providing convenience property of access of information, at the same also improve information representation efficiency and Accuracy, people can be by means of electronic equipments such as computer, digital scanner, printers easily and quickly by digital information It is transferred in network.But the modes such as digital information is easy to by taking pictures, screenshotss, printing are stolen, and lead to the version of digital information Power cannot ensure.The copyright of digital information can be protected by watermark at present, watermark is a kind of digital information salvo, Watermark information is added exactly into initial data to reach the functions such as copyright protection, the watermark information of addition does not influence initial data Ornamental and integrality.
Vector watermark shows watermark with the mode that a kind of " slight type " marks, and is almost equal to " stealthy watermark ".For example, Computerized information to user etc. is encrypted, and obtains information to be encoded, represents each in information to be encoded by vector symbol Character obtains vector watermark, and vector watermark is added in initial data.If vector watermark is added in initial data, surreptitiously Taker is by carrying out the initial data added with vector watermark in the picture of screen shot or screenshotss acquisition once by user It was found that, you can by being decoded to the vector watermark information on picture, computerized information of user etc. is obtained, due to user's Computerized information belongs to the information of user rather than the information of stealer, it may be determined that the copyright for the picture that stealer obtains is returned User owns.And for printing, it can force computer that safeguard protection software, the safeguard protection software are installed by access-in management Vector watermark is added inside content when user prints in printing.If the computer for being equipped with safeguard protection software is beaten Material is printed, will will appear vector watermark in material, computerized information and time-write interval information etc. are included in vector watermark.Once it beats The data of print is leaked, and the computerized information for printing the data and time-write interval information are obtained by being decoded to vector watermark Deng may thereby determine that and revealed data using the user of the computer printout data in the time-write interval.Therefore, if printing Data be leaked, the vector watermark in the data of printing can also lock blabber.
It at present can be by having the vector symbol of 3 points to carry out vector watermark encoder, i.e., in the vector watermark encoder method Each character in information to be encoded is represented by the vector symbol with 3 points, obtains vector watermark, and vector watermark is added Into initial data.Since each character is by having the vector of 3 points to accord with expression, the interference of initial data is compared Greatly.In addition, the vector watermark encoder method is only capable of representing a kind of information, it is impossible to represent much information, that is, the information category represented It is relatively simple.
Invention content
The embodiment of the present application is designed to provide a kind of vector watermark decoding method, device and electronic equipment, to subtract Few interference of the vector watermark to initial data increases the type that vector watermark represents information.Specific technical solution is as follows:
The embodiment of the present application discloses a kind of vector watermark encoder method, and this method includes:
Obtain information to be encoded;
Correspondence based on character in default vector watermark encoder mode and first kind vector symbol, determines the letter to be encoded Each the corresponding first kind vector of character to be encoded accords in breath, obtains the vector watermark information of the information to be encoded, the vector water Official seal breath includes:Each the corresponding first kind vector of character to be encoded accords with for this, wherein, in the default vector watermark encoder mode First kind vector symbol is to represent that the vector of character accords with using 2 points;
The vector watermark information is added in picture to be added.
The embodiment of the present application discloses a kind of vector watermark decoding method, and this method includes:
The first kind vector symbol in the vector watermark information in picture to be decoded is obtained, wherein, first kind vector symbol is The vector for representing character using 2 points accords with;
Correspondence based on character in default vector watermark encoder mode and first kind vector symbol determines that the first kind is sweared Amount accords with corresponding character.
The embodiment of the present application discloses a kind of vector watermark encoder device, which includes:
Data obtaining module to be encoded, for obtaining information to be encoded;
First kind vector accords with determining module, is accorded with for being based on character in default vector watermark encoder mode with first kind vector Correspondence, determine in the information to be encoded the corresponding first kind vector symbol of each character to be encoded, obtain the letter to be encoded The vector watermark information of breath, the vector watermark information include:Each the corresponding first kind vector of character to be encoded accords with for this, wherein, First kind vector symbol in the default vector watermark encoder mode is to represent that the vector of character accords with using 2 points;
Vector watermark information add module, for the vector watermark information to be added in picture to be added.
The embodiment of the present application discloses a kind of vector watermark decoding apparatus, which includes:
First kind vector accords with acquisition module, for obtaining the first kind vector in the vector watermark information in picture to be decoded Symbol, wherein, first kind vector symbol is to represent that the vector of character accords with using 2 points;
Character determining module, for the corresponding pass accorded with based on character in default vector watermark encoder mode with first kind vector System determines that the first kind vector accords with corresponding character.
The embodiment of the present application discloses a kind of terminal device, including:Processor and machine readable storage medium, which can It reads storage medium and is stored with the machine-executable instruction that can be performed by the processor, the processor is by the machine-executable instruction Promote:The step of realizing the vector watermark encoder method of any of the above-described.
The embodiment of the present application discloses a kind of terminal device, including:Processor and machine readable storage medium, which can It reads storage medium and is stored with the machine-executable instruction that can be performed by the processor, the processor is by the machine-executable instruction Promote:The step of realizing the vector watermark decoding method of any of the above-described.
Vector watermark decoding method provided by the embodiments of the present application, device and electronic equipment are carrying out vector watermark volume During code, after information to be encoded is obtained, accorded with based on character in default vector watermark encoder mode with first kind vector corresponding Relationship determines that each the corresponding first kind vector of character to be encoded accords in information to be encoded, obtains the vector water of information to be encoded Official seal ceases;Vector watermark information is added in picture to be added.When carrying out vector watermark decoding, obtain in picture to be decoded Vector watermark information in the first kind vector symbol, based on character in default vector watermark encoder mode and the first kind vector symbol Correspondence determines that first kind vector accords with corresponding character.The embodiment of the present application is by having the first kind vector symbol table of 2 points Show each character in information to be encoded, and generate vector watermark information, reduce vector watermark information in picture to be added The interference of initial data.Certainly, implement the application any product or method it is not absolutely required to and meanwhile reach above-described All advantages.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or it will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of flow chart of the vector watermark encoder method of the embodiment of the present application;
Fig. 2 is the correspondence schematic diagram of the character and first kind vector symbol of the embodiment of the present application;
Fig. 3 is another flow chart of the vector watermark encoder method of the embodiment of the present application;
Fig. 4 is the information type of the embodiment of the present application and the correspondence schematic diagram of the second class vector symbol;
Fig. 5 is a kind of flow chart of the vector watermark decoding method of the embodiment of the present application;
Fig. 6 is another flow chart of the vector watermark decoding method of the embodiment of the present application;
Fig. 7 is the structure chart of the vector watermark encoder device of the embodiment of the present application;
Fig. 8 is the structure chart of the vector watermark decoding apparatus of the embodiment of the present application;
Fig. 9 is a kind of structure chart of the terminal device of the embodiment of the present application;
Figure 10 is another structure chart of the terminal device of the embodiment of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, the technical solution in the embodiment of the present application is carried out clear, complete Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, those of ordinary skill in the art are obtained every other without making creative work Embodiment shall fall in the protection scope of this application.
Information kind more apparent in order to solve vector watermark object, that and vector watermark big to initial data interference represents The problem of class is relatively simple, the embodiment of the present application provide a kind of vector watermark decoding method, device, electronic equipment and readable Storage medium to reduce interference of the vector watermark to initial data, increases the type that vector watermark represents information.
It describes in detail first below to the vector watermark encoder method of the embodiment of the present application.
Referring to Fig. 1, Fig. 1 is a kind of flow chart of the vector watermark encoder method of the embodiment of the present application, is included the following steps:
S101 obtains information to be encoded.
In the embodiment of the present application, information to be encoded is usually the mark that can be distinguished with other information, for example, terminal Information etc..The embodiment of the present application is illustrated by taking end message as an example, and end message includes:Terminal name, user's name, IP (Internet Protocol, Internet protocol) address, MAC (Media Access Control, media access control) address Deng.Referring to table one, table one is the terminal information table in the embodiment of the present application.
Table one
In order to improve the safety of end message, in a kind of realization method of the application, end message can be added It is close, encryption information is obtained, encryption information is as information to be encoded.End message is encrypted and is referred to in end message Each category information be encrypted respectively, for example, the terminal name in end message is encrypted, to the use in end message Name in an account book claims to be encrypted.In addition, since the terminal access date in end message belongs to temporal information, there is no information securities The terminal access date can not also be encrypted in hidden danger, the embodiment of the present application, and terminal directly is accessed the date as to be encoded Information, wherein, cipher mode can be md5 encryption algorithm.Referring to table two and table three, table two is terminal name in the embodiment of the present application Claim encrypted result, table three is user's name encrypted result in the embodiment of the present application.
Table two
Serial number Terminal name Md5 encryption result
1 C09234 7C04D0D4EF78
2 W12334a DC5360DE4928
3 D1232ee A0369F8B0A62
Table three
Serial number User's name Md5 encryption result
1 admin 5065F32FAC07
2 C00198 A0369FD4B4D4
3 root 3464A9057684
In the embodiment of the present application, can be to the detailed process that end message is encrypted:Terminal device is by end message Control server is sent to, control server is encrypted end message by md5 encryption algorithm, and control server will be encrypted Encryption information later is sent to terminal device.Terminal device, will after the encryption information that control server is sent is received Encryption information is as information to be encoded.
Since the length of encryption information obtained after md5 encryption is carried out is longer, usually 16 or 32, if directly It connects and vector watermark encoder is carried out to obtained encryption information, i.e., vector watermark encoder is carried out to each character in encryption information, So, it will obtain the vector watermark information more than comparison.In order to avoid generating more vector watermark information, the application's is another In kind realization method, end message is encrypted, obtains encryption information, and encryption information is intercepted according to preset length, cut Encryption information after taking is as information to be encoded.Wherein, preset length can be 6, or 8,10,12 etc., The size of preset length can be set according to the number of terminal device.Specifically, if terminal device is more, in order to distinguish Different terminal devices avoids terminal device smaller in preset length, different from being encrypted and preset length It is identical to intercept the information to be encoded obtained later, preset length can be set as to larger numerical value.
S102, the correspondence based on character in default vector watermark encoder mode and first kind vector symbol, determines to wait to compile Each the corresponding first kind vector of character to be encoded accords in code information, obtains the vector watermark information of information to be encoded, vector water Official seal breath includes:Each corresponding first kind vector symbol of character to be encoded, wherein, preset first in vector watermark encoder mode Class vector symbol is to represent that the vector of character accords with using 2 points.
Vector symbol in the default vector watermark encoder mode of the embodiment of the present application includes:First kind vector accords with.The first kind Vector symbol includes a variety of different vectors symbols, and different vector symbols can by the distance between 2 points and orientation angles into Row is distinguished.Referring to Fig. 2, Fig. 2 is the correspondence schematic diagram of the character and first kind vector symbol of the embodiment of the present application, can be seen Go out, kinds of characters corresponding first kind vector symbol is different, and 2 points in the corresponding first kind vector symbol of kinds of characters The distance between and azimuth be different.Certainly, the character in the embodiment of the present application is in addition to shown in Fig. 2 1~9 corresponding Vector accords with, and further includes:The corresponding vector symbol such as character 0 and character A~F, it is numerous to list herein.Also, above-mentioned character with The correspondence of first kind vector symbol is only one kind in the embodiment of the present application.
After the correspondence that character is accorded with first kind vector in default vector watermark encoder mode is determined, based on default The correspondence of character and first kind vector symbol, determines each character to be encoded in information to be encoded in vector watermark encoder mode Corresponding first kind vector symbol, obtains the vector watermark information of information to be encoded.Since information to be encoded includes much information class The corresponding vector watermark information of each information can be ranked up by type according to predetermined order mode, and what is finally obtained is to be encoded The vector watermark information of information is the vector watermark information of the much information type after sorting according to predetermined order mode.
Vector watermark information is added in picture to be added by S103.
In the embodiment of the present application, after vector watermark information is obtained, according to the big of pre-defined vector watermark information Obtained vector watermark information can be repeated the entire screen for being covered with initial data by small, spacing.
Vector watermark encoder method provided by the embodiments of the present application, after information to be encoded is obtained, based on default vector The correspondence of character and first kind vector symbol in watermark encoder mode determines that each character to be encoded corresponds in information to be encoded The first kind vector symbol, obtain the vector watermark information of information to be encoded;Vector watermark information is added in picture to be added. The embodiment of the present application represents each character in information to be encoded by the first kind vector symbol with 2 points, and generates vector Watermark information reduces interference of the vector watermark information to initial data in picture to be added.
Referring to Fig. 3, Fig. 3 is another flow chart of the vector watermark encoder method of the embodiment of the present application, including following step Suddenly:
S301 obtains information to be encoded.
S302, the correspondence based on character in default vector watermark encoder mode and first kind vector symbol, determines to wait to compile Each the corresponding first kind vector of character to be encoded accords in code information, obtains the vector watermark information of information to be encoded, vector water Official seal breath includes:Each corresponding first kind vector symbol of character to be encoded, wherein, preset first in vector watermark encoder mode Class vector symbol is to represent that the vector of character accords with using 2 points.
S303 obtains the information type of information to be encoded.
In the embodiment of the present application, in order to be believed with the vector watermark of each information type in circle of good definition resolute watermark information Breath when treating coding information progress vector watermark encoder, can also treat the corresponding information type of coding information and be encoded. So, when obtaining information to be encoded, it is also necessary to obtain the information type of information to be encoded.
S304, the correspondence based on information type in default vector watermark encoder mode and the second class vector symbol, determines The corresponding second class vector symbol of information type of information to be encoded, vector watermark information further include:The info class of information to be encoded The corresponding second class vector symbol of type, wherein, the second class vector symbol preset in vector watermark encoder mode is to be represented using 2 points The vector symbol of information type.
Specifically, the vector symbol in the default vector watermark encoder mode of the embodiment of the present application can also include:Second class Vector accords with, and for distinguishing the vector watermark information of different information types, information type accords with the second class vector symbol with the second class vector It is one-to-one.Referring to Fig. 4, Fig. 4 is that the information type of the embodiment of the present application and the correspondence of the second class vector symbol are illustrated Figure, it can be seen that it is different that the corresponding second class vector of terminal name, which accords with the second class vector symbol corresponding with user's name, and And each vector symbol in being accorded with from first kind vector is different, i.e., is between each vector symbol in default vector watermark encoder mode Different.Certainly, the information type in the embodiment of the present application can there are many kinds of, the corresponding second class vector symbol of each information type It is numerous to list herein.
After the corresponding second class vector symbol of information type for determining information to be encoded, a kind of realization method of the application In, it can be by the vector watermark of the corresponding information to be encoded of each information type of the corresponding second class vector symbol insertion of each information type Before information.It is accorded in this way, vector watermark information not only includes first kind vector, further includes the second class vector symbol.With end message For, the vector watermark information finally obtained is:The corresponding second class vector symbol+terminal name of terminal name is corresponding to be encoded The corresponding information pair to be encoded of the corresponding second class vector symbol+user's name of the corresponding first kind vector symbol+user's name of information The first kind vector symbol answered+....Wherein ,+order of representation connection relation, does not indicate that practical character.
Vector watermark information is added in picture to be added by S305.
Since S301, S302, S305 are identical with S101, S102, S103 in Fig. 1 embodiments respectively, S101, S102, All realization methods of S103 are suitable for Fig. 3, and can reach the same or similar advantageous effect, and details are not described herein.
Vector watermark encoder method provided by the embodiments of the present application, after information to be encoded is obtained, based on default vector The correspondence of character and first kind vector symbol in watermark encoder mode determines that each character to be encoded corresponds in information to be encoded The first kind vector symbol, obtain the vector watermark information of information to be encoded;Based on info class in default vector watermark encoder mode The correspondence of type and the second class vector symbol determines the corresponding second class vector symbol of information type of information to be encoded, by vector Watermark information is added in picture to be added.It is accorded in this way, vector watermark information not only includes first kind vector, further includes the second class Vector accords with.The corresponding second class vector of each information type is accorded with information to be encoded corresponding with each information type by the embodiment of the present application Corresponding first kind vector symbol arranges in order, obtains vector watermark information, therefore, the embodiment of the present application can be represented clearly The vector watermark information of much information type, and the vector symbol in vector watermark information with 2 points reduces vector watermark Interference of the information to initial data in picture to be added.
The embodiment of the present application additionally provides a kind of vector watermark decoding method, and referring to Fig. 5, Fig. 5 is the embodiment of the present application A kind of flow chart of vector watermark decoding method, includes the following steps:
S501 obtains the first kind vector symbol in the vector watermark information in picture to be decoded, wherein, first kind vector symbol For 2 points is used to represent the vector symbol of character.
In the embodiment of the present application, first kind vector symbol is that the vector in default vector watermark encoder mode accords with, and character It is one-to-one with first kind vector symbol, the correspondence of character and first kind vector symbol can be found in Fig. 2.In order to to be decoded Vector watermark information in picture is decoded, and needs to obtain the first kind vector symbol in vector watermark information.
S502, the correspondence based on character in default vector watermark encoder mode and first kind vector symbol, determines first Class vector accords with corresponding character.
Specifically, after first kind vector symbol is obtained, based on character and the first kind in default vector watermark encoder mode The correspondence of vector symbol determines that first kind vector accords with corresponding character, in this way, multiple characters are commonly available, it is multiple Character forms character string in order, and obtained character string is vector watermark decoded information.
The vector watermark decoding method of the embodiment of the present application is accorded with by obtaining the first kind vector in vector watermark information, Correspondence based on character in default vector watermark encoder mode and first kind vector symbol determines that first kind vector symbol is corresponding Character, in this way, can obtain first kind vector accords with the character string that corresponding character is formed, so as to obtain vector watermark decoding letter Breath.2 points are included in being accorded with due to first kind vector, the embodiment of the present application vector watermark information treats decoding picture Central Plains The interference of beginning data is smaller.
In a kind of realization method of the application, after S502, corresponding character can also be accorded with to first kind vector by suitable The character string that sequence is formed is decrypted, and obtains solution confidential information, solution confidential information is as end message.
In the embodiment of the present application, obtained vector watermark decoded information can be end message, in general, in order to improve terminal The safety of information when carrying out vector watermark encoder, is first encrypted end message, obtains encryption information, then right Encryption information carries out vector watermark encoder.Correspondingly, when carrying out vector watermark decoding, obtained vector watermark decoded information is Encryption information after end message is encrypted, then, it needs that vector watermark decoded information is decrypted, is decrypted Information, solution confidential information is as end message.The process that vector watermark decoded information is decrypted is specially:According to vector watermark The correspondence of decoded information and end message and encryption information obtains the corresponding end message of vector watermark decoded information. Wherein, end message and the correspondence of encryption information are established when carrying out vector watermark encoder.
In another realization method of the application, after S502, it can also determine that first kind vector accords with corresponding character The corresponding encryption information of character string formed in order, is decrypted encryption information, obtains solution confidential information, solves confidential information conduct End message, wherein, it is according to default length to encryption information that first kind vector, which accords with the character string that corresponding character is formed in order, Information after degree interception.
In the embodiment of the present application, in order to improve the safety of end message, when carrying out vector watermark encoder, first to end Client information is encrypted, and obtains encryption information, in general, the length of obtained encryption information is longer, if directly added to what is obtained Confidential information carries out vector watermark encoder, i.e., carries out vector watermark encoder to each character in encryption information, then, it will it obtains Compare more vector watermark informations.In order to avoid generating more vector watermark information, end message is encrypted, is added Confidential information, and encryption information is intercepted according to preset length, vector watermark encoder is carried out to the encryption information after interception.Accordingly Ground when carrying out vector watermark decoding, is believed according to the character string that the corresponding character of first kind vector symbol is formed in order with encryption The correspondence of breath determines that first kind vector accords with the corresponding encryption information of character string that corresponding character is formed in order, pair plus Confidential information is decrypted, and obtains solution confidential information, solution confidential information is as end message.
Referring to Fig. 6, Fig. 6 is another flow chart of the vector watermark decoding method of the embodiment of the present application, in Fig. 5 embodiments On the basis of, it is further comprising the steps of:
S601 obtains the second class vector symbol in the vector watermark information in picture to be decoded, wherein, the second class vector symbol For 2 points is used to represent the vector symbol of information type.
It can also include the second class vector in a kind of realization method of the application, in vector watermark information to accord with, the second class arrow Amount symbol is to represent that the vector of information type accords with using 2 points, presets different vector symbols in vector watermark encoder mode and passes through 2 points The distance between and orientation angles distinguish.Information type and the second class vector symbol are one-to-one, information types and the The correspondence of two class vectors symbol can be found in Fig. 4.The corresponding information type of vector watermark information in order to obtain needs to obtain vector The second class vector symbol in watermark information.
S602, the correspondence based on information type in default vector watermark encoder mode and the second class vector symbol, determines Second class vector accords with corresponding information type.
In Fig. 6 embodiments, S601, S602 can be after S501, S502, can also be before S501, S502, can be with Parallel with S501, S502, the embodiment of the present application does not limit the sequence of S601, S602 and S501, S502.Getting After two class vectors symbol, the correspondence based on information type in default vector watermark encoder mode and the second class vector symbol, really Fixed second class vector accords with corresponding information type.In general, the second class vector symbol and first kind vector symbol in vector watermark information Sequence is the pre-set sequence when carrying out vector watermark encoder.By taking end message as an example, the vector water in picture to be decoded Official seal ceases:The corresponding first kind vector symbol of the corresponding second class vector symbol+corresponding coding information of terminal name of terminal name+ The corresponding first kind vector symbol of the corresponding second class vector symbol+corresponding coding information of user's name of user's name+....So, After vector watermark decoding is carried out to vector watermark information, that is, first kind vector is obtained by S502 and accords with corresponding word After according with and obtaining the corresponding information type of the second class vector symbol by S602, it can obtain:Terminal name+terminal name The corresponding vector watermark decoded information+corresponding vector watermark decoded information of user's name+user's name+....Therefore, by upper Vector watermark decoding method is stated, the corresponding vector watermark decoded information of each information type can be obtained.
The embodiment of the present application is after the first kind vector symbol in obtaining vector watermark information and the second class vector symbol, respectively Vector watermark decoding is carried out, and set in advance according to when carrying out vector watermark encoder to first kind vector symbol and the second class vector symbol The sequence of the second class vector symbol and first kind vector symbol put, determines the corresponding vector watermark decoded information of each information type.This Application embodiment can accord with obtaining the information type in vector watermark information, and according to the second class conveniently by the second class vector Vector accords with the sequence with first kind vector symbol, obtains the corresponding vector watermark decoded information of each information type.
Corresponding to above method embodiment, the embodiment of the present application additionally provides a kind of vector watermark encoder device, referring to figure 7, Fig. 7 structure chart for the vector watermark encoder device of the embodiment of the present application, including:
Data obtaining module 701 to be encoded, for obtaining information to be encoded.
First kind vector accords with determining module 702, is sweared for being based on character in default vector watermark encoder mode with the first kind The correspondence of symbol is measured, determines that each the corresponding first kind vector of character to be encoded accords in information to be encoded, obtains letter to be encoded The vector watermark information of breath, vector watermark information include:Each corresponding first kind vector symbol of character to be encoded, wherein, it presets First kind vector symbol in vector watermark encoder mode is to represent that the vector of character accords with using 2 points.
Vector watermark information add module 703, for vector watermark information to be added in picture to be added.
Vector watermark encoder device provided by the embodiments of the present application, after information to be encoded is obtained, based on default vector The correspondence of character and first kind vector symbol in watermark encoder mode determines that each character to be encoded corresponds in information to be encoded The first kind vector symbol, obtain the vector watermark information of information to be encoded;Vector watermark information is added in picture to be added. The embodiment of the present application represents each character in information to be encoded by the first kind vector symbol with 2 points, and generates vector Watermark information reduces interference of the vector watermark information to initial data in picture to be added.
In a kind of realization method of the application, vector watermark encoder device further includes:
Information type acquisition module, for obtaining the information type of information to be encoded.
Second class vector accords with determining module, is sweared for being based on information type in default vector watermark encoder mode with the second class The correspondence of symbol is measured, determines the corresponding second class vector symbol of information type of information to be encoded, vector watermark information further includes: The corresponding second class vector symbol of information type of information to be encoded, wherein, preset the second class arrow in vector watermark encoder mode Amount symbol is to represent that the vector of information type accords with using 2 points.
In a kind of realization method of the application, vector watermark encoder device further includes:
First encrypting module for end message to be encrypted, obtains encryption information, encryption information is as letter to be encoded Breath;Or
Second encrypting module for end message to be encrypted, obtains encryption information, and to encryption information according to default Length intercepts, and the encryption information after interception is as information to be encoded.
The difference in vector watermark encoder mode is preset in a kind of realization method of the application, in vector watermark encoder device Vector accords with, and is distinguished by the distance between 2 points and orientation angles.
The embodiment of the present application additionally provides a kind of vector watermark decoding apparatus, and referring to Fig. 8, Fig. 8 is the embodiment of the present application The structure chart of vector watermark decoding apparatus, including:
First kind vector accords with acquisition module 801, for obtaining the first kind in the vector watermark information in picture to be decoded Vector accords with, wherein, first kind vector symbol is to represent that the vector of character accords with using 2 points.
Character determining module 802, for pair based on character in default vector watermark encoder mode and first kind vector symbol It should be related to, determine that first kind vector accords with corresponding character.
The vector watermark decoding apparatus of the embodiment of the present application is accorded with by obtaining the first kind vector in vector watermark information, Correspondence based on character in default vector watermark encoder mode and first kind vector symbol determines that first kind vector symbol is corresponding Character, in this way, can obtain first kind vector accords with the character string that corresponding character is formed, so as to obtain vector watermark decoding letter Breath.2 points are included in being accorded with due to first kind vector, the embodiment of the present application vector watermark information treats decoding picture Central Plains The interference of beginning data is smaller, and can easily identify that the first kind vector in vector watermark information accords with, and then to first Class vector symbol carries out vector watermark decoding.
In a kind of realization method of the application, vector watermark decoding apparatus further includes:
Second class vector accords with acquisition module, for obtaining the second class vector in the vector watermark information in picture to be decoded Symbol, wherein, the second class vector symbol is to represent that the vector of information type accords with using 2 points;
Information type determining module accords with for being based on information type in default vector watermark encoder mode with the second class vector Correspondence, determine that the second class vector accords with corresponding information type.
In a kind of realization method of the application, vector watermark decoding apparatus further includes:
First deciphering module is decrypted for according with the character string that corresponding character is formed in order to first kind vector, Solution confidential information is obtained, solution confidential information is as end message;Or
Second deciphering module, for determine first kind vector accord with character string that corresponding character formed in order it is corresponding plus Encryption information is decrypted in confidential information, obtains solution confidential information, solves confidential information as end message, wherein, first kind vector symbol The character string that corresponding character is formed in order is the information after being intercepted to encryption information according to preset length.
The difference in vector watermark encoder mode is preset in a kind of realization method of the application, in vector watermark decoding apparatus Vector accords with, and is distinguished by the distance between 2 points and orientation angles.
The embodiment of the present application additionally provides a kind of terminal device, and referring to Fig. 9, Fig. 9 is the terminal device of the embodiment of the present application A kind of structure chart, including:Processor 901 and machine readable storage medium 902, machine readable storage medium 902 are stored with energy Enough machine-executable instructions performed by processor 901, processor 901 are promoted by machine-executable instruction:It realizes any of the above-described The step of vector watermark encoder method.
The embodiment of the present application additionally provides a kind of terminal device, and referring to Figure 10, Figure 10 is that the terminal of the embodiment of the present application is set Standby another structure chart, including:Processor 1001 and machine readable storage medium 1002, machine readable storage medium 1002 are deposited The machine-executable instruction that can be performed by processor 1001 is contained, processor 1001 is promoted by machine-executable instruction:It realizes The step of any of the above-described vector watermark decoding method.
Above-mentioned machine readable storage medium 902 and machine readable storage medium 1002 can include RAM (Random Access Memory, random access memory), nonvolatile memory (non-volatile memory) can also be included, A for example, at least magnetic disk storage, machine readable storage medium can also be at least one and be located remotely from depositing for aforementioned processor Storage device.
Above-mentioned processor 901 and processor 1001 can be general processors, including:CPU(Central Processing Unit, central processing unit), NP (Network Processor, network processing unit) etc.;It can also be DSP (Digital Signal Processing, digital signal processor), ASIC (Application Specific Integrated Circuit, application-specific integrated circuit), FPGA (Field-Programmable Gate Array, field programmable gate array) or Person other programmable logic device, discrete gate or transistor logic, discrete hardware components.
The embodiment of the present application additionally provides a kind of machine readable storage medium, and machine readable storage medium is stored with machine can Execute instruction, when being called and being performed by processor, machine-executable instruction promotes processor:Realize any of the above-described vector watermark The step of coding method.
The embodiment of the present application additionally provides a kind of machine readable storage medium, and machine readable storage medium is stored with machine can Execute instruction, when being called and being performed by processor, machine-executable instruction promotes processor:Realize any of the above-described vector watermark The step of coding/decoding method.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any this practical relationship or sequence.Moreover, term " comprising ", "comprising" or its any other variant are intended to Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those Element, but also including other elements that are not explicitly listed or further include as this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that Also there are other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is described using relevant mode, identical similar portion between each embodiment Point just to refer each other, and the highlights of each of the examples are difference from other examples.Especially for device, For electronic equipment and machine readable storage medium embodiment, since it is substantially similar to embodiment of the method, so the ratio of description Relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely the preferred embodiments of the application, are not intended to limit the protection domain of the application.It is all Any modification, equivalent replacement, improvement and so within spirit herein and principle are all contained in the protection domain of the application It is interior.

Claims (18)

  1. A kind of 1. vector watermark encoder method, which is characterized in that the method includes:
    Obtain information to be encoded;
    Correspondence based on character in default vector watermark encoder mode and first kind vector symbol, determines the information to be encoded In the corresponding first kind vector symbol of each character to be encoded, obtain the vector watermark information of the information to be encoded, the vector Watermark information includes:The corresponding first kind vector symbol of each character to be encoded, wherein, the default vector watermark encoder side First kind vector symbol in formula is to represent that the vector of character accords with using 2 points;
    The vector watermark information is added in picture to be added.
  2. 2. vector watermark encoder method according to claim 1, which is characterized in that described by the vector watermark information Before added in picture to be added, the method further includes:
    Obtain the information type of the information to be encoded;
    Correspondence based on information type in the default vector watermark encoder mode and the second class vector symbol, determines described treat The corresponding second class vector symbol of information type of coding information, the vector watermark information further include:The information to be encoded The corresponding second class vector symbol of information type, wherein, the second class vector symbol in the default vector watermark encoder mode is makes The vector for representing information type with 2 points accords with.
  3. 3. vector watermark encoder method according to claim 1, which is characterized in that it is described obtain information to be encoded it Before, the method further includes:
    End message is encrypted, obtains encryption information, the encryption information is as information to be encoded;Or
    End message is encrypted, encryption information is obtained, and the encryption information is intercepted according to preset length, after interception Encryption information is as information to be encoded.
  4. 4. according to claims 1 to 3 any one of them vector watermark encoder method, which is characterized in that the default vector water The different vectors symbol in coding mode is printed, is distinguished by the distance between 2 points and orientation angles.
  5. 5. a kind of vector watermark decoding method, which is characterized in that the method includes:
    The first kind vector symbol in the vector watermark information in picture to be decoded is obtained, wherein, the first kind vector symbol is makes The vector for representing character with 2 points accords with;
    Correspondence based on character in default vector watermark encoder mode and first kind vector symbol, determines the first kind vector Accord with corresponding character.
  6. 6. vector watermark decoding method according to claim 5, which is characterized in that the method further includes:
    The second class vector symbol in the vector watermark information in the picture to be decoded is obtained, wherein, the second class vector symbol For 2 points is used to represent the vector symbol of information type;
    Correspondence based on information type in the default vector watermark encoder mode and the second class vector symbol, determines described the Two class vectors accord with corresponding information type.
  7. 7. vector watermark decoding method according to claim 5, which is characterized in that determine the first kind vector described After according with corresponding character, the method further includes:
    The character string that corresponding character is formed in order is accorded with to the first kind vector to be decrypted, and obtains solution confidential information, it is described Confidential information is solved as end message;Or
    Determine that the first kind vector accords with the corresponding encryption information of character string that corresponding character is formed in order, to the encryption Information is decrypted, and obtains solution confidential information, the solution confidential information as end message, wherein, first kind vector symbol correspondence The character string that is formed in order of character be information after being intercepted to the encryption information according to preset length.
  8. 8. according to claim 5~7 any one of them vector watermark decoding method, which is characterized in that the default vector water The different vectors symbol in coding mode is printed, is distinguished by the distance between 2 points and orientation angles.
  9. 9. a kind of vector watermark encoder device, which is characterized in that described device includes:
    Data obtaining module to be encoded, for obtaining information to be encoded;
    First kind vector accords with determining module, for pair based on character in default vector watermark encoder mode and first kind vector symbol It should be related to, determine that each the corresponding first kind vector of character to be encoded accords in the information to be encoded, obtains the letter to be encoded The vector watermark information of breath, the vector watermark information include:The corresponding first kind vector symbol of each character to be encoded, In, the first kind vector symbol in the default vector watermark encoder mode is to represent that the vector of character accords with using 2 points;
    Vector watermark information add module, for the vector watermark information to be added in picture to be added.
  10. 10. vector watermark encoder device according to claim 9, which is characterized in that described device further includes:
    Information type acquisition module, for obtaining the information type of the information to be encoded;
    Second class vector accords with determining module, is sweared for being based on information type in the default vector watermark encoder mode with the second class The correspondence of symbol is measured, determines the corresponding second class vector symbol of information type of the information to be encoded, the vector watermark letter Breath further includes:The corresponding second class vector symbol of information type of the information to be encoded, wherein, the default vector watermark encoder The second class vector symbol in mode is to represent that the vector of information type accords with using 2 points.
  11. 11. vector watermark encoder device according to claim 9, which is characterized in that described device further includes:
    First encrypting module for end message to be encrypted, obtains encryption information, the encryption information is as letter to be encoded Breath;Or
    Second encrypting module for end message to be encrypted, obtains encryption information, and to the encryption information according to default Length intercepts, and the encryption information after interception is as information to be encoded.
  12. 12. according to claim 9~11 any one of them vector watermark encoder device, which is characterized in that the default vector Different vectors symbol in watermark encoder mode, is distinguished by the distance between 2 points and orientation angles.
  13. 13. a kind of vector watermark decoding apparatus, which is characterized in that described device includes:
    First kind vector accords with acquisition module, for obtaining the symbol of the first kind vector in the vector watermark information in picture to be decoded, Wherein, the first kind vector symbol is to represent that the vector of character accords with using 2 points;
    Character determining module, for based on character in default vector watermark encoder mode and the first kind vector symbol correspondence, Determine that the first kind vector accords with corresponding character.
  14. 14. vector watermark decoding apparatus according to claim 13, which is characterized in that described device further includes:
    Second class vector accords with acquisition module, for obtaining the second class vector in the vector watermark information in the picture to be decoded Symbol, wherein, the second class vector symbol is to represent that the vector of information type accords with using 2 points;
    Information type determining module accords with for being based on information type in the default vector watermark encoder mode with the second class vector Correspondence, determine that the second class vector accords with corresponding information type.
  15. 15. vector watermark decoding apparatus according to claim 13, which is characterized in that described device further includes:
    First deciphering module is decrypted for according with the character string that corresponding character is formed in order to the first kind vector, Solution confidential information is obtained, the solution confidential information is as end message;Or
    Second deciphering module, for determine the first kind vector accord with character string that corresponding character formed in order it is corresponding plus The encryption information is decrypted in confidential information, obtain solution confidential information, it is described solution confidential information as end message, wherein, it is described It is after being intercepted to the encryption information according to preset length that first kind vector, which accords with the character string that corresponding character is formed in order, Information.
  16. 16. according to claim 13~15 any one of them vector watermark decoding apparatus, which is characterized in that the default vector Different vectors symbol in watermark encoder mode, is distinguished by the distance between 2 points and orientation angles.
  17. 17. a kind of terminal device, which is characterized in that including:Processor and machine readable storage medium, the machine readable storage Media storage has the machine-executable instruction that can be performed by the processor, and the processor is by the machine-executable instruction Promote:Realize Claims 1 to 4 any one of them vector watermark encoder method and step.
  18. 18. a kind of terminal device, which is characterized in that including:Processor and machine readable storage medium, the machine readable storage Media storage has the machine-executable instruction that can be performed by the processor, and the processor is by the machine-executable instruction Promote:Realize claim 5~8 any one of them vector watermark decoding method step.
CN201711295954.XA 2017-12-08 2017-12-08 A kind of vector watermark decoding method, device and electronic equipment Active CN108174051B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711295954.XA CN108174051B (en) 2017-12-08 2017-12-08 A kind of vector watermark decoding method, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711295954.XA CN108174051B (en) 2017-12-08 2017-12-08 A kind of vector watermark decoding method, device and electronic equipment

Publications (2)

Publication Number Publication Date
CN108174051A true CN108174051A (en) 2018-06-15
CN108174051B CN108174051B (en) 2019-11-08

Family

ID=62525565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711295954.XA Active CN108174051B (en) 2017-12-08 2017-12-08 A kind of vector watermark decoding method, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN108174051B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111191414A (en) * 2019-11-11 2020-05-22 苏州亿歌网络科技有限公司 Page watermark generation method, identification method, device, equipment and storage medium
CN115334317A (en) * 2022-10-11 2022-11-11 北京溯源鸿业科技有限公司 Information processing method, device and equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001218016A (en) * 2000-01-28 2001-08-10 M Ken Co Ltd Electronic watermark information detection device, its detecting method and recording medium incorporating electronic water mark information detecting method
US20040052401A1 (en) * 2002-06-18 2004-03-18 Masahiko Suzaki Watermark information embedding device and watermark information detection device
CN101257545A (en) * 2007-02-27 2008-09-03 冲电气工业株式会社 Image processing device, method and computer program
CN101751656A (en) * 2008-12-22 2010-06-23 北京大学 Watermark embedding and extraction method and device
CN105095791A (en) * 2015-08-12 2015-11-25 深圳市联软科技有限公司 Data security protection method and system
CN105141409A (en) * 2015-08-12 2015-12-09 深圳市联软科技有限公司 Method, terminal and server for realizing screen digital watermarks
CN107256530A (en) * 2017-05-19 2017-10-17 努比亚技术有限公司 Adding method, mobile terminal and the readable storage medium storing program for executing of picture watermark
CN107391976A (en) * 2017-08-18 2017-11-24 北京明朝万达科技股份有限公司 A kind of document protection method and apparatus based on ambient noise and vector watermark

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001218016A (en) * 2000-01-28 2001-08-10 M Ken Co Ltd Electronic watermark information detection device, its detecting method and recording medium incorporating electronic water mark information detecting method
US20040052401A1 (en) * 2002-06-18 2004-03-18 Masahiko Suzaki Watermark information embedding device and watermark information detection device
CN101257545A (en) * 2007-02-27 2008-09-03 冲电气工业株式会社 Image processing device, method and computer program
CN101751656A (en) * 2008-12-22 2010-06-23 北京大学 Watermark embedding and extraction method and device
CN105095791A (en) * 2015-08-12 2015-11-25 深圳市联软科技有限公司 Data security protection method and system
CN105141409A (en) * 2015-08-12 2015-12-09 深圳市联软科技有限公司 Method, terminal and server for realizing screen digital watermarks
CN107256530A (en) * 2017-05-19 2017-10-17 努比亚技术有限公司 Adding method, mobile terminal and the readable storage medium storing program for executing of picture watermark
CN107391976A (en) * 2017-08-18 2017-11-24 北京明朝万达科技股份有限公司 A kind of document protection method and apparatus based on ambient noise and vector watermark

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111191414A (en) * 2019-11-11 2020-05-22 苏州亿歌网络科技有限公司 Page watermark generation method, identification method, device, equipment and storage medium
CN115334317A (en) * 2022-10-11 2022-11-11 北京溯源鸿业科技有限公司 Information processing method, device and equipment

Also Published As

Publication number Publication date
CN108174051B (en) 2019-11-08

Similar Documents

Publication Publication Date Title
USRE42762E1 (en) Device and method for authenticating user's access rights to resources
CN101529791B (en) The method and apparatus for providing certification and secrecy using the low device of complexity
CN106161034A (en) Use the RSA deciphering of multiplication privacy share
CN107784207B (en) Display method, device and equipment of financial APP interface and storage medium
WO2016086788A1 (en) Method and apparatus for encrypting/decrypting data on mobile terminal
WO2017016447A1 (en) Two-dimensional code mask encryption and decryption method and system
CN101262599A (en) Method and system for data processing
CN104322003A (en) Cryptographic authentication and identification method using real-time encryption
CN109698935A (en) Monitor video encrypting and decrypting method and device, equipment, storage medium, system
CN109583218B (en) Confidential file protection and positioning method, device, equipment and readable storage medium
CN108174051B (en) A kind of vector watermark decoding method, device and electronic equipment
CN112258376A (en) Encrypted document processing method and system
CN108319822A (en) A kind of method, storage medium, electronic equipment and the system of protection web page code
Saraswat et al. A review of digital image steganography
Rahnama et al. Securing RFID-based authentication systems using ParseKey+
CN104901967A (en) Registration method for trusted device
JP2006211588A (en) Method and program for detecting impersonation of web site
CN110968878B (en) Information transmission method, system, electronic equipment and readable medium
Goudar et al. Secure data transmission by using steganography
CN108337233A (en) It is a kind of to the encrypted method of content information, electronic equipment and storage medium
US11469879B2 (en) Text watermarking method and apparatus for hiding information into text documents
Chaudhary et al. An elucidation on steganography and cryptography
US20090125994A1 (en) Communication between a human user and a computer resistant to automated eavesdropping
CN100546242C (en) A kind of generation of super code and authentication method
Bhivgade et al. Multi-factor authentication in banking sector

Legal Events

Date Code Title Description
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