CN110298779A - A kind of method and apparatus of Information hiding - Google Patents

A kind of method and apparatus of Information hiding Download PDF

Info

Publication number
CN110298779A
CN110298779A CN201810245063.1A CN201810245063A CN110298779A CN 110298779 A CN110298779 A CN 110298779A CN 201810245063 A CN201810245063 A CN 201810245063A CN 110298779 A CN110298779 A CN 110298779A
Authority
CN
China
Prior art keywords
watermark information
coefficient
embedded
watermark
piecemeal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810245063.1A
Other languages
Chinese (zh)
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201810245063.1A priority Critical patent/CN110298779A/en
Publication of CN110298779A publication Critical patent/CN110298779A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses the method and apparatus of Information hiding, are related to field of computer technology.One specific embodiment of this method includes: all phase biorthogonal conversion that piecemeal is carried out to the carrier of watermark information to be embedded, watermark information is embedded into the piecemeal DC coefficient that transformation obtains;The DC coefficient for being embedded with watermark information is subjected to anti-all phase biorthogonal conversion, to obtain the block of pixels for being embedded with watermark information;According to the block of pixels for being embedded with watermark information, the image for being embedded with watermark information is obtained.The embodiment be able to solve existing two dimensional code as identification, link jump, image watermarking and to the space of a whole page occupy the visual problem of bring.

Description

A kind of method and apparatus of Information hiding
Technical field
The present invention relates to field of computer technology more particularly to a kind of method and apparatus of Information hiding.
Background technique
Two dimensional code gos deep into each corner of mobile Internet at present, provides convenience for webpage interaction and publicity page displaying, But a kind of mode of the two dimensional code as Information hiding, itself is not effective information.The presence of two dimensional code can occupy part The space of a whole page, not a kind of interaction of close friend cause visual pollution to the originally beautiful space of a whole page.That is, two dimensional code essence is one The not effective data of means of kind of data encryption, the two dimensional code usually put on brochure or website provide link jump and Other people are paid close attention to, occupies effective display area, and influence perception.
In realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery:
In order to advanced optimize interaction, it is visual to solve the problems, such as that two dimensional code is brought, a kind of mode of new Information hiding It needs to propose.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method and apparatus of Information hiding, it is able to solve above-mentioned for mesh Preceding two dimensional code as identification, link jump, image watermarking and to the space of a whole page occupy the visual problem of bring.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of side for being embedded in watermark information is provided Method carries out all phase biorthogonal conversion of piecemeal including the carrier to watermark information to be embedded, watermark information is embedded into change It changes in the piecemeal DC coefficient of acquisition;The DC coefficient for being embedded with watermark information is subjected to anti-all phase biorthogonal conversion, it is embedding to obtain Enter to have the block of pixels of watermark information;According to the block of pixels for being embedded with watermark information, the image for being embedded with watermark information is obtained.
Optionally, watermark information is embedded into the piecemeal DC coefficient that transformation obtains, comprising:
The intermediate frequency coefficient in the DC coefficient of piecemeal is obtained, watermark information is embedded into the intermediate frequency system of the DC coefficient of the piecemeal In number.
Optionally, before watermark information being embedded into the piecemeal DC coefficient that transformation obtains, comprising:
Disorder processing is carried out to watermark information, to obtain the watermark information after disorder processing.
Optionally, disorder processing is carried out to watermark information, comprising:
Disorder processing is carried out to watermark information using Arnold conversion, to obtain watermark coefficient.
Optionally, watermark information is embedded into the piecemeal DC coefficient that transformation obtains, comprising:
SVD decomposition is carried out to piecemeal DC coefficient, watermark information is embedded into unusual value coefficient to obtain unusual value coefficient In;
When the DC coefficient that will be embedded with watermark information carries out anti-all phase biorthogonal conversion, then believe for watermark will be embedded with The unusual value coefficient of breath carries out anti-all phase biorthogonal conversion.
In addition, according to an aspect of an embodiment of the present invention, providing a kind of device for being embedded in watermark information, including transformation Module carries out all phase biorthogonal conversion of piecemeal, for the carrier to watermark information to be embedded to obtain the DC coefficient of piecemeal; It is embedded in module, for being embedded into watermark information in the DC coefficient of the piecemeal;Inverse transform block, for watermark letter will to be embedded with The DC coefficient of breath carries out anti-all phase biorthogonal conversion, to obtain the block of pixels for being embedded with watermark information;It is embedded with according to described The block of pixels of watermark information obtains the image for being embedded with watermark information.
Optionally, watermark information is embedded into the piecemeal DC coefficient that transformation obtains by the insertion module, comprising:
The intermediate frequency coefficient in the DC coefficient of piecemeal is obtained, watermark information is embedded into the intermediate frequency system of the DC coefficient of the piecemeal In number.
Optionally, before watermark information is embedded into the piecemeal DC coefficient that transformation obtains by the insertion module, comprising:
Disorder processing is carried out to watermark information, to obtain the watermark information after disorder processing.
Optionally, the insertion module carries out disorder processing to watermark information, comprising:
Disorder processing is carried out to watermark information using Arnold conversion, to obtain watermark coefficient.
Optionally, watermark information is embedded into the piecemeal DC coefficient that transformation obtains by the insertion module, comprising:
SVD decomposition is carried out to piecemeal DC coefficient, watermark information is embedded into unusual value coefficient to obtain unusual value coefficient In;
The inverse transform block will be embedded with watermark information DC coefficient carry out anti-all phase biorthogonal conversion when, then for The unusual value coefficient for being embedded with watermark information is subjected to anti-all phase biorthogonal conversion.
Other side according to an embodiment of the present invention, additionally provides a kind of electronic equipment, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes method described in any of the above-described insertion watermark information embodiment.
Other side according to an embodiment of the present invention additionally provides a kind of computer-readable medium, is stored thereon with meter Calculation machine program realizes method described in any of the above-described insertion watermark information embodiment when described program is executed by processor.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of side for extracting watermark information is provided Method, including carrier with watermarked information is carried out SIFT transformation, to obtain characteristic point;Ambient data block is obtained according to characteristic point, To carry out APBT transformation to data block, DC coefficient matrix is obtained;Anti- SVD transformation is done to DC coefficient matrix, to obtain watermark information.
Optionally, it is anti-SVD to DC coefficient matrix to convert, to obtain watermark information, comprising:
Anti- SVD transformation is done to DC coefficient matrix, to obtain watermark coefficient matrix;
The threshold value of value and setting in watermark coefficient matrix is compared, to obtain watermark information.
Optionally, the threshold value of value and setting in watermark coefficient matrix is compared, the value in watermark coefficient matrix Greater than setting threshold value when be then 1, when the value in watermark coefficient matrix be less than threshold value when be then 0;It obtains and only includes 0 and 1 and be Matrix number is as watermark information.
In addition, according to an aspect of an embodiment of the present invention, providing a kind of device for extracting watermark information, comprising: become Block is changed the mold, for carrier with watermarked information to be carried out SIFT transformation, to obtain characteristic point;Ambient data is obtained according to characteristic point Block obtains DC coefficient matrix to carry out APBT transformation to data block;Extraction module becomes for being anti-SVD to DC coefficient matrix It changes, to obtain watermark information.
Optionally, the extraction module is anti-SVD to DC coefficient matrix and converts, to obtain watermark information, comprising:
Anti- SVD transformation is done to DC coefficient matrix, to obtain watermark coefficient matrix;
The threshold value of value and setting in watermark coefficient matrix is compared, to obtain watermark information.
Optionally, the extraction module compares the threshold value of value and setting in watermark coefficient matrix, when watermark system Value in matrix number is then 1 when being greater than the threshold value of setting, is then 0 when the value in watermark coefficient matrix is less than threshold value;It obtains only Coefficient matrix including 0 and 1 is as watermark information.
Other side according to an embodiment of the present invention, additionally provides a kind of electronic equipment, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes method described in any of the above-described extraction watermark information embodiment.
Other side according to an embodiment of the present invention additionally provides a kind of computer-readable medium, is stored thereon with meter Calculation machine program realizes method described in any of the above-described extraction watermark information embodiment when described program is executed by processor.
One embodiment in foregoing invention have the following advantages that or the utility model has the advantages that the present invention relates to watermark information insertion with And the method and apparatus extracted, it links by the way that watermark information is added into carrier, then by watermark information acquisition or pays close attention to him The valid data that people needs.Also, scramble and the encryption of watermark information can be completed during watermark information insertion, in turn Encrypted watermark information is embedded in carrier.To which the present invention can effectively increase the effective area and the page of display Interactive friendliness reduces watermark information bring visual pollution.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment With explanation.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is the schematic diagram of the main flow of the method for insertion watermark information according to an embodiment of the present invention;
Fig. 2 is the schematic diagram that can refer to the main flow of the method for insertion watermark information of embodiment according to the present invention;
Fig. 3 is the schematic diagram of the main modular of the device of insertion watermark information according to an embodiment of the present invention;
Fig. 4 is the schematic diagram of the main flow of the method according to an embodiment of the present invention for extracting watermark information;
Fig. 5 is the schematic diagram that can refer to the main flow of the method for extraction watermark information of embodiment according to the present invention;
Fig. 6 is the schematic diagram of the main modular of the device according to an embodiment of the present invention for extracting watermark information;
Fig. 7 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;
Fig. 8 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present invention Figure.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
Fig. 1 is the method for insertion watermark information according to an embodiment of the present invention, as shown in Figure 1, the insertion watermark information Method include:
Step S101 carries out all phase biorthogonal conversion of piecemeal, to the carrier of watermark information to be embedded to obtain piecemeal DC coefficient.
Watermark information is embedded into the DC coefficient of the piecemeal by step S102.
The DC coefficient for being embedded with watermark information is carried out anti-all phase biorthogonal conversion, to be embedded with by step S103 The block of pixels of watermark information.
Step S104 obtains the image for being embedded with watermark information according to the block of pixels for being embedded with watermark information.
As a preferably embodiment, in the DC coefficient that watermark information is embedded into the piecemeal before, Ke Yixian Watermark information is pre-processed, to further increase the safety and reliability of watermark insertion.Further, to watermark information Carrying out pretreatment can be to watermark information progress disorder processing, then obtain watermark coefficient.Further, using Arnold Transformation carries out disorder processing to watermark information.
Preferably, Arnold conversion may be expressed as:
Wherein, a, b are positive integer, and x, y ∈ { 0,1 ..., N-1 }, N are the size of image, (x, y) and (x', y') difference For the position of the forward and backward pixel of scramble.
It is worth noting that the watermark information (x', y') after scramble is watermark coefficient.
It, can during watermark information is embedded into the DC coefficient of the piecemeal in another preferably embodiment The intermediate frequency coefficient in DC coefficient first to obtain piecemeal, and then watermark information is embedded into the intermediate frequency system of the DC coefficient of the piecemeal In number.
It, can be with during watermark information is embedded into the DC coefficient of the piecemeal in addition, further First SVD decomposition is carried out to piecemeal DC coefficient then watermark information is embedded into unusual value coefficient to obtain unusual value coefficient. It is thus possible to effectively reduce influence of the watermark information insertion carrier to carrier subjective quality.
Further, the unusual value coefficient progress for then needing to be embedded with watermark information when executing step S103 is anti-complete Phase biorthogonal conversion, to obtain the block of pixels for being embedded with watermark information.
Preferably, the specific implementation process packet of SVD decomposition is carried out to the piecemeal DCT intermediate frequency coefficient for being embedded with watermark coefficient It includes: assuming that the matrix that the DC intermediate frequency coefficient that Y (carrier) component obtains after piecemeal APBT transformation is constituted is denoted as D, SVD being done to it It decomposes available:
SVD (D)=[U1,S1,V1] (1-2)
Wherein, D is the matrix that U × V size is made of DC coefficient, U1It is U rank matrix, V1It is V rank matrix, S1It is big for U × V Small diagonal matrix can indicate are as follows:
And in another preferred embodiment, watermark coefficient, which is embedded into the implementation process in unusual value coefficient, includes:
Watermark coefficient matrix W can pass through S1'=S1Value w in watermark coefficient matrix W is embedded into S by+α W1In obtain S1', wherein α is rate mu-factor:
According to various embodiments above, it can be seen that the method for the insertion watermark information proposes a kind of by that will need Hiding information or two-dimensional barcode information is embedded into a visual picture, is not influencing to show the same of the space of a whole page and identity content When, solve conventional two-dimensional code to the occupancy of the limited space of a whole page.And invalid information can be effectively reduced, increase effective information The space of a whole page can be very good the friendliness for improving page interaction, reduce two dimensional code bring sense of discomfort.
Fig. 2 is the schematic diagram that can refer to the main flow of insertion watermark information method of embodiment according to the present invention, for Insertion watermark information process include:
Step S201 carries out disorder processing to watermark information, to obtain watermark coefficient.
Preferably, carrying out disorder processing to watermark information using Arnold conversion.Wherein, the Arnold conversion can be with Regard stretching as, compresses, the process for folding and splicing.By this process by the point in the digital image matrix of discretization again Arrangement.It further, can be incoherent by the stronger watermark information of correlation between pixel, scramble by Arnold conversion Two-dimensional matrix.Further, the watermark information after scramble passes through periodically scramble again, can obtain original watermark information.
In one specifically embodiment, Arnold conversion be may be expressed as:
Wherein, a, b are positive integer, and x, y ∈ { 0,1 ..., N-1 }, N are the size of image, (x, y) and (x', y') difference For the position of the forward and backward pixel of scramble.
It is worth noting that the watermark information (x', y') after scramble is watermark coefficient.
Therefore, the present invention, which carries out disorder processing to watermark information, can guarantee the safety of watermark information, even if watermark information Watermark information can not also be recovered by being illegally extracted.In addition, watermark information is to need hiding information, such as watermark information is two Tie up code information etc. picture.
Step S202, the APBT for carrying out piecemeal to the carrier of watermark coefficient to be embedded is converted, to obtain the DC coefficient of piecemeal, Extract the intermediate frequency coefficient of piecemeal DC coefficient.
Wherein, all phase biorthogonal conversion is in APBT transformation, has the property similar to dct transform.A such as 8x8 number DC (direct current) coefficient and 63 AC (exchange) coefficients will be obtained after converting according to block by APBT.And include in the DC coefficient High frequency coefficient, intermediate frequency coefficient and low frequency coefficient.
In addition, the carrier of the watermark information to be embedded can be picture etc..
Step S203 carries out SVD decomposition to the intermediate frequency coefficient of piecemeal DC coefficient, to obtain unusual value coefficient.
It in embodiment, can be to being embedded with watermark system in order to preferably solve the problems, such as that insertion watermark information is incompressible Several piecemeal DC intermediate frequency coefficients carries out SVD decomposition.Wherein, the SVD is singular value decomposition (Singular Value Decomposition) it is a kind of important matrix decomposition in linear algebra, is that normal matrix unitarily diagonalizable pushes away in matrix analysis Extensively.
Preferably, carrying out the specific implementation process packet of SVD decomposition to the piecemeal DCT intermediate frequency coefficient for being embedded with watermark coefficient It includes: assuming that the matrix that the DC intermediate frequency coefficient that Y (carrier) component obtains after piecemeal APBT transformation is constituted is denoted as D, SVD being done to it It decomposes available:
SVD (D)=[U1,S1,V1] (1-2)
Wherein, D is the matrix that U × V size is made of DC coefficient, U1It is U rank matrix, V1It is V rank matrix, S1It is big for U × V Small diagonal matrix can indicate are as follows:
Watermark coefficient is embedded into unusual value coefficient by step S204.Specifically implementation process includes:
Watermark coefficient matrix W can pass through S1'=S1Value w in watermark coefficient matrix W is embedded into S by+α W1In obtain S1', wherein α is rate mu-factor:
The unusual value coefficient for being embedded with watermark coefficient is carried out anti-APBT transformation, is embedded with watermark to obtain by step S205 The block of pixels of coefficient.
Step S206, according to the block of pixels for being embedded with watermark coefficient, splicing obtains the image for being embedded with watermark coefficient.
Fig. 3 is the device of insertion watermark information according to an embodiment of the present invention, as shown in figure 3, the insertion watermark information Device 300 include conversion module 301, insertion module 302 and inverse transform block 303.Wherein, the conversion module 301 is right The carrier of watermark information to be embedded carries out all phase biorthogonal conversion of piecemeal, to obtain the DC coefficient of piecemeal.It is then inserted into mould Watermark information is embedded into the DC coefficient of the piecemeal by block 302.Finally, inverse transform block 303 will be embedded with watermark information DC coefficient carries out anti-all phase biorthogonal conversion, to obtain the block of pixels for being embedded with watermark information.It is embedded with according to later The block of pixels of watermark information obtains the image for being embedded with watermark information.
Preferably, before insertion module 302 is in the DC coefficient that watermark information is embedded into the piecemeal, it can be first to water Official seal breath is pre-processed.Further, carrying out pretreatment to watermark information can be to watermark information progress disorder processing, so After obtain watermark coefficient.Further, disorder processing is carried out to watermark information using Arnold conversion.
Preferably, Arnold conversion may be expressed as:
Wherein, a, b are positive integer, and x, y ∈ { 0,1 ..., N-1 }, N are the size of image, (x, y) and (x', y') difference For the position of the forward and backward pixel of scramble.
It is worth noting that the watermark information (x', y') after scramble is watermark coefficient.
In another preferably embodiment, watermark information is embedded into the DC coefficient of the piecemeal by insertion module 302 During, the intermediate frequency coefficient in the DC coefficient of piecemeal can be first obtained, and then watermark information is embedded into the DC of the piecemeal In the intermediate frequency coefficient of coefficient.
Further, during being embedded into watermark information in the intermediate frequency coefficient of DC coefficient of the piecemeal, may be used also SVD decomposition is carried out with the intermediate frequency coefficient first to piecemeal DC coefficient, and watermark coefficient is then embedded into surprise to obtain unusual value coefficient In different value coefficient.
Preferably, the specific implementation process packet of SVD decomposition is carried out to the piecemeal DCT intermediate frequency coefficient for being embedded with watermark coefficient It includes: assuming that the matrix that the DC intermediate frequency coefficient that Y (carrier) component obtains after piecemeal APBT transformation is constituted is denoted as D, SVD being done to it It decomposes available:
SVD (D)=[U1,S1,V1] (1-2)
Wherein, D is the matrix that U × V size is made of DC coefficient, U1It is U rank matrix, V1It is V rank matrix, S1It is big for U × V Small diagonal matrix can indicate are as follows:
In addition, inverse transform block 303 by be embedded with watermark information DC coefficient carry out anti-all phase biorthogonal conversion when then The unusual value coefficient for being embedded with watermark information can be subjected to anti-all phase biorthogonal conversion, be embedded with watermark information to obtain Block of pixels.
Preferably, watermark coefficient is embedded into the implementation process in unusual value coefficient includes:
Watermark coefficient matrix W can pass through S1'=S1Value w in watermark coefficient matrix W is embedded into S by+α W1In obtain S1', wherein α is rate mu-factor:
It should be noted that the specific implementation content of the device in insertion watermark information of the present invention, described above It is embedded in the method for watermark information and has been described in detail, therefore no longer illustrate in this duplicate contents.
Fig. 4 is the schematic diagram of the main flow of the method according to an embodiment of the present invention for extracting watermark information, for extraction The process of watermark information includes:
Carrier with watermarked information is carried out SIFT transformation, to obtain characteristic point by step S401.
Step S402 obtains ambient data block according to characteristic point, to carry out APBT transformation to data block, obtains DC coefficient square Battle array.
Step S403 is anti-SVD to DC coefficient matrix and converts, to obtain watermark information.
In one preferably embodiment, anti-SVD transformation is done to DC coefficient matrix and obtains watermark information, is specifically wrapped It includes:
It is converted firstly, being anti-SVD to DC coefficient matrix, to obtain watermark coefficient matrix.It then, will be in watermark coefficient matrix Value and the threshold value of setting compare, and then extract watermark information.
Preferably, the threshold value of value and setting in watermark coefficient matrix is compared, the value in watermark coefficient matrix Greater than setting threshold value when be then 1, when the value in watermark coefficient matrix be less than threshold value when be then 0, and then obtain only include 0 and 1 The coefficient matrix i.e. coefficient matrix be watermark information.Wherein, the threshold value set is α.
As can be seen that the method for the present invention for extracting watermark information can accurately identify the watermark letter in insertion carrier Breath, and achieve the purpose that link jumps and pays close attention to other people according to the volume watermark information, with this come promoted webpage and The space of a whole page of publicity page provides a kind of more friendly interaction logic.
Fig. 5 is the schematic diagram that can refer to the main flow of the method for extraction watermark information of embodiment according to the present invention, needle Include: to the process for extracting watermark information
Carrier with watermarked information is carried out SIFT transformation, to obtain characteristic point by step S501.
Wherein, SIFT feature (Scale-invariant feature transform, scale invariant feature conversion) is one The algorithm of kind computer vision, for detecting and describing the locality characteristic in image, it finds extreme point in space scale, And extract its position, scale, rotational invariants.
It include the carrier of watermark information can be picture preferably, described.
Step S502 obtains ambient data block according to characteristic point.
In embodiment, the data around characteristic point can be obtained according to preset threshold value centered on the characteristic point Block.
Step S503 carries out APBT transformation to data block, to obtain DC coefficient matrix.
Wherein, all phase biorthogonal conversion is in APBT transformation, has the property similar to dct transform.A such as 8x8 number DC (direct current) coefficient and 63 AC (exchange) coefficients will be obtained after converting according to block by APBT.
Step S504 is anti-SVD to DC coefficient matrix and converts, to obtain watermark coefficient matrix.
The threshold value of value and setting in watermark coefficient matrix is compared, and then extracts watermark information by step S505.
In embodiment, the threshold value of value and setting in watermark coefficient matrix is compared, when in watermark coefficient matrix Value be greater than setting threshold value when be then 1, when the value in watermark coefficient matrix be less than threshold value when be then 0, and then obtain only include 0 Coefficient matrix i.e. coefficient matrix with 1 is watermark information.
Preferably, the threshold value set is α.
It is worth noting that the operational order of watermark information in picture can be extracted, by receiving to trigger step 501.Preferably, the operational order for extracting watermark information in picture can be for picture progress long press operation or other clicking operations Etc..
Fig. 6 is the device according to an embodiment of the present invention for extracting watermark information, as shown in fig. 6, the extraction watermark information Device 600 include conversion module 601 and extraction module 602.Wherein, conversion module 601 carries out carrier with watermarked information SIFT transformation, to obtain characteristic point.Then, conversion module 601 obtains ambient data block according to characteristic point, to carry out to data block APBT transformation, obtains DC coefficient matrix.It is converted finally, extraction module 602 is anti-SVD to DC coefficient matrix, to obtain watermark letter Breath.
In one preferably embodiment, extraction module 602 does anti-SVD transformation to DC coefficient matrix and obtains watermark letter It ceases, specifically includes:
It is converted firstly, being anti-SVD to DC coefficient matrix, to obtain watermark coefficient matrix.It then, will be in watermark coefficient matrix Value and the threshold value of setting compare, and then extract watermark information.
Preferably, the threshold value of value and setting in watermark coefficient matrix is compared, the value in watermark coefficient matrix Greater than setting threshold value when be then 1, when the value in watermark coefficient matrix be less than threshold value when be then 0, and then obtain only include 0 and 1 The coefficient matrix i.e. coefficient matrix be watermark information.Wherein, the threshold value set is α.
It should be noted that in the specific implementation content of the device of the present invention for extracting watermark information, it is described above It extracts and has been described in detail in the method for watermark information, therefore no longer illustrate in this duplicate contents.
Fig. 7 is shown can be using the method for the insertion watermark information of the embodiment of the present invention or the device of insertion watermark information Exemplary system architecture 700.
As shown in fig. 7, system architecture 700 may include terminal device 701,702,703, network 704 and server 705. Network 704 between terminal device 701,702,703 and server 705 to provide the medium of communication link.Network 704 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 701,702,703 and be interacted by network 704 with server 705, to receive or send out Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 701,702,703 (merely illustrative) such as the application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform softwares.
Terminal device 701,702,703 can be the various electronic equipments with display screen and supported web page browsing, packet Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 705 can be to provide the server of various services, such as utilize terminal device 701,702,703 to user The shopping class website browsed provides the back-stage management server (merely illustrative) supported.Back-stage management server can be to reception To the data such as information query request analyze etc. processing, and by processing result (such as target push information, product letter Breath -- merely illustrative) feed back to terminal device.
It should be noted that insertion watermark information method provided by the embodiment of the present invention is generally executed by server 705, Correspondingly, insertion watermark information device is generally positioned in server 705.
It should be understood that the number of terminal device, network and server in Fig. 7 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
It is worth noting that Fig. 7 shows the method or extraction that can apply the extraction watermark information of the embodiment of the present invention The exemplary system architecture 700 of the device of watermark information.
Below with reference to Fig. 8, it illustrates the computer systems 800 for the terminal device for being suitable for being used to realize the embodiment of the present invention Structural schematic diagram.Terminal device shown in Fig. 8 is only an example, function to the embodiment of the present invention and should not use model Shroud carrys out any restrictions.
As shown in figure 8, computer system 800 includes central processing unit (CPU) 801, it can be read-only according to being stored in Program in memory (ROM) 802 or be loaded into the program in random access storage device (RAM) 803 from storage section 808 and Execute various movements appropriate and processing.In RAM803, also it is stored with system 800 and operates required various programs and data. CPU801, ROM 802 and RAM803 is connected with each other by bus 804.Input/output (I/O) interface 805 is also connected to bus 804。
I/O interface 805 is connected to lower component: the importation 806 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 807 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 808 including hard disk etc.; And the communications portion 809 of the network interface card including LAN card, modem etc..Communications portion 809 via such as because The network of spy's net executes communication process.Driver 810 is also connected to I/O interface 805 as needed.Detachable media 811, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 810, in order to read from thereon Computer program be mounted into storage section 808 as needed.
Particularly, disclosed embodiment, the process described above with reference to flow chart may be implemented as counting according to the present invention Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product comprising be carried on computer Computer program on readable medium, the computer program include the program code for method shown in execution flow chart.? In such embodiment, which can be downloaded and installed from network by communications portion 809, and/or from can Medium 811 is dismantled to be mounted.When the computer program is executed by central processing unit (CPU) 801, system of the invention is executed The above-mentioned function of middle restriction.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part is realized.Described module also can be set in the processor, for example, can be described as: a kind of processor packet Include conversion module, insertion module and inverse transform block.Or can be described as: a kind of processor includes conversion module and extracts mould Block.Wherein, the title of these modules does not constitute the restriction to the module itself under certain conditions.
As on the other hand, the present invention also provides a kind of computer-readable medium, which be can be Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes Obtaining the equipment includes: all phase biorthogonal conversion that piecemeal is carried out to the carrier of watermark information to be embedded, to obtain the DC of piecemeal Coefficient.Watermark information is embedded into the DC coefficient of the piecemeal.The DC coefficient for being embedded with watermark information is subjected to anti-all phase Biorthogonal conversion, to obtain the block of pixels for being embedded with watermark information.According to the block of pixels for being embedded with watermark information, obtain embedding Enter to have the image of watermark information.Alternatively, making the equipment include: that carrier with watermarked information is carried out SIFT transformation, to obtain Characteristic point.Ambient data block is obtained according to characteristic point, to carry out APBT transformation to data block, obtains DC coefficient matrix.To DC system Matrix number does anti-SVD transformation, to obtain watermark information.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention Within.

Claims (20)

1. a kind of method for being embedded in watermark information characterized by comprising
The all phase biorthogonal conversion that piecemeal is carried out to the carrier of watermark information to be embedded, is embedded into transformation for watermark information and obtains In the piecemeal DC coefficient obtained;
The DC coefficient for being embedded with watermark information is subjected to anti-all phase biorthogonal conversion, to obtain the pixel for being embedded with watermark information Block;
According to the block of pixels for being embedded with watermark information, the image for being embedded with watermark information is obtained.
2. the method according to claim 1, wherein watermark information is embedded into the piecemeal DC coefficient that transformation obtains In, comprising:
The intermediate frequency coefficient in the DC coefficient of piecemeal is obtained, watermark information is embedded into the intermediate frequency coefficient of the DC coefficient of the piecemeal In.
3. the method according to claim 1, wherein watermark information is embedded into the piecemeal DC coefficient that transformation obtains In before, comprising:
Disorder processing is carried out to watermark information, to obtain the watermark information after disorder processing.
4. according to the method described in claim 3, it is characterized in that, carrying out disorder processing to watermark information, comprising:
Disorder processing is carried out to watermark information using Arnold conversion, to obtain watermark coefficient.
5. the method according to claim 1, wherein watermark information is embedded into the piecemeal DC coefficient that transformation obtains In, comprising:
SVD decomposition is carried out to piecemeal DC coefficient watermark information is embedded into unusual value coefficient to obtain unusual value coefficient;
When the DC coefficient that will be embedded with watermark information carries out anti-all phase biorthogonal conversion, then for watermark information will be embedded with Unusual value coefficient carries out anti-all phase biorthogonal conversion.
6. a kind of device for being embedded in watermark information characterized by comprising
Conversion module carries out all phase biorthogonal conversion of piecemeal, for the carrier to watermark information to be embedded to obtain piecemeal DC coefficient;
It is embedded in module, for being embedded into watermark information in the DC coefficient of the piecemeal;
Inverse transform block, the DC coefficient for that will be embedded with watermark information carries out anti-all phase biorthogonal conversion, to be embedded in There is the block of pixels of watermark information;According to the block of pixels for being embedded with watermark information, the image for being embedded with watermark information is obtained.
7. device according to claim 6, which is characterized in that watermark information is embedded into transformation and obtained by the insertion module Piecemeal DC coefficient in, comprising:
The intermediate frequency coefficient in the DC coefficient of piecemeal is obtained, watermark information is embedded into the intermediate frequency coefficient of the DC coefficient of the piecemeal In.
8. device according to claim 6, which is characterized in that watermark information is embedded into transformation and obtained by the insertion module Piecemeal DC coefficient in front of, comprising:
Disorder processing is carried out to watermark information, to obtain the watermark information after disorder processing.
9. device according to claim 8, which is characterized in that the insertion module carries out disorder processing to watermark information, Include:
Disorder processing is carried out to watermark information using Arnold conversion, to obtain watermark coefficient.
10. device according to claim 6, which is characterized in that watermark information is embedded into transformation and obtained by the insertion module In the piecemeal DC coefficient obtained, comprising:
SVD decomposition is carried out to piecemeal DC coefficient watermark information is embedded into unusual value coefficient to obtain unusual value coefficient;
The inverse transform block is when the DC coefficient that will be embedded with watermark information carries out anti-all phase biorthogonal conversion, then for will be embedding Enter to have the unusual value coefficient of watermark information to carry out anti-all phase biorthogonal conversion.
11. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 5.
12. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor Such as method as claimed in any one of claims 1 to 5 is realized when row.
13. a kind of method for extracting watermark information characterized by comprising
Carrier with watermarked information is subjected to SIFT transformation, to obtain characteristic point;
Ambient data block is obtained according to characteristic point, to carry out APBT transformation to data block, obtains DC coefficient matrix;
Anti- SVD transformation is done to DC coefficient matrix, to obtain watermark information.
14. according to the method for claim 13, which is characterized in that be anti-SVD to DC coefficient matrix and convert, to obtain watermark Information, comprising:
Anti- SVD transformation is done to DC coefficient matrix, to obtain watermark coefficient matrix;
The threshold value of value and setting in watermark coefficient matrix is compared, to obtain watermark information.
15. according to the method for claim 14, which is characterized in that by the threshold value of value and setting in watermark coefficient matrix into Row comparison, is then 1 when the value in watermark coefficient matrix is greater than the threshold value of setting, when the value in watermark coefficient matrix is less than threshold value Shi Zewei 0;The coefficient matrix for only including 0 and 1 is obtained as watermark information.
16. a kind of device for extracting watermark information characterized by comprising
Conversion module, for carrier with watermarked information to be carried out SIFT transformation, to obtain characteristic point;Week is obtained according to characteristic point Data block is enclosed, to carry out APBT transformation to data block, obtains DC coefficient matrix;
Extraction module is converted for being anti-SVD to DC coefficient matrix, to obtain watermark information.
17. device according to claim 16, which is characterized in that the extraction module is anti-SVD to DC coefficient matrix and becomes It changes, to obtain watermark information, comprising:
Anti- SVD transformation is done to DC coefficient matrix, to obtain watermark coefficient matrix;
The threshold value of value and setting in watermark coefficient matrix is compared, to obtain watermark information.
18. device according to claim 17, which is characterized in that the extraction module by watermark coefficient matrix value with The threshold value of setting compares, and is then 1 when the value in watermark coefficient matrix is greater than the threshold value of setting, when in watermark coefficient matrix Value be less than threshold value when be then 0;The coefficient matrix for only including 0 and 1 is obtained as watermark information.
19. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method as described in any in claim 13-15.
20. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor The method as described in any in claim 13-15 is realized when row.
CN201810245063.1A 2018-03-23 2018-03-23 A kind of method and apparatus of Information hiding Pending CN110298779A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810245063.1A CN110298779A (en) 2018-03-23 2018-03-23 A kind of method and apparatus of Information hiding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810245063.1A CN110298779A (en) 2018-03-23 2018-03-23 A kind of method and apparatus of Information hiding

Publications (1)

Publication Number Publication Date
CN110298779A true CN110298779A (en) 2019-10-01

Family

ID=68026042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810245063.1A Pending CN110298779A (en) 2018-03-23 2018-03-23 A kind of method and apparatus of Information hiding

Country Status (1)

Country Link
CN (1) CN110298779A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106636A (en) * 2013-02-28 2013-05-15 大连民族学院 Gray image watermark embedding and extracting method based on singular value decomposition
CN104091302A (en) * 2014-07-10 2014-10-08 北京工业大学 Robust watermark embedding and extracting method based on multi-scale space
CN105847800A (en) * 2016-05-18 2016-08-10 山东大学(威海) Image compression method based on all phase discrete sine double orthogonal transformation and system
KR20170101429A (en) * 2016-02-29 2017-09-06 한국과학기술원 Feature Points Based Watermarking Method for Depth-Image-Based Rendering Based 3D Images and Apparatus Therefor
CN107633476A (en) * 2017-09-25 2018-01-26 河南师范大学 A kind of watermark insertion and extracting method based on LWT SVD DCT algorithms

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106636A (en) * 2013-02-28 2013-05-15 大连民族学院 Gray image watermark embedding and extracting method based on singular value decomposition
CN104091302A (en) * 2014-07-10 2014-10-08 北京工业大学 Robust watermark embedding and extracting method based on multi-scale space
KR20170101429A (en) * 2016-02-29 2017-09-06 한국과학기술원 Feature Points Based Watermarking Method for Depth-Image-Based Rendering Based 3D Images and Apparatus Therefor
CN105847800A (en) * 2016-05-18 2016-08-10 山东大学(威海) Image compression method based on all phase discrete sine double orthogonal transformation and system
CN107633476A (en) * 2017-09-25 2018-01-26 河南师范大学 A kind of watermark insertion and extracting method based on LWT SVD DCT algorithms

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
单荣杨: "基于APBT的类JPEG图像压缩以及HEVC视频编码与水印算法研究", 中国优秀硕士学位论文全文数据库, no. 09, pages 51 - 70 *
张正伟 等: "基于DWT和SIFT的鲁棒图像水印算法", 合肥工业大学学报(自然科学版), vol. 39, no. 07, pages 911 - 916 *

Similar Documents

Publication Publication Date Title
US10915980B2 (en) Method and apparatus for adding digital watermark to video
KR100963236B1 (en) System and Method of augmented reality-based product viewer
CN107590255A (en) Information-pushing method and device
CN107908789A (en) Method and apparatus for generating information
CN109191261A (en) A kind of Method of Commodity Recommendation and system
CN109934181A (en) Text recognition method, device, equipment and computer-readable medium
CN107066609A (en) Image display method and device
US20210304348A1 (en) Image transformation method and apparatus, storage medium, and computer device
CN108629823A (en) The generation method and device of multi-view image
CN107766492A (en) A kind of method and apparatus of picture search
CN109635223A (en) Page display method and device
CN109389096A (en) Detection method and device
CN106503112B (en) Video retrieval method and device
CN109993749A (en) The method and apparatus for extracting target image
CN109948762A (en) Method and apparatus for generating two dimensional code
CN112330331A (en) Identity verification method, device and equipment based on face recognition and storage medium
CN107679022A (en) Uncommon word processing method and its system
CN109934142A (en) Method and apparatus for generating the feature vector of video
CN108280228A (en) A kind of processing method and relevant device of webpage
CN109272526A (en) Image processing method, system and electronic equipment
CN109510943A (en) Method and apparatus for shooting image
CN110298779A (en) A kind of method and apparatus of Information hiding
CN109413355A (en) A kind of method and terminal device for quickly transferring monitoring video
US20210357673A1 (en) Method and device for processing feature point of image
CN110069753A (en) A kind of method and apparatus generating similarity information

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