CN101330611A - Method and apparatus for embedding and erasing video watermark as well as system for processing watermark - Google Patents

Method and apparatus for embedding and erasing video watermark as well as system for processing watermark Download PDF

Info

Publication number
CN101330611A
CN101330611A CNA2008101169882A CN200810116988A CN101330611A CN 101330611 A CN101330611 A CN 101330611A CN A2008101169882 A CNA2008101169882 A CN A2008101169882A CN 200810116988 A CN200810116988 A CN 200810116988A CN 101330611 A CN101330611 A CN 101330611A
Authority
CN
China
Prior art keywords
information
watermark
frame
recovering
embedding
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
CNA2008101169882A
Other languages
Chinese (zh)
Other versions
CN101330611B (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.)
Huawei Technologies Co Ltd
Sun Yat Sen University
Original Assignee
Huawei Technologies Co Ltd
Sun Yat Sen University
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 Huawei Technologies Co Ltd, Sun Yat Sen University filed Critical Huawei Technologies Co Ltd
Priority to CN2008101169882A priority Critical patent/CN101330611B/en
Publication of CN101330611A publication Critical patent/CN101330611A/en
Application granted granted Critical
Publication of CN101330611B publication Critical patent/CN101330611B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The embodiment of the invention relates to a method and a device for embedding and erasing a video watermark, and a system for processing the watermark, wherein, the method for embedding the video watermark comprises the following steps: the watermark information is embedded in a macroblock of a frame I, the recovery information is embedded in a skipped macroblock and the recovery information includes the macroblock position information of the watermark embedded in the frame I. The method for erasing the video watermark comprises the following steps: the embedded watermark information is extracted from the frame I, the recovery information is extracted from the skipped macroblock and the recovery information includes the macroblock position information of the watermark embedded in the frame I. The watermark information is embedded or erased in the frame I according to the watermark information and the recovery information. The method, the device and the system effectively guarantee the authentication effect on preventing the intraframe information from being tampered, and realize the erasure of the watermark embedded in the frame I.

Description

Video watermark embedding, method for deleting and device and system for processing watermark
Technical field
The present invention relates to communication technical field, particularly relate to a kind of video watermark embedding, method for deleting and device and system for processing watermark.
Background technology
Adopting Information Hiding Techniques (as: digital watermark technology) that multimedia messages (as: video, audio frequency or image etc.) is protected and authenticated is the focus of current research.Be protection or authentication multimedia messages, can be watermarked in multimedia messages, by detecting the watermark information that embeds in the multimedia messages, can know whether multimedia messages has been distorted by unauthorized parties.Watermarked is that raw information is revised in essence, and for some special applied environment (as: medical application, Military Application or produce (shenglvehao)in court are as application such as evidences), processing is reduced in the raw information variation that needs watermarkedly to bring, so prior art exists the technical need that video can be wiped watermark.
Prior art has proposed a kind of video watermark treatment method, and basic principle is that the SKIP macro block in the image P frame is analyzed, and selects the minimum macro block of subsequent prediction frame number influence is revised the luminance factor and the embed watermark information of the macro block of choosing; When carrying out video decode, extract watermark from this macro block, owing to still this macro block is carried out actual decoding, therefore can not influence the video quality of this frame according to the SKIP pattern.This method adopts macro block (Macro Block, abbreviation MB) counting carries out the total of subsequent prediction frame number to the SKIP macro block, at first add up all SKIP macro blocks of P two field picture and calculate luminance factor mean value, selecting the sub-average macro block of luminance factor to carry out watermark embeds, because the modification of these macro block brightness coefficients is less to follow-up macro block influence, thereby makes overall video quality not have too big reduction.
The inventor finds in realizing process of the present invention, the defective that prior art exists at least has: prior art is only watermarked at the SKIP macro block of video image P frame, the I frame is not protected, because the SKIP number of macroblocks that satisfies condition in the P frame is limited, therefore most of zone does not have watermarkedly in the frame, prevents that the authentication effect of distorting in the frame is difficult to guarantee; In addition, prior art is carried out the modification of luminance factor though chosen the luminance factor little macro block of trying one's best by the statistics count of macroblocks when the luminance factor of change SKIP macro block; But the modification of these macro block brightness coefficients still can exert an influence to follow-up frame, and the watermark in the multimedia messages does not have real wiping.
Summary of the invention
Method and apparatus and system for processing watermark that the embodiment of the invention provides a kind of video watermark to embed, wipe effectively guarantee to prevent the authentication effect that the frame internal information is distorted, and the watermark that embeds in the I frame can be realized wiping.
The method that a kind of video watermark embeds comprises:
Embed watermark information in the macro block of I frame;
Embed recovering information in skipped macroblocks, described recovering information comprises macro block position information watermarked in the described I frame.
In the video watermark embedding grammar that the embodiment of the invention provides, watermarked by in the I of video image frame, satisfying pre-conditioned macro block, the I content frame is protected, and in the skipped macroblocks of video image, embed the recovering information of I content frame, therefore to generally the distorting of I content frame, weight contracts etc., and operation all can make watermark information lose, thereby effectively assurance prevents the authentication effect that the frame internal information is distorted; In decode procedure, can wipe the watermark that is embedded in the I frame simultaneously according to the recovering information that embeds at skipped macroblocks.
The method that a kind of video watermark is wiped comprises:
In the I frame, extract the watermark information that embeds;
Extract the recovering information that embeds from skipped macroblocks, described recovering information comprises macro block position information watermarked in the described I frame;
Wipe the watermark information that embeds in the described I frame according to described watermark information and recovering information.
In the method that a kind of video watermark that the embodiment of the invention provides is wiped, by extracting the recovering information of watermark that embeds in the video image I frame and the I content frame that in skipped macroblocks, embeds, and, can realize being embedded in wiping fully of watermark information in the I frame according to recovering information.
The device that a kind of video watermark embeds comprises:
The watermark information merge module is used for the macro block embed watermark information at the I frame;
The recovering information merge module is used for embedding recovering information at skipped macroblocks, and described recovering information comprises macro block position information watermarked in the described I frame.
In the video watermark flush mounting that the embodiment of the invention provides, watermarked in the I of video image frame by the watermark information merge module, the I content frame is protected, and in skipped macroblocks, embed the recovering information of I content frame by the recovering information merge module, therefore to generally the distorting of I content frame, weight contracts etc., and operation all can make watermark information lose, thereby effectively assurance prevents the authentication effect that the frame internal information is distorted; In decode procedure, can wipe the watermark that is embedded in the I frame simultaneously according to the recovering information that in skipped macroblocks, embeds.
The device that a kind of video watermark is wiped comprises:
The watermark information extraction module is used for extracting the watermark information that embeds at the I frame;
The recovering information extraction module is used for extracting the recovering information that embeds from skipped macroblocks, and described recovering information comprises macro block position information watermarked in the described I frame;
Watermark information is wiped module, is used for wiping the watermark information that embeds described I frame according to described watermark information and recovering information.
In the device that a kind of video watermark that the embodiment of the invention provides is wiped, extract the recovering information of the I content frame that the watermark that embeds in the video image I frame and recovering information extraction module embed in skipped macroblocks by the watermark information extraction module, and wipe module according to recovering information by watermark information, realize being embedded in the wiping fully of watermark of I frame.
A kind of system for processing watermark comprises:
The video watermark flush mounting is used for the macro block embed watermark information at the I frame; Embed recovering information in skipped macroblocks, described recovering information comprises macro block position information watermarked in the described I frame; Or
The video watermark erasing apparatus is used for extracting the watermark information that embeds at the I frame; Extract the recovering information that embeds from skipped macroblocks, described recovering information comprises macro block position information watermarked in the described I frame; Wipe the watermark information that embeds in the described I frame according to described watermark information and recovering information.
In a kind of system for processing watermark that the embodiment of the invention provides, watermarked in the I of video image frame by the video watermark flush mounting, the I content frame is protected, effectively guarantee to prevent the authentication effect that the frame internal information is distorted; Maybe can extract the recovering information of watermark that embeds in the video image I frame and the I content frame that in jump, embeds, realize being embedded in the wiping fully of watermark of I frame by the video watermark erasing apparatus.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention, the accompanying drawing of required use is done to introduce simply in will describing embodiment below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the video watermark embedding grammar first embodiment flow chart of the present invention;
Fig. 2 is the video watermark embedding grammar second embodiment flow chart of the present invention;
Fig. 3 be recovering information increment travel information to for 3, the preserving type schematic diagram of 3};
Fig. 4 is the video watermark method for deleting first embodiment flow chart of the present invention;
Fig. 5 is the video watermark method for deleting second embodiment flow chart of the present invention;
Fig. 6 is the video watermark flush mounting first example structure schematic diagram of the present invention;
Fig. 7 is the video watermark flush mounting second example structure schematic diagram of the present invention;
Fig. 8 is the video watermark erasing apparatus first example structure schematic diagram of the present invention;
Fig. 9 is the video watermark erasing apparatus second example structure schematic diagram of the present invention;
Figure 10 is a system for processing watermark example structure schematic diagram of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
In the embodiment of the invention, skipped macroblocks is the macro block that coding mode is dancing mode (a SKIP pattern); Inter macroblocks is the macro block that coding mode is an inter-frame mode.
Fig. 1 is the video watermark embedding grammar first embodiment flow chart of the present invention.As shown in Figure 1, present embodiment comprises:
Step 11, in the macro block of I frame embed watermark information.
Particularly, can in the I of video image frame, choose and satisfy watermark and embed pre-conditioned macro block; Embed watermark information in satisfying the pre-conditioned macro block of watermark embedding.Macro block includes a plurality of piecemeals, when embed watermark information, can be in piecemeal embed watermark information.The step of embed watermark information can comprise: according to default functional relation, revise the ac coefficient that needs watermarked piecemeal, amended ac coefficient is write code stream.
Step 12, embed recovering information in skipped macroblocks, this recovering information comprises macro block position information watermarked in the I frame.
In the embodiment of the invention, skipped macroblocks is the macro block that coding mode is dancing mode (a SKIP pattern).All may comprise skipped macroblocks in the P frame of video image and the B frame, therefore, can in the skipped macroblocks that P frame or B frame comprise, embed recovering information.When embedding recovering information, can in the P of video image frame or B frame, choose and satisfy the pre-conditioned macro block of recovering information embedding; And in satisfying the pre-conditioned macro block of recovering information embedding, embed recovering information.Wherein, recovering information comprises macro block position information watermarked in the I frame, and particularly, the macro block position information that recovering information comprises can be the watermarked piecemeal positional information of respective macroblock; In addition, recovering information also can comprise in the I frame of video image the watermark location information that changes owing to the watermarked ac coefficient that causes piecemeal.
Present embodiment is watermarked by satisfy pre-conditioned macro block in the I of video image frame, the I content frame is protected, and in the P of video image frame, embed the recovering information of I content frame, therefore to generally the distorting of I content frame, weight contracts etc., and operation all can make watermark information lose, thereby effectively assurance prevents the authentication effect that the frame internal information is distorted; In decode procedure, can wipe the watermark that is embedded in the I frame simultaneously according to the recovering information that embeds at video image P frame.Present embodiment mode by integrated authentication in video is carried out video protection; can be applicable to based on (advanced video coding H.264/AVC; AdvancedVideo Coding), the video integrated authentication of MPEG-4 video compression standard agreements such as (Motion Picture Experts Group-4, Moving Picture Experts Group).
Fig. 2 is the video watermark embedding grammar second embodiment flow chart of the present invention.As shown in Figure 2, present embodiment comprises:
Step 21, watermark information is carried out the preliminary treatment of Hamming (Hamming) coding.
Watermark information adopts Hamming (Hamming) coding, can realize the blind Detecting of watermark like this, and in the blind Detecting of watermark, can know in the macro block information which be not watermark information, and the end position of the watermark information that embeds in the macro block.Concrete, when adopting Hamming (Hamming) coding that watermark information is carried out preliminary treatment, can adopt 7-4 Hamming (Hamming) sign indicating number, for example: watermark information is 4 (as: 0101), after carrying out 7-4 Hamming (Hamming) coding, the watermark information that needs to embed is 7 (as: 1011010).Because Hamming (Hamming) sign indicating number has mistake, error correction, when carrying out watermark detection, if the continuous sequence that does not meet Hamming (Hamming) sign indicating number is arranged in the information of finding to extract, then can think does not have watermark information after this sequence.
The I frame of step 22, scan video image is chosen in the I frame and is satisfied watermark and embed pre-conditioned macro block, with these macro blocks as macro block that can be watermarked.
For the authentication effect that effectively guarantees to distort in the video frame image, watermarked in can be in the frame big as far as possible zone.This step is the video watermark flush mounting in I frame scan, chooses in the I frame and satisfies the pre-conditioned macro block of watermark embedding as the watermarked macro block of need.Watermark embeds pre-conditioned can be: the coefficient of the piecemeal that macro block comprises satisfies relation: DC>0, AC 〉=DC/2; Wherein, DC is the DC coefficient of piecemeal, and AC is the ac coefficient of piecemeal.In order to make macro block comprise that thereby more piecemeals can embed more watermark information, macro block can adopt the partitioned mode of the minimum of current standard support.For example, H.264 the adoptable partitioned mode of video compression standard is I4 in the frame * 4; Macro block comprises 16 4 * 4 (4 pixels * 4 pixels) piecemeal.
Step 23, basis be the distribution principle evenly, embeds in the pre-conditioned macro block watermarked in the watermark of selecting of satisfying successively.
The pre-conditioned setting of above-mentioned watermark can be watermarked for the piecemeal of higher value to ac coefficient (AC).Because ac coefficient has characterized the minutia of image, therefore, choose and satisfy the pre-conditioned piecemeal of this watermark embedding as the watermarked piecemeal of need, and it is watermarked in these piecemeals, help watermark is distributed in the details place (high-frequency region) of video image, make the watermark that is embedded in the video image have good imperception.
Embed pre-conditioned macro block owing to may exist a large amount of watermarks of satisfying in the video image I frame, therefore, it is watermarked to select to satisfy the pre-conditioned part macro block of watermark embedding.For example: supposing to meet in the I frame the pre-conditioned number of macroblocks of above-mentioned watermark embedding is M 1, M 1For greater than 1 integer; Can select 80%M 1Individually meet above-mentioned watermark and embed pre-conditioned macro block to embed data volume be M 2Watermark.Can follow even distribution principle this moment, embeds in the pre-conditioned macro block watermarked in the above-mentioned watermark of selecting that meets.Here the principle that evenly distributes is: the watermark that needs to embed evenly distributes in each zone of image.For example: video image is divided into 5 * 5=25 zone, the watermarked macro block of the needs of choosing evenly distributes in 25 zones of image, guaranteeing to embed under the prerequisite of all watermarks, make the watermarked macro block of choosing of need be evenly distributed in 25 zones, perfect condition is for to embed M in each zone 2/ 25 watermarks.
Above-mentioned embed and watermarkedly in the pre-conditioned macro block specifically can comprise: according to default functional relation, revise the ac coefficient that satisfies piecemeal in the watermarked macro block, and amended ac coefficient is write code stream in the watermark of selecting of satisfying.
Default functional relation can be: (AC n+ M i) mod (2)=0, wherein, n is the ordinal number of watermarked piecemeal, AC nBe the ac coefficient of n piecemeal, i is the position ordinal number of watermark, M iIt is the data volume of i position watermark.After predict at the macro block watermarked to need, transform and quantization etc. handled, if need watermarked piecemeal ac coefficient not satisfy above-mentioned default functional relation, can carry out necessary modifications to the ac coefficient of these piecemeals, as adding 1 or subtract 1 etc. to the ac coefficient of these macro blocks, make the amended ac coefficient of these piecemeals satisfy above-mentioned default functional relation, the process of revising ac coefficient promptly is illustrated in embed watermark information in the piecemeal.The ac coefficient of piecemeal after the change is write code stream, predict and as a reference, still carry out according to not watermarked data (original ac coefficient) in order to the coding of guaranteeing follow-up macro block, frame but in internal memory, still carry out the later stage with the original ac coefficient of piecemeal.Because in step 22, the watermark of choosing embeds pre-conditioned setting the coefficient of the bigger piecemeal of ac coefficient AC is made amendment, therefore when the ac coefficient of watermarked piecemeal does not satisfy above-mentioned default functional relation, modification (as: ± 1) to the piecemeal ac coefficient is less to the integral image visual impact, thereby effectively guarantees watermarked rear video quality visually.
Step 24, in the P of video image frame or B frame, choose and satisfy recovering information and embed pre-conditioned macro block; Wherein, recovering information comprises in the I frame of video image the piecemeal positional information that changes owing to the watermarked ac coefficient that causes piecemeal.
After the I frame is finished dealing with, follow-up P frame or B frame are analyzed, determined the recovering information embedded space.This step can to embed pre-conditioned coding mode be that the macro block of SKIP pattern is recoded to satisfying recovering information in P frame or the B frame, and the recovering information of I content frame is embedded in these macro blocks.Below will satisfy recovering information and embed the skipped macroblocks (Re-encode SkippedMacroblock) that pre-conditioned macro block is called needs recodification.Wherein, recovering information embeds pre-conditioned can be: will be arranged in continuous three skipped macroblocks that occur of same frame (P frame or B frame) and embed unit (Skip_Pattern) as one, choose to be positioned at and embed the middle skipped macroblocks in unit, as the skipped macroblocks of needs embedding recovering information, the i.e. skipped macroblocks that need recode.Add up an image sets (Group of Picture, hereinafter to be referred as GOP) in the sequence, the embedding unit of enough quantity is selected in embedding unit (Skip_Pattern) in all P frames or the B frame in these all embedding unit, be used for embedding the recovering information of I content frame.。Wherein, an image sets (Group of Picture is hereinafter to be referred as GOP) sequence is the sequence that all P frames and B frame constitute in two I frames, for example, if in the image sequence, only comprise in two I frames that the GOP sequence of P frame situation can be: IPPPPPPPPPPPPPPPI etc.
Step 25, embed pre-conditioned macro block and recode, in the macro block that need are recoded, embed the recovering information of I content frame satisfying recovering information.
The mode that embeds recovering information in the P frame can be by being that the skipped macroblocks of SKIP pattern is recoded to coding mode, and for example: the macroblock encoding pattern of need can being recoded (SKIP pattern) is revised as interframe encoding mode (as: P8 * 8 patterns, P8 * 4 patterns, P16 * 16 patterns etc.).In the embodiment of the invention, coding mode is that the macro block of interframe encoding mode is inter macroblocks.In the SKIP macro block (inter macroblocks) after recode (following to be that P8 * 8 patterns are example from the SKIP schema modification, as to describe), embed the recovering information of I content frame with coding mode.It is the inter macroblocks of P8 * 8 patterns that skipped macroblocks is recoded, and the mode that embeds the recovering information (that is: recodification) of I content frame can be:
Recovering information to the I content frame adopts the mode of " increment (Inc)+stroke (Run) " to carry out run-length encoding, forms a plurality of recovering information increment travel information to { Inc, Run}; The partitioning scheme that the type of the SKIP macro block that need are recoded is revised as P8 * 8 (8 pixels * 8 pixels), piecemeal is set to 4 * 4 (4 pixels * 4 pixels), in the SKIP macro block that each need be recoded, choose the piecemeal that needs to embed recovering information, in the piecemeal of choosing, embed 1 recovering information increment travel information to { Inc, Run}.
The example that table 1 recovering information adopts the mode of " increment (Inc)+stroke (Run) " to encode
Content Example
The watermark W that embeds ?111000011111111001100000
The watermark location information (recovering information) that causes macro block AC index variation ?00011110000100010101110
The record content (recovering information increment travel information to Inc, Run}) ?{3,3};{4,0};{3,0}; ?{1,0};{1,2}
Recovering information to the I content frame adopts the mode of " increment (Inc)+stroke (Run) " to carry out the example of run-length encoding, and is as shown in table 1.Table 1 is to be example to embed 24 bits (bit) watermark in the I frame, suppose that the watermark sequence W of embedding is: 111000011111111001100000.The video watermark flush mounting causes the watermark location information (that is: recovering information) of macro block AC index variation to be when I frame embed watermark information: 00011110000100010101110, in this watermark location information (recovering information): the AC coefficient of 0 expression macro block does not change, and variation has taken place the AC coefficient of 1 expression macro block; Every W0, W1, W2, W3 among everybody the corresponding successively watermark sequence W in this watermark location information 00011110000100010101110 ... recovering information, so watermark location information 00011110000100010101110 W3, the W4, W5, W6, W11, W15, W17, W19, W20 and the watermark of W21 position that are illustrated in watermark sequence W caused the AC index variation of watermarked macro block.Adopt the mode of " increment (Inc)+stroke (Run) " that recovering information is carried out run-length encoding, generates five recovering information increment travel information to Inc, Run} are respectively: 3,3}, 4,0}, 3,0}, 1, and 0} with 1,2}.Recovering information increment travel information is to { Inc, among the Run}, Inc represents that the subscript of watermark is increased to Inc from 0, the watermark bit that promptly is designated as Inc down begins to have had " 1 ", follow-up have Run continuous " 1 ", promptly begin to cause the AC coefficient of piecemeal to change, and the watermark of continuous Run position all cause the AC coefficient of piecemeal to change after this watermark from this watermark.For example: recovering information increment travel information is to { Inc, Run} is { 3, during 3}, expression: the watermark subscript is increased to 3 from 0, promptly begin " 1 " (causing the AC coefficient of piecemeal to change) to occur, and begin that 3 " 1 " are arranged continuously (3 watermark bit cause the AC coefficient of piecemeal to change) from this watermark bit from being designated as 3 watermark bit down; Recovering information increment travel information is to { Inc, Run} is { 4, during 0}, expression: the watermark subscript is increased to 4 from 0, promptly begin to occur " 1 " (causing the AC coefficient of piecemeal to change), and begin that 0 " 1 " is arranged continuously (0 watermark bit causes the AC coefficient of piecemeal to change) etc. from this watermark bit from being designated as 4 watermark bit down.
Guaranteeing that all recovering information all are embedded under the prerequisite of the skipped macroblocks (SKIP macro block) that needs recodification, following principle is followed in the embedding of recovering information: each P frame or B frame in a GOP sequence all should embed at least one unit recovering information, as embed a recovering information increment travel information to { Inc, Run}; Further, in a GOP sequence, because coding mode is the macroblock content information of dancing mode in subsequent P frame or the B frame, needing with reference to coding mode in formerly P frame or the B frame is the macroblock content information of dancing mode, in order to make the content information that skipped macroblocks comprises in the follow-up P frame be difficult for distortion, when embedding recovering information, the recovering information quantity that embeds from the near more P frame of I frame or B frame (coming the P frame or the B frame of front more) is few more, and the quantity of the recovering information that embeds from I frame P frame far away more or B frame (coming more, the coded system of back is the P frame or the B frame of SKIP pattern) is many more.The distribute even distribution principle followed of watermark is identical in the even distribution principle that the distribution of recovering information is followed in each coded system is the P frame of SKIP pattern or B frame and the I frame, for example: video image is divided into 5 * 5=25 zone (5 pixels * 5 pixels), and the recovering information that needs to embed is evenly distributed in 25 zones.
SKIP macro block (type is P8 * 8) for a recodification that includes 4 * 4=16 piecemeal can embed 16 recovering information increment travel information at most to { Inc, Run}.The SKIP macro block has only a label information not have other information outward in the source code flow, need to select the macro block of recodification.The embedded mode that each increment travel information is right can be: the SKIP macro block flag information of recoding is remained unchanged, and the ac coefficient of 15 bits is divided into two groups, 5 coefficients in front are preserved each bit (bit) of stroke (Run), and 10 coefficients of back are preserved each bit (bit) of increment (Inc); For example recovering information increment travel information is to being that { 3, the preserving type of 3} as shown in Figure 3.Accurately obtain the right end position information of recovering information increment information during for ease of decoding, recovering information increment travel information is to identifying as termination by identifier of can presetting.Should can be by identifier 0,0} or other default signs.
Step 26, satisfy recovering information embed embed recovering information in the pre-conditioned macro block after, begin to preserve the check information of the watermark of I frame and P frame or B content frame in the GOP sequence.
Check information is carried out run-length encoding, form a plurality of check information increment travel information { Inc, Run}; Embed pre-conditioned and embed and have in the SKIP macro block of recovering information satisfying recovering information, choose the piecemeal that needs to embed check information; Need embed at each that to embed a check information increment travel information in the piecemeal of check information right.Because in the GOP sequence, the information that satisfies the pre-conditioned macro block embedding of recovering information embedding can comprise the recovering information of I frame and the check information of P content frame, therefore, can embed end position and check information in recovering information and embed between the starting position and satisfy and embed defaultly by identifier in the pre-conditioned macro block of recovering information, be that recovering information, which information are check information so that be convenient to distinguish which information in decode procedure.Preserving type by identifier and check information is identical with the preserving type of recovering information in the step 26, repeats no more.
Present embodiment carries out the preliminary treatment of Hamming (Hamming) coding to watermark, by watermarked in the I frame I content frame is protected, to generally the distorting of I frame, weight contracts etc., and operation all can make watermark information lose, can know by the watermark of extracting in the I frame is authenticated whether I-frame video is distorted this moment; To embed pre-conditioned number of macroblocks a lot of owing to meet watermark in the I frame, therefore, can be watermarked in the very big zone of image, effectively guarantee to prevent the authentication effect of distorting in the frame of video; Embed pre-conditioned because the bigger macro block of value of ac coefficient just meets watermark, watermarked or the DC coefficient of these macro blocks made amendment in these macro blocks, help watermark is distributed in the details place (high-frequency region) of video image, make the watermark that is embedded in the video image have good imperception, common decoder can normal play, does not have visual quality problems; In addition, embed the recovering information that the I content frame is arranged in P frame or the B frame,, can the watermark that the I frame embeds be wiped, return to not watermarked state according to this recovering information for the legal I-frame video of authentication; Owing to also embed the check information that watermark and P content frame are arranged in P frame or the B frame, operations such as P frame or the B content frame to the embedding check information deleted, modification, also can when watermark extracting, be detected, and can revert to the SKIP pattern by the macroblock encoding pattern that will embed recovering information or check information, thereby can wipe the recovering information or the check information that embed in P frame or the B frame, obtain original video.
Fig. 4 is the video watermark method for deleting first embodiment flow chart of the present invention.As shown in Figure 4, present embodiment comprises:
Step 41, the watermark information that extraction embeds in the I frame.
Step 42, the recovering information that extraction embeds from skipped macroblocks, described recovering information comprises macro block position information watermarked in the described I frame.
Step 43, wipe the watermark information that embeds in the I frame according to watermark information and recovering information.
On the basis of present embodiment technical scheme, can embed pre-conditionedly according to watermark, extract the watermark that embeds in the image I frame; And can embed pre-conditionedly according to recovering information, extract the recovering information that embeds in the image P frame; This recovering information can specifically comprise in the I frame watermark location information that changes owing to the watermarked ac coefficient that causes piecemeal.Correspondingly, can ac coefficient watermarked in the I frame and the piecemeal that ac coefficient changes be reverted to the former ac coefficient of this piecemeal according to watermark, recovering information and the default functional relation of the embedding I frame that extracts.
Present embodiment is by extracting the recovering information of watermark that embeds in the video image I frame and the I content frame that embeds in skipped macroblocks, and ac coefficient watermarked in the I frame and the macro block that ac coefficient changes is reverted to former ac coefficient, thereby wipe the watermark that is embedded in the I frame according to recovering information.Present embodiment can be wiped the watermark information that embeds in the I frame under the prerequisite of having determined the video integrality, obtain original video.
Fig. 5 is the video watermark method for deleting second embodiment flow chart of the present invention.As shown in Figure 5, present embodiment comprises:
Step 51, pre-conditioned according to default watermark embedding is searched and is satisfied the pre-conditioned macro block of watermark embedding in the video image I frame.
Watermark embeds pre-conditioned can be: the coefficient of the piecemeal that macro block comprises satisfies relation: DC>0, AC 〉=DC/2; Wherein, DC is the DC coefficient of piecemeal, and AC is the ac coefficient of piecemeal.In order to make macro block comprise that thereby more piecemeals can embed more watermark information, macro block can adopt the partitioned mode of the minimum of current standard support.For example, H.264 the adoptable partitioned mode of video compression standard is an intra-frame 4 * 4; Macro block comprises 16 4 * 4 (4 pixels * 4 pixels) piecemeal.
Step 52, embed in the pre-conditioned macro block and extract watermark satisfying watermark, and Hamming (Hamming) is carried out in watermark detect.
According to equally distributed principle, be extracted in the watermark of extracting in 5 * 5=25 the zone of image one by one, form new watermark stream.New watermark stream is carried out Hamming (Hamming) to be detected.All can not pass through Hamming (Hamming) detection if all information are flowed in new watermark, show that then the information of extracting in the I frame is not that watermark information or I content frame are distorted; Otherwise, show that the I content frame is not distorted, promptly the I content frame is by authentication.
Step 53, the default recovering information of basis embed condition, search the macro block that can embed recovering information.
Recovering information embeds pre-conditioned comprising: the coding mode that occurs continuously in GOP sequence is that three macro blocks of SKIP pattern embed the unit as one, is positioned at each and embeds macro block (SKIP macro block) in the middle of unit as the macro block that needs to embed recovering information.
In the video watermark telescopiny, choose the macro block (that is: the SKIP macro block that need recode) that satisfies default recovering information and embed condition, and can be interframe encoding mode (as: P8 * 8 patterns) from the SKIP schema modification with this macroblock encoding pattern, that is: after the SKIP macro block of recodification, embed the recovering information (seeing the description of the video watermark embedding grammar second embodiment step 25-26 of the present invention for details) of I frame.Therefore, in video image P frame or B frame, when from the code stream that comprises watermark, extracting recovering information according to the default recovering information condition that embeds, need accordingly to consider that video watermark flush mounting embedding recovering information is the alter mode to need recodification macroblock encoding pattern, determine to have embedded the macro block of recovering information.Concrete, the Rule of judgment that embeds the macro block of recovering information in P frame or the B frame can be: adjacent macroblocks is that the inter macroblocks of skipped macroblocks is the macro block that needs to embed recovering information before and after in the same frame.
Step 54, in the macro block that step 53 finds, extract the recovering information of I frame and, and will include recovering information or record and need to recover in the tabulation of macro block by the macro block position information of identifier by identifier.
Recovering information is kept in the SKIP macro block of recodification, and the SKIP macro block of each recodification writes down 16 groups of recovering information increment strokes at most to { Inc, Run}.When extracting recovering information, search in the P frame or B frame that comprises in the GOP sequence, adjacent macroblocks is the inter macroblocks (coding mode is P8 * 8 patterns) of skipped macroblocks (coding mode is the SKIP pattern) before and after in the same frame, and from these inter macroblocks, extract recovering information increment travel information successively to { Inc, Run}.Because the information that embeds in the macro block that finds in the step 53 may not all be recovering information, at this moment, (as: the increment travel information is to being { 0 if the information of extracting in the macro block that finds from step 53 is for the default identifier that ends, during 0}), then do not had recovering information in Zhi Hou the macro block, promptly recovering information has been extracted and has been finished.At this moment, can be according to the recovering information increment travel information of extracting in P frame or the B frame to { the watermark location information that changes owing to the watermarked ac coefficient that causes piecemeal is calculated in the I frame in Inc, the watermark of extracting in Run} and the I frame.
Step 55, in the macro block that step 53 finds, embed in the macro block have by identifier after, extract check information successively, and the macro block position information that will include check information records in the tabulation that needs the recovery macro block; This check information is that check information increment travel information is right.
For the situation that in the macro block that satisfies default recovering information embedding condition, promptly includes recovering information and check information, when extracting recovering information and check information, can and default distinguish by marker character which information is recovering information the information that the district extracts from the information embedding order of the macro block that satisfies this condition, which information is check information.For example: in the P frame or B frame that the GOP sequence comprises, when embedding recovering information and check information in the macro block of the satisfied recovering information embedding condition of presetting, can embed corresponding information according to the order that embeds check information after elder generation's embedding recovering information, and embed end position and check information in recovering information and embed between the starting position and satisfy in the macro block of the default embedding condition of recovering information, embed by identifier.The information that respective macroblock embeds before identifier is the recovering information of I frame, and the information that respective macroblock embeds after identifier is the check information of P content frame.Should can be by identifier 0,0}; Certainly, those skilled in the art also can adopt other rules of being convenient to distinguish two kinds of information, and in coding side coding side equipment such as (as:) video watermark flush mountings and the unified respective rule of decoding end (as decoding end equipment such as video watermark extraction element, video watermark erasing apparatus).
The coding mode that comprises in the GOP sequence is that the coding mode of P8 * 8 patterns, front and back adjacent macroblocks is the SKIP pattern and embeds recovering information the is arranged macro block of (being arranged in to embed has after identifier), extract check information, this check information is that check information increment travel information is right; Verification watermark increment travel information pair is compared with the watermark of extracting from the I frame, and whether checking P content frame is distorted: if the check information increment travel information of extracting from the P frame pair conforms to the watermark information that extracts from the I frame, the P content frame is by authenticating; If the check information increment travel information of extracting pair is not inconsistent with the watermark information that extracts, show that then the P content frame is distorted from the I frame from the P frame.
Step 56, when I content frame and P content frame all pass through authentication, according to watermark, recovering information and default functional relation, ac coefficient watermarked in the I frame and the macro block that ac coefficient changes is reverted to former ac coefficient, wipe the watermark that embeds in the I frame.
Default functional relation can be: (AC n+ M i) mod (2)=0, wherein, n is the ordinal number of watermarked macro block, AC nBe the ac coefficient of n macro block, i is the position ordinal number of watermark, M iIt is the data volume of i position watermark.Owing to extracted the coefficient of watermark and watermark relevant position, and the P frame recording is which watermark causes the ac coefficient of piecemeal change (that is: the watermark location information that changes owing to the watermarked ac coefficient that causes piecemeal), so can navigate to the macro block that ac coefficient changes by oppositely deriving.The ac coefficient of the macro block that ac coefficient is changed carries out and the corresponding processing mode of coding side, as: coding side this ac coefficient is added 1 or subtract 1 and handle, then the video watermark erasing apparatus is tackled this ac coefficient and is subtracted 1 or add 1 and handle, make owing to the watermarked ac coefficient of the macro block that ac coefficient changes that causes reverts to former ac coefficient, thereby wipe the watermark that embeds in the I frame.
Step 57, according to macro block tabulation, with embedding in the P frame recovering information arranged, revert to the SKIP pattern by the macroblock encoding pattern of identifier or check information.
Present embodiment is by extracting the recovering information of watermark that embeds in the video image I frame and the I content frame that embeds in P frame or B frame, according to recovering information ac coefficient watermarked in the I frame and the macro block that ac coefficient changes is reverted to former ac coefficient, thereby wipe the watermark that is embedded in the I frame; In addition, by extract recovering information, during by identifier or check information, this macro block position information that will include recovering information or check information records to be needed to recover in the tabulation of macro block, and with embedding in P frame or the B frame recovering information arranged, to revert to the SKIP pattern, thereby wipe the various information (recovering information, by identifier and check information etc.) of the embedding in the P frame by the macroblock encoding pattern of identifier or check information according to this tabulation.In the present embodiment,, therefore can obtain original video because the information of the embedding of I frame, P frame and B frame all is wiped free of.Be appreciated that because present embodiment can be realized the recovery of raw information in the application circumstances that therefore can be applicable to need the watermarked raw information of bringing is recovered, as medical application, Military Application or produce (shenglvehao)in court are as evidence etc.
Fig. 6 is the video watermark flush mounting first example structure schematic diagram of the present invention.As shown in Figure 6, present embodiment comprises: watermark information merge module 61 and recovering information merge module 62.
Watermark information merge module 61 is used for the macro block embed watermark information at the I frame.
Recovering information merge module 62 is used for embedding recovering information at skipped macroblocks, and this recovering information comprises macro block position information watermarked in the I frame.
Present embodiment is watermarked in the I of video image frame by the watermark information merge module, the I content frame is protected, and in skipped macroblocks, embed the recovering information of I content frame by the recovering information merge module, therefore to generally the distorting of I content frame, weight contracts etc., and operation all can make watermark information lose, thereby effectively assurance prevents the authentication effect that the frame internal information is distorted; In decode procedure, can wipe the watermark that is embedded in the I frame simultaneously according to the recovering information that in skipped macroblocks, embeds.
Fig. 7 is the video watermark flush mounting second example structure schematic diagram of the present invention.As shown in Figure 7, the difference of present embodiment and video watermark flush mounting first embodiment of the present invention is that present embodiment watermark information merge module 61 comprises: first chooses unit 611 and watermark information embedding unit 612.
First chooses unit 611 is used for choosing at the I frame and satisfies watermark and embed pre-conditioned macro block.
The watermark embedding is pre-conditioned to be: the coefficient of piecemeal satisfies relation in the macro block: DC>0, AC 〉=DC/2; Wherein, DC is the DC coefficient of piecemeal, and AC is the ac coefficient of piecemeal.Particularly, first choose unit 611 and be used in and satisfy watermark and embed to choose in the pre-conditioned macro block and need watermarked piecemeal; Watermark information embeds unit 612, be used for particularly, being used for according to default functional relation satisfying the pre-conditioned macro block embed watermark information of watermark embedding, revise the ac coefficient of the piecemeal that needs embed watermark information, and amended ac coefficient is write code stream.
Accordingly, recovering information merge module 62 specifically is used for choosing at P frame or B frame and satisfies recovering information and embed pre-conditioned skipped macroblocks; In satisfying the pre-conditioned skipped macroblocks of recovering information embedding, embed described recovering information; Wherein, recovering information embeds pre-conditioned comprising: will be arranged in the middle skipped macroblocks of three skipped macroblocks that same frame occurs continuously, and embed the skipped macroblocks of recovering information as needs.Further, recovering information merge module 62 can comprise: first generation unit 621, coding mode revise unit 622 and recovering information embeds unit 623.
First generation unit 621 is used for recovering information is carried out run-length encoding, and it is right to form a plurality of recovering information increment travel information.
Coding mode is revised the skipped macroblocks that unit 622 is used for need are embedded recovering information and is revised as the inter macroblocks that coding mode is an interframe encoding mode.
Recovering information embeds unit 623 and is used for revising each inter macroblocks that unit 622 obtains at coding mode and chooses the piecemeal that needs to embed recovering information, need embed at each that to embed a described recovering information increment travel information in the recovering information piecemeal right.
On the basis of present embodiment technical scheme, the video watermark flush mounting also can comprise check information merge module 63.
Check information merge module 63 is used for having in the not embedding that coding mode modification unit 622 obtains the inter macroblocks of recovering information, the check information of embed watermark information and P frame or B content frame.Concrete, check information merge module 63 can comprise: second generation unit 631, second is chosen unit 632 and watermark and check information and is embedded unit 633.
Second generation unit 631 is used for the check information that need embed is carried out run-length encoding, and it is right to form a plurality of check information increment travel information.
Second chooses the inter macroblocks that unit 632 is used for having in the not embedding of obtaining in coding mode modification unit 622 recovering information, chooses the piecemeal that needs to embed check information.
Check information embeds unit 633, and to be used for embedding a check information increment travel information at each piecemeal that need embed check information right.
On the basis of present embodiment technical scheme, the video watermark flush mounting also can comprise by identifier merge module 64.
Be used for embedding in recovering information between end position and the check information embedding starting position by identifier merge module 64, and embedding has in the inter macroblocks of recovering information, embeds by identifier.
Present embodiment embeds by watermark information that the unit is watermarked in the I frame to be protected the I content frame, to generally the distorting of I frame, weight contracts etc., and operation all can make watermark information lose, can know by the watermark of extracting in the I frame is authenticated whether I-frame video is distorted this moment; To embed pre-conditioned number of macroblocks a lot of owing to meet watermark in the I frame, therefore, can be watermarked in the very big zone of image, effectively guarantee to prevent the authentication effect of distorting in the frame of video; Embed the unit to watermarked in the bigger macro block of the value of ac coefficient or the DC coefficient of these macro blocks made amendment by watermark information, help watermark is distributed in the details place (high-frequency region) of video image, make the watermark that is embedded in the video image have good imperception, common decoder can normal play, does not have visual quality problems; In addition, in the jump module of P frame or B frame, embed the recovering information that the I content frame is arranged,, can the watermark that the I frame embeds be wiped, return to not watermarked state according to this recovering information for the legal I-frame video of authentication at the recovering information merge module; Embed the check information of unit watermarked and P content frame in P frame or B frame by check information, operations such as P frame or the B content frame to the embedding check information deleted, modification, also can when watermark extracting, be detected, and can revert to the SKIP pattern by the macroblock encoding pattern that will embed recovering information or check information, thereby can wipe the recovering information or the check information that embed in P frame or the B frame, obtain original video.
Workflow about video watermark flush mounting embodiment of the present invention can repeat no more referring to the record of video watermark embedding grammar embodiment of the present invention and Fig. 1-2.
Fig. 8 is the video watermark erasing apparatus first example structure schematic diagram of the present invention.As shown in Figure 8, present embodiment comprises: watermark information extraction module 81, recovering information extraction module 82 and watermark information are wiped module 83.
Watermark information extraction module 81 is used for extracting the watermark information that embeds at the I frame.
Recovering information extraction module 82 is used for extracting the recovering information that embeds from skipped macroblocks, and described recovering information comprises macro block position information watermarked in the described I frame.
Watermark information is wiped module 83 and is used for wiping the watermark information that embeds the I frame according to watermark information and recovering information.
Present embodiment extracts the recovering information of the I content frame that the watermark that embeds in the video image I frame and recovering information extraction module embed in skipped macroblocks by the watermark information extraction module, and wipe module according to recovering information by watermark information, realize being embedded in the wiping fully of watermark of I frame.
Fig. 9 is the video watermark erasing apparatus second example structure schematic diagram of the present invention.The difference of present embodiment and video watermark erasing apparatus first embodiment of the present invention is, in the present embodiment,
Watermark information extraction module 81 specifically is used for embedding according to watermark pre-conditioned, extracts watermark information successively in satisfying the pre-conditioned piecemeal of watermark embedding.Watermark embeds pre-conditioned can be: the coefficient of piecemeal satisfies relation in the macro block: DC>0, AC 〉=DC/2; Wherein, DC is the DC coefficient of piecemeal, and AC is the ac coefficient of piecemeal.
Recovering information extraction module 82 specifically is used for embedding according to recovering information pre-conditioned, is extracted in the recovering information that embeds in the skipped macroblocks of P frame or B frame; This recovering information embeds pre-conditioned comprising: will be arranged in the middle skipped macroblocks of three skipped macroblocks that same frame occurs continuously, and embed the skipped macroblocks of described recovering information as needs; Wherein, recovering information can be in the I frame watermark location information that changes owing to the watermarked ac coefficient that causes piecemeal.Further, recovering information extraction module 82 can comprise: recovering information increment travel information is to extraction unit 821 and watermark location information acquisition unit 822.
It is the inter macroblocks of skipped macroblocks that recovering information increment travel information is used to search the front and back adjacent macroblocks that same frame comprises to extraction unit 821, and it is right to extract recovering information increment travel information from this inter macroblocks.
Watermark location information acquisition unit 822 is used for according to the watermark of recovering information increment travel information to extracting with the I frame, calculates in the I frame watermark location information that changes owing to the watermarked ac coefficient that causes piecemeal.
In addition, in the present embodiment, watermark information is wiped module 83 and also be can be used for according to watermark information, recovering information and default functional relation, and ac coefficient watermarked in the I frame and the macro block that ac coefficient changes is reverted to former ac coefficient.
Further, present embodiment also can comprise: recover module 87 by identifier extraction module 84, check information extraction module 85, authentication module 86 and macro block.
Being used for searching the front and back adjacent macroblocks that same frame comprises by identifier extraction module 84 is the inter macroblocks of skipped macroblocks, extracts by identifier.
Check information extraction module 85 is used for being positioned at after identifier and the front and back adjacent macroblocks is the inter macroblocks of skipped macroblocks, extracts check information; It is right that this check information can be check information increment travel information.
Authentication module 86 is used for according to the watermark of check information increment travel information to extracting with described I frame, the integrality of authentication P frame or B content frame.
Macro block recover module 87 be used for embedding recovering information is arranged, by the inter macroblocks of identifier or check information, revert to the skipped macroblocks that coding mode is a dancing mode.
Present embodiment extracts the recovering information of watermark that embeds in the video image I frame and the I content frame that embeds in P frame or B frame by the watermark information extraction module, according to recovering information ac coefficient watermarked in the I frame and the macro block that ac coefficient changes is reverted to former ac coefficient, thereby wipe the watermark that is embedded in the I frame; In addition, by extract recovering information, during by identifier or check information, with embedding in P frame or the B frame recovering information arranged, to revert to the SKIP pattern, thereby to wipe the recovering information of the embedding in the P frame, by identifier and check information by the macroblock encoding pattern of identifier or check information; Because the information of the embedding of I frame, P frame and B frame all is wiped free of, therefore can obtain original video.
Workflow about video watermark erasing apparatus embodiment of the present invention can repeat no more referring to the record of video watermark method for deleting embodiment of the present invention and Fig. 4-5.
Figure 10 is a system for processing watermark example structure schematic diagram of the present invention.As shown in figure 10, present embodiment comprises: video watermark flush mounting 101 or video watermark erasing apparatus 102.
Video watermark flush mounting 101 is used for the macro block embed watermark information at the I frame; Embed recovering information in skipped macroblocks, described recovering information comprises macro block position information watermarked in the described I frame.
Video watermark erasing apparatus 102 is used for extracting the watermark information that embeds at the I frame; Extract the recovering information that embeds from skipped macroblocks, described recovering information comprises macro block position information watermarked in the described I frame; Wipe the watermark information that embeds in the described I frame according to described watermark information and recovering information.
Present embodiment is watermarked in the I of video image frame by the video watermark flush mounting, and the I content frame is protected, and effectively guarantees to prevent the authentication effect that the frame internal information is distorted; Maybe can extract the recovering information of watermark that embeds in the video image I frame and the I content frame that in jump, embeds, realize being embedded in the wiping fully of watermark of I frame by the video watermark erasing apparatus.
System for processing watermark embodiment of the present invention can be applicable in the system for processing watermark that comprises the video watermark flush mounting or comprises the system for processing watermark of video watermark erasing apparatus, and comprises in the system for processing watermark of video watermark flush mounting and video watermark erasing apparatus.
Among the system for processing watermark embodiment of the present invention, further refined structure about the video watermark flush mounting can be referring to the record of video watermark flush mounting embodiment of the present invention and Fig. 6-7, and the concrete workflow of video watermark flush mounting can be referring to the record of video watermark embedding grammar embodiment of the present invention and Fig. 1-2; Further refined structure about the video watermark erasing apparatus can be referring to the record of video watermark erasing apparatus embodiment of the present invention and Fig. 8-9, and the concrete workflow of video watermark erasing apparatus can be referring to the record of video watermark method for deleting embodiment of the present invention and Fig. 4-5; Repeat no more.
One of ordinary skill in the art will appreciate that: accompanying drawing is the schematic diagram of a little embodiment, and module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
One of ordinary skill in the art will appreciate that: the module in the device among the embodiment can be described according to embodiment and be distributed in the device of embodiment, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that previous embodiment is put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of embodiment of the invention technical scheme.

Claims (36)

1, a kind of video watermark embedding grammar is characterized in that, comprising:
Embed watermark information in the macro block of I frame;
Embed recovering information in skipped macroblocks, described recovering information comprises macro block position information watermarked in the described I frame.
2, video watermark embedding grammar according to claim 1 is characterized in that, described in the macro block of I frame embed watermark information, comprising:
In described I frame, choose and satisfy the pre-conditioned macro block of watermark embedding;
Embed watermark information in satisfying the pre-conditioned macro block of described watermark embedding.
3, video watermark embedding grammar according to claim 2 is characterized in that,
Described watermark embedding is pre-conditioned to be: the coefficient of piecemeal satisfies relation in the macro block: DC>0, AC 〉=DC/2; Wherein, DC is the DC coefficient of piecemeal, and AC is the ac coefficient of piecemeal;
Describedly embed that embed watermark information comprises in the pre-conditioned macro block satisfying watermark: satisfying watermark and embedding to choose in the pre-conditioned macro block and need watermarked piecemeal;
Watermarked in the watermarked piecemeal of need.
4, video watermark embedding grammar according to claim 3 is characterized in that, described in the watermarked piecemeal of need watermarked comprising:
According to default functional relation, revise the ac coefficient that needs watermarked piecemeal, and amended ac coefficient is write code stream.
5, video watermark embedding grammar according to claim 4 is characterized in that, described recovering information comprises: the watermark location information that changes owing to the watermarked ac coefficient that causes piecemeal in the described I frame.
According to the described arbitrary video watermark embedding grammar of claim 1-5, it is characterized in that 6, the described recovering information that embeds comprises in skipped macroblocks: in P frame or B frame, choose and satisfy the pre-conditioned skipped macroblocks of described recovering information embedding; In satisfying the pre-conditioned skipped macroblocks of described recovering information embedding, embed described recovering information.
7, video watermark embedding grammar according to claim 6 is characterized in that, described recovering information embeds pre-conditioned comprising:
To be arranged in the middle skipped macroblocks of three skipped macroblocks that same frame occurs continuously, embed the skipped macroblocks of described recovering information as needs.
8, video watermark embedding grammar according to claim 7 is characterized in that, describedly embeds and to embed described recovering information in the pre-conditioned macro block satisfying recovering information, comprising:
Described recovering information is carried out run-length encoding, and it is right to form a plurality of recovering information increment travel information;
The described skipped macroblocks that needs to embed recovering information is revised as the inter macroblocks that coding mode is an interframe encoding mode, in each described inter macroblocks, chooses the piecemeal that needs to embed recovering information;
Need embed in the recovering information piecemeal at each that to embed a described recovering information increment travel information right.
9, video watermark embedding grammar according to claim 8 is characterized in that, described satisfy recovering information embed embed described recovering information in the pre-conditioned skipped macroblocks after, also comprise:
Do not embedding the check information that embeds P frame or B content frame in the described inter macroblocks that described recovering information is arranged.
10, video watermark embedding grammar according to claim 9 is characterized in that, the described check information that embeds in not embedding the described inter macroblocks that described recovering information is arranged comprises:
Described check information is carried out run-length encoding, and it is right to form a plurality of check information increment travel information;
Have in the described inter macroblocks of described recovering information not embedding, to choose the piecemeal that needs to embed check information;
Need embed at each that to embed a described check information increment travel information in the piecemeal of check information right.
11, video watermark embedding grammar according to claim 10, it is characterized in that, embedding in described recovering information between end position and the described check information embedding starting position, and embedding has in the described inter macroblocks of described recovering information, embeds by identifier.
12, a kind of video watermark method for deleting is characterized in that, comprising:
In the I frame, extract the watermark information that embeds;
Extract the recovering information that embeds from skipped macroblocks, described recovering information comprises macro block position information watermarked in the described I frame;
Wipe the watermark information that embeds in the described I frame according to described watermark information and recovering information.
13, video watermark method for deleting according to claim 12 is characterized in that, the described watermark information that embeds that extracts in the I frame comprises:
Pre-conditioned according to the watermark embedding, extract the watermark information that embeds in the described I frame.
14, video watermark method for deleting according to claim 13 is characterized in that,
Described watermark embedding is pre-conditioned to be: the coefficient of piecemeal satisfies relation in the macro block: DC>0, AC 〉=DC/2; Wherein, DC is the DC coefficient of piecemeal, and AC is the ac coefficient of piecemeal;
Described according to the watermark information that embeds in the pre-conditioned extraction of the watermark embedding I frame, comprising: in satisfying the pre-conditioned piecemeal of described watermark embedding, extract watermark information successively.
15, video watermark method for deleting according to claim 12 is characterized in that, the described recovering information that embeds of extracting from skipped macroblocks comprises:
Pre-conditioned according to the recovering information embedding, be extracted in the recovering information that embeds in the skipped macroblocks of P frame or B frame.
16, video watermark method for deleting according to claim 15 is characterized in that,
Described recovering information embeds pre-conditioned comprising: will be arranged in the middle skipped macroblocks of three skipped macroblocks that same frame occurs continuously, and embed the skipped macroblocks of described recovering information as needs.
17, video watermark method for deleting according to claim 16 is characterized in that, and is described pre-conditioned according to the recovering information embedding, is extracted in the recovering information that embeds in the skipped macroblocks of P frame or B frame, comprising:
Searching the front and back adjacent macroblocks that same frame comprises is the inter macroblocks of skipped macroblocks, and it is right to extract recovering information increment travel information from described inter macroblocks; According to described recovering information increment travel information to described I frame in the watermark of extracting, calculate in the described I frame watermark location information that changes owing to the watermarked ac coefficient that causes piecemeal.
18, video watermark method for deleting according to claim 17, it is characterized in that, the described watermark information that embeds in the I frame of wiping according to watermark information and recovering information, comprise:, the ac coefficient watermarked and piecemeal that ac coefficient changes in the described I frame is reverted to former ac coefficient according to described watermark information, recovering information and default functional relation.
19, video watermark method for deleting according to claim 17 is characterized in that, described extraction recovering information increment travel information to after, also comprise:
Searching the front and back adjacent macroblocks that same frame comprises is in the inter macroblocks of skipped macroblocks, extracts by identifier;
Be arranged in described after the identifier and the front and back adjacent macroblocks be the inter macroblocks of skipped macroblocks, extract check information; Described check information is that check information increment travel information is right;
According to described check information increment travel information to described I frame in the watermark of extracting, the integrality of authentication P frame or B content frame.
20, video watermark method for deleting according to claim 19, it is characterized in that, at described P frame or B content frame by after the integrated authentication, also comprise: the inter macroblocks with embedding has described recovering information, ends identifier or check information reverts to the skipped macroblocks that coding mode is a dancing mode.
21, a kind of video watermark flush mounting is characterized in that, comprising:
The watermark information merge module is used for the macro block embed watermark information at the I frame;
The recovering information merge module is used for embedding recovering information at skipped macroblocks, and described recovering information comprises macro block position information watermarked in the described I frame.
22, video watermark flush mounting according to claim 21 is characterized in that, described watermark information merge module comprises:
First chooses the unit, is used for choosing at described I frame satisfying watermark and embedding pre-conditioned macro block;
Watermark information embeds the unit, is used for satisfying the pre-conditioned macro block embed watermark information of described watermark embedding.
23, video watermark flush mounting according to claim 22 is characterized in that,
Described watermark embedding is pre-conditioned to be: the coefficient of piecemeal satisfies relation in the macro block: DC>0, AC 〉=DC/2; Wherein, DC is the DC coefficient of piecemeal, and AC is the ac coefficient of piecemeal;
Described watermark information embeds the unit and specifically is used for revising the ac coefficient of the piecemeal that needs embed watermark information according to default functional relation, and amended ac coefficient is write code stream.
24, according to the described arbitrary video watermark flush mounting of claim 21-23, it is characterized in that,
Described recovering information merge module specifically is used for choosing at P frame or B frame and satisfies described recovering information and embed pre-conditioned skipped macroblocks; In satisfying the pre-conditioned skipped macroblocks of described recovering information embedding, embed described recovering information.
25, video watermark flush mounting according to claim 24, it is characterized in that, described recovering information embeds pre-conditioned comprising: will be arranged in the middle skipped macroblocks of three skipped macroblocks that same frame occurs continuously, and embed the skipped macroblocks of described recovering information as needs;
Described recovering information merge module comprises:
First generation unit is used for described recovering information is carried out run-length encoding, and it is right to form a plurality of recovering information increment travel information;
Coding mode is revised the unit, is used for the described skipped macroblocks that needs to embed recovering information is revised as the inter macroblocks that coding mode is an interframe encoding mode;
Recovering information embeds the unit, is used for choosing the piecemeal that needs to embed recovering information in each described inter macroblocks, need embed at each that to embed a described recovering information increment travel information in the recovering information piecemeal right.
26, video watermark flush mounting according to claim 25 is characterized in that, also comprises:
The check information merge module is used for not embedding the described inter macroblocks that described recovering information is arranged, and embeds the check information of P frame or B content frame.
27, video watermark flush mounting according to claim 26 is characterized in that, described check information merge module comprises:
Second generation unit is used for the verification watermark information that need embed is carried out run-length encoding, and it is right to form a plurality of check information increment travel information;
Second chooses the unit, is used for choosing the piecemeal that needs to embed check information not embedding the described inter macroblocks that described recovering information is arranged;
Check information embeds the unit, and it is right to be used for embedding a described check information increment travel information at each piecemeal that need embed check information.
28, video watermark flush mounting according to claim 27 is characterized in that, also comprises:
By the identifier merge module, be used for embedding in described recovering information between end position and the described check information embedding starting position, and embedding has in the described inter macroblocks of described recovering information, embeds by identifier.
29, a kind of video watermark erasing apparatus is characterized in that, comprising:
The watermark information extraction module is used for extracting the watermark information that embeds at the I frame;
The recovering information extraction module is used for extracting the recovering information that embeds from skipped macroblocks, and described recovering information comprises macro block position information watermarked in the described I frame;
Watermark information is wiped module, is used for wiping the watermark information that embeds described I frame according to described watermark information and recovering information.
30, video watermark erasing apparatus according to claim 29 is characterized in that, described watermark information extraction module specifically is used for embedding according to watermark pre-conditioned, extracts watermark information successively in satisfying the pre-conditioned piecemeal of described watermark embedding; Described watermark embedding is pre-conditioned to be: the coefficient of piecemeal satisfies relation in the macro block: DC>0, AC 〉=DC/2; Wherein, DC is the DC coefficient of piecemeal, and AC is the ac coefficient of piecemeal.
31, video watermark erasing apparatus according to claim 29 is characterized in that, described recovering information extraction module specifically is used for embedding according to recovering information pre-conditioned, is extracted in the recovering information that embeds in the skipped macroblocks of P frame or B frame; Described recovering information embeds pre-conditioned comprising: will be arranged in the middle skipped macroblocks of three skipped macroblocks that same frame occurs continuously, and embed the skipped macroblocks of described recovering information as needs; Described recovering information comprises in the described I frame watermark location information that changes owing to the watermarked ac coefficient that causes piecemeal.
32, video watermark erasing apparatus according to claim 31 is characterized in that, described recovering information extraction module comprises:
Recovering information increment travel information is to extraction unit, and being used to search the front and back adjacent macroblocks that same frame comprises is the inter macroblocks of skipped macroblocks, and it is right to extract recovering information increment travel information from described inter macroblocks;
The watermark location information acquisition unit is used for according to the watermark of described recovering information increment travel information to extracting with described I frame, calculates in the described I frame watermark location information that changes owing to the watermarked ac coefficient that causes piecemeal.
33, video watermark erasing apparatus according to claim 32, it is characterized in that, described watermark information is wiped module and specifically is used for according to described watermark information, recovering information and default functional relation, and the ac coefficient watermarked and piecemeal that ac coefficient changes in the described I frame is reverted to former ac coefficient.
34, video watermark erasing apparatus according to claim 33 is characterized in that, also comprises:
By the identifier extraction module, being used for searching the front and back adjacent macroblocks that same frame comprises is the inter macroblocks of skipped macroblocks, extracts by identifier;
The check information extraction module, be used for be positioned at described after the identifier and the front and back adjacent macroblocks be the inter macroblocks of skipped macroblocks, extract check information; Described check information is that check information increment travel information is right;
Authentication module is used for according to the watermark of described check information increment travel information to extracting with described I frame, the integrality of authentication P frame or B content frame.
35, video watermark erasing apparatus according to claim 34 is characterized in that, also comprises:
Macro block recovers module, be used for embedding described recovering information is arranged, by the inter macroblocks of identifier or check information, revert to the skipped macroblocks that coding mode is a dancing mode.
36, a kind of system for processing watermark is characterized in that, comprising:
The video watermark flush mounting is used for the macro block embed watermark information at the I frame; Embed recovering information in skipped macroblocks, described recovering information comprises macro block position information watermarked in the described I frame; Or
The video watermark erasing apparatus is used for extracting the watermark information that embeds at the I frame; Extract the recovering information that embeds from skipped macroblocks, described recovering information comprises macro block position information watermarked in the described I frame; Wipe the watermark information that embeds in the described I frame according to described watermark information and recovering information.
CN2008101169882A 2008-07-22 2008-07-22 Method and apparatus for embedding and erasing video watermark as well as system for processing watermark Expired - Fee Related CN101330611B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101169882A CN101330611B (en) 2008-07-22 2008-07-22 Method and apparatus for embedding and erasing video watermark as well as system for processing watermark

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101169882A CN101330611B (en) 2008-07-22 2008-07-22 Method and apparatus for embedding and erasing video watermark as well as system for processing watermark

Publications (2)

Publication Number Publication Date
CN101330611A true CN101330611A (en) 2008-12-24
CN101330611B CN101330611B (en) 2011-08-24

Family

ID=40206167

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101169882A Expired - Fee Related CN101330611B (en) 2008-07-22 2008-07-22 Method and apparatus for embedding and erasing video watermark as well as system for processing watermark

Country Status (1)

Country Link
CN (1) CN101330611B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572609A (en) * 2010-12-08 2012-07-11 中国科学院声学研究所 Video integrity authentication method in embedded system
CN102946531A (en) * 2012-08-24 2013-02-27 南京大学 GOP (group of picture) frame structure combined video watermarking method and system
CN104424950A (en) * 2013-09-03 2015-03-18 承芯微电子股份有限公司 High frequency sound signal coding and decoding technique and system
CN105049929A (en) * 2015-08-11 2015-11-11 广东欧珀移动通信有限公司 Method and device for video rendering
CN106296593A (en) * 2015-05-29 2017-01-04 腾讯科技(深圳)有限公司 Image recovery method and device
CN110418209A (en) * 2019-06-24 2019-11-05 华为技术有限公司 A kind of information processing method and terminal device applied to transmission of video
CN111836053A (en) * 2019-04-18 2020-10-27 上海动悦网络科技有限公司 Video encryption anti-theft system and method based on user information
CN116095331A (en) * 2023-03-03 2023-05-09 浙江大华技术股份有限公司 Encoding method and decoding method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4456185B2 (en) * 1997-08-29 2010-04-28 富士通株式会社 Visible watermarked video recording medium with copy protection function and its creation / detection and recording / playback device
US6208745B1 (en) * 1997-12-30 2001-03-27 Sarnoff Corporation Method and apparatus for imbedding a watermark into a bitstream representation of a digital image sequence

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572609A (en) * 2010-12-08 2012-07-11 中国科学院声学研究所 Video integrity authentication method in embedded system
CN102572609B (en) * 2010-12-08 2014-10-08 中国科学院声学研究所 Video integrity authentication method in embedded system
CN102946531A (en) * 2012-08-24 2013-02-27 南京大学 GOP (group of picture) frame structure combined video watermarking method and system
CN104424950A (en) * 2013-09-03 2015-03-18 承芯微电子股份有限公司 High frequency sound signal coding and decoding technique and system
CN104424950B (en) * 2013-09-03 2017-09-29 承芯微电子股份有限公司 High frequency sound signal coding and decoding system and method
CN106296593A (en) * 2015-05-29 2017-01-04 腾讯科技(深圳)有限公司 Image recovery method and device
CN105049929A (en) * 2015-08-11 2015-11-11 广东欧珀移动通信有限公司 Method and device for video rendering
CN111836053A (en) * 2019-04-18 2020-10-27 上海动悦网络科技有限公司 Video encryption anti-theft system and method based on user information
CN110418209A (en) * 2019-06-24 2019-11-05 华为技术有限公司 A kind of information processing method and terminal device applied to transmission of video
CN110418209B (en) * 2019-06-24 2021-07-20 荣耀终端有限公司 Information processing method applied to video transmission and terminal equipment
CN116095331A (en) * 2023-03-03 2023-05-09 浙江大华技术股份有限公司 Encoding method and decoding method

Also Published As

Publication number Publication date
CN101330611B (en) 2011-08-24

Similar Documents

Publication Publication Date Title
CN101330611B (en) Method and apparatus for embedding and erasing video watermark as well as system for processing watermark
CA2689634C (en) Modifying a coded bitstream
US7630512B2 (en) Method for performing recoverable video and image watermarking which survives block-based video and image compression
US7965858B2 (en) Data processing apparatus and method
US8254702B2 (en) Image compression method and image processing apparatus
CN1832001A (en) Recorded video broadcast, streaming, download, and disk distribution with watermarking instructions
CN103404146A (en) Video file repairing method and device
EP2960855B1 (en) Method and device for determining a set of modifiable elements in a group of pictures
Korus et al. Towards practical self-embedding for JPEG-compressed digital images
CN104246773A (en) Identifying parameter sets in video files
CN107318022B (en) video steganography method based on H.265 standard undistorted drift
RU2434356C2 (en) Creating watermarks in coded information content
CN105681803A (en) High capacity HEVC video information hiding method
Ye et al. A new adaptive watermarking for real-time MPEG videos
CN104902281B (en) A kind of information concealing method of the HEVC videos based on Hamming code+1
US8848791B2 (en) Compressed domain video watermarking
US20060268989A1 (en) Bit stream generation method and bit stream generatation apparatus
CN108024114B (en) High-capacity lossless HEVC information hiding method based on flag bit parameter modification
JP4945541B2 (en) Digital watermark embedding detection method using degraded host signal
TWI704798B (en) Dynamic image prediction and decoding method
CN104053017A (en) Forensics In Multi-channel Media Content
CN114598887A (en) Anti-recompression video watermarking method for controlling bit rate increase
Yang et al. High-capacity adaptive steganography based on transform coefficient for HEVC
TWI552573B (en) Coding of video and audio with initialization fragments
Wang A blind mpeg-2 video watermarking robust to regular geometric attacks

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110824

Termination date: 20180722

CF01 Termination of patent right due to non-payment of annual fee