CN107749990A - A kind of video copyright protecting method and device based on digital watermarking - Google Patents

A kind of video copyright protecting method and device based on digital watermarking Download PDF

Info

Publication number
CN107749990A
CN107749990A CN201710889895.2A CN201710889895A CN107749990A CN 107749990 A CN107749990 A CN 107749990A CN 201710889895 A CN201710889895 A CN 201710889895A CN 107749990 A CN107749990 A CN 107749990A
Authority
CN
China
Prior art keywords
video
watermark
information
watermark information
embedded
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
CN201710889895.2A
Other languages
Chinese (zh)
Other versions
CN107749990B (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.)
Shenzhen University
Original Assignee
Shenzhen 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 Shenzhen University filed Critical Shenzhen University
Priority to CN201710889895.2A priority Critical patent/CN107749990B/en
Publication of CN107749990A publication Critical patent/CN107749990A/en
Application granted granted Critical
Publication of CN107749990B publication Critical patent/CN107749990B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/20Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video object coding
    • H04N19/23Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video object coding with coding of regions that are present throughout a whole video segment, e.g. sprites, background or mosaic
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/40Analysis of texture
    • G06T7/41Analysis of texture based on statistical description of texture
    • G06T7/44Analysis of texture based on statistical description of texture using image operators, e.g. filters, edge density metrics or local histograms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • H04N19/467Embedding additional information in the video signal during the compression process characterised by the embedded information being invisible, e.g. watermarking

Abstract

The invention discloses a kind of video copyright protecting method and device based on digital watermarking, methods described includes:The first video file of watermark information to be embedded is obtained, and uses default decoding process to decode first video file to obtain at least one video-frequency band;Default watermark information is embedded in by the video-frequency band using the method for histogram;Video coding is re-started to the video-frequency band of embedded watermark information, to obtain being embedded in the second video file of watermark information.The present invention embedded sightless watermark copyright information at least one video-frequency band of video by the method for histogram, ensure that the visual quality of embedded rear video;And it can be contracted in video through weight, extract complete copyright information after the processing such as geometric transformation, ensure that the robustness of scheme, there is good copy protection effect.

Description

A kind of video copyright protecting method and device based on digital watermarking
Technical field
The present invention relates to technical field of video processing, more particularly to a kind of video copyright protecting method based on digital watermarking And device.
Background technology
Along with the development of internet, compression and mechanics of communication, digital video application is in our daily lifes and work Play more and more important role.For example internet television substitutes traditional tv to enter into huge numbers of families, form New TV media spreads broadcast mode.In addition, the fast-developing of these industries such as news media, Active-Movie also all be unable to do without number Word video technique supports.But thing followed infringement of copyright problem also brings huge damage to content supplier and terminal user Lose.Individual Web sites may provide video content in the case of without permission to terminal user, and collect illegal charges.Therefore, The copyright of video product that content supplier is provided is protected there is an urgent need to a kind of technology.In this context, video watermark skill Art starts to receive significant attention.The technology is carried out intentional by being embedded in invisible information in video to carrier video The mark of justice, can extract embedded information to represent the copyright owner of video when needing from video, so as to Reach the purpose of protection video copy.
Video watermark technology for copyright protection must have the robustness of resistance common video processing, to ensure to be embedded into Copyright information in video will not be lost easily.However, the processing operation for video is relatively more, for example, weight contracting, resolution ratio The operation such as conversion and snippet extraction, they can all have an impact to the robustness of watermarking project.Therefore resist at these videos Reason operation robustness height turns into one critically important technical indicator of video watermark.In addition, another technical indicator is Ensure that the visual quality of embedded watermark rear video is still higher, also referred to as the invisibility of watermark.Robustness and can not Opinion property is typically conflicting, can not take into account the problem of.If increase watermark embedment strength can no doubt improve the Shandong of watermark Rod, but invisible and host image quality can be reduced;And increase watermark channels capacity, bury the watermark letter of excessive bit Breath, then watermark is easily set to be easier, by degenerating or attack is influenceed, to reduce the robustness of watermark.Therefore, how water is taken into account The robustness and invisibility of print turn into technical problem urgently to be resolved hurrily.
Thus prior art could be improved and improve.
The content of the invention
In view of the deficiencies in the prior art, the present invention be to provide for a kind of video copyright protecting method based on digital watermarking and Device, by being embedded in video sightless and protection video copy can have been reached by the copyright information of complete extraction Purpose.
In order to solve the above-mentioned technical problem, the technical solution adopted in the present invention is as follows:
A kind of video copyright protecting method based on digital watermarking, it includes watermark telescopiny, the watermark telescopiny tool Body includes:
Obtain the first video file of watermark information to be embedded, and use default decoding process decode first video file with Obtain at least one video-frequency band;
Default watermark information is embedded in by the video-frequency band using the method for histogram;
Video coding is re-started to the video-frequency band of embedded watermark information, to obtain being embedded in the second video file of watermark information.
The video copyright protecting method based on digital watermarking, wherein, it is described to obtain the first of watermark information to be embedded Video file, and use default decoding process to decode first video file to obtain including before at least one video-frequency band:
The copyright information of first video file is obtained, and default watermark information is generated according to the copyright information, wherein, institute It is watermark bit string to state default watermark information.
The video copyright protecting method based on digital watermarking, wherein, the version for obtaining first video file Information is weighed, and default watermark information is generated according to the copyright information and specifically included:
The copyright information of first video file is obtained, and binary coding is carried out to the copyright information to generate binary system Copyright information;
Error Correction of Coding is carried out to generate error correction sequence to the binary system copyright information, and insert in error correction sequence synchronous code with Obtain default watermark information.
The video copyright protecting method based on digital watermarking, wherein, it is described to obtain the first of watermark information to be embedded Video file, and use default decoding process to decode first video file and specifically included with obtaining at least one video-frequency band:
Obtain default starting every IDR frame position and terminate every IDR frame position, and choose starting every IDR frame position and terminate every IDR frame position Between video-frequency band;
Video-frequency band using the video-frequency band of selection as the first video file watermark information to be embedded, and decode the video Section.
The video copyright protecting method based on digital watermarking, wherein, the method using histogram is by default water The embedded video-frequency band of official seal breath specifically includes:
Default watermark information is divided into some sub- watermark informations, and chooses in video-frequency band and is regarded corresponding to every sub- watermark information Frequency frame;
Every sub- watermark information is embedded in corresponding frame of video using the method for histogram.
The video copyright protecting method based on digital watermarking, wherein, the method using histogram will be per height Watermark information is embedded in corresponding frame of video and specifically included:
The region of frame of video watermark information to be embedded is obtained, and is divided the histogram in the region according to sub- watermark information For several bin pairs;
Adjustment each pair bin height relation is to cause sub- watermark information to be embedded in the frame of video.
The described video copyright protecting method based on digital watermarking, it also includes watermark extraction process;The watermark carries Process is taken to specifically include:
The second video file of watermark information to be extracted is determined, and video decoding is carried out to second video file;
The watermark information carried in decoded second video file is extracted, and determines that described second regards according to the watermark information The copyright information of frequency file, to be protected to second video file.
The described video copyright protecting method based on digital watermarking, wherein, the decoded second video text of extraction The watermark information carried in part, and the copyright information of second video file is determined according to the watermark information, with to described Second video file is protected specially:
Using all frame of video of the second video file after the method detection decoding based on State Transformer, and extract what is detected Watermark information;
The watermark information is compared with default watermark information, to judge whether carry copyright in second video file Information;
If not carrying copyright information in second video file, pirate early warning is produced.
A kind of storage medium, it is stored with a plurality of instruction, and the instruction is suitable to be loaded by processor and performed as above any The described video copyright protecting method based on digital watermarking.
A kind of video copyright protecting device based on digital watermarking, it includes:
Processor, it is adapted for carrying out each instruction;And
Storage device, suitable for storing a plurality of instruction, the instruction is suitable to be loaded by processor and performed as above any described base In the video copyright protecting method of digital watermarking.
Beneficial effect:Compared with prior art, the invention provides a kind of video copyright protecting side based on digital watermarking Method and device, methods described include:The first video file of watermark information to be embedded is obtained, and is decoded using default decoding process First video file is to obtain at least one video-frequency band;Method using histogram will regard described in the insertion of default watermark information Frequency range;Video coding is re-started to the video-frequency band of embedded watermark information, to obtain being embedded in the second video file of watermark information. The present invention embedded sightless watermark copyright information at least one video-frequency band of video by the method for histogram, ensure that embedding Enter the visual quality of rear video;And it can be contracted in video through weight, extract complete copyright letter after the processing such as geometric transformation Breath, ensure that the robustness of scheme, has good copy protection effect.
Brief description of the drawings
Fig. 1 is the preferable reality of watermark telescopiny in the video copyright protecting method provided by the invention based on digital watermarking Apply the flow chart of example.
Before Histogram adjustments of the Fig. 2 for frame of video in the video copyright protecting method provided by the invention based on digital watermarking Schematic diagram.
After Histogram adjustments of the Fig. 3 for frame of video in the video copyright protecting method provided by the invention based on digital watermarking Schematic diagram.
Fig. 4 is the preferable reality of watermark extraction process in the video copyright protecting method provided by the invention based on digital watermarking Apply the flow chart of example.
Fig. 5 is the schematic diagram of State Transformer in extraction process.
Fig. 6 is the structural principle of the video copyright protecting device preferred embodiment provided by the invention based on digital watermarking Figure.
Embodiment
The present invention provides a kind of video copyright protecting method and device based on digital watermarking, for make the purpose of the present invention, Technical scheme and effect are clearer, clear and definite, and the present invention is described in more detail for the embodiment that develops simultaneously referring to the drawings.Should Understand, specific embodiment described herein only to explain the present invention, is not intended to limit the present invention.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " one " used herein, " one It is individual ", " described " and "the" may also comprise plural form.It is to be further understood that what is used in the specification of the present invention arranges Diction " comprising " refer to the feature, integer, step, operation, element and/or component be present, but it is not excluded that in the presence of or addition One or more other features, integer, step, operation, element, component and/or their groups.It should be understood that when we claim member Part is " connected " or during " coupled " to another element, and it can be directly connected or coupled to other elements, or there may also be Intermediary element.In addition, " connection " used herein or " coupling " can include wireless connection or wireless coupling.It is used herein to arrange Taking leave "and/or" includes whole or any cell and all combinations of one or more associated list items.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art Language and scientific terminology), there is the general understanding identical meaning with the those of ordinary skill in art of the present invention.Should also Understand, those terms defined in such as general dictionary, it should be understood that have with the context of prior art The consistent meaning of meaning, and unless by specific definitions as here, idealization or the implication of overly formal otherwise will not be used To explain.
Below in conjunction with the accompanying drawings, by the description to embodiment, the content of the invention is described further.
The invention provides a kind of video copyright protecting method based on digital watermarking, it includes watermark telescopiny, such as Described in Fig. 1, the watermark telescopiny specifically includes:
S100, the first video file for obtaining watermark information to be embedded, and first video is decoded using default decoding process File is to obtain at least one video-frequency band;
S200, default watermark information is embedded in by the video-frequency band using the method for histogram;
S300, the video-frequency band to embedded watermark information re-start Video coding, to obtain being embedded in the second video of watermark information File.
The invention provides a kind of video copyright protecting method and device based on digital watermarking, methods described includes:Obtain Take the first video file of watermark information to be embedded, and use default decoding process to decode first video file with obtain to A few video-frequency band;Default watermark information is embedded in by the video-frequency band using the method for histogram;Embedded watermark information is regarded Frequency range re-starts Video coding, to obtain being embedded in the second video file of watermark information.The method that the present invention passes through histogram Embedded sightless watermark copyright information, ensure that the visual quality of embedded rear video at least one video-frequency band of video;And And can be contracted in video through weight, extract complete copyright information after the processing such as geometric transformation, the robustness of scheme is ensure that, With good copy protection effect.
Specifically, in the step S100, the default decoding process can be that IDR sections decode, that is, decode From predetermined start every IDR frame position(All without necessarily referring to the frame before every IDR frame during the later all frame decodings of every IDR frame)Open Begin, terminate to default end every IDR frame position, middle all frames are all decoded, the default starting every IDR frame position and default Terminate every IDR frame position can be determined in advance by user or the first video file in carry.In addition, the default solution Code mode can also be I frame decodings, i.e., only the I frames in decoding special time period, the special time period are pre-set.One As for, the default starting every IDR frame position and it is default to terminate every IDR frame position can be respectively multiple, so to described first Video file, which carries out decoding, can obtain multiple video-frequency bands, so when the first video file is by modification or shearing, Ke Yiti Height gets the probability of complete copyright information, improves the robustness of watermark insertion.
In the present embodiment, the default decoding process decodes for IDR sections, can so improve the robust of watermark insertion Property.I.e. described the first video file for obtaining watermark information to be embedded, and first video is decoded using default decoding process File is specifically included with obtaining at least one video-frequency band;
S101, obtain default starting every IDR frame position and terminate every IDR frame position, and choose starting every IDR frame position and terminate IDR Video-frequency band between frame position;
S102, the video-frequency band using the video-frequency band of selection as the first video file watermark information to be embedded, and described in decoding Video-frequency band.
In the variant embodiment of the present invention, the default decoding process is I frame decoding modes, can so be ensured higher The efficiency that watermark is embedded and detection speed, improves watermark insertion.
Further, the watermark information is the copyright information generation previously according to first video file, that is, is being solved Need obtaining the first video file of watermark information to be embedded before first video file of the code watermark information to be embedded While, copyright information corresponding to first video file is obtained, and default watermark information is generated according to the copyright information, And the default watermark information is watermark bit string.
Exemplary, first video file for obtaining watermark information to be embedded, and decoded using default decoding process First video file is specifically included before with obtaining at least one video-frequency band:
S10, the copyright information for obtaining first video file, and binary coding is carried out to the copyright information to generate two System copyright information;
S20, Error Correction of Coding is carried out to the binary system copyright information to generate error correction sequence, and inserted synchronously in error correction sequence Code is to obtain default watermark information.
Specifically, in the step S10, the copyright information synchronous with first video file can obtain Or user input.Here by the copyright information by being illustrated exemplified by synchronously acquiring.Namely Say, being got while the first video file is obtained needs embedded copyright information, and carries out two to the copyright information and enter System coding represents copyright information to obtain binary system copyright information using binary bits string.And in actual applications, in order to Coding is to the copyright information and then repeats to number, and the copyright information of acquisition can be judged, judges the copyright letter obtained Whether breath is binary bits string;If it is not, then the copyright information is encoded;If it is, not to the copyright Information is encoded, directly using the binary system copyright information obtained.
In order to describe the copyright information of the binary bits string mark in detail, a concrete example is given below and is said It is bright.For example, the copyright information includes user conversation ID and reproduction time, the user conversation ID can use the two of 35-40 bits System string represents(It is enough to support 32 hundred million to 1,000 hundred million users), and reproduction time is represented with 36 bit-binary strings, wherein, 36 bit-binary strings include year:10 bits, the moon:4 bits, day:5 bits, when:5 bits, point:6 bits, second:6 bits.It is described Not over 80 bits, that is, the binary bits string for the copyright information for needing to be embedded into the first video file is less than copyright information 80 bits.
Further, in the step S20, Error Correction of Coding, generation are carried out to the copyright information that binary bits string represents Error correction sequence, to improve the robustness of watermark, especially for the robustness of video again squeeze operation.The method of coding can wrap Include but be not limited to hamming code, Bose-Chaudhuri-Hocquenghem Code etc..By taking Bose-Chaudhuri-Hocquenghem Code as an example, 80 bits that will can be mentioned in above-described embodiment Copyright information string encoding into 255 bits error correction sequence.
Then, Bit String of the insertion as synchronous code in error correction sequence, generates the watermark bit string.The synchronous code For demarcating the embedded location of error correction sequence in video, prevent from detecting after video experienced the operations such as frame deletion, frame addition End can not synchronously detect watermark, therefore improve the robustness of the anti-desynchronization attack of watermark.The insertion of the synchronous code has two Kind embodiment, the first embodiment are interval inserted mode, i.e., the consolidating every m bits insertion n-bit in error correction sequence Determine synchronous code, for example, a kind of synchronous sequence be 10101010 ... continuous 15 bit, every 5 bits error correction sequence insert 15 than this fixation synchronous sequence.Second of embodiment is the first inserted mode, i.e. only beginning in error correction sequence and knot Tail inserts synchronous sequence.For example, continuous 15 bit, ended up in error correction sequence beginning insertion 10101 ... in error correction sequence Another synchronous sequence of insertion, which is 010101 ... continuous 15 bit, represents that error correction sequence terminates.Identical can also be used synchronous Sequence, such as 101010 ..., are inserted into the beginning and end of all error correction sequences at continuous 15 bit.Finally it may be noted that 255 bits Error correction sequence and required insertion synchronous sequence after frame of video is embedded into, if it is desired to further improve robustness, also Can be with loop modification subsequent frame after from the beginning embedded watermark information string.Accordingly even when the video of one section of embedded watermark is because under attack Handle and lost wherein embedded watermark, for example be directly cut up, test side still can be in the video-frequency band of other reservations Extract watermark.
Further, it is described that watermark information is embedded into watermark information in video-frequency band specifically in the step S200 If stem portion is divided into, and in the frame of video that each section is embedded into video-frequency band.Exemplary, it is described to use Nogata Default watermark information is embedded in each video block and specifically included by the method for figure:
S201, default watermark information is divided into some sub- watermark informations, and every sub- watermark information pair is chosen in video-frequency band The frame of video answered;
S202, using the method for histogram every sub- watermark information is embedded in corresponding frame of video.
Specifically, it is described that the division of default watermark information is divided into some sub- watermark informations and referred in the step S201 Be that the watermark bit string of default watermark information is divided into several substrings, i.e., sub- watermark information, then each substring is embedded in Into the default frame of video of video-frequency band.The choosing method of the video of the sub- watermark information of insertion can using random number carry out with Machine is chosen, the methods of can also choosing all I frames.
In embodiment, the default decoding process decodes for IDR sections, accordingly, the sub- watermark information of insertion The choosing method of video can be:The I frames of selecting video section, and the error correction sequence of 5 bits is embedded in each I frames, secondly select 3 P/B frames of the first I frame front and continueds are taken, and are embedded in the synchronous sequence of 15 bits altogether in 3 P/B frames of its front and continued.In the present embodiment Variant embodiment in, the default decoding process is I frame decodings, then chooses first three I frame first, and in first three I frame The synchronous sequence of 15 bits is embedded in altogether, and follow-up each I frames are embedded in the error correction sequence of 5 bits.
Further, when the frame of video in video-frequency band is more, i.e., regarded when all synchronous sequence and error correction sequence are all embedded into When in frequency frame, when still suffering from the I frames for being not embedded into watermark information, follow-up frame of video repetitive watermark embedding operation can be circulated Embedded watermark is until the embedded watermark information of all I frames of frequency locking section.Accordingly even when the watermark bit string that one section of video is embedded in is lost Lose, the information hidden can also be extracted in other end videos, improve the overall robustness of watermarking project.
Further, in the step S202, after every frame specific watermark bit string to be inserted is determined, the watermark Bit String is embedded in by changing the pixel histogram of decoded frame of video.Either error correction sequence or synchronous code String, telescopiny in each frame is all as described below.
Exemplary, every sub- watermark information is embedded in corresponding frame of video and specifically wrapped by the method using histogram Include:
S201, the region for obtaining the frame of video watermark information to be embedded, and according to sub- watermark information by the Nogata in the region Figure is divided into several bin pairs;
S202, adjustment each pair bin height relation are to cause sub- watermark information to be embedded in the frame of video.
Specifically, in the step S201, the region of the acquisition frame of video watermark information to be embedded is specially To the frame of video of the watermark information to be embedded(It is designated as F)Handled, frame of video F is distinguished into embedding according to default processing method Enter watermark region Fl and non-embedded watermark region Fh.In an embodiment of the invention, the default processing method filtration method, Processing is filtered to image corresponding to frame of video F using LPF, low-pass component and the high reduction of fractions to a common denominator are obtained after filtering process Amount, wherein, low-pass component is embedded in region as watermark, and high pass component is that non-watermark is embedded in region, and it is constant to retain its.In this implementation In example, the filtering method is using gaussian filtering.Certainly, in actual applications, the filtering method can also use it His filtering method, does not just illustrate one by one here.In another embodiment of the present invention, the default processing method is use In the method for picture centre strokes and dots circle, wherein, circle inner region is watermark insertion region, and outer circle domain is non-watermark insertion region. In addition, in other embodiments of the invention, the method for above-mentioned two embodiment can be combined with using, i.e., by low-pass component Fl Circle inner region as watermark be embedded in region, other regions all keep constant.In addition, in an alternative embodiment of the invention In, the default processing method can also be using feature point detection method, feature point detection technology can use as SIFT, The ripe algorithms such as SURF.After characteristic point is found, the region in the range of characteristic point is embedded in region, feature point range as watermark Outer region is as unsuitable embedded region.
Further, it is described that the histogram in the region is divided into being specifically more by several bin according to sub- watermark information The pixel histogram of the watermark insertion region Fl is adjusted, and specific bin pairs of height is disclosure satisfy that expression watermark information Particular kind of relationship.The specific bin is to can be two adjacent bin pairs, or two bin pairs in particular range of distance. In one embodiment disclosed in the following description of the invention, using two adjacent bin pairs.Specifically, the equal of Fl is calculated first Value, scope of the pixel set of entire image available for the bin for hiding watermark is calculated using following formula:
Wherein, du is the upper bound of pixel value, and dl is the lower bound of pixel value, and δ is control parameter.Ceil represents flow in upper plenum, and Floor represents lower bracket function.
Then watermark bit number Nw embedded in frame F determines bin number of Fl histogram as needed.With public affairs Formula is expressed as:
Because representing a bit watermark with two bin height, bin number is to need embedded watermark bit number Two extraordinarily one.After obtaining these parameters, we can calculate the histogram between [dl, du], and ensure that it has Individual bin.Specifically, [dl, du] is evenly dividing intoIndividual subinterval, the width in each subinterval is nInterval. Obviously,
Then statistical pixel values fall into the number of the pixel in each subinterval.According toDefinition, Nw pairs can be obtained altogether bin。
Further, in the step S202, as shown in Figures 2 and 3, for each bin pairs, that is, pixel value belongs to The pixel in one subinterval is modified according to both modes.
First way is, it is necessary to which embedded watermark bit is equal to 1
By left side bin and the ratio of right side bin height compared with predetermined threshold value T, if height ratio is more than specific threshold T, then it is without any changes;And if height ratio is less than T, then AA pixel affiliated in the adjacent bin in right side is all cut into institute Subinterval width nInterval is stated, this AA pixel is all shifted in new histogram in current bin.It is so that current Bin and the adjacent bin in its right side height ratio are more than threshold value T.
The second way is, it is necessary to which embedded watermark bit is equal to 0
By left side bin and the ratio of right side bin height compared with predetermined threshold value T, if height ratio is less than specific threshold T, then it is without any changes;And if height ratio is more than T, then the value of AA pixel affiliated in current bin is all added into institute Subinterval width nInterval is stated, this AA pixel is all shifted in new histogram in the adjacent bin in right side.So that Current bin and the adjacent bin in its right side height ratio are less than threshold value T.
Further, the calculation formula of the AA can be expressed as:
AA=ceil((T*a-b)/(1-T))
Wherein, a and b is the number of pixel in current bin and its right side bin respectively.
Finally, image high pass component Fh is added with amended low-pass component Fl, obtains being embedded in regarding after watermark Frequency frame.
Present invention also offers a kind of video copyright protecting method based on digital watermarking, and it also includes watermark extracting mistake Journey;As shown in figure 4, the watermark extraction process specifically includes:
S400, the second video file for determining watermark information to be extracted, and video decoding is carried out to second video file;
The watermark information carried in S500, decoded second video file of extraction, and according to determining the watermark information The copyright information of second video file, to be protected to second video file.
Specifically, the watermark information carried in decoded second video file of extraction is specifically turned using based on state All frame of video of second video file after the method detection decoding changed planes.The root that early warning is carried out to the second video file and is referred to Determine whether to generate pirate early warning according to copyright information.Accordingly, the water carried in decoded second video file of extraction Official seal is ceased, and the copyright information of second video file is determined according to the watermark information, with to second video file Protection is carried out to specifically include:
S501, all frame of video using the second video file after the method detection decoding based on State Transformer, and extract inspection The watermark information measured;
S502, the watermark information is compared with default watermark information, to judge whether taken in second video file Band copyright information;
If not carrying copyright information in S503, second video file, pirate early warning is produced
Further, a specific implementation process is given below in order to describe the State Transformer method in detail to be illustrated.Such as Shown in Fig. 5, all frame of video using the second video file after the method detection decoding based on State Transformer, and extract The detailed process of the watermark information detected can include:
Watermark extracting original state S is preset, and detects and whether there is synchronous code in present frame, if being not detected by synchronous code, Then keep S state constant, continue to detect subsequent frame;
If detecting existing synchronous code, into preset state C1, and judge whether follow-up two frames of present frame carry synchronous code, its In, preset state C1 is to detect that a frame carries synchronous code;
If carrying synchronous code, into preset state C2, if not carrying synchronous code, state S is returned, and after continuing detection Continuous frame, wherein, preset state C2 is to detect that continuous 3 frame carries synchronous code;
When entering preset state C2, the watermark in the first frame after entering C2 and record are extracted;If the watermark bit of record Number then enters preset state C3 equal to error correcting code string length;Otherwise state S is returned, and continues to detect subsequent frame;
When entering preset state C3, the information that the frame of video after entering C3 carries is extracted, and the information that extraction obtains is carried out Error correction decoding, wherein, preset state C3 detects the watermark letter of error correction code length to detect that continuous 3 frame carries synchronous code Breath;
Judge whether the information after error correction decoding is equal to the default watermark information of original insertion;
If being equal to, report detects watermark, and extraction terminates;
If being not equal to original watermark, state S is returned, continues to detect subsequent frame, until having analyzed all frames, report does not detect To watermark, extraction.
Further, in above-mentioned watermark extraction process, to being handled in present frame with the tool of extraction wherein watermark segment Body method is as described below:
Present frame F is filtered first, obtains high pass component Fh and low-pass component Fl;Then it is straight its to be calculated to low-pass component Fl Side schemes and extracts watermark.It is described calculate its histogram and extract the detailed process of watermark can be:
First, Fl average is calculated, and the pixel set of entire image is calculated, to determine available for the bin's for hiding watermark Scope, wherein, the calculation formula of pixel set can be:
Wherein, du is the upper bound of pixel value, and dl is the lower bound of pixel value, and δ is control parameter.
Secondly, [dl, du] section is divided into 2 × Nw+1 subinterval, then calculates histogram, each bin have recorded Fall into the pixel number in a subinterval.All bin are divided into Nw groups, each group there are two bin.Two bin in every group Height relation show the value of embedded watermark:
Watermark bit 1 is extracted if the bin on the left side is not less than the right bin;
Watermark bit 0 is extracted if the bin on the left side is less than the right bin.
In another embodiment of the presently claimed invention, it is assumed that detection watermark extracting end is previously stored with the position of the frame of video of watermark Put, accordingly, synchronous code only needs to be inserted into the beginning and end of all error correction sequences, and only need to be in I in decoding process Watermark is extracted in frame and is compared.I frame watermark extracting methods can be used i.e. in watermark extraction process, it is specifically included:Examine first Synchronous code is surveyed, if detecting synchronous code in continuous m I frames, error correction code information is concealed in follow-up I frames.With with it is upper State embodiment identical and therefrom extract error correcting code letter to being handled in present frame to extract the specific method of wherein watermark segment Breath, when total information length is equal to embedded error correction code information length, terminate extraction.If decoded to error correcting code, obtain The information of original insertion, then report detect watermark.Otherwise, continue to detect watermark from follow-up I frames, until detecting watermark Or untill video decoding terminates.
Present invention also offers a kind of video copyright protecting device based on digital watermarking, as shown in fig. 6, it is included at least One processor(processor)20;And memory(memory)22, display screen 21, communication interface can also be included (Communications Interface)23 and bus 24.Wherein, processor 20, display screen 21, memory 22 and communication connect Mouth 23 can complete mutual communication by bus 24.Display screen 21 is arranged to show default user in initial setting mode Guide interface.Communication interface 23 can transmit information.Processor 20 can call the logical order in memory 22, with execution State the method in embodiment.
In addition, the logical order in above-mentioned memory 22 can be realized by the form of SFU software functional unit and is used as solely Vertical production marketing in use, can be stored in a computer read/write memory medium.
Memory 22 is used as a kind of computer-readable recording medium, may be configured as storage software program, computer can perform Program, programmed instruction or module as corresponding to the method in the embodiment of the present disclosure.Processor 30 is stored in memory by operation Software program, instruction or module in 22, so as to perform function application and data processing, that is, realize the side in above-described embodiment Method.
Memory 22 may include storing program area and storage data field, wherein, storing program area can storage program area, extremely Application program needed for few One function;Storage data field can store uses created data etc. according to terminal device.This Outside, memory 22 can include high-speed random access memory, can also include nonvolatile memory.For example, USB flash disk, movement Hard disk, read-only storage (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. are a variety of can be with the medium or transitory memory medium of store program codes.
In addition, the detailed process that a plurality of instruction processing unit in above-mentioned storage medium and mobile terminal is loaded and performed exists It has been described in detail in the above method, has just no longer stated one by one herein.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic; And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and Scope.

Claims (10)

  1. A kind of 1. video copyright protecting method based on digital watermarking, it is characterised in that it includes watermark telescopiny, the water Print telescopiny specifically includes:
    Obtain the first video file of watermark information to be embedded, and use default decoding process decode first video file with Obtain at least one video-frequency band;
    Default watermark information is embedded in by the video-frequency band using the method for histogram;
    Video coding is re-started to the video-frequency band of embedded watermark information, to obtain being embedded in the second video file of watermark information.
  2. 2. the video copyright protecting method based on digital watermarking according to claim 1, it is characterised in that the acquisition is treated embedding Enter the first video file of watermark information, and it is at least one to obtain to use default decoding process to decode first video file Include before video-frequency band:
    The copyright information of first video file is obtained, and default watermark information is generated according to the copyright information, wherein, institute It is watermark bit string to state default watermark information.
  3. 3. the video copyright protecting method based on digital watermarking according to claim 2, it is characterised in that described in the acquisition The copyright information of first video file, and default watermark information is generated according to the copyright information and specifically included:
    The copyright information of first video file is obtained, and binary coding is carried out to the copyright information to generate binary system Copyright information;
    Error Correction of Coding is carried out to generate error correction sequence to the binary system copyright information, and insert in error correction sequence synchronous code with Obtain default watermark information.
  4. 4. the video copyright protecting method based on digital watermarking according to claim 1, it is characterised in that the acquisition is treated embedding Enter the first video file of watermark information, and it is at least one to obtain to use default decoding process to decode first video file Video-frequency band specifically includes:
    Obtain default starting every IDR frame position and terminate every IDR frame position, and choose starting every IDR frame position and terminate every IDR frame position Between video-frequency band;
    Video-frequency band using the video-frequency band of selection as the first video file watermark information to be embedded, and decode the video Section.
  5. 5. the video copyright protecting method based on digital watermarking according to claim 1, it is characterised in that described to use Nogata Default watermark information is embedded in the video-frequency band and specifically included by the method for figure:
    Default watermark information is divided into some sub- watermark informations, and chooses in video-frequency band and is regarded corresponding to every sub- watermark information Frequency frame;
    Every sub- watermark information is embedded in corresponding frame of video using the method for histogram.
  6. 6. the video copyright protecting method based on digital watermarking according to claim 5, it is characterised in that described to use Nogata Every sub- watermark information is embedded in corresponding frame of video and specifically included by the method for figure:
    The region of frame of video watermark information to be embedded is obtained, and is divided the histogram in the region according to sub- watermark information For several bin pairs;
    Adjustment each pair bin height relation is to cause sub- watermark information to be embedded in the frame of video.
  7. 7. according to any described video copyright protecting methods based on digital watermarking of claim 1-6, it is characterised in that it is also Including watermark extraction process;The watermark extraction process specifically includes:
    The second video file of watermark information to be extracted is determined, and video decoding is carried out to second video file;
    The watermark information carried in decoded second video file is extracted, and determines that described second regards according to the watermark information The copyright information of frequency file, to be protected to second video file.
  8. 8. the video copyright protecting method according to claim 7 based on digital watermarking, it is characterised in that the extraction solution The watermark information that carries in the second video file after code, and determine according to the watermark information version of second video file Information is weighed, to be protected specially to second video file:
    Using all frame of video of the second video file after the method detection decoding based on State Transformer, and extract what is detected Watermark information;
    The watermark information is compared with default watermark information, to judge whether to carry copyright letter in two video file Breath;
    If not carrying copyright information in second video file, pirate early warning is produced.
  9. 9. a kind of storage medium, it is characterised in that it is stored with a plurality of instruction, and the instruction is suitable to be loaded and performed by processor As above any described video copyright protecting method based on digital watermarking.
  10. 10. a kind of video copyright protecting device based on digital watermarking, it is characterised in that it includes:
    Processor, it is adapted for carrying out each instruction;And
    Storage device, suitable for storing a plurality of instruction, the instruction is suitable to be loaded by processor and performed as above any described base In the video copyright protecting method of digital watermarking.
CN201710889895.2A 2017-09-27 2017-09-27 Video copyright protection method and device based on digital watermark Active CN107749990B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710889895.2A CN107749990B (en) 2017-09-27 2017-09-27 Video copyright protection method and device based on digital watermark

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710889895.2A CN107749990B (en) 2017-09-27 2017-09-27 Video copyright protection method and device based on digital watermark

Publications (2)

Publication Number Publication Date
CN107749990A true CN107749990A (en) 2018-03-02
CN107749990B CN107749990B (en) 2021-02-19

Family

ID=61255134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710889895.2A Active CN107749990B (en) 2017-09-27 2017-09-27 Video copyright protection method and device based on digital watermark

Country Status (1)

Country Link
CN (1) CN107749990B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110971931A (en) * 2018-09-30 2020-04-07 北京微播视界科技有限公司 Video watermark adding method and device, electronic equipment and storage medium
CN111340677A (en) * 2020-02-27 2020-06-26 北京百度网讯科技有限公司 Video watermark detection method and device, electronic equipment and computer readable medium
CN111669615A (en) * 2020-05-13 2020-09-15 北京奇艺世纪科技有限公司 Video stream processing method and device
CN112396551A (en) * 2019-08-16 2021-02-23 阿里巴巴集团控股有限公司 Watermark embedding method and device
CN113453039A (en) * 2020-03-24 2021-09-28 阿里巴巴集团控股有限公司 Method and device for processing video file and extracting watermark
CN114727158A (en) * 2022-03-09 2022-07-08 山西广播电视无线管理中心 Broadcast television safe broadcasting detection method and system based on digital watermarking technology

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651837A (en) * 2009-09-10 2010-02-17 北京航空航天大学 Reversible video frequency watermark method based on interframe forecast error histogram modification
CN103049682A (en) * 2013-01-28 2013-04-17 上海理工大学 Character pitch encoding-based dual-watermark embedded text watermarking method
KR20130065277A (en) * 2011-12-09 2013-06-19 한국전자통신연구원 Video water marking inserting/detecting apparatus using modulation of time horizon
CN105072453A (en) * 2015-07-21 2015-11-18 河海大学 Video watermarking method for mobile terminal
CN107067363A (en) * 2017-04-18 2017-08-18 海南大学 A kind of non-blind robust Spatial Domain Image Watermark method constant based on pixel order relation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651837A (en) * 2009-09-10 2010-02-17 北京航空航天大学 Reversible video frequency watermark method based on interframe forecast error histogram modification
KR20130065277A (en) * 2011-12-09 2013-06-19 한국전자통신연구원 Video water marking inserting/detecting apparatus using modulation of time horizon
CN103049682A (en) * 2013-01-28 2013-04-17 上海理工大学 Character pitch encoding-based dual-watermark embedded text watermarking method
CN105072453A (en) * 2015-07-21 2015-11-18 河海大学 Video watermarking method for mobile terminal
CN107067363A (en) * 2017-04-18 2017-08-18 海南大学 A kind of non-blind robust Spatial Domain Image Watermark method constant based on pixel order relation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
胡雪峰: "对典型直方图水印算法的改进研究", 《中国优秀硕士学位论文全文数据库,信息科技辑》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110971931A (en) * 2018-09-30 2020-04-07 北京微播视界科技有限公司 Video watermark adding method and device, electronic equipment and storage medium
US11930202B2 (en) 2018-09-30 2024-03-12 Beijing Microlive Vision Technology Co., Ltd Method and apparatus for video watermarking, and storage medium
CN112396551A (en) * 2019-08-16 2021-02-23 阿里巴巴集团控股有限公司 Watermark embedding method and device
CN111340677A (en) * 2020-02-27 2020-06-26 北京百度网讯科技有限公司 Video watermark detection method and device, electronic equipment and computer readable medium
CN111340677B (en) * 2020-02-27 2023-10-27 北京百度网讯科技有限公司 Video watermark detection method, apparatus, electronic device, and computer readable medium
CN113453039A (en) * 2020-03-24 2021-09-28 阿里巴巴集团控股有限公司 Method and device for processing video file and extracting watermark
CN111669615A (en) * 2020-05-13 2020-09-15 北京奇艺世纪科技有限公司 Video stream processing method and device
CN111669615B (en) * 2020-05-13 2022-09-30 北京奇艺世纪科技有限公司 Video stream processing method and device
CN114727158A (en) * 2022-03-09 2022-07-08 山西广播电视无线管理中心 Broadcast television safe broadcasting detection method and system based on digital watermarking technology

Also Published As

Publication number Publication date
CN107749990B (en) 2021-02-19

Similar Documents

Publication Publication Date Title
CN107749990A (en) A kind of video copyright protecting method and device based on digital watermarking
US9679574B2 (en) Methods for watermarking media data
US8538068B2 (en) Embedding and detecting hidden information
KR19980042061A (en) Digital watermark insertion and extraction method
EP2410727B1 (en) Marker generation program, restoration program, marker generation device, restoration device, and marker generation method
US9639910B2 (en) System for embedding data
CN107688731B (en) Digital watermarking algorithm based on text document protection
US7496197B2 (en) Method and system for robust embedding of watermarks and steganograms in digital video content
CN113538197B (en) Watermark extraction method, watermark extraction device, storage medium and electronic equipment
WO2007003008A1 (en) Image watermarking
JP3924562B2 (en) Digital watermark with variable position
CN102760280B (en) High-capacity reversible watermark embedding and extracting method as well as implement system thereof
US7634105B2 (en) Method and apparatus for embedding information in imaged data, printed material, and computer product
US6954857B2 (en) Method and apparatus for detecting data
US7706569B2 (en) Image processing device, image processing method thereof, computer program, and computer-readable storage medium
CN105208462B (en) Video digital watermark processing method and the video digital watermark system for performing this method
Khalaf et al. Segmenting and hiding data randomly based on index channel
JP4992678B2 (en) Image processing method, control program, and image processing apparatus
CN113538198B (en) Watermark adding method, device, storage medium and electronic equipment
CN107547556A (en) A kind of robust video watermark insertion and extracting method, equipment and its storage device
JP3809356B2 (en) Image processing apparatus and method, computer program, and recording medium
CN111028123B (en) Anti-printing large-capacity text digital watermarking method
JP2006246508A (en) Image processing apparatus, control method thereof, program, and storage medium
Ge et al. Color image text watermarking using wavelet transform and error-correcting code
CN114219693A (en) Airspace digital watermark processing method based on LBS

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant