# US 2020/0404309 A1 · Video watermark adding method and apparatus, and electronic device and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2020/0404309 A1
- Document ID: US20200404309A1
- Status: Published application
- Kind: A1
- Application number: 16/979,255
- Filed: 2019-01-25
- Published: 2020-12-24
- Earliest claimed: 2018-09-30
- Assignees: Beijing Microlive Vision Technology Co., Ltd.
- Applicants: Beijing Microlive Vision Technology Co., Ltd
- Inventors: He GUO; Jianqiang HE
- Web page: https://patentgrep.com/patent/US20200404309A1

## CPC

- H04N 19/467: characterised by the embedded information being invisible, e.g. watermarking
- H04N 21/234345: {the reformatting operation being performed only on part of the stream, e.g. a region of the image or a time segment}
- H04N 19/186: the unit being a colour or a chrominance component
- H04N 21/2343: involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements {(video transcoding H04N19/40; media packet handling at the source H04L65/762)}
- H04N 21/234309: {by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 or from Quicktime to Realvideo (conversion of standards in analog television systems H04N7/01)}
- H04N 21/2347: involving video stream encryption
- H04N 21/4382: {Demodulation or channel decoding, e.g. QPSK demodulation (analog front ends or means for connecting modulators, demodulators or transceivers to a transmission line H04L27/0002)}
- H04N 21/440218: {by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 (conversion of standards in analogue television systems H04N7/01)}
- H04N 21/440245: {the reformatting operation being performed only on part of the stream, e.g. a region of the image or a time segment}
- H04N 21/8358: involving watermark {(protecting executable software by watermarking G06F21/16; image watermarking in general G06T1/0021; watermarks inserted in still images for transmission purposes H04N1/32144; inserting watermarks during video coding H04N19/467)}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## 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

### Claim 1

A method for video watermarking, comprising:
converting image data of a 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.

### Claim 2 (depends on 1)

The method of claim 1, wherein the target video frame is a video frame to be watermarked determined from an original video according to one of following rules: a video frame extracted every predetermined number of frames, all video frames within a preset time period, or a video frame extracted through a random algorithm.

### Claim 3 (depends on 1)

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 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.

### Claim 4 (depends on 1)

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 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 video frame.

### Claim 5 (depends on 1)

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.

### Claim 6 (depends on 1)

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.

### Claim 7

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:
converting image data of a 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.

### Claim 8 (depends on 7)

The apparatus of claim 7, wherein the target video frame is a video frame to be watermarked determined from an original video according to one of following rules: a video frame extracted every predetermined number of frames, all video frames within a preset time period, or a video frame extracted through a random algorithm.

### Claim 9 (depends on 7)

The apparatus of claim 7, wherein the at least one program, when executed by the processor, implements 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 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.

### Claim 10 (depends on 7)

The apparatus of claim 7, wherein the at least one program, when executed by the processor, implements 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 further 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 video frame.

### Claim 11 (depends on 7)

The apparatus of claim 7, 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.

### Claim 12 (depends on 7)

The apparatus of claim 7, 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.

### Claim 13

(canceled)

### Claim 14 (depends on 1)

A computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processing apparatus, implements the method for video watermarking of claim 1.

### Claim 15 (depends on 2)

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.

### Claim 16 (depends on 3)

The method of claim 3, 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.

### Claim 17 (depends on 4)

The method of claim 4, 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.

### Claim 18 (depends on 8)

The apparatus of claim 8, 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.

### Claim 19 (depends on 9)

The apparatus 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.

### Claim 20 (depends on 10)

The apparatus of claim 10, 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.

### Claim 21 (depends on 2)

The computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processing apparatus, implements the method of claim 2.
