CN107547556B - Robust video watermark embedding and extracting method, device and storage device thereof - Google Patents

Robust video watermark embedding and extracting method, device and storage device thereof Download PDF

Info

Publication number
CN107547556B
CN107547556B CN201710814401.4A CN201710814401A CN107547556B CN 107547556 B CN107547556 B CN 107547556B CN 201710814401 A CN201710814401 A CN 201710814401A CN 107547556 B CN107547556 B CN 107547556B
Authority
CN
China
Prior art keywords
pixel
watermark
video
value
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.)
Active
Application number
CN201710814401.4A
Other languages
Chinese (zh)
Other versions
CN107547556A (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

Images

Landscapes

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

Abstract

The invention provides a robust video watermark embedding and extracting method, equipment and storage equipment thereof, wherein the method comprises the following steps: adjusting and reading the binary watermark; storing the pixel values; expanding the pixel value and inserting a start and end flag bit; acquiring a frame of a video and setting a threshold value of a pixel channel mean value; screening frames with the pixel channel mean value meeting a threshold value as an embedded object; obtaining an abscissa value T of a left edge pixel of the frame which meets a threshold; embedding the watermark into the obtained video frame to obtain a video containing the watermark; analyzing the video containing the watermark to obtain a video frame; obtaining an abscissa value T of a pixel at the leftmost edge of the video frame; detecting a watermark marker sequence in the Tth column; and extracting the watermark according to the pixel channel mean value. A robust video watermark embedding and extracting device and a storage device are used for realizing the robust video watermark embedding and extracting method. The invention improves the robustness of the watermark and the instantaneity of embedding and extracting.

Description

Robust video watermark embedding and extracting method, device and storage device thereof
Technical Field
The invention relates to the field of computer vision, in particular to a robust video watermark embedding and extracting method, robust video watermark embedding and extracting equipment and robust video watermark storing equipment.
Background
Digital multimedia has replaced the traditional analog form, and the continuous development of network communication, the digital multimedia can be conveniently copied and spread, thereby causing increasingly serious piracy and copyright problems. In general, digital watermarking can be an important means of protecting copyright. However, the video serves as a carrier of the watermark, and watermark information is lost in the process of repeated coding and decoding and compressed storage. Meanwhile, the embedding and extraction of the watermark in the video require real-time performance, so that the watermark can be conveniently embedded and extracted. Therefore, how to improve the robustness and the real-time performance of the watermark becomes an urgent problem to be solved.
Disclosure of Invention
In order to solve the problems, the invention provides a robust video watermark embedding and extracting method, equipment and storage equipment thereof.
The technical scheme provided by the invention is as follows: a robust video watermark embedding and extraction method, the method comprising the steps of: adjusting and reading the binary watermark; storing the pixel values; expanding the pixel value and inserting a start and end flag bit; acquiring a frame of a video and setting a threshold value of a pixel channel mean value; screening frames with the pixel channel mean value meeting a threshold value as an embedded object; acquiring a left edge pixel abscissa value T of a frame meeting a threshold; embedding the watermark into the obtained video frame to obtain a video containing the watermark; analyzing the video containing the watermark to obtain a video frame; obtaining an abscissa value T of a pixel at the leftmost edge of the video frame; detecting a watermark marker sequence in the Tth column; and extracting the watermark according to the pixel channel mean value. A storage device storing instructions and data for implementing the robust video watermark embedding and extraction method. A robust video watermark embedding and extraction device, the device comprising a processor and the storage device; the processor loads and executes instructions and data in the storage device for implementing the robust video watermark embedding and extraction method.
The invention has the beneficial effects that: the invention provides a robust video watermark embedding and extracting method, equipment and storage equipment thereof, which support the real-time embedding and extraction (inverse embedding) of a video streaming media by embedding a watermark into the leftmost edge of a video according to a specific rule after binary coding. Meanwhile, the embedding rule uses the peer-to-peer rule of the video pixel and the watermark pixel, so that the protection capability of the watermark to compression, reproduction (including but not limited to) and other attacks can be effectively improved. I.e. the robustness of the watermark is improved.
Drawings
FIG. 1 is an overall flow chart of a robust video watermark embedding and extracting method according to an embodiment of the present invention;
FIG. 2 is an enlarged view of a frame after embedding a watermark in accordance with the present invention;
FIG. 3 is a schematic diagram illustrating left edge detection of a video frame before embedding watermark in an embodiment of the present invention;
FIG. 4 is a schematic diagram of left edge detection of a video frame after embedding a watermark in an embodiment of the present invention;
FIG. 5 is a comparison of video before and after watermark embedding in an embodiment of the invention;
fig. 6 is a schematic diagram of the operation of the hardware device according to the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, embodiments of the present invention will be further described with reference to the accompanying drawings, wherein specific technical details are set forth below, such as: methods, apparatus, etc. may be used solely for the purpose of facilitating a better understanding of the subject matter and are not intended to limit the invention to the details shown.
The embodiment of the invention provides a robust video watermark embedding and extracting method, equipment and storage equipment thereof. Referring to fig. 1, fig. 1 is an overall flowchart of a robust video watermark embedding and extracting method according to an embodiment of the present invention, where the method is implemented by a robust video watermark embedding and extracting apparatus, and includes the following specific steps:
s101: and adjusting and reading the binary watermark (which can be a BMP format image).
S102: storing the pixel values; storing pixel values with an array W [ k ]; the number of pixels M is XY, X is the length of the watermark, and Y is the width of the watermark.
S103: expanding the pixel value and inserting a start and end flag bit; the rule for extending W [ k ] is that 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, and W [ M +7] ═ 0, and the extension has a flag bit inserted.
S104: acquiring a frame of a video and setting a threshold value of a pixel channel mean value; for better invisibility, the frames with rich color information are selected. The pixel channels comprise a red pixel channel, a green pixel channel and a blue pixel channel;
PRis the pixel mean, P, in the red pixel channelGIs the pixel mean, P, in the green pixel channelBIs the pixel mean in the blue pixel channel; the threshold value of the pixel channel mean value is (50, 200); wherein,
Figure GDA0002319500480000031
m, N are the length and width of one frame image, and P (x, y) is the pixel value of the coordinates (x, y).
S105: and screening frames with the pixel channel mean value meeting the threshold value as embedded objects.
S106: obtaining an abscissa value T of a left edge pixel of the frame which meets a threshold; detecting the longitudinal edge of the video by using a sobel operator to obtain the minimum value of the pixel abscissa, namely T; the edge detection uses a matrix
Figure GDA0002319500480000032
The video frames are convolved.
S107: embedding the watermark into the obtained video frame to obtain a video containing the watermark; embedding of watermarks is performed according to the following equation
Figure GDA0002319500480000033
Where P (T, k) represents the T-th column, the k-th row of RGB pixel values, 0 for black, and 1 for white of the video frame.
S108: and analyzing the video containing the watermark to obtain a video frame.
S109: and obtaining an abscissa value T of the pixel at the leftmost edge of the video frame.
S110: the watermark marker sequence in column T is detected.
S111: extracting a watermark according to the pixel channel mean value; reduction of W [ k ] according to the following formula
Figure GDA0002319500480000041
Wherein, PB(T, k) is the mean of the blue (passivation high) channel of the pixel at coordinate (T, k). Then, removing the mark bit to obtain W [ k ] of the original watermark]And further extracting the watermark.
Referring to fig. 2, fig. 2 is an enlarged view of the watermarked frame of the present invention, wherein: 201 represents 0 (black) and 202 represents 1 (white).
Referring to fig. 3, fig. 3 is a schematic diagram of detecting left side edges of video frames before embedding watermark in the embodiment of the present invention, wherein: 301 denotes the leftmost edge detected and 302 denotes the edges of other positions detected.
Referring to fig. 4, fig. 4 is a schematic diagram of detecting left edges of a video frame after embedding a watermark in the embodiment of the present invention, where: 401 indicates the leftmost edge detected, and the white line portion in the figure is the other edge detected.
Referring to fig. 5, fig. 5 is a video comparison diagram before and after watermark embedding in the embodiment of the present invention, where: 501 denotes a video before embedding a watermark, and 502 denotes a video after embedding a watermark. As can be seen, the embedded watermark has no effect on the video picture.
Referring to fig. 6, fig. 6 is a schematic diagram of a hardware device according to an embodiment of the present invention, where the hardware device specifically includes: a robust video watermark embedding and extraction device 601, a processor 602 and a storage device 603.
Robust video watermark embedding and extraction device 601: the robust video watermark embedding and extracting device 601 implements the robust video watermark embedding and extracting method.
The processor 602: the processor 602 loads and executes the instructions and data in the storage device 603 for implementing a robust video watermark embedding and extraction method.
The storage device 603: the storage device 603 stores instructions and data; the storage device 603 is used to implement the robust video watermark embedding and extracting method.
All the technical features of the claims of the present invention are elaborated upon by implementing the embodiments of the present invention.
Different from the prior art, the embodiment of the invention provides a robust video watermark embedding and extracting method, device and storage device thereof, which support video streaming media real-time embedding and extraction (inverse embedding) by embedding a watermark into the leftmost edge of a video according to a specific rule after binary coding. Meanwhile, the embedding rule uses the peer-to-peer rule of the video pixel and the watermark pixel, so that the protection capability of the watermark to compression, reproduction (including but not limited to) and other attacks can be effectively improved. I.e. the robustness of the watermark is improved.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (7)

1. A robust video watermark embedding and extracting method is realized by a robust video watermark embedding and extracting device, and is characterized in that: the method comprises the following steps: adjusting and reading the binary watermark; storing the pixel values; expanding the pixel value and inserting a start and end flag bit; acquiring a frame of a video and setting a threshold value of a pixel channel mean value; screening frames with the pixel channel mean value meeting a threshold value as an embedded object; acquiring a left edge pixel abscissa value T of a frame meeting a threshold; embedding the watermark into the obtained video frame to obtain a video containing the watermark; analyzing the video containing the watermark to obtain a video frame; obtaining an abscissa value T of a leftmost edge pixel of the video frame; detecting a watermark marker sequence in the Tth column; extracting a watermark according to the pixel channel mean value;
the storage pixel values are specifically: storing pixel values with an array W [ k ]; the number of pixels M is XY, X is the length of the watermark, and Y is the width of the watermark;
the rule for extending W [ k ] 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 extension inserts a flag bit;
the embedding the watermark into the obtained video frame to obtain the video containing the watermark specifically includes: embedding of watermarks is performed according to the following equation
Figure FDA0002454257040000011
Where P (T, k) represents the T-th column, the k-th row of RGB pixel values, 0 for black, and 1 for white of the video frame.
2. A robust video watermark embedding and extraction method as claimed in claim 1, characterized by: the setting of the threshold of the pixel channel mean specifically includes: the pixel channels comprise a red pixel channel, a green pixel channel and a blue pixel channel;
PRis the pixel mean, P, in the red pixel channelGIs the pixel mean, P, in the green pixel channelBIs the pixel mean in the blue pixel channel; the upper threshold value of the pixel channel mean value is 200, and the lower threshold value is 50; wherein,
Figure FDA0002454257040000021
Figure FDA0002454257040000022
m, N are the length and width of a frame image, P (x, y) is the pixel value of the coordinate (x, y), PR(x, y) is the pixel value in the red pixel channel at coordinate (x, y), PG(x, y) is the pixel value in the green pixel channel of coordinate (x, y), PB(x, y) is the pixel value in the blue pixel channel at coordinate (x, y).
3. A robust video watermark embedding and extraction method as claimed in claim 1, characterized by: the obtaining of the horizontal coordinate value T of the left edge pixel of the frame meeting the threshold specifically includes: and detecting the longitudinal edge of the video by using a sobel operator to obtain the minimum value of the pixel abscissa, namely T.
4. A robust video watermark embedding and extraction method as claimed in claim 3, characterized by: edge detection usage matrix
Figure FDA0002454257040000023
The video frames are convolved.
5. A robust video watermark embedding and extraction method as claimed in claim 1, characterized by: the extracting the watermark according to the pixel channel mean value specifically comprises: reduction of W [ k ] according to the following formula
Figure FDA0002454257040000024
Wherein, PB(T, k) is the mean of the blue channel of the pixel at coordinate (T, k).
6. A computer-readable storage medium, comprising: the computer readable storage medium stores instructions and data for implementing a robust video watermark embedding and extraction method as claimed in claims 1-5.
7. A robust video watermark embedding and extraction device is characterized in that: the method comprises the following steps: a processor and a storage device; the processor loads and executes the instructions and data in the storage device to realize a robust video watermark embedding and extracting method as claimed in claims 1-5.
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 CN107547556A (en) 2018-01-05
CN107547556B true 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)

Families Citing this family (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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN102883168A (en) * 2012-07-05 2013-01-16 上海大学 White balance processing method directed towards atypical-feature image

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7668334B2 (en) * 2004-07-02 2010-02-23 Digimarc Corp Conditioning imagery to better receive steganographic encoding
US7630512B2 (en) * 2005-05-26 2009-12-08 Alcatel-Lucent Usa Inc. Method for performing recoverable video and image watermarking which survives block-based video and image compression
JP4398943B2 (en) * 2006-01-20 2010-01-13 株式会社東芝 Digital watermark detection apparatus, digital watermark detection method, and digital watermark detection program
CN101038661A (en) * 2007-04-26 2007-09-19 付永钢 Blind watermark embedding and abstracting method based on regression support vector machine
CN102724494B (en) * 2011-03-31 2014-07-23 北京大学 Method for embedding reversible watermark, extraction method thereof, device and system
US9401001B2 (en) * 2014-01-02 2016-07-26 Digimarc Corporation Full-color visibility model using CSF which varies spatially with local luminance
CN103873871B (en) * 2014-03-17 2017-02-15 北京航空航天大学 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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN102883168A (en) * 2012-07-05 2013-01-16 上海大学 White balance processing method directed towards atypical-feature image

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"基于L*a*b*颜色空间的小波域盲印刷水印研究";李佳丽;《中国优秀硕士学位论文全文数据库 信息科技辑》;20080930(第9期);第5.7.2节 *

Also Published As

Publication number Publication date
CN107547556A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
Luo et al. A novel method for detecting cropped and recompressed image block
CN104168484A (en) Video watermarking method based on visual attention mechanism
US9159112B2 (en) Digital watermarking using saturation patterns
CN108156408B (en) Digital watermark embedding and extracting method and system for video data
CN102663669A (en) Dual-color digital image blind watermarking method based on Schur decomposition
CN107547556B (en) Robust video watermark embedding and extracting method, device and storage device thereof
CN103530843B (en) A kind of photo watermark embedding based on color information compression and removing method
Mohammed et al. Robust image watermarking scheme based on wavelet technique
CN109447889A (en) A method of realizing concealed video digital watermark
CN117011114A (en) Watermark embedding method and device for virtual desktop, electronic equipment and storage medium
CN104486627A (en) Method for embedding, detecting and extracting digital watermarks
CN117014625A (en) Video watermarking method
Bei et al. A color image watermarking scheme Against geometric rotation attacks based on HVS and DCT-DWT
Chareyron et al. Watermarking of color images based on segmentation of the XYZ color space
CN111275602A (en) Face image security protection method, system and storage medium
CN112541853A (en) Data processing method, device and equipment
CN114363719B (en) Content self-adaptive robustness video watermarking method based on Bessel-Fourier moment
CN109410115B (en) Adaptive capacity image blind watermark embedding and extracting method based on SIFT feature points
CN103139522B (en) A kind of processing method of multi-view image
Patil et al. Digital video watermarking using Dwt and Pca
CN112561767A (en) Screen shooting watermark resisting method for CAD engineering drawing
CN111445374A (en) Watermark template generation method and device for embedding hidden digital watermark into image
Verma et al. Robust color image watermarking scheme using JFIF-YCbCr color space in wavelet domain
CN110827188A (en) Color image rapid blind digital watermarking method and extraction method
Goncharenko et al. Blind watermarking algorithm for a sequence of TV images

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

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

TR01 Transfer of patent right