CN100547609C - A kind of bittorrent Robust digital figure watermark embedding and detection method and device - Google Patents

A kind of bittorrent Robust digital figure watermark embedding and detection method and device Download PDF

Info

Publication number
CN100547609C
CN100547609C CNB2005101235679A CN200510123567A CN100547609C CN 100547609 C CN100547609 C CN 100547609C CN B2005101235679 A CNB2005101235679 A CN B2005101235679A CN 200510123567 A CN200510123567 A CN 200510123567A CN 100547609 C CN100547609 C CN 100547609C
Authority
CN
China
Prior art keywords
watermark
image
digital
bittorrent
axisymmetric
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.)
Active
Application number
CNB2005101235679A
Other languages
Chinese (zh)
Other versions
CN1971613A (en
Inventor
桑茂栋
田新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Huaqi Image Intelligent Technology Co Ltd
Original Assignee
Beijing Huaqi Digital Image Technology Inst 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 Huaqi Digital Image Technology Inst Co Ltd filed Critical Beijing Huaqi Digital Image Technology Inst Co Ltd
Priority to CNB2005101235679A priority Critical patent/CN100547609C/en
Publication of CN1971613A publication Critical patent/CN1971613A/en
Application granted granted Critical
Publication of CN100547609C publication Critical patent/CN100547609C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

A kind of embedding of bittorrent Robust digital figure watermark and detection method and device, belong to the digital figure watermark technology, in digital picture, embed data and can accurately extract, even image has passed through some image processing operations, for example amplify, dwindle, rotation, upset, mirror image, printing-scanning etc.Comprising embed digital watermark and detection digital watermarking two large divisions.The method and the device of embed digital watermark comprise: with digital coding modulation, will modulate signal configuration afterwards then and be axisymmetric cycle watermark and it is embedded digital picture adaptively.The method and the device that detect digital watermarking comprise: calculate the autocorrelation function of prediction watermark, utilize the coordinate of autocorrelation function local peaking to judge the parameter of the affined transformation of image experience, and recover image according to parameter.From recover image, predict watermark at last, by extracting data after the demodulating and decoding.

Description

A kind of bittorrent Robust digital figure watermark embedding and detection method and device
Technical field
The invention belongs to the digital figure watermark technical field, be specifically related to a kind of bittorrent Robust digital figure watermark embedding and detection method and device.
Background technology
Current, computing machine and rapid development of network have changed people's life in many aspects.People's a lot of creation and the achievement of production are all with digital mode storage and transmission.Exchange of multimedia information based on computing machine and network is the use of copyright, the approach that propagation is provided convenience, and copyright is compared with traditional work had an enormous advantage.Yet copyright is very easily by illegal copies and duplicating, the pirate threat that has become digitizing industry maximum.Concerning the copyright owner of Digital Media, requiring of copyright protection is extremely urgent.And the copyright protection of copyright is not only the problem of a legislation, also is a very important techniques problem.
Digital watermark technology for solve copyright protection on the open network, source authentication, a series of problems such as authentication, distribution on the net, usertracking of distorting provide brand-new solution thinking.Digital watermark technology is meant with method for processing signals and embeds hidden mark that in digitized multi-medium data this mark does not influence the value and the use of raw content, and has only detecting device or reader by special use to extract.
Utilize the digital figure watermark technology that image owner's entitlement information is embedded into the copyright that can protect works in the digital picture works effectively, especially this protection seems particularly important under network environment.Can weigh the reliable standard of digital figure watermark advanced technology be resist various attack.The digital figure watermark treatment technology that has proposed at present, great majority are powerless for geometric attacks such as convergent-divergent, shearing, rotation, stretching, distortions, because required synchronizing information when this attack has destroyed watermark detection, so being considered to digital watermark technology, geometric attack goes on commercial bottleneck, image is through after this D/A-A/D conversion of printing-scanning in addition, and the difficulty of carrying out watermark extracting again is also very big.
In the prior art, spread spectrum technology is at first recognized by Tirkel and can be applied in the digital watermark technology, typical case's representative that this class embeds strategy then is the spread-spectrum watermark algorithm that people such as Cox proposes in document " Cox I J; Kilian J; Leighton T; and Shamoon T.Secure spread spectrum watermarking formultimedia.IEEE Trans.on Image Processing; 1997; 6 (12): 1673-1687 ", this algorithm is finished the embedding of the watermark information that satisfies Gaussian distribution by changing original image DCT coefficient, but this method needs original image when can only embed a bit and detection, can not resist geometric attack simultaneously.Kutter is at document " Kutter M.Watermarkingresisting to translation; rotation and scaling.Proc.SPIE Int.Symp.on voice; Video; and Data Communication; November 1998; vol.3528, pp.423-431 " in proposed to use autocorrelation function to judge the thought blank of affined transformation first; he embeds the diverse location of watermark at image four times; the time standby cruciform wave filter of detection carries out the watermark prediction; calculate the auto-correlation of prediction watermark then; according to the position judgment convergent-divergent of nine peak points; translation, rotation parameter, but this method can't be resisted upset and be attacked, and does not consider human visual system's characteristic, embeds the zone at all and all carries out the watermark embedding with same intensity.People such as Voloshynovskiy have proposed a kind of masking effect model based on the image denoising theory in document " Voloshynovskiy S; Deguillaume F and Pun T.Content adaptivewatermarking based on a stochastic multiresolution image modeling.EUSIPCO2000; European Signal Processing Conference; Tampere; Finland; September 2000 "--noise visibility function NVF (Noise Visibility Function), utilize this model they with watermark with in the different zone of different intensity embedded images, thereby realize that self-adaptation embeds.The present invention also controls the intensity of watermark in the image zones of different by the noise visibility function of image.People such as Op De Beeck patent documentation " Op DeBeeck et al. Method and apparatus for detecting a watermark in amanipulated image.United States Patent; No.US 6671388 B1. " in a kind of detection method and device of watermark have been proposed, the author claims this detection method can resist such as geometric attacks such as scaling, rotation, stretchings, but it attacks then powerless to mirror image.
Summary of the invention
At existing deficiency in the prior art, the objective of the invention is to: propose a kind of bittorrent Robust digital figure watermark embedding and detection method and device.With the digital picture after this method and the device embed digital watermark; even behind convergent-divergent, rotation, shearing, upset, translation, mirror image, printing-image processing operations such as scanning; autocorrelation characteristic by the cycle watermark; can the computational transformation parameter and correctly from recover image extract watermark data, thus realized the copyright protection function of digital picture works.
In order to achieve the above object, the present invention is undertaken by following steps.Utilization is modulated bitstream data by the pseudo-random sequence of cipher controlled, with the modulation signal addition, is configured to axisymmetric watermark then, at last according to the masking effect of original digital image periodically self-adaptation embed in the original digital image.When needs are verified the copyright of digital picture works, do not need original image to participate in, at first the autocorrelation function of predetermined period watermark and computation period watermark is judged the affined transformation of image experience and is recovered image according to the lattice structure that the peak value of autocorrelation function is formed; From recover image, predict watermark once more, utilize the key identical to produce pseudo-random sequence, and be configured to axisymmetric signal that the watermark of demodulation prediction obtains binary code word, thereby propose copyright information according to the rule identical with built-in end with built-in end.
The present invention includes embed digital watermark and detect the digital watermarking two large divisions.Embed digital watermark method and device comprise: with data-modulated, the signal configuration after will modulating then be axisymmetric watermark and with its periodically self-adaptation embed digital picture.The method and the device that detect digital watermarking comprise: the prediction watermark is also calculated the autocorrelation function of prediction watermark, utilizes the coordinate of autocorrelation function local peaking to judge the parameter of the affined transformation of image experience, and recovers image according to parameter.From recover image, predict watermark at last, by extracting data after the demodulation.Now be described in detail as follows:
The method that a first aspect of the present invention provides a kind of like this bittorrent Robust digital figure watermark to embed comprises following three steps:
The first step is the spread spectrum modulation: utilize key to produce a set that is made of pseudo-random sequence, the number of elements of set is identical with the amount of bits of bit stream, and the length of pseudo-random sequence is according to the requirement of robustness is decided.Modulate corresponding bit with pseudo-random sequence, form new pseudo-random sequence set, all pseudo-random sequence additions get pseudo-random sequence to the end in will gathering then.
Second step was the axisymmetric watermark signal of structure: the pseudo-random sequence that obtains is rearranged form the sub-piece of two dimension, sub-piece serves as the axle upset with any one of four limits, two sub-pieces are arranged in form an axisymmetric macro block together, this macro block can be left-right symmetric, symmetry up and down.According to the big young pathbreaker's macro block tiling of image, obtain a periodicity watermark identical then, by limiter amplitude limit is carried out in the periodicity watermark at last with original image size.Wherein also can when this step begins, carry out, the pseudo-random sequence that obtains is carried out amplitude limit by limiter by the limiter amplitude limit.
The 3rd step was the masking effect according to original digital image, the watermark of above-mentioned structure periodically self-adaptation embed in the original digital image: the noise visibility function that at first calculates each component of original digital image, the initial value of a contrast sensitivity is set, deposit the data of original image component in a two-dimensional array, wicket sequential scanning two-dimensional array with certain size, the variance of calculating in each window deposits it in another two-dimensional array and finds out maximum variance yields, obtain one with the contrast sensitivity initial value divided by the variance yields of maximum and adjust parameter, adjust the MAD one of parameter and variance, get the noise visibility function (NVF) that value that inverse obtains becomes this component.Then the cycle watermark is embedded digital picture adaptively, the NVF of each component of the original image value with the cycle watermark on duty, be added to respectively then on the numerical value of each component of original image, the intensity of watermark can be set according to the requirement of robustness and invisibility in this process.
The method that a second aspect of the present invention provides a kind of like this bittorrent Robust digital figure watermark to detect comprises following five steps:
The first step is predetermined period watermark: the method for digital picture by filtering obtained a signal, and the product of this signal and the noise visibility function of himself is as the predicted value of cycle watermark.
Second step was to judge affined transformation and recover image: the autocorrelation function of computation period watermark predicted value, the value of autocorrelation function is mapped as the data (as image codomain 0-255) that belong to certain codomain, utilize given shape (as cross, intersections etc.) method of filtering obtains the local peaking of autocorrelation function, the affine transformation parameter of the lattice structure computed image experience that constitutes according to the coordinate points of local peaking, according to parameter digital picture is carried out the inverse transformation image that is restored, if there is not the local peaking of rule, then illustrate not contain watermark in this image, need not to proceed the following step.
The 3rd step was to predict watermark once more: the predicted value that the digital picture of recovering is obtained once more the cycle watermark according to the method for the first step.
The 4th step was to judge from the 3rd to go on foot to obtain whether there is watermark the predicted value: utilize the key identical with built-in end to produce the pseudo-random sequence set, structure principle according to built-in end, the pseudo-random sequence of flag bit correspondence is configured to axisymmetric two-dimentional macro block, the cross correlation function of computing macro block and cycle watermark predicted value; With the extreme value of cross correlation function, compare with prior preset threshold, if having watermark, carried out for the 5th step greater than the threshold value explanation; If less than threshold value, do not contain watermark in the key diagram picture, need not to proceed the following step.
The 5th step was to go on foot the prediction watermark that obtains from the 3rd to extract data: according to the structure principle of built-in end, other pseudo-random sequences are configured to axisymmetric two-dimentional macro block respectively, calculate the cross correlation function of two-dimentional macro block and cycle watermark predicted value; Ask the maximal value of the absolute value of cross correlation function,, judge watermark bit according to the cross-correlation function value of absolute value maximum and preset threshold comparison in advance.
A third aspect of the present invention provides a kind of like this flush mounting of bittorrent Robust digital figure watermark, and this flush mounting has the modulating device that utilizes pseudo-random sequence bitstream data to be carried out the spread spectrum modulation; Modulation signal is configured to the constructing apparatus of axisymmetric watermark; According to the masking effect of original digital image, the watermark of structure periodically self-adaptation imbed flush mounting in the original digital image.Wherein modulating device comprises pseudorandom number generator that can produce pseudo-random sequence and the stacking apparatus that modulation signal is superposeed.Constructing apparatus comprises the limiter that modulation signal is carried out amplitude limit.And the calculation element that is inserted in the masking effect of the calculating digital picture between above-mentioned constructing apparatus and the above-mentioned flush mounting.
A fourth aspect of the present invention provides a kind of like this pick-up unit of bittorrent Robust digital figure watermark, and this pick-up unit has and is used for the watermark prediction unit of predetermined period watermark from digital picture; Be used for calculating the autocorrelation function of prediction watermark, affine transformation parameter that the judgement image experiences and the image correction apparatus that recovers image; According to the pseudo-random sequence set that produces with the same key of built-in end, according to constructing axisymmetric two-dimentional macro block with the same rule of built-in end, the cycle watermark of demodulation prediction obtains the demodulating equipment of watermark data.Wherein the watermark prediction unit also has the wave filter of predetermined period watermark and the calculation element of the masking effect of calculating digital picture; Image correction apparatus comprise computation period watermark predicted value autocorrelation function calculation element and obtain the wave filter of the local peaking of autocorrelation function.Also have the pseudorandom number generator that can utilize key to produce pseudo-random sequence in the demodulating equipment, pseudo random signal is configured to the constructing apparatus of axisymmetric two-dimentional macro block, according to the value of the simple crosscorrelation of the cycle watermark of axisymmetric two-dimentional macro block and prediction, judge the matched filter of watermark bit.
The present invention's's " a kind of embedding of bittorrent Robust digital figure watermark and the method for detection and device " effect is as follows:
1. the present invention has adopted axisymmetric periodicity watermark embedded technology, can eliminate the influences that geometric attack brought such as affined transformation, shearing, upset, mirror image effectively, provides reliable synchronizing information for detecting watermark.
2. because the present invention has adopted spread spectrum modulation technique, error-correcting code technique,, still can extract data exactly, for the robustness of digital watermarking provides good assurance even experienced some image processing operations at image.
Why the present invention has above-mentioned effect, mainly be because the lattice structure that the peak value of the digital figure watermark technology utilization periodicity watermark autocorrelation function among the present invention is formed also presents periodicity this characteristics same with watermark, can pick up synchronizing information, thereby eliminate the influence that above-mentioned geometric attack brings effectively; The present invention utilizes the robustness of spread spectrum digital watermark enhancing watermark in addition, utilizes the local peaking position of the wave filter location prediction watermark rapidly and accurately autocorrelation function of given shape.
Description of drawings
Fig. 1 is a process flow diagram of the present invention;
Fig. 2 a has provided three kinds of shapes of rotational symmetry watermark;
Fig. 2 b is the process flow diagram of tectonic axis symmetric periodic of the present invention watermark;
Fig. 2 c is the cycle watermark of example structure of the present invention;
Fig. 3 a is the lena image before the embed watermark;
Fig. 3 b is the noise visibility function figure of the red component of Fig. 3 a;
Fig. 4 embeds the lena image after the cycle watermark shown in Fig. 2 b;
Fig. 5 is the peak change synoptic diagram of cycle watermark autocorrelation function before and after affined transformation;
Fig. 6 is that Fig. 4 is through the image after the rotation;
Fig. 7 is the peak synoptic diagram that extracts from Fig. 6;
Fig. 8 is the recovery image of Fig. 6.
Embodiment
The present invention is described in further detail below in conjunction with drawings and Examples, and see also accompanying drawing.Fig. 1 is that a kind of bittorrent Robust digital figure watermark of expression embeds and the method for detection and the process flow diagram of device, wherein is divided into embed digital watermark and detects digital watermarking two parts.
The structure of flush mounting comprises the modulating device that utilizes pseudo-random sequence bitstream data to be carried out the spread spectrum modulation; Modulation signal is configured to the constructing apparatus of axisymmetric watermark; According to the masking effect of original digital image, the watermark of structure periodically self-adaptation imbed flush mounting in the original digital image.Wherein comprise can be by carrying out Error Correction of Coding with the original bit flow data for modulating device, add the scrambler that is used in detection, can judging fast a flag bit that whether contains watermark in the image in the code word front then, the unipolarity code word can be become the converter of bipolarity code word, can produce the pseudorandom number generator of pseudo-random sequence, and the stacking apparatus that modulation signal is superposeed.Constructing apparatus comprises the limiter that modulation signal is carried out amplitude limit, and the calculation element that is inserted in the masking effect of the calculating digital picture between above-mentioned constructing apparatus and the above-mentioned flush mounting.
By flush mounting that the operation steps that digital watermarking embeds in the original image is as follows: at first, utilize the Bose-Chaudhuri Hocquenghem error correction codes technology to add with many bit-binary data coding and in the code word front and by converter unipolarity error correction code word is become the bipolarity code word then by a flag bit 1 by scrambler; Second step, utilize key to produce a set that constitutes by pseudo-random sequence by pseudo-random generator, utilize the corresponding bipolarity code word of modulating device modulation, by superimposer all modulated signal sequences additions are got to the end pseudo-random sequence then; The 3rd step, by constructing apparatus the pseudo-random sequence that obtains is rearranged sub-piece of two dimension of formation, sub-piece serves as the axle upset with any one of four limits, two sub-pieces are arranged in form an axisymmetric macro block together, this macro block can be left-right symmetric, symmetrical up and down, perhaps as a whole with two blocks, upset once is configured to not only left-right symmetric but also laterally zygomorphic macro block again, shown in Fig. 2 a (we have used not only left-right symmetric but also laterally zygomorphic macro block in the present embodiment), big young pathbreaker's macro block tiling is come and is obtained periodically watermark according to image then, by limiter amplitude limit is carried out in the periodicity watermark at last; In the 4th step,, be used to be controlled at the embedment strength of image zones of different watermark by the noise visibility function of each component of calculation element calculating original digital image; In the 5th step, the cycle watermark is embedded digital picture adaptively by flush mounting.
The pick-up unit structure comprises and is used for the watermark prediction unit of predetermined period watermark from digital picture; Be used for calculating the autocorrelation function of prediction watermark, affine transformation parameter that the judgement image experiences and the image correction apparatus that recovers image; According to the pseudo-random sequence set that produces with the same key of built-in end, according to constructing axisymmetric two-dimentional macro block with the same rule of built-in end, the cycle watermark of demodulation prediction obtains the demodulating equipment of watermark data.Wherein the watermark prediction unit also has the wave filter of predetermined period watermark and the calculation element of the masking effect of calculating digital picture; Image correction apparatus comprise computation period watermark predicted value autocorrelation function calculation element and obtain the wave filter of the local peaking of autocorrelation function.Also have the pseudorandom number generator that can utilize key to produce pseudo-random sequence in the demodulating equipment, pseudo random signal is configured to the constructing apparatus of axisymmetric two-dimentional macro block, according to the value of the simple crosscorrelation of the cycle watermark of axisymmetric two-dimentional macro block and prediction, judge the matched filter of watermark bit.
By pick-up unit that the operation steps that digital watermarking detects from digital picture is as follows: the first step, by the watermark prediction unit, utilize wave filter that digital picture is carried out low-pass filtering, obtain a signal, the product of this signal and the noise visibility function of this signal that obtains by calculation element is the periodically predicted value of watermark; Second step, pass through image correction apparatus, allow calculation element utilize the autocorrelation function of fast Fourier transform (FFT) computation period watermark, obtain the transformation parameter of image experience: the range mappings of auto-correlation function value is arrived 0-255, utilize image process method to extract local peaking by filter then; Utilize the method for statistics afterwards, obtain distance and angle between the peak value, and the distance and the angle contrast that are provided with when embedding, thereby obtain the parameter of the affined transformation of digital picture experience, according to parameter image is carried out inverse transformation and recover image; In the 3rd step, utilize the method and apparatus processing recovery image of the first step to obtain predetermined period watermark once more; In the 4th step, utilize the pseudo-random sequence of flag bit key correspondence to judge by demodulating equipment and recover whether to contain flag bit in the image, thereby judge whether to exist watermark; The 5th step: by demodulating equipment, utilize the pseudo-random sequence set that produces according to key, according to constructing axisymmetric macro block with the same rule of built-in end, the watermark of demodulation cycle obtains binary data; The 6th step: utilize the BCH decoding technique to extract the original watermark data by the error correcting code code translator.
More than every rapid step by step action effect referring to subordinate list 1 and subordinate list 2.
Each the step effect of table 1 embed digital watermark method
Step Operation Effect
1 Write the error correcting code program, to the copyright of many bits Strengthen many bits copyright information for figure
Information data is carried out Error Correction of Coding; The front is transformed to the bipolarity code word after adding a flag bit. Picture is handled the robustness of operation.
2 Write modulation program, use the pseudo-random sequence that produces according to key to modulate summation afterwards the bipolarity code word. Strengthen the robustness of watermark for image processing operations.
3 Write structure cycle watermarking process, the pseudo-random sequence that obtains is rearranged sub-piece of two dimension of formation, sub-piece serves as the axle upset with any one of four limits, two sub-pieces are arranged in form an axisymmetric macro block together, this macro block can be left-right symmetric, symmetrical up and down, perhaps as a whole with two blocks, upset once is configured to not only left-right symmetric but also laterally zygomorphic macro block again,, and with the macro block tiling generation cycle watermark of coming. Strengthen the robustness of watermark for upset, shearing, mirror image; Determine synchronously when detecting.
4 Calculate the masking effect of digital picture, digital picture is scanned calculating noise visibility function NVF with the window of certain size. Increase the invisibility of watermark.
5 The cycle watermark is embedded into digital picture, sets watermark strength, then the watermark additivity is embedded in the digital picture according to the requirement of robustness and invisibility. Formation adds watermarking images.
Table 2 detects each step effect of digital watermark method
Step Operation Effect
1 Digital picture is carried out low-pass filtering obtain the high frequency imaging signal, calculate the NVF of this signal simultaneously, both multiply each other and obtain the periodically predicted value of watermark; Do not need original image to participate in when detecting.
2 The autocorrelation function of computation period watermark to 0-255, extracts local peaking with the range mappings of auto-correlation function value then, obtains the transformation parameter that image may experience, and recovers image; Seek and detect the required synchronizing information of watermark.
3 Operate predetermined period watermark once more according to step 1 pair recovery image Obtain containing the signal of watermark data
4 Rotational symmetry macro block that the pseudo-random sequence of calculation flag bit correspondence constitutes and the simple crosscorrelation between the predicted value are calculated the ratio of cross correlation function maximal value and watermark energy opening, with prior preset threshold comparison. Judge the watermark that whether has embedding in the predicted value
5 Write the demodulation coding program, utilize the pseudo-random sequence that produces according to key prediction watermark demodulation, Extract the binary data of many bits
6 Extract the data of many bits with the error-correcting decoding technology. Obtain the scale-of-two copyright information
Fig. 2 b is the process flow diagram of tectonic axis symmetric watermark.
Fig. 2 c is the cycle watermark of being constructed according to the flow process of Fig. 2 by flag bit 1 and data " 12345 ".
Fig. 3 a is the original RGB image lena that selects;
Fig. 3 b is the noise visibility function NVF of image lena red component.
Fig. 4 embeds the RGB image lena afterwards of the cycle watermark shown in Fig. 2 b.
At first, the color value of reading images Lena takes out R, G, three components of B, stores in three two-dimensional arrays.Calculate the noise visibility function of three components respectively.Then the cycle watermark shown in Fig. 2 b is hidden in respectively in the lena image shown in Fig. 3 a.The formula of additivity embed watermark is in three components:
R′=R+(1-NVF(R))·α+NVF(R)·β
G′=G+(1-NVF(G))·α+NVF(G)·β
B′=B+(1-NVF(B))·α+NVF(B)·β
α wherein, β represents the embedment strength of watermark in image;
The detail operations step that concrete digital watermarking embeds algorithm is as follows:
The first step is encoded to scale-of-two " 0,011 0,000 0,011 1001 " with data " 12345 "; Obtain unipolarity code word " xxxxx " after utilizing the BCH Error Correction of Coding.
In second step, the unipolar code front adds a flag bit 1, forms code word " 1 xxxxx ", is mapped as-1 with all 0 then, obtains bipolarity code word " 1 xxxxx ".
The 3rd step according to the quantity of bipolarity code word, produced the separate pseudo-random sequence of same quantity and multiplies each other with the bipolarity code word with key, and we are chosen as 1024 sequence length, and data are obeyed evenly and distributed, and average is 0; With all sequence additions, form an one-dimensional signal that contains all codeword information at last.
The 4th step, with length is the two-dimensional blocks of data that 1024 one-dimensional signal is arranged as 32*32, then data block is overturn along right hand edge, lower limb, the lower right corner respectively, four two-dimensional blocks of data are put into the two-dimensional array of a 64*64, form axisymmetric macro block.
In the 5th step, the size of reading in image Lena is 512*512, and the macro block tiling that obtains is come, and forms the cycle watermark array of 512*512.
The 6th step, read in the color value of image Lena, and propose three components of RGB, calculate the noise visibility function NVF of Lena image R, G, B component respectively, the wicket size of our usefulness is 3*3 in the calculating, the contrast sensitivity initial value is set to 150.
The 7th step was embedded into three components of RGB of image with the cycle watermark respectively according to embedding formula, with the synthetic RGB image of three components, formed the Lena image that adds watermark then.
Fig. 5 is the variation synoptic diagram of the lattice structure of the autocorrelation function of cycle watermark and the peak value composition that passes through affined transformation autocorrelation function afterwards thereof.This conversion can often take place in image processing process, but a lot of watermarking algorithm is powerless to this conversion, because this conversion has destroyed synchronizing information.The present invention detects from image before the watermark, must seek earlier equally and detect the needed synchronizing information of watermark.The watermark that embeds is periodic, be with axisymmetric, therefore horizontal and vertical all is periodic, be easy to draw from mathematics, the local peaking of cycle watermark autocorrelation function has the cycle same with the cycle watermark, and promptly local peaking also is the cycle appearance on horizontal and vertical, simultaneously, even the cycle watermark is through affined transformation, corresponding variation also can take place in the peak of its autocorrelation function.Utilize these characteristics to obtain the required synchronizing information of detection watermark just with axisymmetric periodic signal.
Fig. 6 is the example of image through affined transformation, by the image of Fig. 4 through forming after rotation 20 degree.From Fig. 6, extract watermark, at first predetermined period watermark, the autocorrelation function of calculating predicted value.Here the fourier modulus spectrum according to signal is that a pair of Fourier transform is right with its autocorrelation function, utilizes fast fourier transform to calculate the autocorrelation function of prediction watermark.Formula is:
ACF(W)=IFFT(|FFT(W)| 2)
The range mappings of auto-correlation function value between the 0-255, is generated a width of cloth gray level image.Utilize image process method extraction local peaking wherein, calculate distance and angle between the peak value, draw affine transformation parameter, according to parameter image is carried out inverse transformation then and recover image.The operation steps of concrete recovery image is as follows:
The first step, at first predetermined period watermark, read in digital picture shown in Figure 6, three color components of RGB are proposed respectively, it is the mean filter of 3*3 that each component is adopted window size, deduct filtered pixel value with original pixel value, obtain three watermark block, will save as a two-dimensional array after three's addition.
Second step, the noise visibility function of calculating two-dimensional array, the small window size that uses in the computation process is 3*3, the contrast sensitivity initial value still is made as 150.The value of noise visibility function is multiplied each other with the value of two-dimensional array is corresponding, obtain predicting watermark, save as two-dimensional array.
In the 3rd step, calculate the autocorrelation function of prediction watermark: the prediction watermark is carried out the FFT conversion according to the order of row earlier, carries out the FFT conversion according to the order of row then, then the FFT coefficient is taken absolute value and square, save as two-dimensional array; This array is carried out the IFFT conversion according to the order of row earlier, carry out the IFFT conversion according to the order of row then, then the numerical value after the conversion is taken absolute value, obtain autocorrelation function.
The 4th step, obtain the minimum value and the maximal value of auto-correlation function value, make that minimum value is 0, maximal value is 255, and other values are mapped between the 0-255, generates a width of cloth 8bit gray level image; Use the certain window scan image then, obtain the position of local peaking, if this is a local peaking, value is made as 1, otherwise is 0, obtains a width of cloth bianry image.
In the 5th step, non-zero points each other the distance of statistics in the bianry image found out the maximum distance value of quantity, and this value is divided by 64 multiples that are image modification, and the angle of two local peaking's lines is exactly the angle that image is rotated, and just can recover image according to both.
Fig. 7 is the lattice structure figure that the local peaking that extracts from Fig. 6 forms.
Fig. 8 is according to the parameter image restored that obtains from Fig. 7.
Recover after the image, just can carry out the watermark extracting operation, the operation steps of specifically extracting data from recover image is as follows:
The first step, at first predetermined period watermark, read in the digital picture of recovery, three color components of RGB are proposed respectively, it is the mean filter of 3*3 that each component is adopted window size, deduct filtered pixel value with original pixel value, obtain three watermark block, will save as a two-dimensional array after three's addition.
Second step, the noise visibility function of calculating two-dimensional array, the small window size that uses in the computation process is 3*3, the contrast sensitivity initial value still is made as 150; The value of noise visibility function is multiplied each other with the value of two-dimensional array is corresponding, obtain predicting watermark.
The 3rd step, utilizing key to produce x pseudo-random sequence, is axisymmetric macro block with the sequence structure of flag bit correspondence, computing macro block and the simple crosscorrelation of predicting watermark, if the ratio of the watermark energy evolution of cross-correlation maximum and 64 * 64 sizes, illustrates watermark greater than 2 and exists; Otherwise do not exist, withdraw from.
The 4th step was axisymmetric macro block with other sequence structures, the simple crosscorrelation of computing macro block and prediction watermark respectively, and ask the maximal value of simple crosscorrelation absolute value, if should value greater than 0, decision bit is 1; Otherwise be 0; Obtain unipolarity code word " xxxxx ".
The 5th step, " xxxxx " that obtains deciphered through BCH, get data " 12345 " to the end.
So far, described among the present invention and be used for embedding method and apparatus, and the method and apparatus by the Detection and Extraction watermark information how, thereby can effectively protect the copyright of image works with axisymmetric periodicity digital watermarking in digital picture.For those of ordinary skills, under the situation of the spirit and scope that do not break away from claims of the present invention and limited, can make various changes and distortion.

Claims (14)

1. bittorrent Robust digital figure watermark embedding grammar may further comprise the steps:
(1) the bitstream data utilization is carried out the spread spectrum modulation by the pseudo-random sequence of cipher controlled;
(2) be axisymmetric watermark with the modulation signal superimposed structure;
(3) according to the masking effect of original digital image, the watermark of above-mentioned structure periodically self-adaptation embed in the original digital image.
2. a kind of bittorrent Robust digital figure watermark embedding grammar as claimed in claim 1, it is characterized in that also comprising: add that before the original bit flow data one is used for can judging the step that whether contains the flag bit of watermark in the image fast when detecting, abovementioned steps is carried out before in step (1).
3. a kind of bittorrent Robust digital figure watermark embedding grammar as claimed in claim 1, it is characterized in that in the step (2) with the modulation signal superimposed structure being that the step of axisymmetric watermark is: with all modulation signal stacks, rearrange then and form the sub-piece of two dimension, sub-piece serves as the axle upset with any one of four limits, two sub-pieces are arranged in form an axisymmetric macro block together, according to the big young pathbreaker's macro block tiling of image, obtain an axisymmetric periodicity watermark identical then with original image size.
4. a bittorrent Robust digital figure watermark flush mounting is characterized in that: have the modulating device that bitstream data is carried out the spread spectrum modulation; Modulation signal is configured to the constructing apparatus of axisymmetric watermark; According to the masking effect of original digital image, the watermark of structure periodically self-adaptation imbed flush mounting in the original digital image.
5. a kind of bittorrent Robust digital figure watermark flush mounting as claimed in claim 4 is characterized in that: described modulating device comprises pseudorandom number generator that can utilize key to produce pseudo-random sequence and the stacking apparatus that modulation signal is superposeed.
6. a kind of bittorrent Robust digital figure watermark flush mounting as claimed in claim 4, it is characterized in that: described constructing apparatus comprises the limiter that modulation signal is carried out amplitude limit.
7. a kind of bittorrent Robust digital figure watermark flush mounting as claimed in claim 4, it is characterized in that: described flush mounting comprises the calculation element of the masking effect of calculating digital picture.
8. a bittorrent Robust digital figure watermark detection method is characterized in that may further comprise the steps, and wherein step a and step b are parallel step:
A. predetermined period watermark from digital picture utilizes the autocorrelation function of cycle watermark to judge the affine transformation parameter that image experiences; With
B. utilize the key identical to produce pseudo-random sequence, and it is configured to axisymmetric signal by the rule identical with built-in end with built-in end;
C. according to the parameter that obtains from step a digital picture is done inverse transformation, and then prediction watermark, perhaps directly inverse transformation is done in the prediction watermark among the step a, obtain new predetermined period watermark, the rotational symmetry signal that utilizes step b to obtain then, predetermined period watermark new by the coherent detection demodulation obtains bitstream data.
9. a kind of bittorrent Robust digital figure watermark detection method as claimed in claim 8, it is characterized in that: the step that obtains affine transformation parameter described in the step a comprises:
The first step is predetermined period watermark: digital picture is carried out filtering and other disposal routes, obtain the predicted value of cycle watermark;
Second step was to calculate affine transformation parameter: the autocorrelation function of computation period watermark predicted value, the value of autocorrelation function is mapped as the data that belong to certain codomain, utilize the method for given shape filtering to obtain the local peaking of autocorrelation function, the affine transformation parameter of the lattice structure computed image experience that constitutes according to the coordinate points of local peaking; If do not obtain the lattice structure of forming by local peaking of rule, do not contain the cycle watermark in the key diagram picture, need not to proceed the 3rd step;
The 3rd step was to recover image: the affine transformation parameter that obtains according to second step carries out the inverse transformation image that is restored to digital picture.
10. a kind of bittorrent Robust digital figure watermark detection method as claimed in claim 8 is characterized in that: the step that the new predetermined period watermark of demodulation obtains bitstream data among the step c comprises:
The first step is to utilize flag bit to judge whether to contain watermark in the image: the cross correlation function of the axisymmetric two-dimentional macro block of calculation flag bit correspondence and cycle watermark predicted value, the extreme value of cross correlation function is compared with prior preset threshold, if greater than threshold value, contain watermark in the key diagram picture; If less than threshold value, do not contain watermark in the key diagram picture, need not to proceed the following step;
Second step was to extract bitstream data from the predicted value of watermark: calculate the rotational symmetry macro block of other pseudo-random sequence structures and the cross correlation function of cycle watermark predicted value respectively, try to achieve the extreme value of cross correlation function, according to this value with pre-determined threshold ratio than judgment data.
11. a bittorrent Robust digital figure watermark pick-up unit is characterized in that: have and be used for the watermark prediction unit of predetermined period watermark from digital picture; Be used for calculating the autocorrelation function of predetermined period watermark, affine transformation parameter that the judgement image experiences and the image correction apparatus that recovers image; According to the pseudo-random sequence set that produces with the same key of built-in end, according to constructing axisymmetric two-dimentional macro block with the same rule of built-in end, the cycle watermark of demodulation prediction obtains the demodulating equipment of watermark data.
12. a kind of bittorrent Robust digital figure watermark pick-up unit as claimed in claim 11 is characterized in that: above-mentioned watermark prediction unit comprises the wave filter of predetermined period watermark and calculates the calculation element of the masking effect of digital picture.
13. a kind of bittorrent Robust digital figure watermark pick-up unit as claimed in claim 11 is characterized in that: above-mentioned image correction apparatus comprise computation period watermark predicted value autocorrelation function calculation element and obtain the wave filter of the local peaking of autocorrelation function.
14. a kind of bittorrent Robust digital figure watermark pick-up unit as claimed in claim 11 is characterized in that: in above-mentioned demodulating equipment, comprise the pseudorandom number generator that can utilize key to produce pseudo-random sequence; Pseudo random signal is configured to the constructing apparatus of axisymmetric two-dimentional macro block; According to the value of the simple crosscorrelation of the cycle watermark of axisymmetric two-dimentional macro block and prediction, judge the matched filter of watermark bit.
CNB2005101235679A 2005-11-22 2005-11-22 A kind of bittorrent Robust digital figure watermark embedding and detection method and device Active CN100547609C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101235679A CN100547609C (en) 2005-11-22 2005-11-22 A kind of bittorrent Robust digital figure watermark embedding and detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101235679A CN100547609C (en) 2005-11-22 2005-11-22 A kind of bittorrent Robust digital figure watermark embedding and detection method and device

Publications (2)

Publication Number Publication Date
CN1971613A CN1971613A (en) 2007-05-30
CN100547609C true CN100547609C (en) 2009-10-07

Family

ID=38112417

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101235679A Active CN100547609C (en) 2005-11-22 2005-11-22 A kind of bittorrent Robust digital figure watermark embedding and detection method and device

Country Status (1)

Country Link
CN (1) CN100547609C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101105857B (en) * 2007-07-20 2010-09-29 北京交通大学 High capacity reversible water mark method based on predication and companding technology
EP2081187A1 (en) * 2008-01-21 2009-07-22 Deutsche Thomson OHG Method and apparatus for determining whether or not a reference pattern is present in a received and possibly water-marked signal
CN103413267B (en) * 2013-07-17 2016-09-28 北京视博数字电视科技有限公司 Embedding grammar that a kind of digital watermarking seamlessly transits and device
CN112241929B (en) * 2019-07-16 2022-11-11 阿里巴巴集团控股有限公司 Watermark embedding method, watermark detecting method, watermark embedding device, watermark detecting device and electronic equipment
CN111263168A (en) * 2020-01-03 2020-06-09 中央宣传部电影技术质量检测所 Method and system for adding and extracting anti-attack video watermark of data array
CN113395583B (en) * 2020-09-29 2023-06-27 腾讯科技(深圳)有限公司 Watermark detection method, watermark detection device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN1971613A (en) 2007-05-30

Similar Documents

Publication Publication Date Title
Najafi et al. Hybrid secure and robust image watermarking scheme based on SVD and sharp frequency localized contourlet transform
Voloshynovskiy et al. Multibit digital watermarking robust against local nonlinear geometrical distortions
Feng et al. A DWT-DCT based blind watermarking algorithm for copyright protection
KR100693371B1 (en) Method for inserting and extracting multi-bit fingerprint based on wavelet
CN100547609C (en) A kind of bittorrent Robust digital figure watermark embedding and detection method and device
CN102880998B (en) The extracting method of watermarking images
CN100452823C (en) Implementation method of anti printing and scanning meaningful digital watermark with large capacity
CN101833745B (en) Method for detecting embedding and extracting of multiple binary embedded watermarks of digital image
Ye et al. Application of the chaotic ergodicity of standard map in image encryption and watermarking
CN102117474B (en) Digital picture watermark embedding and detecting method and device
Lu et al. Near-optimal watermark estimation and its countermeasure: antidisclosure watermark for multiple watermark embedding
Jayalakshmi et al. Blind watermarking in contourlet domain with improved detection
Mitekin A new key recovery attack against DM-QIM image watermarking algorithm
Premaratne et al. 2D barcodes as watermarks in image authentication
Xuesong et al. A dual digital audio watermarking algorithm based on LWT
CN104036450A (en) Geometric-attack-resistant digital watermark processing method
CN111263168A (en) Method and system for adding and extracting anti-attack video watermark of data array
Ho et al. Character-embedded watermarking algorithm using the fast Hadamard transform for satellite images
Sang et al. A neural network based lossless digital image watermarking in the spatial domain
Huang et al. Universal JPEG steganalysis based on microscopic and macroscopic calibration
Liao et al. A novel digital image watermarking approach based on image blocks similarity
Maodong et al. Time-axis based video watermarking resisting to geometrical attacks
Wang et al. Robust digital watermarking adopting barcode in image
Krishnamoorthi et al. Image Adaptive Watermarking with Visual Model in Orthogonal Polynomials based Transformation Domain
Shrestha et al. Watermark removal using pseudorandom desynchronization by selective pixel elimination

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: BEIJING HUAQI IMAGE INTELLIGENT TECHNOLOGY CO., LT

Free format text: FORMER OWNER: BEIJING HUAQI DIGITAL IMAGE TECHNOLOGY INST. CO., LTD.

Effective date: 20150206

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20150206

Address after: 100089 Beijing city Haidian District North wa West No. 22 south 3 Haiya Park Building Room 803

Patentee after: Beijing Huaqi Image Intelligent Technology Co Ltd

Address before: 100089 Beijing city Haidian District North wa West No. 22 Haiya Park Lihua court 8H

Patentee before: Beijing Huaqi Digital Image Technology Inst. Co., Ltd.