CN110365986A - The guard method and protective device of video copy - Google Patents
The guard method and protective device of video copy Download PDFInfo
- Publication number
- CN110365986A CN110365986A CN201810310612.9A CN201810310612A CN110365986A CN 110365986 A CN110365986 A CN 110365986A CN 201810310612 A CN201810310612 A CN 201810310612A CN 110365986 A CN110365986 A CN 110365986A
- Authority
- CN
- China
- Prior art keywords
- watermark
- feature point
- matrix
- data
- watermark data
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/46—Embedding additional information in the video signal during the compression process
- H04N19/467—Embedding additional information in the video signal during the compression process characterised by the embedded information being invisible, e.g. watermarking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/60—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Editing Of Facsimile Originals (AREA)
- Image Processing (AREA)
Abstract
The invention discloses the guard method of video copy and protective devices, are related to field of computer technology.One specific embodiment of this method includes: that watermark data to be embedded is obtained according to the first video sequence;The fisrt feature point of first video sequence is obtained based on Scale invariant features transform, and watermark embeded matrix is constructed according to the fisrt feature point;The watermark data is embedded in the watermark embeded matrix, to obtain the second video sequence for carrying the watermark data.The embodiment can obtain the fisrt feature point of the first video sequence using Scale invariant features transform, then it embeds watermark data into the watermark embeded matrix using characteristic point construction, it can be reasonably resistant to the heavy compression attack of HEVC, reduce influence of the watermark data to video quality.
Description
Technical field
The present invention relates to the guard methods and protective device of field of computer technology more particularly to a kind of video copy.
Background technique
With the high speed development of multimedia messages, problem associated therewith is also gradually exposed, especially information security
Problem becomes increasingly conspicuous.Currently, economic loss caused by copy right piracy is annual just reaches $ 100 billion rank, while also serious blow
The enthusiasm of creator, to healthy development of market causes negative effect.In order to solve the copyright problem of video information, video
Digital watermark comes into being.The technology can make up the defect of encrypted and digitally signed technology well.
As video compression standard High Efficiency Video Coding of new generation (is abbreviated as HEVC, it is one
The new video compression standard of kind, to substitute H.264 coding standard, on January 26th, 2013, HEVC formally became international standard)
It is widely applied, video copy is protected using the method for the video watermark based on HEVC compression domain at present.Wherein, video pressure
Compression process is called compression domain, and the mode that watermark is embedded in compression process is called compression domain watermark.
In realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery: due to being based on HEVC
The method of the video watermark of compression domain is that watermark is embedded in video compression, will affect the prediction rank of HEVC compression process
Section, and prediction error is caused, and predict error meeting further progress transmitting, and this method cannot resist the weight of HEVC
Contracting attack, influence of the insertion of watermark to video quality are also larger.
Summary of the invention
In view of this, the embodiment of the present invention provides the guard method and protective device of a kind of video copy, ruler can be utilized
The fisrt feature point that invariant features transformation obtains the first video sequence is spent, then embeds watermark data into using characteristic point and constructs
Watermark embeded matrix in, the heavy compression attack of HEVC can be reasonably resistant to, reduce watermark data to the shadow of video quality
It rings.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of protection side of video copy is provided
Method.
The guard method of a kind of video copy of the embodiment of the present invention, comprising: obtained according to the first video sequence to be embedded
Watermark data;The fisrt feature point of first video sequence is obtained based on Scale invariant features transform, and according to described
One characteristic point constructs watermark embeded matrix;The watermark data is embedded in the watermark embeded matrix, to obtain described in carrying
Second video sequence of watermark data.
Optionally, after obtaining watermark data to be embedded according to the first video sequence, the method also includes: to institute
It states watermark data and carries out disorder processing.
Optionally, carrying out disorder processing to the watermark data includes: to execute all phase biorthogonal to the watermark data
Transformation;The watermark data after all phase biorthogonal conversion is converted based on Arnold conversion.
Optionally, the fisrt feature point of first video sequence is obtained based on Scale invariant features transform, and according to institute
Stating fisrt feature point construction watermark embeded matrix includes: to carry out to the first frame image of the predeterminated position of first video sequence
Scale invariant features transform, to obtain the fisrt feature point of the first frame image;It is constructed centered on the fisrt feature point
Fisrt feature point data block, and watermark embedded data block is obtained according to the fisrt feature point data block;The watermark is embedded in
Data block carries out piecemeal all phase biorthogonal conversion to obtain multiple first transform blocks, and according to straight in each first transform block
Flow the first DC coefficient of coefficients to construct matrix;Singular value decomposition is carried out to the first DC coefficient matrix, to obtain the water
Print embeded matrix.
Optionally, after the watermark data is embedded in the watermark embeded matrix, the method also includes: to embedding
The watermark embeded matrix for entering watermark data carries out singular value decomposition, to get the first new DC coefficient;By described new the
One DC coefficient is respectively put into each first transform block, then carries out inverse all phase to each first transform block
Biorthogonal conversion.
To achieve the above object, according to another aspect of an embodiment of the present invention, the protection of another video copy is provided
Method.
The guard method of another video copy of the embodiment of the present invention, comprising: obtain the second of watermark data to be extracted
Video sequence;The second feature point of second video sequence is obtained based on Scale invariant features transform, and according to described second
Characteristic point constructs watermark extracting matrix;Watermark data is extracted from the watermark extracting matrix according to preset threshold.
Optionally, the second feature point of second video sequence is obtained based on Scale invariant features transform, and according to institute
Stating second feature point construction watermark extracting matrix includes: to carry out to the second frame image of the predeterminated position of second video sequence
Scale invariant features transform, to obtain the second feature point of the second frame image;It is constructed centered on the second feature point
Second feature point data block, and watermark extracting data block is obtained according to the second feature point data block;To the watermark extracting
Data block carries out piecemeal all phase biorthogonal conversion to obtain multiple second transform blocks, and according in each second transform block
DC coefficient construct the second DC coefficient matrix;Anti- singular value decomposition is carried out to the second DC coefficient matrix, to obtain
The watermark extracting matrix.
Optionally, watermark data is extracted from the watermark extracting matrix according to preset threshold includes: to judge the watermark
Whether each element value extracted in matrix is more than or equal to preset threshold, if so, extracting the element value, and according to extraction
Element value out forms watermark data.
Optionally, according to preset threshold from the watermark extracting matrix extract watermark data after, the method is also
It include: to be converted based on Arnold conversion to the watermark data;Watermark data after execution Arnold conversion is carried out
Inverse all phase biorthogonal conversion.
To achieve the above object, according to an embodiment of the present invention in another aspect, providing a kind of protection dress of video copy
It sets.
The protective device of a kind of video copy of the embodiment of the present invention, comprising: first obtains module, for according to the first view
Frequency sequence obtains watermark data to be embedded;First constructing module, for obtaining described first based on Scale invariant features transform
The fisrt feature point of video sequence, and watermark embeded matrix is constructed according to the fisrt feature point;It is embedded in module, being used for will be described
Watermark data is embedded in the watermark embeded matrix, to obtain the second video sequence for carrying the watermark data.
Optionally, the protective device further include: processing module, for carrying out disorder processing to the watermark data.
Optionally, the processing module is also used to: executing all phase biorthogonal conversion to the watermark data;It is based on
Arnold conversion converts the watermark data after all phase biorthogonal conversion.
Optionally, first constructing module is also used to: to the first frame figure of the predeterminated position of first video sequence
As carrying out Scale invariant features transform, to obtain the fisrt feature point of the first frame image;In being with the fisrt feature point
The heart constructs fisrt feature point data block, and obtains watermark embedded data block according to the fisrt feature point data block;To the water
It prints embedding data block and carries out piecemeal all phase biorthogonal conversion to obtain multiple first transform blocks, and according to each first transform block
In DC coefficient construct the first DC coefficient matrix;Singular value decomposition is carried out to the first DC coefficient matrix, to obtain
The watermark embeded matrix.
Optionally, the insertion module is also used to: singular value decomposition is carried out to the watermark embeded matrix of insertion watermark data,
To get the first new DC coefficient;The first new DC coefficient is respectively put into each first transform block
In, inverse all phase biorthogonal conversion then is carried out to each first transform block.
To achieve the above object, according to another aspect of an embodiment of the present invention, the protection of another video copy is provided
Device.
The protective device of another video copy of the embodiment of the present invention, comprising: second obtains module, for obtaining wait mention
Take the second video sequence of watermark data;Second constructing module, for obtaining second view based on Scale invariant features transform
The second feature point of frequency sequence, and watermark extracting matrix is constructed according to the second feature point;Extraction module, for according to default
Threshold value extracts watermark data from the watermark extracting matrix.
Optionally, second constructing module is also used to: to the second frame figure of the predeterminated position of second video sequence
As carrying out Scale invariant features transform, to obtain the second feature point of the second frame image;In being with the second feature point
The heart constructs second feature point data block, and obtains watermark extracting data block according to the second feature point data block;To the water
Print extracts data block and carries out piecemeal all phase biorthogonal conversion to obtain multiple second transform blocks, and becomes according to described each second
The DC coefficient changed in block constructs the second DC coefficient matrix;Anti- singular value decomposition is carried out to the second DC coefficient matrix,
To obtain the watermark extracting matrix.
Optionally, the extraction module is also used to: judging whether each element value in the watermark extracting matrix is greater than
Equal to preset threshold, if so, extracting the element value, and watermark data is formed according to the element value extracted.
Optionally, the protective device further include: conversion module, for based on Arnold conversion to the watermark data into
Row transformation;Inverse all phase biorthogonal conversion is carried out to the watermark data after execution Arnold conversion.
To achieve the above object, according to an embodiment of the present invention in another aspect, providing a kind of electronic equipment.
The a kind of electronic equipment of the embodiment of the present invention includes: one or more processors;Storage device, for storing one
Or multiple programs, when one or more programs are executed by one or more processors, so that one or more processors realize this
The guard method of the video copy of inventive embodiments.
To achieve the above object, another aspect according to an embodiment of the present invention, provides a kind of computer-readable medium.
A kind of computer-readable medium of the embodiment of the present invention, is stored thereon with computer program, and program is held by processor
The guard method of the video copy of the embodiment of the present invention is realized when row.
One embodiment in foregoing invention has the following advantages that or the utility model has the advantages that can utilize Scale invariant features transform
Then the fisrt feature point for obtaining the first video sequence is embedded watermark data into the watermark embeded matrix using characteristic point construction
In, so as to be reasonably resistant to the heavy compression attack of HEVC, reduce influence of the watermark data to video quality;The present invention is implemented
In example after obtaining watermark data to be embedded according to the first video sequence, disorder processing is carried out to watermark data, so as to
To guarantee the safety and reliability of watermark data;It is successively right when carrying out disorder processing to watermark data in the embodiment of the present invention
Watermark data executes all phase biorthogonal conversion and is based on Arnold conversion, so as to further decrease the phase between watermark data
Guan Xing improves the safety of watermark data, can not be resumed watermark data is illegally extracted;Base in the embodiment of the present invention
In the characteristic point of Scale invariant features transform getting frame image, the stability of characteristic point thereby may be ensured that, and can basis
Actual conditions select the frame image of predeterminated position to carry out Scale invariant features transform, improve practicability of the invention;The present invention
Piecemeal all phase biorthogonal conversion is carried out to watermark embedded data block in embodiment, so as to which the size of piecemeal is adjusted flexibly,
Guarantee that watermark data can be embedded into;The performance for utilizing the energy of DC coefficient high in the embodiment of the present invention constructs the first direct current
Coefficient matrix or the second DC coefficient matrix, so as to improve the anti-robustness of this programme;To embedding in the embodiment of the present invention
The watermark embeded matrix for entering watermark data executes singular value decomposition again, is then respectively put into the first new DC coefficient often
In a first transform block, so as to further increase the robustness of entire algorithm;Watermark number is being extracted in the embodiment of the present invention
During, the second feature point of the second video sequence can be obtained using Scale invariant features transform, thereby may be ensured that
Then the accuracy of second feature point extracts water from the watermark extracting matrix constructed using second feature point according to preset threshold
Printing evidence improves the practicability of scheme so as to which preset threshold is set according to actual conditions.
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 key step of the method for insertion watermark data according to an embodiment of the present invention;
Fig. 2 is the schematic diagram of the watermarking images containing information;
Fig. 3 is the schematic diagram of the watermarking images of encryption;
Fig. 4 is the schematic diagram for executing the original watermark image obtained after multiple Arnold conversion;
Fig. 5 is the schematic diagram of the characteristic point according to an embodiment of the present invention obtained based on SIFT;
Fig. 6 is the schematic diagram of the key step of the method according to an embodiment of the present invention for extracting watermark data;
Fig. 7 be according to the present invention one can refer to embodiment insertion watermark data method main flow signal
Figure;
Fig. 8 be according to the present invention one can refer to embodiment extraction watermark data method main flow signal
Figure;
Fig. 9 is the structural schematic diagram of the system of insertion watermark data according to an embodiment of the present invention;
Figure 10 is the structural schematic diagram of the system according to an embodiment of the present invention for extracting watermark data;
Figure 11 is the schematic diagram of the main modular of the device of insertion watermark data according to an embodiment of the present invention;
Figure 12 is the schematic diagram of the main modular of the device according to an embodiment of the present invention for extracting watermark data;
Figure 13 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;
Figure 14 is adapted for showing for the structure of the computer system of the terminal device or server of realizing the embodiment of the present invention
It is intended to.
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.
In the guard method of current video copyright, the video watermarking algorithms of HEVC weight contracting can not be resisted, wherein weight
Compression, which refers to, to be re-compressed or second compression again.The present invention cannot resist asking for HEVC weight contracting to solve HEVC video watermark
Topic, proposes a kind of guard method of video copy.The guard method of video copy proposed by the present invention is used in HEVC video
Time domain carry out watermark insertion, can using Scale invariant features transform (Scale-invariant feature transform,
Abbreviation SIFT is a kind of description for field of image processing) obtain the first video sequence fisrt feature point, then by watermark
Data are embedded in the watermark embeded matrix using characteristic point construction, can be reasonably resistant to the heavy compression attack of HEVC, are reduced
Influence of the watermark data to video quality.The guard method of video copy of the invention may include: insertion watermark data
Method and the method for extracting watermark data.
Fig. 1 is the schematic diagram of the key step of the method for insertion watermark data according to an embodiment of the present invention.As this hair
Bright one embodiment, as shown in Figure 1, the key step of the method for the insertion watermark data of the embodiment of the present invention may include:
Step S101: watermark data to be embedded is obtained according to the first video sequence.The first video sequence in the present invention
Refer to the video sequence of watermark data to be embedded.In the present invention, watermark data can refer to the copyright information of video sequence, it can
To be embedded in video sequence, and the use value of original video sequence is not influenced, be not easy to be ascertained or is modified again yet.This
The purpose of step is to obtain watermark data to be embedded.
As another embodiment of the invention, after obtaining watermark data to be embedded according to the first video sequence,
The method of insertion watermark data can also include: to carry out disorder processing to watermark data.Watermark data is got in step S101
Later, in order to reduce the correlation between watermark data, the safety and reliability of watermark data is improved, is needed to watermark data
Carry out disorder processing.
In an embodiment of the present invention, carrying out disorder processing to watermark data may include: to execute full phase to watermark data
Position biorthogonal conversion;The watermark data after all phase biorthogonal conversion is converted based on Arnold conversion.
In the present invention, common disorder processing has Arnold conversion, and (wherein, Arnold conversion can be regarded as stretching, press
Contracting, the process for folding and splicing, are rearranged the point in the digital image matrix of discretization by this process) and be based on
The image scrambling of Logistic mapping.Since there is Arnold conversion good periodicity (to carry out to watermark data multiple
After Arnold conversion, original watermark data can be replied), watermark data is set using Arnold conversion in the present invention
Disorderly processing.Wherein, Fig. 2 is the schematic diagram of the watermarking images containing information, and Fig. 3 is the schematic diagram of the watermarking images of encryption, and Fig. 4 is to hold
The schematic diagram of the original watermark image obtained after the multiple Arnold conversion of row.In the present invention, watermarking images shown in Fig. 2 are led to
Cross Arnold conversion, the watermarking images of available encryption shown in Fig. 3, if continuing the watermarking images to encryption shown in Fig. 3
Carry out Arnold conversion, the schematic diagram of available original watermark image shown in Fig. 4.Therefore, using Arnold conversion this
Periodically, during extracting watermark data, original watermark data can be restored.
Before carrying out Arnold conversion to watermark data, all phase biorthogonal conversion (All Phase is used first
Biorthogonal Transform, abbreviation APBT are a kind of energy conversions) watermark data is handled, it can be better
The correlation between watermark data is reduced, and the encryption of watermark data can be made more preferable.Certainly, to watermark number in the present invention
According to before carrying out Arnold conversion, discrete cosine transform (Discrete Cosine Transform, abbreviation DCT) can be used
Replace APBT, it is contemplated that APBT can effectively solve the problem that serious blocking artifact problem existing for DCT, therefore optimal case of the present invention
It is that conversion process is carried out to watermark data using APBT.
Step S102: the fisrt feature point of the first video sequence is obtained based on SIFT, and according to fisrt feature point formation
Print embeded matrix.Fisrt feature point in the present invention refers in the method for insertion watermark data, by calculating the characteristic point obtained.
As another embodiment of the invention, step S102 may include: based on SIFT to the pre- of the first video sequence
If the first frame image of position carries out conversion process, to obtain the fisrt feature point of first frame image;In being with fisrt feature point
The heart constructs fisrt feature point data block, and obtains watermark embedded data block according to fisrt feature point data block;Based on APBT to water
Print embedding data block is converted to obtain multiple first transform blocks, and according to the direct current (Direct in each first transform block
Current, abbreviation DC) the first DC coefficient matrix of coefficients to construct;Singular value decomposition (Singular is carried out to the first DC coefficient matrix
Value Decomposition, abbreviation SVD are a kind of important matrix decompositions in linear algebra, are positive rules in matrix analysis
The popularization of battle array unitarily diagonalizable), to obtain watermark embeded matrix.It should be noted that the first frame image in the present invention refer to it is embedding
The frame image for entering the predeterminated position being related to during watermark data, does not imply that first frame image.
Characteristic point is extracted based on SIFT in the embodiment of the present invention, comprising building scale space, finds key point and key
Point is accurately positioned multiple portions.Frame image is got to the Gaussian Blur image of different scale by Gaussian convolution and change of scale
To construct scale space.In order to allow scale to embody its continuity, usually reduces picture noise with Gaussian Blur and reduce thin
Ganglionic layer time.N-dimensional space normal distribution equation are as follows:
Wherein, σ is that normal distribution standard is poor, and σ is bigger, and image is fuzzyyer (smooth).R is that (template elements arrive blur radius
The distance of template center).In two-dimensional space, then have:
Gaussian template matrix size is m × n, i.e. (this is an empirical value to (6 σ+1) × (6 σ+1), it is considered that image pixel
Between data except 3 σ there is no correlation).After obtaining scale space, finds key point and key point is accurately positioned and obtains feature
Position where point in picture frame, and the point construction watermark embedded data block centered on this position.Fig. 5 is to implement according to the present invention
The schematic diagram for the characteristic point of example obtained based on SIFT.As shown in figure 5, the tail portion of arrow is the characteristic point of the frame image, arrow
Direction represents the movement tendency of this feature point.
Wherein, the first video sequence is made of multiple frame images.Firstly, choosing the frame image of predeterminated position, it is based on
SIFT carries out conversion process, multiple fisrt feature points of the available frame image to the frame image.Wherein, predeterminated position can be with
It selects according to the actual situation, can be further improved the concealment of watermark data in this way, meanwhile, in the process for extracting watermark data
In, need it is corresponding with this predeterminated position, for example, insertion watermark data when, selected the 5th frame of the first video sequence
Image carry out conversion process, correspondingly, extract watermark data when, need to select the 5th frame image of the second video sequence into
Row conversion process.Then, respectively centered on each fisrt feature point, the peripheral region (present invention of the fisrt feature point is chosen
In peripheral region choose based on experience value, such as centered on this feature point, select the 5*5 ruler of its four direction up and down
The region of very little size), the corresponding peripheral region of all fisrt feature points of the frame image constitutes fisrt feature point data block.It connects
, watermark embedded data block is obtained according to fisrt feature point data block.Piecemeal change is carried out to watermark embedded data block based on APBT
It changes to obtain multiple first transform blocks, the purpose for the arrangement is that the size of piecemeal can be adjusted flexibly, guarantees that watermark data all may be used
To be embedded into.Then, according to the first DC coefficient matrix of DC coefficients to construct in each first transform block, and to the first DC coefficient square
Battle array carries out SVD, to obtain watermark embeded matrix, so that the first DC coefficient matrix is constructed using the high performance of the energy of DC coefficient,
Improve the anti-robustness of insertion watermark data process.In addition, if the watermark embeded matrix of a frame image configuration it is impossible to meet allow
Watermark data is disposably embedded in, then selects spininess image to construct watermark embeded matrix respectively, watermark data is allowed to be embedded in several times.
Step S103: embedding watermark data into watermark embeded matrix, to obtain the second video sequence for carrying watermark data
Column.The second video sequence in the present invention refers to the video sequence for being embedded in watermark data and watermark data to be extracted
Video sequence.It is embedded watermark data into this step into watermark embeded matrix, be can be the element and water in watermark data
The element printed in embeded matrix is added, it is of course also possible to use other methods are embedded watermark data into watermark embeded matrix,
This is not limited by the present invention.
As yet another embodiment of the present invention, in step s 103 embedding watermark data into the watermark be embedded in
After matrix, the method for being embedded in watermark data can also include: to carry out SVD to the watermark embeded matrix of insertion watermark data, with
Get the first new DC coefficient;The first new DC coefficient is respectively put into each first transform block, then to each
One transform block carries out inverse all phase biorthogonal conversion (Inverse All Phase Biorthogonal Transform, abbreviation
IAPBT).This step carries out SVD to the watermark embeded matrix for being embedded in watermark data again, can be further improved insertion water
The robustness of the method for printing evidence.
Fig. 6 is the schematic diagram of the key step of the method according to an embodiment of the present invention for extracting watermark data.As this hair
Bright one embodiment, as shown in fig. 6, the key step of the method for the extraction watermark data of the embodiment of the present invention may include:
Step S601: the second video sequence of watermark data to be extracted is obtained.In the method for extracting watermark data, first
The video sequence of watermark data to be extracted is obtained, is indicated in the present invention with the second video sequence.
Step S602: the second feature point of the second video sequence is obtained based on SIFT, and according to second feature point formation
Print extracts matrix.Second feature point in the present invention refers in the method for extracting watermark data, by calculating the characteristic point obtained.
As another embodiment of the invention, step S602 may include: based on SIFT to the pre- of the second video sequence
If the second frame image of position carries out conversion process, to obtain the second feature point of the second frame image;In being with second feature point
The heart constructs second feature point data block, and obtains watermark extracting data block according to second feature point data block;To watermark extracting number
Piecemeal APBT is carried out to obtain multiple second transform blocks according to block, and according to the 2nd DC of DC coefficients to construct in each second transform block
Coefficient matrix;Anti- SVD is carried out to the 2nd DC coefficient matrix, to obtain watermark extracting matrix.It should be noted that in the present invention
Second frame image refers to the frame image for extracting the predeterminated position being related to during watermark data, does not imply that the second frame image.
Wherein, the second video sequence is also to be made of multiple frame images.Firstly, choosing the frame image of predeterminated position, base
Conversion process, multiple second feature points of the available frame image are carried out to the frame image in SIFT.Wherein, predeterminated position needs
It is corresponding (being above related to, do not do specific introduction herein) with the predeterminated position chosen in insertion watermark data method.So
Afterwards, respectively centered on each second feature point, the peripheral region composition second feature point data block of the second feature point is chosen.
Then, watermark extracting data block is obtained according to second feature point data block.Piecemeal is carried out to watermark extracting data block based on APBT
Transformation is to obtain multiple second transform blocks, and wherein the size of piecemeal is opposite with the piecemeal situation in the method for insertion watermark data
It answers.Then, according to the 2nd DC coefficient matrix of DC coefficients to construct in each second transform block, and the 2nd DC coefficient matrix is carried out
Anti- SVD, to obtain watermark extracting matrix.In the present invention, the 2nd DC coefficient matrix is constructed using the high performance of the energy of DC coefficient,
Improve the anti-robustness for extracting watermark data process.
Step S603: watermark data is extracted from watermark extracting matrix according to preset threshold.
As yet another embodiment of the present invention, step S603 may include: each member judged in watermark extracting matrix
Whether element value is more than or equal to preset threshold, if so, extracting element value, and forms watermark number according to the element value extracted
According to.In the present invention, if the watermark data of insertion is binary watermarking information, that is, the watermark information being embedded in is 0 or 1, and preset threshold is
1, then judge whether the element of watermark extracting matrix is more than or equal to 1, if so, watermark information is confirmed as, otherwise it is assumed that not being water
Official seal breath.For example, watermark extracting matrix is [1,0.5;0.3,2], by the element in watermark extracting matrix respectively with preset threshold 1
It is compared, watermark information is considered more than or equal to 1, then obtaining watermark matrix is [1,0;0,1].
As another embodiment of the invention, being mentioned from watermark extracting matrix according to preset threshold in step S603
Watermark data is taken, the method for extracting watermark data can also include: to convert based on Arnold conversion to the watermark data;
IAPBT is carried out to the watermark data after execution Arnold conversion.Due to being embedded in the present invention in the method for watermark data, first
Conversion process is carried out to watermark data based on APBT, Arnold conversion is then based on and the watermark data after APBT is converted.
Therefore, in the method for extracting watermark data, need to carry out the watermark data extracted Arnold conversion, it is then right again
Watermark data after Arnold conversion carries out IAPBT.
Fig. 7 be according to the present invention one can refer to embodiment insertion watermark data method main flow signal
Figure.As shown in fig. 7, the main flow of the method for insertion watermark data may include: step S701, obtained according to the first video sequence
Take watermark data to be embedded;Step S702 carries out conversion process to watermark data based on APBT;Step S703, is based on
Arnold conversion converts the watermark data after APBT;Step S704, based on SIFT to the default position of the first video sequence
The first frame image set is converted, to obtain the fisrt feature point of the frame image;Step S705, centered on fisrt feature point
Construct fisrt feature point data block;Step S706 obtains watermark embedded data block according to fisrt feature point data block;Step
S707 carries out piecemeal APBT to watermark embedded data block to obtain multiple first transform blocks;Step S708 becomes according to each first
Change the first DC coefficient matrix of DC coefficients to construct in block;Step S709 carries out SVD to the first DC coefficient matrix, to obtain watermark
Embeded matrix;Step S710 is embedded watermark data into watermark embeded matrix;Step S711, the watermark to insertion watermark data
Embeded matrix carries out SVD, to get the first new DC coefficient;The first new DC coefficient is respectively put into often by step S712
In a first transform block, IAPBT then is carried out to each first transform block, to obtain the second video sequence for carrying watermark data
Column.
Fig. 8 be according to the present invention one can refer to embodiment extraction watermark data method main flow signal
Figure.As shown in figure 8, the main flow for extracting the method for watermark data may include: step S801, watermark data to be extracted is obtained
The second video sequence;Step S802 carries out SIFT to the second frame image of the predeterminated position of the second video sequence, to obtain the
The second feature point of two frame images;Step S803 constructs second feature point data block centered on second feature point;Step
S804 obtains watermark extracting data block according to second feature point data block;Step S805 carries out piecemeal to watermark extracting data block
APBT is to obtain multiple second transform blocks;Step S806, according to the 2nd DC coefficient of DC coefficients to construct in each second transform block
Matrix;Step S807 carries out anti-SVD to the 2nd DC coefficient matrix, to obtain watermark extracting matrix;Step S808, judges watermark
Whether each element value extracted in matrix is more than or equal to preset threshold, if so, S809 is thened follow the steps, it is no to then follow the steps
S810;Step S809 obtains the corresponding watermark information of the element value;Step S810 determines that the element value is not with watermarked information;Step
Rapid S811;Generate watermark data;Step S812 converts watermark data based on Arnold conversion;Step S813, to execution
Watermark data after Arnold conversion carries out IAPBT, to get original watermark data.
Fig. 9 is the structural schematic diagram of the system of insertion watermark data according to an embodiment of the present invention.As shown in figure 9, first
The corresponding characteristic point data block of video sequence for getting watermark data to be embedded, by Y-component therein (i.e. luminance component, sheet
Also chromatic component, i.e. U component or V component be can choose in invention, this is not construed as limiting) as (the i.e. watermark of video watermark carrier
Embeded matrix block), the size of general Y-component can be greater than the size of watermarking images (i.e. watermark data), if the ruler of watermarking images
It is very little excessive, it can be embedded in the multiple image of video sequence, embedded part watermark in each frame image of video sequence
Image.Assuming that the size of Y-component is W × H, the sizes of watermarking images is U × V, and in order to which convenience of calculation takes U >=V, in order to by water
Watermark image is disposably embedded into Y-component, it is possible thereby to extrapolate the matrix being made up of DC coefficient and by SVD acquisition
The size of diagonal matrix S is U × V.In order to obtain U × V DC coefficient, then the image block minimum number for carrying out APBT is answered are as follows:
Meanwhile APBT requires its transformation matrix for square matrix, and the quality in order to guarantee reconstruction image, the value of U and V are most
Small is 8, therefore size N × N of transform block are as follows:
After determining the size of transform block, Y-component is done to piecemeal APBT as required, by the DC coefficient of each transform block
It extracts, forms the matrix that a size is U × V, since DC coefficient has good anti-interference, be well suited for for water
The insertion of print.Then the matrix that DC coefficient is constituted is done into SVD, and is embedded in the information of watermarking images in singular value matrix, in order to
Reduce influence of the watermark insertion to video, the matrix for carrying watermark information is second of SVD and converted by the present invention, is passed through second
Obtained singular value matrix restores DC coefficient.Then the DC matrix coefficient for being embedded in watermark can successively be put back to each piece
Directly replace in APBT coefficient, each APBT transform block is done into IAPBT transformation, the video sequence for carrying watermark can be recovered
Column.
Figure 10 is the structural schematic diagram of the system according to an embodiment of the present invention for extracting watermark data.As shown in Figure 10, first
It is first converted based on video sequence of the SIFT to containing watermark evidence, the characteristic point of the video sequence is obtained, then according to feature
Point construction watermark extracting data block, then carries out APBT to the data block, obtains the DC coefficient matrix being made of DC coefficient, then
Anti- SVD is done to the DC coefficient matrix, will finally obtain watermark extracting matrix, by the watermark extracting matrix element value and setting
Threshold value compare, and then extract watermark information.
The technical solution of video copyright protecting according to an embodiment of the present invention, which can be seen that, can utilize scale invariant feature
Transformation obtains the fisrt feature point of the first video sequence, then embeds watermark data into the watermark using characteristic point construction and is embedded in
In matrix, so as to be reasonably resistant to the heavy compression attack of HEVC, influence of the watermark data to video quality is reduced;The present invention
In embodiment after obtaining watermark data to be embedded according to the first video sequence, disorder processing is carried out to watermark data, from
And it can guarantee the safety and reliability of watermark data;When carrying out disorder processing to watermark data in the embodiment of the present invention, first
All phase biorthogonal conversion is executed to watermark data afterwards and is based on Arnold conversion, so as to further decrease between watermark data
Correlation, improve the safety of watermark data, can not be resumed watermark data is illegally extracted;The embodiment of the present invention
In the characteristic point based on Scale invariant features transform getting frame image, thereby may be ensured that the stability of characteristic point, and can be with
It selects the frame image of predeterminated position to carry out Scale invariant features transform according to the actual situation, improves practicability of the invention;This
Piecemeal all phase biorthogonal conversion is carried out to watermark embedded data block in inventive embodiments, so as to which the big of piecemeal is adjusted flexibly
It is small, guarantee that watermark data can be embedded into;The performance building first that the energy of DC coefficient is high is utilized in the embodiment of the present invention
DC coefficient matrix or the second DC coefficient matrix, so as to improve the anti-robustness of this programme;In the embodiment of the present invention
Singular value decomposition is executed to the watermark embeded matrix of insertion watermark data again, is then respectively put into the first new DC coefficient
Into each first transform block, so as to further increase the robustness of entire algorithm;Water is being extracted in the embodiment of the present invention
Printing can obtain the second feature point of the second video sequence during using Scale invariant features transform, so as to
The accuracy for guaranteeing second feature point, is then mentioned from the watermark extracting matrix constructed using second feature point according to preset threshold
Watermark data is taken, so as to which preset threshold is set according to actual conditions, improves the practicability of scheme.
In the present invention, the protective device of video copy may include: the device and extraction watermark data for being embedded in watermark data
Device.Figure 11 is the schematic diagram of the main modular of the device of insertion watermark data according to an embodiment of the present invention.Such as Figure 11 institute
Show, the device 1100 of the insertion watermark data of the embodiment of the present invention mainly comprises the following modules: first obtains module 1101, first
Constructing module 1102 and insertion module 1103.Wherein, first acquisition module 1101 can be used for according to the first video sequence obtain to
The watermark data of insertion.First constructing module 1102 can be used for obtaining the of the first video sequence based on Scale invariant features transform
One characteristic point, and watermark embeded matrix is constructed according to the fisrt feature point.Insertion module 1103 can be used for embedding watermark data into
To watermark embeded matrix, to obtain the second video sequence for carrying watermark data.
In the embodiment of the present invention, the device 1100 for being embedded in watermark data can also include: processing module (not shown).
The processing module can be used for carrying out disorder processing to watermark data.
In the embodiment of the present invention, processing module can also be used in: execute all phase biorthogonal conversion to watermark data;It is based on
Arnold conversion converts the watermark data after all phase biorthogonal conversion.
In the embodiment of the present invention, the first constructing module 1102 can also be used in: to the of the predeterminated position of the first video sequence
One frame image carries out Scale invariant features transform, to obtain the fisrt feature point of first frame image;Centered on fisrt feature point
Fisrt feature point data block is constructed, and watermark embedded data block is obtained according to fisrt feature point data block;To watermark embedded data
Block carries out piecemeal all phase biorthogonal conversion to obtain multiple first transform blocks, and according to the direct current system in each first transform block
Number the first DC coefficient matrix of construction;Singular value decomposition is carried out to the first DC coefficient matrix, to obtain watermark embeded matrix.
In the embodiment of the present invention, insertion module 1103 can also be used in: carry out to the watermark embeded matrix of insertion watermark data
Singular value decomposition, to get the first new DC coefficient;The first new DC coefficient is respectively put into each first transformation
In block, inverse all phase biorthogonal conversion then is carried out to each first transform block.
Figure 12 is the schematic diagram of the main modular of the device according to an embodiment of the present invention for extracting watermark data.Such as Figure 12 institute
Show, the device 1200 of the extraction watermark data of the embodiment of the present invention mainly comprises the following modules: second obtains module 1201, second
Constructing module 1202 and extraction module 1203.Wherein, the second acquisition module 1201 can be used for obtaining the of watermark data to be extracted
Two video sequences.Second constructing module 1202 can be used for obtaining the second spy of the second video sequence based on Scale invariant features transform
Point is levied, and watermark extracting matrix is constructed according to second feature point.Extraction module 1203 can be used for being mentioned according to preset threshold from watermark
It takes and extracts watermark data in matrix.
In the embodiment of the present invention, the second constructing module 1202 can also be used in: to the of the predeterminated position of the second video sequence
Two frame images carry out Scale invariant features transform, to obtain the second feature point of the second frame image;Centered on second feature point
Second feature point data block is constructed, and watermark extracting data block is obtained according to second feature point data block;To watermark extracting data
Block carries out piecemeal all phase biorthogonal conversion to obtain multiple second transform blocks, and according to the direct current system in each second transform block
Number the second DC coefficient matrix of construction;Anti- singular value decomposition is carried out to the second DC coefficient matrix, to obtain watermark extracting matrix.
In the embodiment of the present invention, extraction module 1203 can also be used in: judge that each element value in watermark extracting matrix is
It is no to be more than or equal to preset threshold, if so, extracting element value, and watermark data is formed according to the element value extracted.
In the embodiment of the present invention, the device 1200 for extracting watermark data can also include: conversion module (not shown).
The conversion module can be used for converting watermark data based on Arnold conversion;To the watermark number after execution Arnold conversion
According to the inverse all phase biorthogonal conversion of progress.
From the above, it can be seen that the fisrt feature of the first video sequence can be obtained using Scale invariant features transform
Then point is embedded watermark data into the watermark embeded matrix using characteristic point construction, so as to be reasonably resistant to HEVC
Heavy compression attack, reduce influence of the watermark data to video quality;It is obtained in the embodiment of the present invention according to the first video sequence
After taking watermark data to be embedded, to watermark data carry out disorder processing, thereby may be ensured that watermark data safety and
Reliability;When carrying out disorder processing to watermark data in the embodiment of the present invention, all phase biorthogonal successively is executed to watermark data
It converts and the safety of watermark data is improved so as to further decrease the correlation between watermark data based on Arnold conversion
Property, it can not be resumed watermark data is illegally extracted;It is obtained in the embodiment of the present invention based on Scale invariant features transform
The characteristic point of frame image thereby may be ensured that the stability of characteristic point, and can select predeterminated position according to the actual situation
Frame image carries out Scale invariant features transform, improves practicability of the invention;To watermark embedded data in the embodiment of the present invention
Block carries out piecemeal all phase biorthogonal conversion, so as to which the size of piecemeal is adjusted flexibly, guarantees that watermark data can be embedding
Enter;The performance for utilizing the energy of DC coefficient high in the embodiment of the present invention constructs the first DC coefficient matrix or the second direct current system
Matrix number, so as to improve the anti-robustness of this programme;Square is embedded in the watermark of insertion watermark data in the embodiment of the present invention
Battle array executes singular value decomposition again, and then the first new DC coefficient is respectively put into each first transform block, so as to
To further increase the robustness of entire algorithm;In the embodiment of the present invention during extracting watermark data, ruler can be utilized
The second feature point that invariant features transformation obtains the second video sequence is spent, thereby may be ensured that the accuracy of second feature point, so
Watermark data is extracted from the watermark extracting matrix constructed using second feature point according to preset threshold afterwards, so as to according to reality
Border situation sets preset threshold, improves the practicability of scheme.
Figure 13 is shown can be using the guard method of the video copy of the embodiment of the present invention or the protection dress of video copy
The exemplary system architecture 1300 set.
As shown in figure 13, system architecture 1300 may include terminal device 1301,1302,1303, network 1304 and service
Device 1305.Network 1304 between terminal device 1301,1302,1303 and server 1305 to provide Jie of communication link
Matter.Network 1304 may include various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 1301,1302,1303 and be interacted by network 1304 with server 1305, to receive
Or send message etc..Various telecommunication customer end applications, such as shopping class can be installed on terminal device 1301,1302,1303
(only show using, web browser applications, searching class application, instant messaging tools, mailbox client, social platform software etc.
Example).
Terminal device 1301,1302,1303 can be the various electronic equipments with display screen and supported web page browsing,
Including but not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 1305 can be to provide the server of various services, for example, to user using terminal device 1301,1302,
The 1303 shopping class websites browsed provide the back-stage management server (merely illustrative) supported.Back-stage management server can be right
The data such as the information query request received analyze etc. processing, and by processing result (such as target push information, production
Product information -- merely illustrative) feed back to terminal device.
It should be noted that the guard method of video copy provided by the embodiment of the present invention is generally held by server 1305
Row, correspondingly, the protective device of video copy is generally positioned in server 1305.
It should be understood that the number of terminal device, network and server in Figure 13 is only schematical.According to realization need
It wants, can have any number of terminal device, network and server.
Below with reference to Figure 14, it illustrates the computer systems for the terminal device for being suitable for being used to realize the embodiment of the present invention
1400 structural schematic diagram.Terminal device shown in Figure 14 is only an example, should not function to the embodiment of the present invention and
Use scope brings any restrictions.
As shown in figure 14, computer system 1400 include central processing unit (CPU) 1401, can according to be stored in only
It reads the program in memory (ROM) 1402 or is loaded into random access storage device (RAM) 1403 from storage section 1408
Program and execute various movements appropriate and processing.In RAM 1403, also it is stored with system 1400 and operates required various journeys
Sequence and data.CPU 1401, ROM 1402 and RAM 1403 are connected with each other by bus 1404.Input/output (I/O) interface
1405 are also connected to bus 1404.
I/O interface 1405 is connected to lower component: the importation 1406 including keyboard, mouse etc.;Including such as cathode
The output par, c 1407 of ray tube (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section including hard disk etc.
1408;And the communications portion 1409 of the network interface card including LAN card, modem etc..Communications portion 1409 passes through
Communication process is executed by the network of such as internet.Driver 1410 is also connected to I/O interface 1405 as needed.It is detachable to be situated between
Matter 1411, such as disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 1410, so as to
In being mounted into storage section 1408 as needed from the computer program read thereon.
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 1409, and/or from can
Medium 1411 is dismantled to be mounted.When the computer program is executed by central processing unit (CPU) 1401, executes and of the invention be
The above-mentioned function of being limited in system.
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 the first acquisition module, the first constructing module and insertion module.Wherein, the title of these modules is not constituted under certain conditions
Restriction to the module itself, for example, the first acquisition module is also described as " being obtained according to the first video sequence to be embedded
Watermark data module ".
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: that watermark data to be embedded is obtained according to the first video sequence;Institute is obtained based on Scale invariant features transform
The fisrt feature point of the first video sequence is stated, and watermark embeded matrix is constructed according to the fisrt feature point;By the watermark number
According to the watermark embeded matrix is embedded in, to obtain the second video sequence for carrying the watermark data.
Technical solution according to an embodiment of the present invention can obtain the first video sequence using Scale invariant features transform
Then fisrt feature point is embedded watermark data into the watermark embeded matrix using characteristic point construction, so as to effectively
The heavy compression attack of HEVC is resisted, influence of the watermark data to video quality is reduced;According to the first view in the embodiment of the present invention
After frequency sequence obtains watermark data to be embedded, disorder processing is carried out to watermark data, thereby may be ensured that watermark data
Safety and reliability;When carrying out disorder processing to watermark data in the embodiment of the present invention, full phase successively is executed to watermark data
Position biorthogonal conversion and it is based on Arnold conversion, so as to further decrease the correlation between watermark data, improves watermark number
According to safety, can not be resumed watermark data is illegally extracted;Scale invariant feature is based in the embodiment of the present invention
The characteristic point for converting getting frame image, thereby may be ensured that the stability of characteristic point, and can select according to the actual situation pre-
If the frame image of position carries out Scale invariant features transform, practicability of the invention is improved;To watermark in the embodiment of the present invention
Embedding data block carries out piecemeal all phase biorthogonal conversion, so as to which the size of piecemeal is adjusted flexibly, guarantees watermark data all
It can be embedded into;The high performance of energy in the embodiment of the present invention using DC coefficient constructs the first DC coefficient matrix or the
Two DC coefficient matrixes, so as to improve the anti-robustness of this programme;To the water of insertion watermark data in the embodiment of the present invention
Print embeded matrix executes singular value decomposition again, and the first new DC coefficient is then respectively put into each first transform block
In, so as to further increase the robustness of entire algorithm;In the embodiment of the present invention during extracting watermark data, energy
The second feature point that the second video sequence is enough obtained using Scale invariant features transform, thereby may be ensured that the standard of second feature point
Then true property extracts watermark data from the watermark extracting matrix constructed using second feature point according to preset threshold, so as to
Preset threshold is set according to actual conditions, the practicability of scheme is improved.
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 guard method of video copy characterized by comprising
Watermark data to be embedded is obtained according to the first video sequence;
The fisrt feature point of first video sequence is obtained based on Scale invariant features transform, and according to the fisrt feature point
Construct watermark embeded matrix;
The watermark data is embedded in the watermark embeded matrix, to obtain the second video sequence for carrying the watermark data
Column.
2. guard method according to claim 1, which is characterized in that obtaining water to be embedded according to the first video sequence
After printing evidence, the method also includes: disorder processing is carried out to the watermark data.
3. guard method according to claim 2, which is characterized in that carrying out disorder processing to the watermark data includes:
All phase biorthogonal conversion is executed to the watermark data;Based on Arnold conversion to the watermark number after all phase biorthogonal conversion
According to being converted.
4. guard method according to claim 1, which is characterized in that obtain described first based on Scale invariant features transform
The fisrt feature point of video sequence, and watermark embeded matrix is constructed according to the fisrt feature point and includes:
Scale invariant features transform is carried out to the first frame image of the predeterminated position of first video sequence, to obtain described the
The fisrt feature point of one frame image;
Fisrt feature point data block is constructed centered on the fisrt feature point, and is obtained according to the fisrt feature point data block
Watermark embedded data block;
Piecemeal all phase biorthogonal conversion is carried out to obtain multiple first transform blocks to the watermark embedded data block, and according to every
DC coefficient in a first transform block constructs the first DC coefficient matrix;
Singular value decomposition is carried out to the first DC coefficient matrix, to obtain the watermark embeded matrix.
5. guard method according to claim 4, which is characterized in that embedding the watermark data is embedded in the watermark
After entering matrix, the method also includes:
Singular value decomposition is carried out to the watermark embeded matrix of insertion watermark data, to get the first new DC coefficient;
The first new DC coefficient is respectively put into each first transform block, is then become to described each first
It changes block and carries out inverse all phase biorthogonal conversion.
6. a kind of guard method of video copy characterized by comprising
Obtain the second video sequence of watermark data to be extracted;
The second feature point of second video sequence is obtained based on Scale invariant features transform, and according to the second feature point
Construct watermark extracting matrix;
Watermark data is extracted from the watermark extracting matrix according to preset threshold.
7. guard method according to claim 6, which is characterized in that obtain described second based on Scale invariant features transform
The second feature point of video sequence, and watermark extracting matrix is constructed according to the second feature point and includes:
Scale invariant features transform is carried out to the second frame image of the predeterminated position of second video sequence, to obtain described the
The second feature point of two frame images;
Second feature point data block is constructed centered on the second feature point, and is obtained according to the second feature point data block
Watermark extracting data block;
Piecemeal all phase biorthogonal conversion is carried out to obtain multiple second transform blocks to the watermark extracting data block, and according to institute
The DC coefficient stated in each second transform block constructs the second DC coefficient matrix;
Anti- singular value decomposition is carried out to the second DC coefficient matrix, to obtain the watermark extracting matrix.
8. guard method according to claim 6, which is characterized in that according to preset threshold from the watermark extracting matrix
Extracting watermark data includes:
Judge whether each element value in the watermark extracting matrix is more than or equal to preset threshold, if so, extracting described
Element value, and watermark data is formed according to the element value extracted.
9. guard method according to claim 6, which is characterized in that according to preset threshold from the watermark extracting matrix
After middle extraction watermark data, the method also includes: the watermark data is converted based on Arnold conversion;To execution
Watermark data after Arnold conversion carries out inverse all phase biorthogonal conversion.
10. a kind of protective device of video copy characterized by comprising
First obtains module, for obtaining watermark data to be embedded according to the first video sequence;
First constructing module, for obtaining the fisrt feature point of first video sequence based on Scale invariant features transform, and
Watermark embeded matrix is constructed according to the fisrt feature point;
It is embedded in module, for the watermark data to be embedded in the watermark embeded matrix, carries the watermark data to obtain
The second video sequence.
11. protective device according to claim 10, which is characterized in that the protective device further include: processing module is used
In to watermark data progress disorder processing.
12. protective device according to claim 11, which is characterized in that the processing module is also used to: to the watermark
Data execute all phase biorthogonal conversion;The watermark data after all phase biorthogonal conversion is become based on Arnold conversion
It changes.
13. protective device according to claim 10, which is characterized in that first constructing module is also used to:
Scale invariant features transform is carried out to the first frame image of the predeterminated position of first video sequence, to obtain described the
The fisrt feature point of one frame image;
Fisrt feature point data block is constructed centered on the fisrt feature point, and is obtained according to the fisrt feature point data block
Watermark embedded data block;
Piecemeal all phase biorthogonal conversion is carried out to obtain multiple first transform blocks to the watermark embedded data block, and according to every
DC coefficient in a first transform block constructs the first DC coefficient matrix;
Singular value decomposition is carried out to the first DC coefficient matrix, to obtain the watermark embeded matrix.
14. protective device according to claim 13, which is characterized in that the insertion module is also used to:
Singular value decomposition is carried out to the watermark embeded matrix of insertion watermark data, to get the first new DC coefficient;
The first new DC coefficient is respectively put into each first transform block, is then become to described each first
It changes block and carries out inverse all phase biorthogonal conversion.
15. a kind of protective device of video copy characterized by comprising
Second obtains module, for obtaining the second video sequence of watermark data to be extracted;
Second constructing module, for obtaining the second feature point of second video sequence based on Scale invariant features transform, and
Watermark extracting matrix is constructed according to the second feature point;
Extraction module, for extracting watermark data from the watermark extracting matrix according to preset threshold.
16. protective device according to claim 15, which is characterized in that second constructing module is also used to:
Scale invariant features transform is carried out to the second frame image of the predeterminated position of second video sequence, to obtain described the
The second feature point of two frame images;
Second feature point data block is constructed centered on the second feature point, and is obtained according to the second feature point data block
Watermark extracting data block;
Piecemeal all phase biorthogonal conversion is carried out to obtain multiple second transform blocks to the watermark extracting data block, and according to institute
The DC coefficient stated in each second transform block constructs the second DC coefficient matrix;
Anti- singular value decomposition is carried out to the second DC coefficient matrix, to obtain the watermark extracting matrix.
17. protective device according to claim 15, which is characterized in that the extraction module is also used to:
Judge whether each element value in the watermark extracting matrix is more than or equal to preset threshold, if so, extracting described
Element value, and watermark data is formed according to the element value extracted.
18. protective device according to claim 15, which is characterized in that the protective device further include: conversion module is used
The watermark data is converted in based on Arnold conversion;Watermark data after execution Arnold conversion is carried out inverse complete
Phase biorthogonal conversion.
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 1-9.
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 1-9 is realized when row.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810310612.9A CN110365986A (en) | 2018-04-09 | 2018-04-09 | The guard method and protective device of video copy |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810310612.9A CN110365986A (en) | 2018-04-09 | 2018-04-09 | The guard method and protective device of video copy |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110365986A true CN110365986A (en) | 2019-10-22 |
Family
ID=68211922
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810310612.9A Pending CN110365986A (en) | 2018-04-09 | 2018-04-09 | The guard method and protective device of video copy |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110365986A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103955878A (en) * | 2014-04-11 | 2014-07-30 | 杭州电子科技大学 | DWT-SVD geometric attack prevention blind watermark method based on SIFT |
CN103974144A (en) * | 2014-05-23 | 2014-08-06 | 华中师范大学 | Video digital watermarking method based on characteristic scale variation invariant points and microscene detection |
CN106097237A (en) * | 2016-05-25 | 2016-11-09 | 中国科学院自动化研究所 | The embedding grammar of image watermark and extracting method and associated method |
-
2018
- 2018-04-09 CN CN201810310612.9A patent/CN110365986A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103955878A (en) * | 2014-04-11 | 2014-07-30 | 杭州电子科技大学 | DWT-SVD geometric attack prevention blind watermark method based on SIFT |
CN103974144A (en) * | 2014-05-23 | 2014-08-06 | 华中师范大学 | Video digital watermarking method based on characteristic scale variation invariant points and microscene detection |
CN106097237A (en) * | 2016-05-25 | 2016-11-09 | 中国科学院自动化研究所 | The embedding grammar of image watermark and extracting method and associated method |
Non-Patent Citations (2)
Title |
---|
HANNES FASSOLD等: "A Real一time GPU Implementation of the SIFT Algorithm for Large-Scale Video Analysis Tasks", 《PROCEEDINGS OF THE SPIE-IS AND TELECTRONIC IMAGING一REAL-TIME IMAGE AND VIDEO PROCESSING》 * |
单荣杨: "基于APBT的类JPEG图像压缩以及HEVC视频编码与水印算法研究", 《万方数据库》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Xu et al. | A privacy-preserving content-based image retrieval method in cloud environment | |
US20070127813A1 (en) | Approach for near duplicate image detection | |
Malik et al. | An AMBTC compression based data hiding scheme using pixel value adjusting strategy | |
US11908038B2 (en) | Image transformation method and apparatus, storage medium, and computer device | |
CN101976428B (en) | Binary image fragile watermark embedding and extraction method based on topology structure | |
US9094204B2 (en) | Image encryption system and image decryption system | |
Yang et al. | Efficient reversible data hiding algorithm based on gradient-based edge direction prediction | |
US9305603B2 (en) | Method and apparatus for indexing a video stream | |
Jude Hemanth et al. | A modified genetic algorithm for performance improvement of transform based image steganography systems | |
CN110968847A (en) | File watermark hiding and analyzing method, device, equipment and storage medium | |
Chen et al. | JSNet: a simulation network of JPEG lossy compression and restoration for robust image watermarking against JPEG attack | |
Chai et al. | A robust compressed sensing image encryption algorithm based on GAN and CNN | |
Agilandeeswari et al. | RST invariant robust video watermarking algorithm using quaternion curvelet transform | |
Kumar et al. | Performance evaluation of modified color image steganography using discrete wavelet transform | |
CN114461988A (en) | Image encryption method and device, image decryption method and device | |
CN110365986A (en) | The guard method and protective device of video copy | |
Wang et al. | A dtcwt-svd based video watermarking resistant to frame rate conversion | |
Prathik et al. | An Adaptive blind video watermarking technique based on SD-BPSO and DWT-SVD | |
Ouyang et al. | A semi-fragile reversible watermarking method based on qdft and tamper ranking | |
CN111325652A (en) | Information embedding method, information extracting method, information embedding device, information extracting device, information embedding equipment and computer readable storage medium | |
CN104424619A (en) | Information processing apparatus and information processing method | |
CN114915464A (en) | Image encryption method and image decryption method based on special matrix operation | |
Bashir et al. | A DCT domain smart vicinity reliant fragile watermarking technique for DIBR 3D-TV | |
KR100400382B1 (en) | Digital image watermarking method | |
Mehta et al. | Research review on digital image steganography which resists against compression |
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 |