Summary of the invention
One or more embodiments of this specification describe a kind of watermark generation method and device.
According in a first aspect, may include: acquisition and app the embodiment provides a kind of watermark generation method
The associated finger print information of operation;The finger print information is encrypted to obtain one group of character string;By one group of character string
It is converted into ASCII character, and the ASCII character is converted into one or more groups of rgb values;And by one or more groups of RGB
Value and picture associated with the app are merged.
In one embodiment, the method can also include: to judge whether to meet predetermined condition;Wherein, meeting
Finger print information associated with the operation of app is obtained when the predetermined condition.
In one embodiment, the predetermined condition can be user's screenshotss, wherein the picture is user to described
App carries out picture obtained from screenshotss;Or the predetermined condition can be user and stop operation in the app more than scheduled
Time threshold, wherein the picture is the picture shown in the app.
In one embodiment, the finger print information is the User ID that can log in the app, or be can be described
The MAC Address for the network equipment that app is resident.
According to one embodiment, the fusion may include: that the picture is divided into one or more regions, wherein institute
The quantity for stating region is identical as the group number of one or more groups of rgb values;In each region in one or more of regions
Insert a different set of rgb value.
In one embodiment, this method can also include by the EXIF information of one group of character string write-in picture
In.
According to second aspect, it may include: judgment module that the embodiment provides a kind of watermark generating means,
It is configured as judging whether to meet predetermined condition;Finger print information obtain module, be configured as when meeting predetermined conditions, obtain with
The associated finger print information of the operation of app;Encrypting module is configured as being encrypted to obtain one group of character to the finger print information
String;Conversion module is configured as one group of character string being converted into ASCII character, and the ASCII character is converted into one group
Or multiple groups rgb value;Fusion Module is configured as carrying out one or more groups of rgb values and picture associated with the app
Fusion.
In one embodiment, described device can also include: judgment module, be configured as judging whether to meet predetermined
Condition;Wherein, finger print information acquisition module is configured as obtaining when meeting the predetermined condition associated with the operation of app
Finger print information.
In one embodiment, Fusion Module may include region division module, be configured as the picture being divided into one
A or multiple regions, wherein the quantity in the region is identical as the group number of one or more groups of rgb values;With color mixing mould
Block is configured as inserting a different set of rgb value in each region in one or more of regions.
In another embodiment, which can also include: EXIF information generating module, be configured as described one group
Character string is written in the EXIF information of picture.
According to the third aspect, the embodiment provides a kind of finger print information analytic method based on watermark can be with
Include: to be stripped out the rgb value in the picture with watermark, obtain one or more groups of rgb values, wherein is described to have watermark
Picture be to app carry out screenshotss obtain;One or more groups of rgb values are converted into ASCII character, and will be described
ASCII character is converted into one group of character string;It is decrypted to obtain the finger print information with to one group of character string, wherein described
Finger print information is the User ID or the MAC Address of the network equipment be resident of the app for logging in app.
According to fourth aspect, the embodiment provides a kind of finger print information resolver based on watermark, comprising:
Rgb value strip module is configured as the rgb value in the picture with watermark being stripped out, obtains one or more groups of rgb values,
Wherein, the picture with watermark is to carry out screenshotss to app to obtain;Conversion module is configured as described one group or more
Group rgb value is converted into ASCII character, and the ASCII character is converted into one group of character string;And deciphering module, it is configured as pair
One group of character string is decrypted to obtain the finger print information, wherein and the finger print information is the User ID for logging in app, or
Person is the MAC Address for the network equipment that the app is resident.
According to the 5th aspect, a kind of computer readable storage medium is provided, computer program is stored thereon with, when described
When computer program executes in a computer, enable computer execute first aspect and the third aspect method.
According to the 6th aspect, a kind of calculating equipment, including memory and processor are provided, which is characterized in that described to deposit
It is stored with executable code in reservoir, when the processor executes the executable code, realizes first aspect and the third aspect
Method.
The present invention shows watermark by setting predetermined condition and is melted on a large scale by using rgb value with picture
It closes, provides not only better user experience, also be not easy to be removed watermark easily because of a wide range of covering of color lump.
Specific embodiment
With reference to the accompanying drawing, the scheme provided this specification is described.
Fig. 1 is the flow chart according to the watermark generation method of this specification embodiment.
In step 101, finger print information associated with the operation of app is obtained.
It is well known that most of app can both be run in such a way that user logs in, can also be not logged in user
In the case of run.Finger print information mentioned herein does not imply that the information associated with the physiology fingerprint of natural person of narrow sense, and
It is the information for referring to indicate user identity.
In the case where user logs in app, finger print information refers to the User ID about the app.App is not logged in user
In the case where, finger print information can be the MAC Address for running the network equipment of the app.In other words, as described above, being cut in user
In the case where shielding or stopping operation more than scheduled time threshold, such as the available User ID for logging in app or operation should
The MAC Address of the network equipment of app.
In step 102, the finger print information is encrypted to obtain one group of character string.
Reversible Encryption Algorithm is taken to encrypt finger print information, to obtain one group of character string.It can use all kinds of
Encryption Algorithm finger print information is encrypted, as long as can decrypt.Particular content and use depending on finger print information
Encryption Algorithm, the length of obtained one group of character string has different variations.
In one embodiment, before encryption, finger print information can also be upset, this upsets usually index
Word string falls to arrange, upsets sequence etc. by rule.
In step 103, one group of character string is converted into ASCII character, and by the ASCII character be converted into one group or
Multiple groups rgb value.
It is well known that rgb value is a kind of color standard of industry, it is by red (R), green (G), blue (B) three face
The variation of chrominance channel and their mutual superpositions obtain miscellaneous color.
For the watermark of the covering color lump class in app display information, this group of character string can be converted into ASCII character,
ASCII character is converted into rgb value again.It is not fixed as described above, the length for the character string that encryption obtains has with short, so conversion
Finally obtained rgb value can be one group of rgb value, be also possible to multiple groups rgb value.
In step 104, one or more groups of rgb values and picture associated with the app are merged.
Firstly, picture associated with app is divided into multiple regions by the group number of the rgb value obtained according to previous step,
Region quantity is identical as the group number of rgb value.For example, previous step has obtained 9 groups of rgb values, then picture is divided into 9 regions.
Then, different rgb values is inserted in each area, has thus reached picture and region and specified rgb value is specified to carry out color
Mixing.
It should be pointed out that the character string encrypted in step 102 can also be written in the EXIF information of picture.Picture
Exif can be additional among the file of the formats such as JPEG, TIFF, RIFF, increase related digital camera shooting letter for these files
The content and index map of breath or the version information etc. for increasing image processing software.Here, being actually that finger print information is written
In the EXIF information of picture.In this way, being believed when the picture for handling unauthorized is usurped and propagated according to the EXIF of the picture
Breath can be obtained by the finger print information of appropriator, and the same finger print information can be the User ID for logging in app or run the app
The MAC Address of the network equipment, etc..
It should also be noted that can also include that a judgement is before obtaining finger print information associated with the operation of app
No the step of meeting predetermined condition.Accordingly, in the case where meeting predetermined condition, the finger print information for just carrying out step 101 is obtained
Take step.
Predetermined condition mentioned herein can be user and carry out screenshotss to information shown by app, is also possible to user and exists
It is stopped operation in app more than scheduled time threshold, for example stopping clicking, stopping scroll operation is more than 10 seconds, it is such.It answers
Work as understanding, predetermined condition is related to user's screenshotss and to be made a reservation in order to which the information for preventing user from carrying out unauthorized is usurped or propagated
Condition and to stop operation related more than certain time be to promote user experience.When user uses app after all, Bu Huixi
There is watermark to be covered on current information always when hoping browsing.
Judge that whether the method for screenshotss can be various user, can both pass through the touching of the screenshotss key of app itself
Judgement is sent, can also judge that user uses other screenshotss modes and carries out screenshotss by other means.Equally, judge to use
The mode that family is not operated is also well-known to those skilled in the art, and its content is unrelated with emphasis of the invention.
Part is illustrated in order not to obscure emphasis of the invention, and the specific implementation procedure of judgement is not repeated then at this.
Fig. 2 is the block diagram according to the watermark generating means of this specification embodiment.
As shown in Fig. 2, the device includes that finger print information obtains module, encrypting module, conversion module and Fusion Module.
Finger print information obtains module, is configured as obtaining finger print information associated with the operation of app.
It is well known that most of app can both be run in such a way that user logs in, can also be not logged in user
In the case of run.Finger print information mentioned herein does not imply that the information associated with the physiology fingerprint of natural person of narrow sense, and
It is the information for referring to indicate user identity.
In the case where user logs in app, finger print information refers to the User ID about the app.App is not logged in user
In the case where, finger print information can be the MAC Address for running the network equipment of the app.In other words, as described above, being cut in user
In the case where shielding or stopping operation more than scheduled time threshold, finger print information obtains the available use for logging in app of module
Family ID or run the app the network equipment MAC Address.
Encrypting module is configured as being encrypted to obtain one group of character string to the finger print information.
Encrypting module can take reversible Encryption Algorithm to encrypt finger print information, to obtain one group of character string.It can be with
Finger print information is encrypted using miscellaneous Encryption Algorithm, as long as can decrypt.Tool depending on finger print information
The Encryption Algorithm held and used in vivo, the length of obtained one group of character string have different variations.In an embodiment
In, before encryption, finger print information can also be upset, this upset generally refer to numeric string fall to arrange, upset by rule it is suitable
Sequence etc..
Conversion module is configured as one group of character string being converted into ASCII character, and the ASCII character is converted
At one or more groups of rgb values.
It is well known that rgb value is a kind of color standard of industry, it is by red (R), green (G), blue (B) three face
The variation of chrominance channel and their mutual superpositions obtain miscellaneous color.It is covered to be shown in information in app
This group of character string can be converted into ASCII character, then ASCII character is converted into rgb value by the watermark of lid color lump class.Institute as above
It states, the length of the character string encrypted has to be not fixed with short, so converting finally obtained rgb value can be one group of RGB
Value, is also possible to multiple groups rgb value.
Fusion Module is configured as melting one or more groups of rgb values and picture associated with the app
It closes.Fusion Module may include region division module and color mixing module.
Firstly, region division module can will picture associated with app according to the group number for the rgb value that previous step obtains
Multiple regions are divided into, region quantity is identical as the group number of rgb value.For example, previous step has obtained 9 groups of rgb values, then by picture
It is divided into 9 regions.Then, color mixing money inserts different rgb values in each area, and it is specified thus to have reached picture
Region and specified rgb value carry out color mixing.
It should be pointed out that the character string encrypted by encrypting module can also be written in the EXIF information of picture.Such as
This, which can also include EXIF information generating module, be configured as that the EXIF letter of picture is written one group of character string into
In breath.Picture Exif can be additional among the file of the formats such as JPEG, TIFF, RIFF, be increased for these files related digital
The content and index map of camera photographing information or the version information etc. for increasing image processing software.Here, being actually that will refer to
Line information is written in the EXIF information of picture.In this way, when the picture for handling unauthorized is usurped and propagated, according to the figure
The EXIF information of piece can be obtained by the finger print information of appropriator, the same finger print information can be the User ID for logging in app or
Person runs MAC Address of the network equipment of the app, etc..
In one embodiment, the device of Fig. 2 can also include judgment module, be configured as judging whether to meet predetermined
Condition.Accordingly, finger print information obtains module in the case where meeting predetermined condition, just obtains associated with the operation of app
Finger print information.
Predetermined condition mentioned herein can be user and carry out screenshotss to information shown by app, is also possible to user and exists
It is stopped operation in app more than scheduled time threshold, for example stopping clicking, stopping scroll operation is more than 10 seconds, it is such.It answers
Work as understanding, predetermined condition is related to user's screenshotss and to be made a reservation in order to which the information for preventing user from carrying out unauthorized is usurped or propagated
Condition and to stop operation related more than certain time be to promote user experience.When user uses app after all, Bu Huixi
There is watermark to be covered on current information always when hoping browsing.
Judged by judgment module user whether the method for screenshotss can be it is various, both can by app from
The triggering of the screenshotss key of body judges, can also judge that user uses other screenshotss modes and cuts by other means
Screen.Equally, judge that the mode that user is not operated is also well-known to those skilled in the art, and its content and this hair
Bright emphasis is unrelated.Part is illustrated in order not to obscure emphasis of the invention, and the specific implementation procedure of judgement is not repeated then at this.
Fig. 3 is the flow chart according to the finger print information analytic method based on watermark of this specification embodiment.
Now, it illustrates based on to the picture with watermark according to Fig. 1 and Fig. 2 generation, therefrom obtains the specific of finger print information
Process.It should be pointed out that the method flow of Fig. 3 can actually be considered the inverse process of the method flow of Fig. 1.
In step 301, the rgb value in the picture with watermark is stripped out, one or more groups of rgb values are obtained, wherein
The picture with watermark is to carry out screenshotss to app to obtain.Here, removing is actually using filling rgb value in Fig. 2
Algorithm carries out reverse rgb value removing, to obtain one or more groups of rgb values.
In step 302, one or more groups of rgb values are converted into ASCII character, and the ASCII character is converted into
One group of character string.Equally, this step is the inverse process of Fig. 1 corresponding steps.
In step 303, one group of character string is decrypted to obtain the finger print information, wherein the finger print information
It is the User ID or the MAC Address of the network equipment be resident of the app for logging in app.As described above, this step is also
The inverse process of the encrypting step of Fig. 1 encrypts finger print information since using reversible encryption method in the method for Fig. 1,
Nature can be decrypted using corresponding decipherment algorithm.
The finger print information analytic method based on watermark of Fig. 3, may finally from unauthorized or usurp have big color lump water
User data/finger print information is parsed in the picture of print, for further investigating/calling to account.
Fig. 4 is the block diagram according to the finger print information resolver based on watermark of this specification embodiment.
As shown in figure 4, the device includes rgb value strip module, conversion module and deciphering module.
Rgb value strip module is configured as the rgb value in the picture with watermark being stripped out, obtains one group or more
Group rgb value, wherein the picture with watermark is to carry out screenshotss to app to obtain.Here, removing is actually to use Fig. 2
The algorithm of middle filling rgb value carries out reverse rgb value removing, to obtain one or more groups of rgb values.
Conversion module is configured as one or more groups of rgb values being converted into ASCII character, and by the ASCII character
It is converted into one group of character string.Equally, this step is the inverse process of Fig. 1 corresponding steps.
Deciphering module is configured as being decrypted to obtain the finger print information to one group of character string, wherein the finger
Line information is to log in the User ID or the MAC Address of the network equipment be resident of the app of app.As described above, this step
Rapid is also the inverse process of the encrypting step of Fig. 1, is carried out since using reversible encryption method in the method for Fig. 1 to finger print information
Encryption can be decrypted naturally using corresponding decipherment algorithm.
Embodiment according to another aspect also provides a kind of computer readable storage medium, is stored thereon with computer journey
Sequence enables computer execute and combines method described in Fig. 1 and Fig. 3 when the computer program executes in a computer.
According to the embodiment of another further aspect, a kind of calculating equipment, including memory and processor, the memory are also provided
In be stored with executable code, when the processor executes the executable code, realize the method in conjunction with described in Fig. 1 and Fig. 3.
Those skilled in the art are it will be appreciated that in said one or multiple examples, function described in the invention
It can be realized with hardware, software, firmware or their any combination.It when implemented in software, can be by these functions
Storage in computer-readable medium or as on computer-readable medium one or more instructions or code transmitted.
Above-described specific embodiment has carried out further the purpose of the present invention, technical scheme and beneficial effects
It is described in detail, it should be understood that being not intended to limit the present invention the foregoing is merely a specific embodiment of the invention
Protection scope, all any modification, equivalent substitution, improvement and etc. on the basis of technical solution of the present invention, done should all
Including within protection scope of the present invention.