Embedding and extracting watermark in video data

US12579598B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12579598-B2
Application numberUS-202217951898-A
CountryUS
Kind codeB2
Filing dateSep 23, 2022
Priority dateSep 1, 2020
Publication dateMar 17, 2026
Grant dateMar 17, 2026

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Disclosed in this application are a method for embedding a watermark in video data and apparatus, a method for extracting a watermark in video data and apparatus, a device, and a storage medium. The method for embedding the watermark includes: acquiring a target image frame in video data; performing time-frequency transformation on the target image frame to obtain target frequency domain data, the target frequency domain data comprising a matrix formed by frequency domain coefficients; changing the frequency domain coefficients in the target frequency domain data according to watermark data to obtain watermarked frequency domain data; performing inverse time-frequency transformation on the watermarked frequency domain data to obtain a watermarked image frame; and synthesizing watermarked video data according to the watermarked image frame.

First claim

Opening claim text (preview).

What is claimed is: 1 . A method for embedding a watermark in video data, applied to a computer device, the method comprising: converting a format of an original image frame in video data to obtain a YCrCb original image frame in a YCrCb format; converting image data of a Cb channel in the YCrCb original image frame from an integer type to a floating-point type; acquiring a target image frame comprising the image data of the Cb channel in the YCrCb original image frame in the floating-point type; performing time-frequency transformation on the target image frame to obtain target frequency domain data, the target frequency domain data comprising a matrix formed by frequency domain coefficients; changing the frequency domain coefficients in the target frequency domain data according to watermark data to obtain watermarked frequency domain data; performing inverse time-frequency transformation on the watermarked frequency domain data to obtain a watermarked image frame; synthesizing a YCrCb watermarked image frame from the watermarked image frame and image data of a Y channel and a Cr channel in the YCrCb original image frame; converting a format of the YCrCb watermarked image frame to obtain an RGB watermarked image frame in an RGB format; and synthesizing watermarked video data according to the RGB watermarked image frame. 2 . The method according to claim 1 , wherein the watermark data occupies k bits, and k is a positive integer; and the changing the frequency domain coefficients in the target frequency domain data according to watermark data to obtain watermarked frequency domain data comprises: changing a frequency domain coefficient at an i th target position in the frequency domain data according to a value of the watermark data at an i th bit, the i th target position being a position in the matrix corresponding to the i th bit, i being a positive integer less than or equal to k; and repeating the foregoing operation to change frequency domain coefficients at k target positions in the frequency domain data. 3 . The method according to claim 2 , wherein the watermark data is binary data; and the changing a frequency domain coefficient at an i th target position in the frequency domain data according to a value of the watermark data at an i th bit comprises: determining a first value range of frequency domain coefficients corresponding to 0 in the binary data and a second value range of frequency domain coefficients corresponding to 1 in the binary data according to a value range step size; and changing the frequency domain coefficient at the i th target position in the frequency domain data to a value in the first value range in response to the value of the watermark data at the i th bit being 0, i being a positive integer less than or equal to k; or changing the frequency domain coefficient at the i th target position in the frequency domain data to a value in the second value range in response to the value of the watermark data at the i th bit being 1. 4 . The method according to claim 3 , wherein the first value range comprises at least one first value interval, the second value range comprises at least one second value interval, and interval lengths of the first value interval and the second value interval are equal to the value range step size; changing the frequency domain coefficient at the i th target position in the frequency domain data to a value in the first value range in response to the value of the watermark data at the i th bit being 0 comprises: changing the frequency domain coefficient at the i th target position in the frequency domain data to a midpoint value of a first value interval closest to the frequency domain coefficient in response to the value of the watermark data at the i th bit being 0, i being a positive integer less than or equal to k; and the changing the frequency domain coefficient at the i th target position in the frequency domain data to a value in the second value range in response to the value of the watermark data at the i th bit being 1 comprises: changing the frequency domain coefficient at the i th target position in the frequency domain data to a midpoint value of a second value interval closest to the frequency domain coefficient in response to the value of the watermark data at the i th bit being 1. 5 . The method according claim 2 , the method further comprising: scrambling the watermarked video data to obtain scrambled watermarked video data; acquiring a scrambled watermarked image frame in the scrambled watermarked video data; performing time-frequency transformation on the scrambled watermarked image frame to obtain scrambled frequency domain data, the scrambled frequency domain data comprising a matrix formed by scrambled frequency domain coefficients; generating a scrambled watermark vector based on the scrambled frequency domain data; inputting the scrambled watermark vector into a watermark extraction model to output scrambled watermark data; calculating a loss value between the watermark data and the scrambled watermark data based on the watermark data; and training the watermark extraction model based on the loss value, wherein the watermark extraction model is configured to output the watermark data based on the inputted vector. 6 . The method according to claim 5 , wherein the generating a scrambled watermark vector based on the scrambled frequency domain data comprises: generating a scrambled watermark vector at the i th target position based on scramble information and watermark information at the i th target position in the scrambled frequency domain data; and repeating the foregoing operation to generate k scrambled watermark vectors at the k target positions, wherein the watermark information comprises a scrambled frequency domain coefficient at the i th target position in the scrambled frequency domain data, scrambled frequency domain coefficients at n target positions around the i th target position, at least one of step sizes of the i th target position and an (i+1) th target position, n being a positive integer, i being a positive integer less than or equal to k. 7 . The method according to claim 6 , wherein the inputting the scrambled watermark vector into a watermark extraction model to output scrambled watermark data comprises: inputting the scrambled watermark vector at the i th target position into the watermark extraction model to output a value the scrambled watermark data at the i th bit; and repeating the foregoing operation to obtain k values of the scrambled watermark data at the k bits. 8 . The method according to claim 6 , wherein the scrambling the watermarked video data to obtain scrambled watermarked video data comprises: scrambling the watermarked video data to obtain the scrambled watermarked video data, the scrambling comprising at least one of compression, offsetting, or cropping, wherein the scramble information comprises at least one of compression information, offsetting information, or cropping information, the compression information comprises at least one of a compression ratio or a compression mode, the offsetting information comprises at least one of an offset amount or an offset position, and the cropping information comprises at least one of a cropping position or a cropping size. 9 . A method for extracting a watermark in video data, applied to a computer device, the method comprising: converting format of an RGB watermarked image frame in watermarked video data to obtain a YCrCb watermarked image frame in a YCrCb format; converting image data of a Cb channel in the YCrCb watermarked image frame from an integer type to a floating-point type;

Assignees

Inventors

Classifications

  • Image cropping · CPC title

  • Training; Learning · CPC title

  • Color image · CPC title

  • Video; Image sequence · CPC title

  • Image coding (bandwidth or redundancy reduction for static pictures H04N1/41; coding or decoding of static colour picture signals H04N1/64; methods or arrangements for coding, decoding, compressing or decompressing digital video signals H04N19/00) · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12579598B2 cover?
Disclosed in this application are a method for embedding a watermark in video data and apparatus, a method for extracting a watermark in video data and apparatus, a device, and a storage medium. The method for embedding the watermark includes: acquiring a target image frame in video data; performing time-frequency transformation on the target image frame to obtain target frequency domain data, …
Who is the assignee on this patent?
Tencent Tech Shenzhen Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06T1/0021. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Mar 17 2026 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 1 related publication on this page (citations in our corpus or others sharing the same primary CPC).