IP Library Granted Patent US 11,930,202
Granted Patent B2
US 11,930,202 · App. 16/979,255 · Granted Mar 12, 2024

Method and apparatus for video watermarking, and storage medium

Inventors: He Guo (Beijing, CN); Jianqiang He (Beijing, CN)
Assignee: BEIJING MICROLIVE VISION TECHNOLOGY CO., LTD
H04N19/467H04N21/2343H04N21/2347H04N21/4382H04N21/8358
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,930,202
App. No.
16/979,255
Granted
Mar 12, 2024
Kind
B2
Abstract

Disclosed are method and apparatus for video watermarking, an electronic device and a storage medium. The method includes steps described below. Image data of a target video frame is converted from an RGB format to a YUV format; in the YUV format, an offset with a preset value is superimposed on a pixel value of a pixel point corresponding to a shape be watermarked on the target video frame; and the target video frame on which the offset is superimposed is encoded.

Claims (49)

1. A method for video watermarking, being implemented by an electronic device and comprising:

determining, from an original video, a video frame to be watermarked in a preset manner to be a target video frame, wherein the preset manner comprises one of the following: extracting a video frame every predetermined number of frames, extracting all video frames within a preset time period, or extracting a video frame through a random algorithm;

converting image data of the target video frame from a red-green-blue (RGB) format to a luma and chroma (YUV) format;

superimposing, in the YUV format, an offset with a preset value on a pixel value of a pixel point corresponding to a shape to be watermarked on the target video frame; and

encoding the target video frame on which the offset is superimposed to output the original video containing the encoded target video frame;

wherein superimposing the offset with the preset value on the pixel value of the pixel point corresponding to the shape to be watermarked on the target video frame comprises:

determining a target area to be watermarked on the target video frame, wherein the target area is a corresponding area on an image of the target video frame determined according to a display content on a user operation interface displaying the target video frame; and

superimposing the offset with the preset value on the pixel value of the pixel point corresponding to the shape to be watermarked on the target area of the target video frame.

2. The method of claim 1 , wherein superimposing the offset with the preset value on the pixel value of the pixel point corresponding to the shape to be watermarked on the target area of the target video frame comprises:

superimposing the offset with the preset value on U-channel data or V-channel data of the pixel point corresponding to the shape to be watermarked on the target area of the target video frame.

3. The method of claim 1 , wherein the pixel point on which the offset is superimposed further has following characteristics:

a difference value between the pixel value of the pixel point and an average value of pixel values of a plurality of pixel points in a neighborhood of the pixel point does not exceed a preset threshold.

4. The method of claim 1 , further comprising:

in a case where a watermark needs to be detected, reading and decoding image data of the watermarked target video frame, extracting U-channel data or V-channel data of the YUV format obtained after decoding, and detecting an existence of the watermark by increasing a contrast.

5. An apparatus for video watermarking, comprising:

a processor and a memory; wherein the memory is configured to store at least one program which, when executed by the processor, implements:

determining, from an original video, a video frame to be watermarked in a preset manner to be a target video frame, wherein the preset manner comprises one of the following: extracting a video frame every predetermined number of frames, extracting all video frames within a preset time period, or extracting a video frame through a random algorithm;

converting image data of the target video frame from a red-green-blue (RGB) format to a luma and chroma (YUV) format;

superimposing, in the YUV format, an offset with a preset value on a pixel value of a pixel point corresponding to a shape to be watermarked on the target video frame; and

encoding the target video frame on which the offset is superimposed to output the original video containing the encoded target video frame;

wherein the at least one program, when executed by the processor, implements superimposing the offset with the preset value on the pixel value of the pixel point corresponding to the shape to be watermarked on the target video frame by:

determining a target area to be watermarked on the target video frame, wherein the target area is a corresponding area on an image of the target video frame determined according to a display content on a user operation interface displaying the target video frame; and

superimposing the offset with the preset value on the pixel value of the pixel point corresponding to the shape to be watermarked on the target area of the target video frame.

6. The apparatus of claim 5 , wherein the at least one program, when executed by the processor, implements superimposing, in the YUV format, the offset with a preset value on the pixel value of the pixel point corresponding to the shape to be watermarked on the target area of the target video frame by:

superimposing the offset with the preset value on U-channel data or V-channel data of the pixel point corresponding to the shape to be watermarked on the target area of the target video frame.

7. The apparatus of claim 5 , wherein the pixel point on which the offset is superimposed further has following characteristics:

a difference value between the pixel value of the pixel point and an average value of pixel values of a plurality of pixel points in a neighborhood of the pixel point does not exceed a preset threshold.

8. The apparatus of claim 5 , wherein the at least one program, when executed by the processor, further implements:

in a case where a watermark needs to be detected, reading and decoding image data of the watermarked target video frame, extracting U-channel data or V-channel data of the YUV format obtained after decoding, and detecting an existence of the watermark by increasing a contrast.

9. A non-transitory computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processing apparatus, implements the following:

determining, from an original video, a video frame to be watermarked in a preset manner to be a target video frame, wherein the preset manner comprises one of the following: extracting a video frame every predetermined number of frames, extracting all video frames within a preset time period, or extracting a video frame through a random algorithm;

converting image data of the target video frame from a red-green-blue (RGB) format to a luma and chroma (YUV) format;

superimposing, in the YUV format, an offset with a preset value on a pixel value of a pixel point corresponding to a shape to be watermarked on the target video frame; and

encoding the target video frame on which the offset is superimposed to output the original video containing the encoded target video frame;

wherein the computer program, when executed by the processing apparatus, implements superimposing the offset with the preset value on the pixel value of the pixel point corresponding to the shape to be watermarked on the target video frame by:

determining a target area to be watermarked on the target video frame, wherein the target area is a corresponding area on an image of the target video frame determined according to a display content on a user operation interface displaying the target video frame; and

superimposing the offset with the preset value on the pixel value of the pixel point corresponding to the shape to be watermarked on the target area of the target video frame.

10. The method of claim 2 , wherein the pixel point on which the offset is superimposed further has following characteristics:

a difference value between the pixel value of the pixel point and an average value of pixel values of a plurality of pixel points in a neighborhood of the pixel point does not exceed a preset threshold.

11. The apparatus of claim 6 , wherein the pixel point on which the offset is superimposed further has following characteristics:

a difference value between the pixel value of the pixel point and an average value of pixel values of a plurality of pixel points in a neighborhood of the pixel point does not exceed a preset threshold.

12. The storage medium of claim 9 , wherein the computer program, when executed by the processing apparatus, implements superimposing, in the YUV format, the offset with a preset value on the pixel value of the pixel point corresponding to the shape to be watermarked on the target area of the target video frame by:

superimposing the offset with the preset value on U-channel data or V-channel data of the pixel point corresponding to the shape to be watermarked on the target area of the target video frame.

13. The storage medium of claim 9 , wherein the pixel point on which the offset is superimposed further has following characteristics:

a difference value between the pixel value of the pixel point and an average value of pixel values of a plurality of pixel points in a neighborhood of the pixel point does not exceed a preset threshold.

14. The storage medium of claim 12 , wherein the pixel point on which the offset is superimposed further has following characteristics:

a difference value between the pixel value of the pixel point and an average value of pixel values of a plurality of pixel points in a neighborhood of the pixel point does not exceed a preset threshold.

15. The storage medium of claim 9 , wherein the computer program, when executed by the processing apparatus, further implements:

in a case where a watermark needs to be detected, reading and decoding image data of the watermarked target video frame, extracting U-channel data or V-channel data of the YUV format obtained after decoding, and detecting an existence of the watermark by increasing a contrast.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 17, 2020
From: GUO, HE
To: BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD.
Reel/Frame 053801/0976 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 17, 2020
From: HE, JIANQIANG
To: BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD.
Reel/Frame 053802/0013 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 17, 2020
From: BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD.
To: BEIJING MICROLIVE VISION TECHNOLOGY CO., LTD.
Reel/Frame 053802/0018 →
Priority Claims (1)
CN 201811161606.8 · Sep 30, 2018 · national
Continuity (1)
Related Publication 20200404309A1 · Dec 24, 2020