CN103237271A - Method and system for embedding and detecting large-capacity video digital watermarks - Google Patents

Method and system for embedding and detecting large-capacity video digital watermarks Download PDF

Info

Publication number
CN103237271A
CN103237271A CN2013101132287A CN201310113228A CN103237271A CN 103237271 A CN103237271 A CN 103237271A CN 2013101132287 A CN2013101132287 A CN 2013101132287A CN 201310113228 A CN201310113228 A CN 201310113228A CN 103237271 A CN103237271 A CN 103237271A
Authority
CN
China
Prior art keywords
video
watermark
frame
group
sub
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013101132287A
Other languages
Chinese (zh)
Other versions
CN103237271B (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.)
China Television Information Technology (beijing) Co Ltd
Original Assignee
China Television Information Technology (beijing) 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 China Television Information Technology (beijing) Co Ltd filed Critical China Television Information Technology (beijing) Co Ltd
Priority to CN201310113228.7A priority Critical patent/CN103237271B/en
Publication of CN103237271A publication Critical patent/CN103237271A/en
Application granted granted Critical
Publication of CN103237271B publication Critical patent/CN103237271B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention provides a method and a system for embedding and detecting large-capacity video digital watermarks. The method includes: disintegrating a video watermark W into a watermark head WH and M sub-watermarks WS (I); dividing all video frames F of original video into M+1 groups of video frames to obtain a group of video frames FH and M groups of video frames FS (I); embedding an internal template to the groups of video frames FH to obtain a group of video frames FHT; embedding the watermark head WH to the group of video frames FHT to obtain a group of video frames FHW; respectively embedding the M sub-watermarks WS (I) to the M groups of video frames FS (I) to obtain M groups of video frames FSW (I); combining the groups of video frames FHW and the M groups of video frames FSW (I) sequentially to obtain a watermark-embedded video signal FW. The large-capacity video digital watermarks are embedded to the video, so that attacks such as spatial-domain geometric attack, lossy compression, video frame deletion, video frame insertion, video frame equalization and video clipping can be resisted effectively.

Description

The embedding of large-capacity video digital watermarking and detection method and system thereof
Technical field
The invention belongs to the video digital watermark technical field, be specifically related to a kind of embedding and detection method and system thereof of large-capacity video digital watermarking.
Background technology
Digital watermarking is the technology that embeds and detect figure notation in digital picture, digital video, digital audio or digital document carrier, can be widely used in applications such as digital content searching, advertisement prison are broadcast, copyright sign, piracy tracking.
1954, Emil Hembrooke has proposed patent " Identification of sound and like signals ", declared the birth of digital watermark technology, this patent is by being embedded into a kind of identification code in the music with non method, thereby realizes music making people's authentication.Digital watermarking this moment does not become an independently subject, and up to early 1990s, digital watermarking progressively becomes research topic and comes into one's own.In 1993, A.Z.Tirkel etc. used " Watermark " this term first in " Electronic watermark " literary composition, indicated that digital watermark technology is as the birth of a formal research subject.
Early stage digital watermarking robustness is poor, and Van SChyndel in 1994 for example, R.G etc. have proposed to revise the data waterprint embedded method of image least significant bit LSB, and its advantage is that digital watermarking is better disguised, but poor robustness.After this digital watermarking algorithm based on transform domain is suggested successively, comprises DFT, DCT, DWT and KLT transform domain digital watermarking algorithm, has improved the robustness of digital watermarking.People such as Cox proposed a kind of digital watermarking algorithm based on spread spectrum communication thought in 1997, were called for short the spread-spectrum watermark algorithm, and this algorithm has good fail safe and very high robustness, became relatively more classical scheme in the digital watermark technology.Aspect the raising watermark capacity, people such as calendar year 2001 Brian Chen have proposed the digital watermarking algorithm based on quantization index modulation (Quantization Index Modulation), have improved the robustness of large capacity digital watermark.
Video digital watermark refers to embed and detect the technology of figure notation in the digital video carrier, the image fault that video watermark not only needs to resist spatial domain is attacked, and also needs the distortion of resistance time axle to attack.Realization about the video watermark technology mainly contains two big class methods, and the former is considered as integral body with successive video frames, and is watermarked along time shaft, by revising brightness or the colourity of consecutive frame, reaches the purpose that embeds and detect video watermark; The latter is considered as independently picture with each frame of video, by revising brightness or the colourity of frame of video, watermark is embedded in the single frame of video.Some successive video frames need be obtained and analyze to last class methods usually simultaneously, is subjected to the influence that the time shaft distortion is attacked easily, and it is also smaller that watermark embeds capacity in addition, is not suitable in short-sighted frequency watermarked; Back one class methods can detect watermark in single-frame images, have greater flexibility, and watermark capacity is also bigger, the invention belongs to back one class methods.
Watermark capacity, invisibility, robustness are three important indicators in video watermark field, mainly there is the problem of following four aspects in existing video digital watermark technology: at first, the watermark capacity that can embed in the single-frame images is less, be difficult to satisfy demands of applications, need utilize the multiframe in the video, realize the expansion of watermark capacity; Secondly, frame of video is normally play continuously, and general digital watermark is only watermarked in the I frame, and is not watermarked at P frame and B frame, causes between the consecutive frame picture distortion factor difference huge, occurs the video playback scintillation easily; In addition, video time axle distortion meetings such as frame deletion, frame are average, frame per second conversion, camera lens cutting cause phase mutual interference between the consecutive frame, and destroy the precedence between the frame of video, cause the video watermark detection mistake easily; At last, spatial domain geometric attacks such as translation, shearing, convergent-divergent, rotation destroy the spatial synchronization of watermark easily, cause watermark normally not detect.
Summary of the invention
Defective at the prior art existence, the invention provides a kind of embedding and detection method and system thereof of large-capacity video digital watermarking, be used for embedding the large-capacity video digital watermarking at video, and can resist effectively that spatial domain geometric attack, lossy compression method, frame of video deletion, frame of video insert, frame of video is average and attack such as video cutting.
The technical solution used in the present invention is as follows:
The invention provides a kind of embedding and detection method of large-capacity video digital watermarking, may further comprise the steps:
S1 is decomposed into 1 watermark header WH and M sub-watermark information WS (I) with video watermark information W, I ∈ 0,1 ..., M-1}, M are integer, and M 〉=1; Wherein, M sub-watermark information WS (I) is designated as WS (0)~WS (M-1);
All frame of video F of raw video signal are divided into M+1 group frame of video group by the video playback time sequencing, obtain 1 group of frame of video group FH and M group frame of video group FS (I) respectively, I ∈ 0,1 ..., M-1}, M are integer, and M 〉=1; Wherein, M group frame of video group FS (I) is designated as FS (0)~FS (M-1);
S2 is embedded into built-in template among the frame of video group FH, obtains frame of video group FHT;
Watermark header WH is embedded among the frame of video group FHT, obtains frame of video group FHW;
M sub-watermark information WS (I) is embedded into respectively among the M group frame of video group FS (I), obtains M group frame of video group FSW (I); Wherein, M group frame of video group FSW (I) is designated as FSW (0)~FSW (M-1);
S3, composite video frame group FHW and M group frame of video group FSW (0)~FSW (M-1) obtains watermarked vision signal FW in order;
S4 utilizes described built-in template that vision signal FW is carried out geometric correction;
S5 detects watermark header WH in the process vision signal of geometric correction;
And, in the process vision signal of geometric correction, detect sub-watermark information WS (I);
S6 merges watermark header WH and sub-watermark information WS (I), generates complete video watermark information W.
Preferably, S1 is decomposed into 1 watermark header WH and M sub-watermark information WS (I) with video watermark information W and specifically may further comprise the steps:
Watermark header WH acquisition methods is:
S1-1 is equally divided into the M section with the video watermark information W of L bit, obtains M localized watermark information W (I); Wherein, M localized watermark information W (I) is designated as W (0)~W (M-1); Length N 1 bit of each localized watermark information W (I)=L bit/M bit then;
S1-2 carries out binary coding to total number M of local watermark information, obtains binary number K; Wherein, the number of bits N2 of binary number K is the integer greater than log (M-1)/log (2);
Based on L and N3, calculate the CRC check sign indicating number of video watermark information W, be designated as video watermark check code C; Wherein, N3 is set point, is the number of bits of video watermark check code C;
Make up K and C sequentially, obtain watermark header WH; Wherein, the number of bits of watermark header WH is N2+N3;
M sub-watermark information WS (I) acquisition methods is:
Segment number I to M localized watermark information W (I) carries out binary coding respectively, obtains M binary number K (I); Wherein, the number of bits of binary number K (I) is N2; M binary number K (I) is designated as K (0)~K (M-1);
Calculate the CRC check sign indicating number of W (I) and K (I), obtain sub-watermark check code C (I); Wherein, the number of bits of sub-watermark check code C (I) is N4;
Make up W (I), K (I) and C (I) sequentially, obtain the sub-watermark information WS (I) of (N1+N2+N4) bit.
Preferably, among the S1, all frame of video of raw video signal are divided into M+1 group frame of video group by the video playback time sequencing, obtain 1 group of frame of video group FH and M group frame of video group FS (I) respectively, specifically may further comprise the steps:
Raw video signal is divided into the fixedly video-frequency band of frame number;
Each video-frequency band is subdivided into the frame of video group that (M+1) individual frame number is D again, namely obtains 1 group of frame of video group FH and M group frame of video group FS (I).
Preferably, among the S2, built-in template is embedded among the frame of video group FH, obtains frame of video group FHT, specifically may further comprise the steps:
Read the two field picture pixel data of frame of video group FH, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtain the DFT territory;
Choose NT template frequency in the described DFT territory;
The DFT coefficient of the described template frequency position that modification is chosen is embedded into described built-in template in the amended DFT coefficient then;
The described DFT coefficient that embeds built-in template is carried out the discrete inversefouriertransform of IDFT, obtain embedding the frame of video group FHT of built-in template.
Preferably, among the S2, watermark header WH is embedded among the frame of video group FHT, obtains frame of video group FHW, specifically may further comprise the steps:
Described watermark head embeds and comprises the steps:
Read the two field picture pixel data of frame of video group FHT, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtain the DFT territory;
Choose NH watermark frequency in the DFT territory;
The DFT coefficient of the described watermark that modification is chosen a frequency position is embedded into described watermark header WH in the amended DFT coefficient then;
Described DFT coefficient to watermarked header carries out the discrete inversefouriertransform of IDFT, obtains the frame of video group FHT of watermarked header.
Preferably, among the S2, M sub-watermark information WS (I) is embedded into respectively among the M group frame of video group FS (I), obtains M group frame of video group FSW (I), specifically may further comprise the steps:
Read the two field picture pixel data of frame of video group FS (I), the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtain the DFT territory;
Choose NS sub-watermark frequency in the described DFT territory;
The DFT coefficient of the described sub-watermark frequency position that modification is chosen is embedded into described sub-watermark information WS (I) in the amended DFT coefficient then;
The described DFT coefficient that embeds sub-watermark information WS (I) is carried out the discrete inversefouriertransform of IDFT, obtain embedding the frame of video group FSW (I) of sub-watermark information WS (I).
Preferably, S4 utilizes described built-in template that vision signal FW is carried out geometric correction, specifically may further comprise the steps:
Read the two field picture pixel data of vision signal FW, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform;
The DFT coefficient that obtains after overall DFT discrete Fourier transform is analyzed, judged whether to comprise built-in template; If do not detect built-in template, then keep raw video image, withdraw from the geometric correction operation; If detect built-in template, the built-in template that then detection is obtained compares with the original built-in template that prestores, and calculates image zoom factor and the anglec of rotation; Preserve image zoom factor and the anglec of rotation that calculates then;
According to described image zoom factor and the anglec of rotation, the subsequent frame image is carried out reverse convergent-divergent and reverse rotation, realize vision signal FW is carried out geometric correction.
Preferably, S5 detects watermark header WH in the process vision signal of geometric correction, specifically may further comprise the steps:
Read the two field picture pixel data through the vision signal of geometric correction, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtain the DFT territory;
Analyze the DFT coefficient of a NH watermark frequency, extract watermark header WH;
From watermark header WH, extract data K and check code C, obtain sub-watermark sum M by K.
Preferably, in the process vision signal of geometric correction, detect sub-watermark information WS (I), specifically may further comprise the steps:
Read the two field picture pixel data through the vision signal of geometric correction, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtain the DFT territory;
Analyze the DFT coefficient of NS sub-watermark frequency, extract sub-watermark WS (I), I ∈ 0,1 ..., M-1};
From sub-watermark WS (I), extract W (I), K (I) and C (I), obtain the segment number I of sub-watermark correspondence according to K (I);
Checking C (I) check code if check code is incorrect, is then deleted this sub-watermark; Otherwise, if check code is correct, then successfully detect sub-watermark information WS (I).
Preferably, S6 merges watermark header WH and sub-watermark information WS (I), generates complete video watermark information W, specifically may further comprise the steps:
From sub-watermark information WS (0)~WS (M-1), extract localized watermark information W (0)~W (M-1) respectively, localized watermark information W (the 0)~W (M-1) that extracts is connected to become video watermark information W;
Checking C check code if check code is incorrect, is then deleted this video watermark information W, detects watermark header and sub-watermark information again; Otherwise, if check code is correct, then successfully detect video watermark information W.
The present invention also provides a kind of embedding and detection system of large-capacity video digital watermarking, comprises watermark merge module (100) and watermark detection module (110);
Described watermark merge module (100) comprising:
Video frame packet unit (101) is used for all frame of video F of raw video signal are divided into M+1 group frame of video group by the video playback time sequencing, obtains 1 group of frame of video group FH and M group frame of video group FS (I) respectively, I ∈ 0,1 ..., M-1}, M are integer, and M 〉=1; Wherein, M group frame of video group FS (I) is designated as FS (0)~FS (M-1);
Video watermark resolving cell (103) is used for video watermark information W is decomposed into 1 watermark header WH and M sub-watermark information WS (I), I ∈ 0,1 ..., M-1}, M are integer, and M 〉=1; Wherein, M sub-watermark information WS (I) is designated as WS (0)~WS (M-1);
Template embeds unit (102), is used for built-in template is embedded into frame of video group FH, obtains frame of video group FHT;
The watermark head embeds unit (104), and watermark header WH is embedded among the frame of video group FHT, obtains frame of video group FHW;
Sub-watermark embeds unit (105), and M sub-watermark information WS (I) is embedded into respectively among the M group frame of video group FS (I), obtains M group frame of video group FSW (I); Wherein, M group frame of video group FSW (I) is designated as FSW (0)~FSW (M-1);
Frame of video assembled unit (106) is used for composite video frame group FHW and M group frame of video group FSW (0)~FSW (M-1) in order, obtains watermarked vision signal FW;
Watermark detection module (110) comprising:
Geometry correction unit (111) utilizes described built-in template that vision signal FW is carried out geometric correction;
A watermark detecting unit (112) is used for detecting watermark header WH in the vision signal through geometric correction;
Sub-watermark detection unit (113) is used for detecting sub-watermark information WS (I) in the vision signal through geometric correction;
Video watermark integrated unit (114) is used for merging watermark header WH and sub-watermark information WS (I), generates complete video watermark information W.
Preferably, described template embedding unit (102) specifically is used for: read the two field picture pixel data of frame of video group FH, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtain the DFT territory;
Choose NT template frequency in the described DFT territory;
The DFT coefficient of the described template frequency position that modification is chosen is embedded into described built-in template in the amended DFT coefficient then;
The described DFT coefficient that embeds built-in template is carried out the discrete inversefouriertransform of IDFT, obtain embedding the frame of video group FHT of built-in template;
Described watermark head embeds unit (104) and specifically is used for: read the two field picture pixel data of frame of video group FHT, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtain the DFT territory;
Choose NH watermark frequency in the DFT territory;
The DFT coefficient of the described watermark that modification is chosen a frequency position is embedded into described watermark header WH in the amended DFT coefficient then;
Described DFT coefficient to watermarked header carries out the discrete inversefouriertransform of IDFT, obtains the frame of video group FHT of watermarked header;
Described sub-watermark embeds unit (105) and specifically is used for: read the two field picture pixel data of frame of video group FS (I), the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtain the DFT territory;
Choose NS sub-watermark frequency in the described DFT territory;
The DFT coefficient of the described sub-watermark frequency position that modification is chosen is embedded into described sub-watermark information WS (I) in the amended DFT coefficient then;
The described DFT coefficient that embeds sub-watermark information WS (I) is carried out the discrete inversefouriertransform of IDFT, obtain embedding the frame of video group FSW (I) of sub-watermark information WS (I).
Preferably, described frame of video assembled unit (106) specifically is used for:
Raw video signal is divided into the fixedly video-frequency band of frame number;
Each video-frequency band is subdivided into the frame of video group that (M+1) individual frame number is D again, namely obtains 1 group of frame of video FH and M group frame of video FS (I).
Preferably, described geometry correction unit (111) specifically is used for:
Read the two field picture pixel data of vision signal FW, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform;
The DFT coefficient that obtains after overall DFT discrete Fourier transform is analyzed, judged whether to comprise built-in template; If do not detect built-in template, then keep raw video image, withdraw from the geometric correction operation; If detect built-in template, the built-in template that then detection is obtained compares with the original built-in template that prestores, and calculates image zoom factor and the anglec of rotation; Preserve image zoom factor and the anglec of rotation that calculates then;
According to described image zoom factor and the anglec of rotation, the subsequent frame image is carried out reverse convergent-divergent and reverse rotation, realize vision signal FW is carried out geometric correction.
Preferably, described sub-watermark detection unit (113) specifically is used for:
Read the two field picture pixel data through the vision signal of geometric correction, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtain the DFT territory;
Analyze the DFT coefficient of NS sub-watermark frequency, extract sub-watermark WS (I), I ∈ 0,1 ..., M-1};
From sub-watermark WS (I), extract W (I), K (I) and C (I), obtain the segment number I of sub-watermark correspondence according to K (I);
Checking C (I) check code if check code is incorrect, is then deleted this sub-watermark; Otherwise, if check code is correct, then successfully detect sub-watermark information WS (I);
Described video watermark integrated unit (114) specifically is used for:
From sub-watermark information WS (0)~WS (M-1), extract localized watermark information W (0)~W (M-1) respectively, localized watermark information W (the 0)~W (M-1) that extracts is connected to become video watermark information W;
Checking C check code if check code is incorrect, is then deleted this video watermark information W, detects watermark header and sub-watermark information again; Otherwise, if check code is correct, then successfully detect video watermark information W.
Beneficial effect of the present invention is as follows:
(1) watermark capacity is big: by video watermark being resolved into 1 watermark head and some sub-watermarks, increased substantially the capacity of video watermark;
(2) effectively resist the spatial domain geometric attack: by in frame of video, embedding built-in template, carry out template matches during watermark detection, proofread and correct geometric deformation, realize attacks such as spatial domain translation, shearing, convergent-divergent, rotations;
(3) the video distortion degree is low: first of the watermark that built-in template and data volume is less is embedded in the FH frame of video group, the sub-watermark that data volume is bigger is embedded in FS (0)~FS (M-1) frame of video group, the picture distortion of all frame of video has consistency preferably, effectively prevents the flicker that video watermark causes;
(4) can resistance time synchronous distortion: video watermark just detects in single frames, and then is fused into complete watermark, so watermark detection does not rely on the time sequencing between the frame of video, effectively resistance time synchronous distortion.
Description of drawings
Fig. 1 is the embedding of large-capacity video digital watermarking provided by the invention and the frame diagram of detection system;
Fig. 2 is the embedding of large-capacity video digital watermarking provided by the invention and the schematic flow sheet of detection method;
Fig. 3 is video watermark information W decomposition texture schematic diagram provided by the invention;
Fig. 4 is video frame packet structural representation provided by the invention;
Fig. 5 is that built-in template provided by the invention embeds the frequency schematic diagram;
Fig. 6 is that watermark head provided by the invention embeds the frequency schematic diagram;
Fig. 7 is that sub-watermark provided by the invention embeds the frequency schematic diagram;
Fig. 8 is the schematic flow sheet of video digital watermark detection method provided by the invention;
Fig. 9 is video watermark fusion structure schematic diagram provided by the invention.
Embodiment
The present invention is described in detail below in conjunction with accompanying drawing:
As shown in Figure 1, be the embedding of large-capacity video digital watermarking provided by the invention and the frame diagram of detection system, use this system, as shown in Figure 2, the embedding of large-capacity video digital watermarking provided by the invention and the schematic flow sheet of detection method, mainly comprise digital watermark embed process and digital watermarking testing process, introduce this two processes below in detail:
(1) digital watermark embed process
S1 is decomposed into 1 watermark header WH and M sub-watermark information WS (I) with video watermark information W, I ∈ 0,1 ..., M-1}, M are integer, and M 〉=1; Wherein, M sub-watermark information WS (I) is designated as WS (0)~WS (M-1);
All frame of video F of raw video signal are divided into M+1 frame of video group by the video playback time sequencing, obtain 1 group of frame of video group FH and M group frame of video group FS (I) respectively, I ∈ 0,1 ..., M-1}, M are integer, and M 〉=1; Wherein, M group frame of video group FS (I) is designated as FS (0)~FS (M-1).
In this step, video watermark information W is decomposed into 1 watermark header WH and M sub-watermark information WS (I), as shown in Figure 3, specifically may further comprise the steps:
Watermark header WH acquisition methods is:
S1-1 is equally divided into the M section with the video watermark information W of L bit, obtains M localized watermark information W (I); Wherein, M localized watermark information W (I) is designated as W (0)~W (M-1); Length N 1 bit of each localized watermark information W (I)=L bit/M bit then;
S1-2 carries out binary coding to total number M of local watermark information, obtains binary number K; Wherein, the number of bits N2 of binary number K is the integer greater than log (M-1)/log (2);
Based on L and N3, calculate the CRC check sign indicating number of video watermark information W, be designated as video watermark check code C; Wherein, N3 is set point, is the number of bits of video watermark check code C;
Make up K and C sequentially, obtain watermark header WH; Wherein, the number of bits of watermark header WH is N2+N3;
M sub-watermark information WS (I) acquisition methods is:
Segment number I to M localized watermark information W (I) carries out binary coding respectively, obtains M binary number K (I); Wherein, the number of bits of binary number K (I) is N2; M binary number K (I) is designated as K (0)~K (M-1);
Calculate the CRC check sign indicating number of W (I) and K (I), obtain sub-watermark check code C (I); Wherein, the number of bits of sub-watermark check code C (I) is N4;
Make up W (I), K (I) and C (I) sequentially, obtain the sub-watermark information WS (I) of (N1+N2+N4) bit.
Be example with 128 bit video watermark information W below, describe the decomposable process of video watermark.
The M value is that 4, N1 value is that 32, L value is that 128, N2 value is that 2, N3 value is that 13, N4 value is 8.Video watermark information W is equally divided into 4 sections, and segment number is respectively 0,1,2,3; 4 localized watermark information W (I) are designated as W (0), W (1), W (2) and W (3) respectively, and every section localized watermark message length is 32 bits, and video watermark information total length is 128 bits; With 2 bit binary number K the total hop count 4 of local watermark information is encoded, represent the coding that M equals 4 with 11; Calculate the CRC check of video watermark information W, obtain the video watermark check code C of 13 bits; Make up K and C sequentially, obtain the watermark header WH of 15 bits.
With 2 bit binary number K (I) the segment number I of local watermark information W (I) is encoded, I ∈ 0,1,2,3}, 00,01,10 and 11 represent that respectively I equals 0,1,2 and 3; Calculate the CRC check of W (I) and K (I), obtain the sub-watermark check code of 8 bits, be designated as C (I); Make up W (I), K (I) and C (I) sequentially, obtain the sub-watermark information WS (I) of 42 bits.
All frame of video of raw video signal are divided into M+1 frame of video group by the video playback time sequencing, obtain 1 group of frame of video group FH and M group frame of video group FS (I) respectively, specifically may further comprise the steps:
Raw video signal is divided into the fixedly video-frequency band of frame number;
Each video-frequency band is subdivided into the video segment that (M+1) individual frame number is D again, and the video segment grouping to obtaining namely obtains 1 frame of video group FH and M frame of video group FS (I).
Shown in the example among Fig. 4, be the video frame packet structural representation, when the M value is 4, the D value is 2 o'clock, raw video signal is divided into the video-frequency band that length is 10 frames, each video-frequency band is the video segment that 5 length are 2 frames by cutting again, and the 1st video segment is frame of video group FH, and the 2nd~5 video segment is respectively FS (0), FS (1), FS (2), FS (3).
S2, (1) is embedded into built-in template among the frame of video group FH, obtains frame of video group FHT.
Concrete, read the two field picture pixel data of frame of video group FH, pixel data can be luminance component or chromatic component, and the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtains the DFT territory; Digital watermarking is according to the be divided into pixel domain, DCT territory, DFT territory and the KLT territory that embed the territory.Consider that the translation of DFT transfer pair spatial domain has consistency, and spatial domain convergent-divergent and rotation also just cause convergent-divergent and rotation corresponding in the DFT territory, influence to the DFT coefficient is very little, the present invention is based on the DFT conversion and carry out video watermark embedding and detection, can resist the spatial domain geometric attack preferably.
Choose NT template frequency in the described DFT territory;
The DFT coefficient of the described template frequency position that modification is chosen is embedded into described built-in template in the amended DFT coefficient then;
The described DFT coefficient that embeds built-in template is carried out the discrete inversefouriertransform of IDFT, obtain embedding the frame of video group FHT of built-in template.
Shown in the example among Fig. 5, for built-in template embeds the frequency schematic diagram, the NT value is 26, and template frequency position can be selected flexibly, needs record to preserve after template is determined, and remains unchanged, and carries out geometric correction by template after being convenient to.
The modification of DFT coefficient just increases the amplitude of DFT coefficient in this step, keeps the arc angle of DFT coefficient constant, and computing formula is as follows, parameter lambda in the formula 1Be the masterplate embedment strength, can select flexibly according to application requirements.
DFT ′ ( m , n ) = DFT ( m , n ) + λ 1 × DFT ( m , n ) | | DFT ( m , n ) | |
(2) watermark header WH is embedded among the frame of video group FHT, obtains frame of video group FHW;
Concrete, the watermark head embeds and comprises the steps:
Read the two field picture pixel data of frame of video group FHT, pixel data can be luminance component or chromatic component, and the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtains the DFT territory;
Choose NH watermark frequency in the DFT territory;
The DFT coefficient of the described watermark that modification is chosen a frequency position is embedded into described watermark header WH in the amended DFT coefficient then;
Described DFT coefficient to watermarked header carries out the discrete inversefouriertransform of IDFT, obtains the frame of video group FHT of watermarked header.
Shown in the example among Fig. 6, for the watermark head embeds the frequency schematic diagram, the NH value is 5, can embed 15 bit watermark headers.A watermark frequency adds up to 40, and a watermark frequency position can be selected flexibly, and these frequencies are divided into 5 groups, every group of 8 frequencies.15 bit watermark headers also are divided into 5 groups, and every group of 3 bit watermark headers have 8 kinds of combinations: 000,001,010,011,100,101,110 and 111, and correspondence is respectively organized 8 frequencies respectively.
The embedding grammar of watermark head is as follows, selects 1 frequency according to every group of watermark head in the correspondence group respectively, selects to obtain 5 frequencies altogether.Increase the DFT coefficient amplitude of these frequencies, keep DFT coefficient arc angle constant, computing formula is as follows, parameter lambda in the formula 2Be a watermark embedment strength, can select flexibly according to application requirements.
DFT ′ ( m , n ) = DFT ( m , n ) + λ 2 × DFT ( m , n ) | | DFT ( m , n ) | |
(3) M sub-watermark information WS (I) is embedded into respectively among the M group frame of video group FS (I), obtains M group frame of video group FSW (I); Wherein, M group frame of video group FSW (I) is designated as FSW (0)~FSW (M-1);
Concrete, read the two field picture pixel data of frame of video group FS (I), pixel data can be luminance component or chromatic component, and the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtains the DFT territory;
Choose NS sub-watermark frequency in the described DFT territory;
The DFT coefficient of the described sub-watermark frequency position that modification is chosen is embedded into described sub-watermark information WS (I) in the amended DFT coefficient then;
The described DFT coefficient that embeds sub-watermark information WS (I) is carried out the discrete inversefouriertransform of IDFT, obtain embedding the frame of video group FSW (I) of sub-watermark information WS (I).
Shown in the example among Fig. 7, for sub-watermark embeds the frequency schematic diagram, the NS value is 14, can embed the sub-watermark of 42 bits.Sub-watermark frequency adds up to 112, and the frequency position can be selected flexibly, and these frequencies are divided into 14 groups, every group of 8 frequencies.42 bit watermark heads also are divided into 14 groups, and every group of sub-watermark of 3 bits has 8 kinds of combinations: 000,001,010,011,100,101,110 and 111, and correspondence is respectively organized 8 frequencies respectively.
The embedding grammar of sub-watermark is as follows, selects 1 frequency according to every group of sub-watermark in the correspondence group respectively, selects to obtain 14 frequencies altogether.Increase the DFT coefficient amplitude of these frequencies, keep DFT coefficient arc angle constant, computing formula is as follows, parameter lambda in the formula 3Be sub-watermark embed strength, can select flexibly according to application requirements.
DFT ′ ( m , n ) = DFT ( m , n ) + λ 3 × DFT ( m , n ) | | DFT ( m , n ) | |
S3, composite video frame group FHW and M group frame of video group FSW (0)~FSW (M-1) obtains watermarked vision signal FW in order.
Each group frame of video is reconfigured the video that becomes moisture seal according to original time sequencing.
(2) digital watermarking testing process
Corresponding with above-mentioned watermark embedding method, as shown in Figure 8, be the schematic flow sheet of video digital watermark detection method, as seen from the figure, mainly comprise the following steps:
S4 utilizes described built-in template that vision signal FW is carried out geometric correction;
Concrete, read the two field picture pixel data of vision signal FW, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform;
The DFT coefficient that obtains after overall DFT discrete Fourier transform is analyzed, judged whether to comprise built-in template; If do not detect built-in template, then keep raw video image, withdraw from the geometric correction operation; If detect built-in template, the built-in template that then detection is obtained compares with the original built-in template that prestores, and calculates image zoom factor and the anglec of rotation; Preserve image zoom factor and the anglec of rotation that calculates then;
According to described image zoom factor and the anglec of rotation, the subsequent frame image is carried out reverse convergent-divergent and reverse rotation, realize vision signal FW is carried out geometric correction.
Wherein, among the present invention, can detect masterplate and original masterplate calculating zoom factor and the anglec of rotation by the several different methods contrast.For example adopt direct exhaustive search, carry out convergent-divergent and rotation with different zoom factors and the anglec of rotation to detecting masterplate respectively, and then compare with original masterplate, up to consistent with original masterplate, thereby obtain zoom factor and coefficient of rotary.
S5 detects watermark header WH in the process vision signal of geometric correction;
And, in the process vision signal of geometric correction, detect sub-watermark information WS (I);
Wherein, watermark header WH testing process is: read the two field picture pixel data through the vision signal of geometric correction, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtain the DFT territory; Analyze the DFT coefficient of a NH watermark frequency, extract watermark header WH; From watermark header WH, extract data K and check code C, obtain sub-watermark sum M by K.
Below in conjunction with the frequency example of the watermark among Fig. 6, the DFT coefficient of a descriptive analysis watermark frequency extracts the method for watermark head.
Take out 5 groups of DFT coefficients of totally 40 watermark frequencies, contrast the DFT coefficient amplitude of 8 frequencies in each group, find the frequency of amplitude maximum, correspond to corresponding 3 Bit datas, 5 group of 3 Bit data combined, obtain 15 bit watermark header WH.
Sub-watermark information WS (I) testing process is: read the two field picture pixel data through the vision signal of geometric correction, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtain the DFT territory; Analyze the DFT coefficient of NS sub-watermark frequency, extract sub-watermark WS (I), I ∈ 0,1 ..., M-1}; From sub-watermark WS (I), extract W (I), K (I) and C (I), obtain the segment number I of sub-watermark correspondence according to K (I); Checking C (I) check code if check code is incorrect, is then deleted this sub-watermark; Otherwise, if check code is correct, then successfully detect sub-watermark information WS (I).
Below in conjunction with the sub-watermark frequency example among Fig. 7, the DFT coefficient of the sub-watermark frequency of descriptive analysis extracts the method for sub-watermark.
Take out 14 groups of DFT coefficients of totally 112 watermark frequencies, contrast the DFT coefficient amplitude of 8 frequencies in each group, find the frequency of amplitude maximum, correspond to corresponding 3 Bit datas, 14 group of 3 Bit data combined, obtained the sub-watermark WS of 42 bits (I).
S6 merges watermark header WH and sub-watermark information WS (I), generates complete video watermark information W.
As shown in Figure 9, be video watermark fusion structure schematic diagram, specifically comprise: from sub-watermark information WS (0)~WS (M-1), extract localized watermark information W (0)~W (M-1) respectively, localized watermark information W (the 0)~W (M-1) that extracts is connected to become video watermark information W;
Checking C check code if check code is incorrect, is then deleted this video watermark information W, detects watermark header and sub-watermark information again; Otherwise, if check code is correct, then successfully detect video watermark information W.
Again in conjunction with Fig. 1, the embedding of large-capacity video digital watermarking provided by the invention and detection system: comprise
Watermark merge module (100) and watermark detection module (110); Described watermark merge module (100) comprising:
Video frame packet unit (101) is used for all frame of video F of raw video signal are divided into M+1 group frame of video group by the video playback time sequencing, obtains 1 group of frame of video group FH and M group frame of video group FS (I) respectively, I ∈ 0,1 ..., M-1}, M are integer, and M 〉=1; Wherein, M group frame of video group FS (I) is designated as FS (0)~FS (M-1);
Video watermark resolving cell (103) is used for video watermark information W is decomposed into 1 watermark header WH and M sub-watermark information WS (I), I ∈ 0,1 ..., M-1}, M are integer, and M 〉=1; Wherein, M sub-watermark information WS (I) is designated as WS (0)~WS (M-1);
Template embeds unit (102), is used for built-in template is embedded into frame of video group FH, obtains frame of video group FHT; Template embeds unit (102) and specifically is used for: read the two field picture pixel data of frame of video group FH, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtain the DFT territory;
Choose NT template frequency in the described DFT territory;
The DFT coefficient of the described template frequency position that modification is chosen is embedded into described built-in template in the amended DFT coefficient then;
The described DFT coefficient that embeds built-in template is carried out the discrete inversefouriertransform of IDFT, obtain embedding the frame of video group FHT of built-in template;
The watermark head embeds unit (104), and watermark header WH is embedded among the frame of video group FHT, obtains frame of video group FHW; The watermark head embeds unit (104) and specifically is used for: read the two field picture pixel data of frame of video group FHT, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtain the DFT territory;
Choose NH watermark frequency in the DFT territory;
The DFT coefficient of the described watermark that modification is chosen a frequency position is embedded into described watermark header WH in the amended DFT coefficient then;
Described DFT coefficient to watermarked header carries out the discrete inversefouriertransform of IDFT, obtains the frame of video group FHT of watermarked header;
Sub-watermark embeds unit (105), and M sub-watermark information WS (I) is embedded into respectively among the M group frame of video group FS (I), obtains M group frame of video group FSW (I); Wherein, M group frame of video group FSW (I) is designated as FSW (0)~FSW (M-1); Sub-watermark embeds unit (105) and specifically is used for: read the two field picture pixel data of frame of video group FS (I), the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtain the DFT territory;
Choose NS sub-watermark frequency in the described DFT territory;
The DFT coefficient of the described sub-watermark frequency position that modification is chosen is embedded into described sub-watermark information WS (I) in the amended DFT coefficient then;
The described DFT coefficient that embeds sub-watermark information WS (I) is carried out the discrete inversefouriertransform of IDFT, obtain embedding the frame of video group FSW (I) of sub-watermark information WS (I).
Frame of video assembled unit (106) is used for composite video frame group FHW and M group frame of video group FSW (0)~FSW (M-1) in order, obtains watermarked vision signal FW; Frame of video assembled unit (106) specifically is used for:
Raw video signal is divided into the fixedly video-frequency band of frame number;
Each video-frequency band is subdivided into the frame of video group that (M+1) individual frame number is D again, namely obtains 1 group of frame of video group FH and M group frame of video group FS (I).
Watermark detection module (110) comprising:
Geometry correction unit (111) utilizes described built-in template that vision signal FW is carried out geometric correction; Geometry correction unit (111) specifically is used for:
Read the two field picture pixel data of vision signal FW, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform;
The DFT coefficient that obtains after overall DFT discrete Fourier transform is analyzed, judged whether to comprise built-in template; If do not detect built-in template, then keep raw video image, withdraw from the geometric correction operation; If detect built-in template, the built-in template that then detection is obtained compares with the original built-in template that prestores, and calculates image zoom factor and the anglec of rotation; Preserve image zoom factor and the anglec of rotation that calculates then;
According to described image zoom factor and the anglec of rotation, the subsequent frame image is carried out reverse convergent-divergent and reverse rotation, realize vision signal FW is carried out geometric correction.Geometry correction unit (111) specifically is used for:
Read the two field picture pixel data of vision signal FW, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform;
The DFT coefficient that obtains after overall DFT discrete Fourier transform is analyzed, judged whether to comprise built-in template; If do not detect built-in template, then keep raw video image, withdraw from the geometric correction operation; If detect built-in template, the built-in template that then detection is obtained compares with the original built-in template that prestores, and calculates image zoom factor and the anglec of rotation; Preserve image zoom factor and the anglec of rotation that calculates then;
According to described image zoom factor and the anglec of rotation, the subsequent frame image is carried out reverse convergent-divergent and reverse rotation, realize vision signal FW is carried out geometric correction.
A watermark detecting unit (112) is used for detecting watermark header WH in the vision signal through geometric correction; Sub-watermark detection unit (113) specifically is used for:
Read the two field picture pixel data through the vision signal of geometric correction, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtain the DFT territory;
Analyze the DFT coefficient of NS sub-watermark frequency, extract sub-watermark WS (I), I ∈ 0,1 ..., M-1};
From sub-watermark WS (I), extract W (I), K (I) and C (I), obtain the segment number I of sub-watermark correspondence according to K (I);
Checking C (I) check code if check code is incorrect, is then deleted this sub-watermark; Otherwise, if check code is correct, then successfully detect sub-watermark information WS (I);
Sub-watermark detection unit (113) is used for detecting sub-watermark information WS (I) in the vision signal through geometric correction;
Video watermark integrated unit (114) is used for merging watermark header WH and sub-watermark information WS (I), generates complete video watermark information W.Video watermark integrated unit (114) specifically is used for:
From sub-watermark information WS (0)~WS (M-1), extract localized watermark information W (0)~W (M-1) respectively, localized watermark information W (the 0)~W (M-1) that extracts is connected to become video watermark information W;
Checking C check code if check code is incorrect, is then deleted this video watermark information W, detects watermark header and sub-watermark information again; Otherwise, if check code is correct, then successfully detect video watermark information W.
Video digital watermark method disclosed in this invention can be used for embedding the large-capacity video digital watermarking at video, has the following advantages:
(1) watermark capacity is big: by video watermark being resolved into 1 watermark head and some sub-watermarks, increased substantially the capacity of video watermark;
(2) effectively resist the spatial domain geometric attack: by in frame of video, embedding built-in template, carry out template matches during watermark detection, proofread and correct geometric deformation, can resist effectively that spatial domain geometric attack, lossy compression method, frame of video deletion, frame of video insert, frame of video is average and attack such as video cutting.
(3) the video distortion degree is low: first of the watermark that built-in template and data volume is less is embedded in the FH frame of video group, the sub-watermark that data volume is bigger is embedded in FS (0)~FS (M-1) frame of video group, the picture distortion of all frame of video has consistency preferably, effectively prevents the flicker that video watermark causes;
(4) can resistance time synchronous distortion: video watermark just detects in single frames, and then is fused into complete watermark, so watermark detection does not rely on the time sequencing between the frame of video, effectively resistance time synchronous distortion.
The above only is preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be looked protection scope of the present invention.

Claims (15)

1. the embedding of a large-capacity video digital watermarking and detection method is characterized in that, may further comprise the steps:
S1 is decomposed into 1 watermark header WH and M sub-watermark information WS (I) with video watermark information W, I ∈ 0,1 ..., M-1}, M are integer, and M 〉=1; Wherein, M sub-watermark information WS (I) is designated as WS (0)~WS (M-1);
All frame of video F of raw video signal are divided into M+1 group frame of video group by the video playback time sequencing, obtain 1 group of frame of video group FH and M group frame of video group FS (I) respectively, I ∈ 0,1 ..., M-1}, M are integer, and M 〉=1; Wherein, M group frame of video group FS (I) is designated as FS (0)~FS (M-1);
S2 is embedded into built-in template among the frame of video group FH, obtains frame of video group FHT;
Watermark header WH is embedded among the frame of video group FHT, obtains frame of video group FHW;
M sub-watermark information WS (I) is embedded into respectively among the M group frame of video group FS (I), obtains M group frame of video group FSW (I); Wherein, M group frame of video group FSW (I) is designated as FSW (0)~FSW (M-1);
S3, composite video frame group FHW and M group frame of video group FSW (0)~FSW (M-1) obtains watermarked vision signal FW in order;
S4 utilizes described built-in template that vision signal FW is carried out geometric correction;
S5 detects watermark header WH in the process vision signal of geometric correction;
And, in the process vision signal of geometric correction, detect sub-watermark information WS (I);
S6 merges watermark header WH and sub-watermark information WS (I), generates complete video watermark information W.
2. method according to claim 1 is characterized in that, S1 is decomposed into 1 watermark header WH and M sub-watermark information WS (I) with video watermark information W and specifically may further comprise the steps:
Watermark header WH acquisition methods is:
S1-1 is equally divided into the M section with the video watermark information W of L bit, obtains M localized watermark information W (I); Wherein, M localized watermark information W (I) is designated as W (0)~W (M-1); Length N 1 bit of each localized watermark information W (I)=L bit/M bit then;
S1-2 carries out binary coding to total number M of local watermark information, obtains binary number K; Wherein, the number of bits N2 of binary number K is the integer greater than log (M-1)/log (2);
Based on L and N3, calculate the CRC check sign indicating number of video watermark information W, be designated as video watermark check code C; Wherein, N3 is set point, is the number of bits of video watermark check code C;
Make up K and C sequentially, obtain watermark header WH; Wherein, the number of bits of watermark header WH is N2+N3;
M sub-watermark information WS (I) acquisition methods is:
Segment number I to M localized watermark information W (I) carries out binary coding respectively, obtains M binary number K (I); Wherein, the number of bits of binary number K (I) is N2; M binary number K (I) is designated as K (0)~K (M-1);
Calculate the CRC check sign indicating number of W (I) and K (I), obtain sub-watermark check code C (I); Wherein, the number of bits of sub-watermark check code C (I) is N4;
Make up W (I), K (I) and C (I) sequentially, obtain the sub-watermark information WS (I) of (N1+N2+N4) bit.
3. method according to claim 1, it is characterized in that, among the S1, all frame of video of raw video signal are divided into M+1 group frame of video group by the video playback time sequencing, obtain 1 group of frame of video group FH and M group frame of video group FS (I) respectively, specifically may further comprise the steps:
Raw video signal is divided into the fixedly video-frequency band of frame number;
Each video-frequency band is subdivided into the frame of video group that (M+1) individual frame number is D again, namely obtains 1 group of frame of video group FH and M group frame of video group FS (I).
4. method according to claim 1 is characterized in that, among the S2, built-in template is embedded among the frame of video group FH, obtains frame of video group FHT, specifically may further comprise the steps:
Read the two field picture pixel data of frame of video group FH, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtain the DFT territory;
Choose NT template frequency in the described DFT territory;
The DFT coefficient of the described template frequency position that modification is chosen is embedded into described built-in template in the amended DFT coefficient then;
The described DFT coefficient that embeds built-in template is carried out the discrete inversefouriertransform of IDFT, obtain embedding the frame of video group FHT of built-in template.
5. method according to claim 1 is characterized in that, among the S2, watermark header WH is embedded among the frame of video group FHT, obtains frame of video group FHW, specifically may further comprise the steps:
Described watermark head embeds and comprises the steps:
Read the two field picture pixel data of frame of video group FHT, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtain the DFT territory;
Choose NH watermark frequency in the DFT territory;
The DFT coefficient of the described watermark that modification is chosen a frequency position is embedded into described watermark header WH in the amended DFT coefficient then;
Described DFT coefficient to watermarked header carries out the discrete inversefouriertransform of IDFT, obtains the frame of video group FHT of watermarked header.
6. method according to claim 1 is characterized in that, among the S2, M sub-watermark information WS (I) is embedded into respectively among the M group frame of video group FS (I), obtains M group frame of video group FSW (I), specifically may further comprise the steps:
Read the two field picture pixel data of frame of video group FS (I), the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtain the DFT territory;
Choose NS sub-watermark frequency in the described DFT territory;
The DFT coefficient of the described sub-watermark frequency position that modification is chosen is embedded into described sub-watermark information WS (I) in the amended DFT coefficient then;
The described DFT coefficient that embeds sub-watermark information WS (I) is carried out the discrete inversefouriertransform of IDFT, obtain embedding the frame of video group FSW (I) of sub-watermark information WS (I).
7. method according to claim 1 is characterized in that, S4 utilizes described built-in template that vision signal FW is carried out geometric correction, specifically may further comprise the steps:
Read the two field picture pixel data of vision signal FW, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform;
The DFT coefficient that obtains after overall DFT discrete Fourier transform is analyzed, judged whether to comprise built-in template; If do not detect built-in template, then keep raw video image, withdraw from the geometric correction operation; If detect built-in template, the built-in template that then detection is obtained compares with the original built-in template that prestores, and calculates image zoom factor and the anglec of rotation; Preserve image zoom factor and the anglec of rotation that calculates then;
According to described image zoom factor and the anglec of rotation, the subsequent frame image is carried out reverse convergent-divergent and reverse rotation, realize vision signal FW is carried out geometric correction.
8. method according to claim 1 is characterized in that, S5 detects watermark header WH in the process vision signal of geometric correction, specifically may further comprise the steps:
Read the two field picture pixel data through the vision signal of geometric correction, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtain the DFT territory;
Analyze the DFT coefficient of a NH watermark frequency, extract watermark header WH;
From watermark header WH, extract data K and check code C, obtain sub-watermark sum M by K.
9. method according to claim 1 is characterized in that, detects sub-watermark information WS (I) in the process vision signal of geometric correction, specifically may further comprise the steps:
Read the two field picture pixel data through the vision signal of geometric correction, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtain the DFT territory;
Analyze the DFT coefficient of NS sub-watermark frequency, extract sub-watermark WS (I), I ∈ 0,1 ..., M-1};
From sub-watermark WS (I), extract W (I), K (I) and C (I), obtain the segment number I of sub-watermark correspondence according to K (I);
Checking C (I) check code if check code is incorrect, is then deleted this sub-watermark; Otherwise, if check code is correct, then successfully detect sub-watermark information WS (I).
10. method according to claim 1 is characterized in that, S6 merges watermark header WH and sub-watermark information WS (I), generates complete video watermark information W, specifically may further comprise the steps:
From sub-watermark information WS (0)~WS (M-1), extract localized watermark information W (0)~W (M-1) respectively, localized watermark information W (the 0)~W (M-1) that extracts is connected to become video watermark information W;
Checking C check code if check code is incorrect, is then deleted this video watermark information W, detects watermark header and sub-watermark information again; Otherwise, if check code is correct, then successfully detect video watermark information W.
11. the embedding of a large-capacity video digital watermarking and detection system is characterized in that, comprise watermark merge module (100) and watermark detection module (110);
Described watermark merge module (100) comprising:
Video frame packet unit (101) is used for all frame of video F of raw video signal are divided into M+1 group frame of video group by the video playback time sequencing, obtains 1 group of frame of video group FH and M group frame of video group FS (I) respectively, I ∈ 0,1 ..., M-1}, M are integer, and M 〉=1; Wherein, M group frame of video group FS (I) is designated as FS (0)~FS (M-1);
Video watermark resolving cell (103) is used for video watermark information W is decomposed into 1 watermark header WH and M sub-watermark information WS (I), I ∈ 0,1 ..., M-1}, M are integer, and M 〉=I; Wherein, M sub-watermark information WS (I) is designated as WS (0)~WS (M-1);
Template embeds unit (102), is used for built-in template is embedded into frame of video group FH, obtains frame of video group FHT;
The watermark head embeds unit (104), and watermark header WH is embedded among the frame of video group FHT, obtains frame of video group FHW;
Sub-watermark embeds unit (105), and M sub-watermark information WS (I) is embedded into respectively among the M group frame of video group FS (I), obtains M group frame of video group FSW (I); Wherein, M group frame of video group FSW (I) is designated as FSW (0)~FSW (M-1);
Frame of video assembled unit (106) is used for composite video frame group FHW and M group frame of video group FSW (0)~FSW (M-1) in order, obtains watermarked vision signal FW;
Watermark detection module (110) comprising:
Geometry correction unit (111) utilizes described built-in template that vision signal FW is carried out geometric correction;
A watermark detecting unit (112) is used for detecting watermark header WH in the vision signal through geometric correction;
Sub-watermark detection unit (113) is used for detecting sub-watermark information WS (I) in the vision signal through geometric correction;
Video watermark integrated unit (114) is used for merging watermark header WH and sub-watermark information WS (I), generates complete video watermark information W.
12. the embedding of large-capacity video digital watermarking according to claim 11 and detection system, it is characterized in that, described template embeds unit (102) and specifically is used for: the two field picture pixel data that reads frame of video group FH, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtain the DFT territory;
Choose NT template frequency in the described DFT territory;
The DFT coefficient of the described template frequency position that modification is chosen is embedded into described built-in template in the amended DFT coefficient then;
The described DFT coefficient that embeds built-in template is carried out the discrete inversefouriertransform of IDFT, obtain embedding the frame of video group FHT of built-in template;
Described watermark head embeds unit (104) and specifically is used for: read the two field picture pixel data of frame of video group FHT, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtain the DFT territory;
Choose NH watermark frequency in the DFT territory;
The DFT coefficient of the described watermark that modification is chosen a frequency position is embedded into described watermark header WH in the amended DFT coefficient then;
Described DFT coefficient to watermarked header carries out the discrete inversefouriertransform of IDFT, obtains the frame of video group FHT of watermarked header;
Described sub-watermark embeds unit (105) and specifically is used for: read the two field picture pixel data of frame of video group FS (I), the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtain the DFT territory;
Choose NS sub-watermark frequency in the described DFT territory;
The DFT coefficient of the described sub-watermark frequency position that modification is chosen is embedded into described sub-watermark information WS (I) in the amended DFT coefficient then;
The described DFT coefficient that embeds sub-watermark information WS (I) is carried out the discrete inversefouriertransform of IDFT, obtain embedding the frame of video group FSW (I) of sub-watermark information WS (I).
13. the embedding of large-capacity video digital watermarking according to claim 11 and detection system is characterized in that, described frame of video assembled unit (106) specifically is used for:
Raw video signal is divided into the fixedly video-frequency band of frame number;
Each video-frequency band is subdivided into the frame of video group that (M+1) individual frame number is D again, namely obtains 1 group of frame of video FH and M group frame of video FS (I).
14. the embedding of large-capacity video digital watermarking according to claim 11 and detection system is characterized in that, described geometry correction unit (111) specifically is used for:
Read the two field picture pixel data of vision signal FW, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform;
The DFT coefficient that obtains after overall DFT discrete Fourier transform is analyzed, judged whether to comprise built-in template; If do not detect built-in template, then keep raw video image, withdraw from the geometric correction operation; If detect built-in template, the built-in template that then detection is obtained compares with the original built-in template that prestores, and calculates image zoom factor and the anglec of rotation; Preserve image zoom factor and the anglec of rotation that calculates then;
According to described image zoom factor and the anglec of rotation, the subsequent frame image is carried out reverse convergent-divergent and reverse rotation, realize vision signal FW is carried out geometric correction.
15. the embedding of large-capacity video digital watermarking according to claim 11 and detection system is characterized in that, described sub-watermark detection unit (113) specifically is used for:
Read the two field picture pixel data through the vision signal of geometric correction, the described two field picture pixel data that reads is carried out overall DFT discrete Fourier transform, obtain the DFT territory;
Analyze the DFT coefficient of NS sub-watermark frequency, extract sub-watermark WS (I), I ∈ 0,1 ..., M-1};
From sub-watermark WS (I), extract W (I), K (I) and C (I), obtain the segment number I of sub-watermark correspondence according to K (I);
Checking C (I) check code if check code is incorrect, is then deleted this sub-watermark; Otherwise, if check code is correct, then successfully detect sub-watermark information WS (I);
Described video watermark integrated unit (114) specifically is used for:
From sub-watermark information WS (0)~WS (M-1), extract localized watermark information W (0)~W (M-1) respectively, localized watermark information W (the 0)~W (M-1) that extracts is connected to become video watermark information W;
Checking C check code if check code is incorrect, is then deleted this video watermark information W, detects watermark header and sub-watermark information again; Otherwise, if check code is correct, then successfully detect video watermark information W.
CN201310113228.7A 2013-04-02 2013-04-02 Large-capacity video embedding algorithm and detection method and system thereof Active CN103237271B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310113228.7A CN103237271B (en) 2013-04-02 2013-04-02 Large-capacity video embedding algorithm and detection method and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310113228.7A CN103237271B (en) 2013-04-02 2013-04-02 Large-capacity video embedding algorithm and detection method and system thereof

Publications (2)

Publication Number Publication Date
CN103237271A true CN103237271A (en) 2013-08-07
CN103237271B CN103237271B (en) 2016-04-06

Family

ID=48885282

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310113228.7A Active CN103237271B (en) 2013-04-02 2013-04-02 Large-capacity video embedding algorithm and detection method and system thereof

Country Status (1)

Country Link
CN (1) CN103237271B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104902341A (en) * 2015-05-22 2015-09-09 东莞中山大学研究院 Method for resisting geometric attack of safe digital video watermark
CN105761199A (en) * 2016-03-25 2016-07-13 鲁东大学 Robustness color image watermarking method based on combination domain
CN107799121A (en) * 2017-10-18 2018-03-13 广州珠江移动多媒体信息有限公司 A kind of digital watermark embedding and method for detecting of radio broadcasting audio
CN108540867A (en) * 2018-04-25 2018-09-14 中影数字巨幕(北京)有限公司 Film bearing calibration and device
WO2018177201A1 (en) * 2017-03-29 2018-10-04 腾讯科技(深圳)有限公司 Method and device for embedding and extracting digital watermark, digital watermarking system
CN109309869A (en) * 2018-09-11 2019-02-05 东方网力科技股份有限公司 A kind of watermark embedding method, device and storage medium
CN109379642A (en) * 2018-12-14 2019-02-22 连尚(新昌)网络科技有限公司 It is a kind of for adding and detecting the method and apparatus of video watermark
CN112423150A (en) * 2020-11-18 2021-02-26 大连理工大学 Remote video transmission device with frame check function and working method thereof
CN117376664A (en) * 2023-12-07 2024-01-09 北京奕之宣科技有限公司 Video watermark information processing method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101053256A (en) * 2005-08-04 2007-10-10 日本电信电话株式会社 Digital watermark padding method, digital watermark padding device, digital watermark detecting method, digital watermark detection device, and program
US8107669B2 (en) * 2006-06-14 2012-01-31 Samsung Electronics Co., Ltd. Video watermarking apparatus in compression domain and method using the same
CN102665100A (en) * 2012-05-07 2012-09-12 苏州工业职业技术学院 Method for applying digital watermarks in streaming media
CN102946531A (en) * 2012-08-24 2013-02-27 南京大学 GOP (group of picture) frame structure combined video watermarking method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101053256A (en) * 2005-08-04 2007-10-10 日本电信电话株式会社 Digital watermark padding method, digital watermark padding device, digital watermark detecting method, digital watermark detection device, and program
US8107669B2 (en) * 2006-06-14 2012-01-31 Samsung Electronics Co., Ltd. Video watermarking apparatus in compression domain and method using the same
CN102665100A (en) * 2012-05-07 2012-09-12 苏州工业职业技术学院 Method for applying digital watermarks in streaming media
CN102946531A (en) * 2012-08-24 2013-02-27 南京大学 GOP (group of picture) frame structure combined video watermarking method and system

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104902341A (en) * 2015-05-22 2015-09-09 东莞中山大学研究院 Method for resisting geometric attack of safe digital video watermark
CN105761199A (en) * 2016-03-25 2016-07-13 鲁东大学 Robustness color image watermarking method based on combination domain
CN105761199B (en) * 2016-03-25 2018-10-12 鲁东大学 A kind of Robust Color Image water mark method based on combination fields
US10977761B2 (en) 2017-03-29 2021-04-13 Tencent Technology (Shenzhen) Company Limited Digital watermark embedding method and extraction method, digital watermark embedding apparatus and extraction apparatus, and digital watermark system
WO2018177201A1 (en) * 2017-03-29 2018-10-04 腾讯科技(深圳)有限公司 Method and device for embedding and extracting digital watermark, digital watermarking system
CN107799121A (en) * 2017-10-18 2018-03-13 广州珠江移动多媒体信息有限公司 A kind of digital watermark embedding and method for detecting of radio broadcasting audio
CN108540867A (en) * 2018-04-25 2018-09-14 中影数字巨幕(北京)有限公司 Film bearing calibration and device
CN108540867B (en) * 2018-04-25 2021-04-27 中影数字巨幕(北京)有限公司 Film correction method and system
CN109309869A (en) * 2018-09-11 2019-02-05 东方网力科技股份有限公司 A kind of watermark embedding method, device and storage medium
CN109309869B (en) * 2018-09-11 2021-01-26 东方网力科技股份有限公司 Watermark embedding method, device and storage medium
CN109379642A (en) * 2018-12-14 2019-02-22 连尚(新昌)网络科技有限公司 It is a kind of for adding and detecting the method and apparatus of video watermark
CN112423150A (en) * 2020-11-18 2021-02-26 大连理工大学 Remote video transmission device with frame check function and working method thereof
CN112423150B (en) * 2020-11-18 2022-01-04 大连理工大学 Working method of remote video transmission device with frame check function
CN117376664A (en) * 2023-12-07 2024-01-09 北京奕之宣科技有限公司 Video watermark information processing method, device and equipment
CN117376664B (en) * 2023-12-07 2024-03-15 北京奕之宣科技有限公司 Video watermark information processing method, device and equipment

Also Published As

Publication number Publication date
CN103237271B (en) 2016-04-06

Similar Documents

Publication Publication Date Title
CN103237271B (en) Large-capacity video embedding algorithm and detection method and system thereof
CN102147912B (en) Adaptive difference expansion-based reversible image watermarking method
CN110163787B (en) Audio digital robust blind watermark embedding method based on dual-tree complex wavelet transform
JP5982806B2 (en) Digital watermark embedding device, digital watermark embedding method, and digital watermark detection device
CN108682425B (en) Robust digital audio watermark embedding system based on constant watermark
Eswaraiah et al. A fragile ROI-based medical image watermarking technique with tamper detection and recovery
CN108650491A (en) A kind of video watermark detection method towards monitoring system
KR20110090247A (en) Reversible watermark inserting, extracting and original contents restoring methods using difference histogram
WO2007003008A1 (en) Image watermarking
CN105512999A (en) Dual-transform color image holographic watermarking method
CN103050120B (en) high-capacity digital audio reversible watermark processing method
CN103455966B (en) Digital watermark embedding apparatus, data waterprint embedded method and digital watermark detecting device
Dittmann et al. Combined video and audio watermarking: Embedding content information in multimedia data
Arabzadeh et al. Reversible watermarking based on generalized histogram shifting
Liu et al. Adaptive feature calculation and diagonal mapping for successive recovery of tampered regions
KR101200345B1 (en) Block-bases image authentication method using reversible watermarking based on progressive differential histogram
CN114630130B (en) Face-changing video tracing method and system based on deep learning
CN102169691A (en) Reversible audio watermarking method based on bidirectional prediction and generalized expansion
KR100538414B1 (en) Method of protection of dct image data against forgery
CN100512440C (en) Water mark method and device for digital video signal and detecting method and device
Cheng et al. Non-ubiquitous digital watermarking for record indexing and integrity protection of medical images
Pal et al. Survey Of Digital Watermarking Using Dct
Behravan et al. Introducing a new method of image reconstruction against crop attack using sudoku watermarking algorithm
Ma et al. An improved reversible watermarking scheme
JP4187916B2 (en) Digital watermark embedding device and detection device

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