CN107547556A - A kind of robust video watermark insertion and extracting method, equipment and its storage device - Google Patents

A kind of robust video watermark insertion and extracting method, equipment and its storage device Download PDF

Info

Publication number
CN107547556A
CN107547556A CN201710814401.4A CN201710814401A CN107547556A CN 107547556 A CN107547556 A CN 107547556A CN 201710814401 A CN201710814401 A CN 201710814401A CN 107547556 A CN107547556 A CN 107547556A
Authority
CN
China
Prior art keywords
watermark
video
mrow
pixel
frame
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
CN201710814401.4A
Other languages
Chinese (zh)
Other versions
CN107547556B (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.)
Heilongjiang Yixing Technology Co ltd
Original Assignee
China University of Geosciences
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China University of Geosciences filed Critical China University of Geosciences
Priority to CN201710814401.4A priority Critical patent/CN107547556B/en
Publication of CN107547556A publication Critical patent/CN107547556A/en
Application granted granted Critical
Publication of CN107547556B publication Critical patent/CN107547556B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

The invention provides a kind of insertion of robust video watermark and extracting method, equipment and its storage device, methods described to include step:Binary watermarking is read in adjustment;Storing pixel values;Expand pixel value and insert and start over flag bit;Obtain the frame of video and set the threshold value of pixel access average;Screening pixel access average meets the frame of threshold value as embedded object;Obtain the left side edge pixel abscissa value T of frame for meeting threshold value;The frame of video for embedding a watermark into acquisition obtains the video containing watermark;Parse the video acquisition frame of video containing watermark;Obtain the leftmost side edge pixels abscissa value T of frame of video;Detect the watermark symbol sequence in T row;Watermark is extracted by pixel access average.A kind of robust video watermark insertion and extraction equipment and storage device, for realizing a kind of robust video watermark insertion and extracting method.The present invention improves the robustness of watermark and the real-time of embedded extraction.

Description

A kind of robust video watermark insertion and extracting method, equipment and its storage device
Technical field
The present invention relates to computer vision field, and in particular to a kind of robust video watermark insertion and extracting method, equipment And its storage device.
Background technology
Digital multimedia instead of traditional analog form, and the continuous development of network service, digital multimedia can be square Just copy propagation, piracy and the copyright problem of getting worse have thus been triggered.Generally, digital watermarking can be used as a kind of protection The important means of copyright.But carrier of the video as watermark, it can make during the coding and decoding repeated, compression storage Watermark information is obtained to lose.Meanwhile watermark insertion in video and extraction requirement possess real-time, can so facilitate watermark embedding Enter and extract.Therefore, the robustness and real-time for how improving watermark just turn into urgent problem to be solved.
The content of the invention
In order to solve the above problems, the invention provides a kind of robust video watermark is embedded and extracting method, equipment and its Storage device, by the way that the leftmost side edge of video will be embedded in after watermark progress binary-coding by ad hoc rules, watermark reality is reached When embedded and extraction requirement, the robustness of watermark is improved, so as to effectively solve the above problems.
Technical scheme provided by the invention is:A kind of robust video watermark is embedded and extracting method, methods described include step Suddenly:Binary watermarking is read in adjustment;Storing pixel values;Expand pixel value and insert and start over flag bit;Obtain the frame of video simultaneously Set the threshold value of pixel access average;Screening pixel access average meets the frame of threshold value as embedded object;Acquisition meets threshold value Frame left side edge pixel abscissa value T;The frame of video for embedding a watermark into acquisition obtains the video containing watermark;Parsing contains watermark Video acquisition frame of video;Obtain the leftmost side edge pixels abscissa value T of frame of video;Detect the watermark symbol sequence in T row Row;Watermark is extracted by pixel access average..A kind of storage device, the storage device store instruction and data are used to realize institute State a kind of robust video watermark insertion and extracting method.A kind of robust video watermark is embedded and extraction equipment, the equipment include Processor and the storage device;The processor load and perform the instruction in the storage device and data be used for realize institute A kind of robust video watermark insertion stated and extracting method.
The beneficial effects of the invention are as follows:The invention provides a kind of robust video watermark is embedded and extracting method, equipment and Its storage device, by the way that the leftmost side edge of video will be embedded in after watermark progress binary-coding by ad hoc rules, reaches support and regard Frequency Streaming Media Real-time embedding and extraction (inverse embedded).Simultaneously as embedding method has used pair of video pixel and watermark pixel Etc. rule, protective capacities of the watermark to attacks such as compression and reproduction (including but is not limited to) can be effectively improved.That is, water is improved The robustness of print.
Brief description of the drawings
Fig. 1 is the overall flow figure of the insertion of robust video watermark and extracting method in the embodiment of the present invention;
Fig. 2 is the enlarged drawing of the frame after the embedded watermark of the present invention;
Fig. 3 is that frame of video left side edge detects schematic diagram before watermark is embedded in the embodiment of the present invention;
Fig. 4 is the frame of video left side edge detects schematic diagram after embedded watermark in the embodiment of the present invention;
Fig. 5 is the video comparison diagram that watermark insertion is front and rear in the embodiment of the present invention;
Fig. 6 is the hardware device operating diagram of the embodiment of the present invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is further described, the particular technique details hereinafter mentioned, such as:Method, equipment etc., are only better understood from reader Technical scheme, does not represent that present invention is limited only by following ins and outs.
The embodiment provides a kind of robust video watermark is embedded and extracting method, equipment and its storage device, Passing through will.Referring to Fig. 1, Fig. 1 is the overall flow figure of the insertion of robust video watermark and extracting method in the embodiment of the present invention, institute State method and realize that specific steps include by a kind of insertion of robust video watermark and extraction equipment:
S101:Binary watermarking (can be BMP format-patterns) is read in adjustment.
S102:Storing pixel values;With array W [k] storing pixel values;Number of pixels M=XY, X are the length of watermark, and Y is The width of watermark.
S103:Expand pixel value and insert and start over flag bit;The rule expanded the W [k] be W [0]= 0, W [1]=1, W [2]=0, W [3]=1 ..., W [k+4]=W [k] ..., W [M+4]=0, W [M+5]=1, W [M+6]=0, W [M+7]=0, the expansion insert flag bit.
S104:Obtain the frame of video and set the threshold value of pixel access average;For more preferable invisibility, color is chosen Informative frame.Pixel access includes red pixel passage PR, green pixel passage PGAnd blue pixel passage PB;The picture The threshold value of plain passage average is (50,200);Wherein,M, N For the length and width of a two field picture, P (x, y) is the pixel value of coordinate (x, y).
S105:Screening pixel access average meets the frame of threshold value as embedded object.
S106:Obtain the left side edge pixel abscissa value T of frame for meeting threshold value;Using sobel operators to video longitudinal direction It is T that edge, which is detected to obtain pixel abscissa minimum value,;The rim detection uses matrixTo regarding Frequency frame carries out convolution.
S107:The frame of video for embedding a watermark into acquisition obtains the video containing watermark;The insertion of watermark is carried out by following formula
Wherein, P (T, y) represents frame of video T row, and the rgb pixel value of y rows, 0 represents black, and 1 represents white.
S108:Parse the video acquisition frame of video containing watermark.
S109:Obtain the leftmost side edge pixels abscissa value T of frame of video.
S110:Detect the watermark symbol sequence in T row.
S111:Watermark is extracted by pixel access average;By following formula reduction W [k]
Wherein, PB(T, k) is the average of coordinate (T, k) point pixel blueness (passivation degree is high) passage.Then, mark is removed Position, obtain the W [k] of raw water print, onestep extraction watermark of going forward side by side.
Referring to Fig. 2, Fig. 2 is the enlarged drawing of the frame after the embedded watermark of the present invention, wherein:201 represent 0 (black), and 202 represent 1 (white).
Referring to Fig. 3, Fig. 3 is that frame of video left side edge detects schematic diagram before watermark is embedded in the embodiment of the present invention, wherein: The leftmost side edge that 301 expressions detect, the edge for the other positions that 302 expressions detect.
Referring to Fig. 4, Fig. 4 is the frame of video left side edge detects schematic diagram after embedded watermark in the embodiment of the present invention, wherein: 401 represent the leftmost side edge that detects, and white line part is other edges detected in figure.
Referring to Fig. 5, Fig. 5 is the video comparison diagram that watermark insertion is front and rear in the embodiment of the present invention, wherein:501 represent insertion Video before watermark, 502 represent the video after embedded watermark.It is it can be seen that not any to video pictures after embedded watermark Influence.
Referring to Fig. 6, Fig. 6 is the hardware device operating diagram of the embodiment of the present invention, and the hardware device specifically includes:One The insertion of kind robust video watermark and extraction equipment 601, processor 602 and storage device 603.
The insertion of robust video watermark and extraction equipment 601:A kind of robust video watermark is embedded and extraction equipment 601 is real A kind of existing robust video watermark insertion and extracting method.
Processor 602:The processor 602 load and perform the instruction in the storage device 603 and data be used for it is real A kind of existing described robust video watermark insertion and extracting method.
Storage device 603:The store instruction of storage device 603 and data;The storage device 603 is described for realizing A kind of robust video watermark is embedded and extracting method.
By performing embodiments of the invention, all technical characteristics in the claims in the present invention are obtained for detailed explain State.
Prior art is different from, the embodiment provides a kind of insertion of robust video watermark and extracting method, is set Standby and its storage device, by the way that the leftmost side edge of video will be embedded in after watermark progress binary-coding by ad hoc rules, reach branch Hold video stream media Real-time embedding and extraction (inverse embedded).Simultaneously as embedding method has used video pixel and watermark pixel Equity rule, protective capacities of the watermark to compression and the attack such as reproduction (including but is not limited to) can be effectively improved.That is, improve The robustness of watermark.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.

Claims (10)

1. a kind of robust video watermark insertion and extracting method, methods described is by a kind of insertion of robust video watermark and extraction equipment Realize, it is characterised in that:Comprise the following steps:Binary watermarking is read in adjustment;Storing pixel values;Expand pixel value and insert and start End mark position;Obtain the frame of video and set the threshold value of pixel access average;Screening pixel access average meets the frame of threshold value As embedded object;Obtain the left side edge pixel abscissa value T for the frame for meeting threshold value;The frame of video for embedding a watermark into acquisition obtains To the video containing watermark;Parse the video acquisition frame of video containing watermark;Obtain the leftmost side edge pixels abscissa value of frame of video T;Detect the watermark symbol sequence in T row;Watermark is extracted by pixel access average.
2. a kind of robust video watermark insertion as claimed in claim 1 and extracting method, it is characterised in that:The storage pixel Value is specially:With array W [k] storing pixel values;Number of pixels M=XY, X are the length of watermark, and Y is the width of watermark.
3. a kind of robust video watermark insertion as claimed in claim 2 and extracting method, it is characterised in that:The W [k] is entered The rule that row expands is W [0]=0, W [1]=1, W [2]=0, W [3]=1 ..., W [k+4]=W [k] ..., W [M+4]=0, W [M+5]=1, W [M+6]=0, W [M+7]=0;The expansion inserts flag bit.
4. a kind of robust video watermark insertion as claimed in claim 1 and extracting method, it is characterised in that:The setting picture The threshold value of plain passage average specifically includes:Pixel access includes red pixel passage PR, green pixel passage PGAnd blue pixel Passage PB;The threshold value of the pixel access average is (50,200);Wherein,M, N are The length and width of one two field picture, P (x, y) are the pixel value of coordinate (x, y).
5. a kind of robust video watermark insertion as claimed in claim 1 and extracting method, it is characterised in that:It is described to be met The left side edge pixel abscissa value T of the frame of threshold value is specifically included:Video longitudinal edge detect using sobel operators It is T to pixel abscissa minimum value.
6. a kind of robust video watermark insertion as claimed in claim 5 and extracting method, it is characterised in that:The rim detection Use matrixConvolution is carried out to frame of video.
7. a kind of robust video watermark insertion as claimed in claim 1 and extracting method, it is characterised in that:It is described that watermark is embedding The frame of video for entering acquisition obtains the video containing watermark and specifically included:The insertion of watermark is carried out by following formula
<mrow> <mi>P</mi> <mrow> <mo>(</mo> <mi>T</mi> <mo>,</mo> <mi>y</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfenced open = "{" close = ""> <mtable> <mtr> <mtd> <mrow> <mo>(</mo> <mn>255</mn> <mo>,</mo> <mn>255</mn> <mo>,</mo> <mn>255</mn> <mo>)</mo> <mo>,</mo> </mrow> </mtd> <mtd> <mrow> <mi>W</mi> <mo>&amp;lsqb;</mo> <mi>k</mi> <mo>&amp;rsqb;</mo> <mo>=</mo> <mn>1</mn> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <mo>(</mo> <mn>0</mn> <mo>,</mo> <mn>0</mn> <mo>,</mo> <mn>0</mn> <mo>)</mo> <mo>,</mo> </mrow> </mtd> <mtd> <mrow> <mi>W</mi> <mo>&amp;lsqb;</mo> <mi>k</mi> <mo>&amp;rsqb;</mo> <mo>=</mo> <mn>0</mn> </mrow> </mtd> </mtr> </mtable> </mfenced> </mrow>
Wherein, P (T, y) represents frame of video T row, and the rgb pixel value of y rows, 0 represents black, and 1 represents white.
8. a kind of robust video watermark insertion as claimed in claim 1 and extracting method, it is characterised in that:It is described to lead to by pixel Road average extraction watermark specifically includes:By following formula reduction W [k]
<mrow> <mi>W</mi> <mo>&amp;lsqb;</mo> <mi>k</mi> <mo>&amp;rsqb;</mo> <mo>=</mo> <mfenced open = "{" close = ""> <mtable> <mtr> <mtd> <mrow> <mn>1</mn> <mo>,</mo> </mrow> </mtd> <mtd> <mrow> <mn>200</mn> <mo>&lt;</mo> <msub> <mi>P</mi> <mi>B</mi> </msub> <mrow> <mo>(</mo> <mi>T</mi> <mo>,</mo> <mi>k</mi> <mo>)</mo> </mrow> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <mn>0</mn> <mo>,</mo> </mrow> </mtd> <mtd> <mrow> <msub> <mi>P</mi> <mi>B</mi> </msub> <mrow> <mo>(</mo> <mi>T</mi> <mo>,</mo> <mi>k</mi> <mo>)</mo> </mrow> <mo>&lt;</mo> <mn>50</mn> </mrow> </mtd> </mtr> </mtable> </mfenced> </mrow>
Wherein, PB(T, k) is the average of coordinate (T, k) point pixel blue channel.
9. a kind of storage device, its feature includes:The storage device store instruction and data are used to realize claim 1~8 A kind of described robust video watermark insertion and extracting method.
10. a kind of robust video watermark insertion and extraction equipment, it is characterised in that:Including:Processor and the storage device;Institute Processor is stated to load and perform the instruction in the storage device and data are used to realize a kind of Shandong described in claim 1~8 The insertion of rod video watermark and extracting method.
CN201710814401.4A 2017-09-11 2017-09-11 Robust video watermark embedding and extracting method, device and storage device thereof Active CN107547556B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710814401.4A CN107547556B (en) 2017-09-11 2017-09-11 Robust video watermark embedding and extracting method, device and storage device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710814401.4A CN107547556B (en) 2017-09-11 2017-09-11 Robust video watermark embedding and extracting method, device and storage device thereof

Publications (2)

Publication Number Publication Date
CN107547556A true CN107547556A (en) 2018-01-05
CN107547556B CN107547556B (en) 2020-10-30

Family

ID=60963311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710814401.4A Active CN107547556B (en) 2017-09-11 2017-09-11 Robust video watermark embedding and extracting method, device and storage device thereof

Country Status (1)

Country Link
CN (1) CN107547556B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110620961A (en) * 2019-08-09 2019-12-27 上海紫竹数字创意港有限公司 Video watermark adding method and device and video editing terminal

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060269096A1 (en) * 2005-05-26 2006-11-30 Senthil Kumar Method for performing recoverable video and image watermarking which survives block-based video and image compression
US20070172095A1 (en) * 2006-01-20 2007-07-26 Kabushiki Kaisha Toshiba Apparatus, method, and program product for detecting digital watermark
CN101038661A (en) * 2007-04-26 2007-09-19 付永钢 Blind watermark embedding and abstracting method based on regression support vector machine
CN101742193A (en) * 2009-12-22 2010-06-16 北京中星微电子有限公司 Method for adding watermark into digital movie
US20100322467A1 (en) * 2004-07-02 2010-12-23 Reed Alastair M Steganographic Encoding and Decoding
CN101938618A (en) * 2010-08-17 2011-01-05 山东省计算中心 General video digital watermark method
CN102724494A (en) * 2011-03-31 2012-10-10 北京大学 Method for embedding reversible watermark, extraction method thereof, device and system
CN102883168A (en) * 2012-07-05 2013-01-16 上海大学 White balance processing method directed towards atypical-feature image
CN103873871A (en) * 2014-03-17 2014-06-18 北京航空航天大学 Geometric-attack-resistant robust video watermark method based on timeline spread spectrum
CN105701758A (en) * 2016-01-13 2016-06-22 华南理工大学 Digital watermarking image generation method based on graphic code and apparatus thereof
US9401001B2 (en) * 2014-01-02 2016-07-26 Digimarc Corporation Full-color visibility model using CSF which varies spatially with local luminance

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100322467A1 (en) * 2004-07-02 2010-12-23 Reed Alastair M Steganographic Encoding and Decoding
US20060269096A1 (en) * 2005-05-26 2006-11-30 Senthil Kumar Method for performing recoverable video and image watermarking which survives block-based video and image compression
US20070172095A1 (en) * 2006-01-20 2007-07-26 Kabushiki Kaisha Toshiba Apparatus, method, and program product for detecting digital watermark
CN101038661A (en) * 2007-04-26 2007-09-19 付永钢 Blind watermark embedding and abstracting method based on regression support vector machine
CN101742193A (en) * 2009-12-22 2010-06-16 北京中星微电子有限公司 Method for adding watermark into digital movie
CN101938618A (en) * 2010-08-17 2011-01-05 山东省计算中心 General video digital watermark method
CN102724494A (en) * 2011-03-31 2012-10-10 北京大学 Method for embedding reversible watermark, extraction method thereof, device and system
CN102883168A (en) * 2012-07-05 2013-01-16 上海大学 White balance processing method directed towards atypical-feature image
US9401001B2 (en) * 2014-01-02 2016-07-26 Digimarc Corporation Full-color visibility model using CSF which varies spatially with local luminance
CN103873871A (en) * 2014-03-17 2014-06-18 北京航空航天大学 Geometric-attack-resistant robust video watermark method based on timeline spread spectrum
CN105701758A (en) * 2016-01-13 2016-06-22 华南理工大学 Digital watermarking image generation method based on graphic code and apparatus thereof

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
SAWIYA KIATPAPAN等: ""An image tamper detection and recovery method based on self-embedding dual watermarking"", 《2015 12TH INTERNATIONAL CONFERENCE ON ELECTRICAL ENGINEERING/ELECTRONICS, COMPUTER, TELECOMMUNICATIONS AND INFORMATION TECHNOLOGY (ECTI-CON)》 *
张明辉等: ""基于纹理方向的高效视频编码鲁棒视频水印"", 《计算机应用》 *
李佳丽: ""基于L*a*b*颜色空间的小波域盲印刷水印研究"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110620961A (en) * 2019-08-09 2019-12-27 上海紫竹数字创意港有限公司 Video watermark adding method and device and video editing terminal

Also Published As

Publication number Publication date
CN107547556B (en) 2020-10-30

Similar Documents

Publication Publication Date Title
CN104168484A (en) Video watermarking method based on visual attention mechanism
Tian et al. An integrated visual saliency-based watermarking approach for synchronous image authentication and copyright protection
CN107749990B (en) Video copyright protection method and device based on digital watermark
CN103974144A (en) Video digital watermarking method based on characteristic scale variation invariant points and microscene detection
CN108156408B (en) Digital watermark embedding and extracting method and system for video data
EP2115694A1 (en) System for embedding data
CN105657431A (en) Watermarking algorithm based on DCT domain of video frame
Su et al. A practical design of digital watermarking for video streaming services
CN102663669A (en) Dual-color digital image blind watermarking method based on Schur decomposition
CN108040190A (en) A kind of stealth watermark recognition methods, device and storage device
CN107547556A (en) A kind of robust video watermark insertion and extracting method, equipment and its storage device
Guo et al. A color image watermarking algorithm resistant to print-scan
CN109474830B (en) Embedding and extracting method of digital video steel seal
CN102194204B (en) Method and device for embedding and extracting reversible watermarking as well as method and device for recovering image
Hassan et al. Proposed video watermarking algorithm based on edge or corner regions
CN107888926A (en) A kind of strong robust video two-value BMP pictures watermark insertion and extracting method
CN114662061B (en) Decoding and coding network steganography method based on improved attention and loss function
Qian-lan The blind detection of information hiding in color image
CN107292803B (en) Reversible robust digital image watermarking method according with human eye observation rule
CN105208462B (en) Video digital watermark processing method and the video digital watermark system for performing this method
CN111640052B (en) Robust high-capacity digital watermarking method based on mark code
CN114205644A (en) Spatial domain robust video watermark embedding and extracting method based on intra-frame difference
CN109410115B (en) Adaptive capacity image blind watermark embedding and extracting method based on SIFT feature points
CN109685711B (en) Anti-rotation watermark method for embedding periodogram in characteristic region
CN116823583B (en) Watermark embedding and extracting method based on remote sensing image

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210402

Address after: Room 801, 85 Kefeng Road, Huangpu District, Guangzhou City, Guangdong Province

Patentee after: Yami Technology (Guangzhou) Co.,Ltd.

Address before: 430074 No. 388 Lu Lu, Hongshan District, Hubei, Wuhan

Patentee before: CHINA University OF GEOSCIENCES (WUHAN CITY)

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240316

Address after: Room 311, Comprehensive Management Building, Booster Pump Station, No.1 Longjian Street, Longfeng District, Daqing City, Heilongjiang Province, 163000

Patentee after: Heilongjiang Yixing Technology Co.,Ltd.

Country or region after: China

Address before: Room 801, 85 Kefeng Road, Huangpu District, Guangzhou City, Guangdong Province

Patentee before: Yami Technology (Guangzhou) Co.,Ltd.

Country or region before: China