# US 10,957,004 B2 · Watermark processing method and device

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

- Number: US 10,957,004 B2
- Document ID: US10957004B2
- Status: Granted
- Kind: B2
- Application number: 16/258,362
- Filed: 2019-01-25
- Published: 2019-08-01
- Granted: 2021-03-23
- Earliest claimed: 2018-01-26
- Assignees: Alibaba Group Holding Limited
- Applicants: Alibaba Group Holding Limited
- Inventors: Tianruo Zhang
- Web page: https://patentgrep.com/patent/US10957004B2

## CPC

- G06T 1/0021: {Image watermarking}
- G06F 21/16: Program or content traceability, e.g. by watermarking
- G06T 1/0028: {Adaptive watermarking, e.g. Human Visual System [HVS]-based watermarking}
- H04N 21/00: Selective content distribution, e.g. interactive television or video on demand [VOD] (real-time bi-directional transmission of motion video data H04N7/14 {; broadcast or conference over packet switching networks H04L12/18})
- 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)}
- G06F 21/1063: {Personalisation}
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A watermark processing method including generating watermark parameters for original multimedia data; performing watermark superposition processing on the original multimedia data according to the watermark parameters to obtain first multimedia data; encoding the first multimedia data to obtain a first multimedia code stream and encapsulating the watermark parameters into the first multimedia code stream to obtain a second multimedia code stream; and sending the second multimedia code stream to a terminal device so that the terminal device performs watermark inverse superposition processing on the first multimedia data according to the watermark parameters to obtaining the original multimedia data. The watermark processing method and apparatus prevent unlicensed broadcasting and hotlinking through a watermark and meanwhile do not display the watermark at the terminal device with valid content licensing of the broadcasted content during broadcasting to avoid affecting watch experience of audience.

## Claims

### Claim 1

A method comprising:
generating watermark parameters for original multimedia data, the watermark parameters comprising: a watermark logo, a watermark position, a watermark size, and a watermark transparency;
performing watermark superposition processing on the original multimedia data according to the watermark parameters to obtain first multimedia data, wherein performing the watermark superposition processing on the original multimedia data comprises:
adjusting a size of a watermark image to which the watermark logo corresponds according to the watermark size to obtain a first watermark image;
determining a to-be-adjusted area of a respective image in the original multimedia data according to the watermark position and the watermark size; and
adjusting values of pixels in the to-be-adjusted area of the respective image according to the watermark transparency and the first watermark image to obtain the first multimedia data;
encoding the first multimedia data to obtain a first multimedia code stream;
encapsulating the watermark parameters into the first multimedia code stream to obtain a second multimedia code stream; and
sending the second multimedia code stream to a terminal device.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
enabling the terminal device to perform watermark inverse superposition processing on the first multimedia data according to the watermark parameters to obtain the original multimedia data.

### Claim 3 (depends on 2)

The method of claim 2, wherein the watermark inverse superposition processing is an inverse process of performing the watermark superposition processing on the original multimedia data.

### Claim 4 (depends on 1)

The method of claim 1, wherein the adjusting values of the pixels in the to-be-adjusted area of the respective image according to the watermark transparency and the first watermark image comprises:
determining a first ratio and a second ratio according to the watermark transparency;
determining signal components to which a respective pixel in the to-be-adjusted area of the image corresponds;
determining signal components to which a respective pixel in the first watermark image corresponds, the respective pixel in the first watermark image corresponding to the respective pixel in the to-be-adjusted area;
determining a first signal component of the signal components of the respective pixel in the to-be-adjusted area according to the first ratio and the signal components of the respective pixel in the to-be-adjusted area;
determining a second signal component of the signal components of the respective pixel in the first watermark image according to the second ratio and the signal components of the respective pixel in the first watermark image; and
determining a sum of the first signal component of the signal components of the respective pixel in the to-be-adjusted area and the second signal component of the signal components of the respective pixel in the first watermark image as a signal component of the respective pixel in the to-be-adjusted area after adjustment.

### Claim 5 (depends on 4)

The method of claim 4, wherein the signal components comprise:
a luminance signal component;
a first chrominance signal component; and
a second chrominance signal component.

### Claim 6 (depends on 1)

The method of claim 1, wherein the generating the watermark parameters for the original multimedia data comprises:
determining reference values of the watermark parameters;
generating adjustment parameters; and
adjusting the reference values of the watermark parameters according to the adjustment parameters to obtain the watermark parameters.

### Claim 7

A method comprising:
receiving a multimedia code stream to obtain watermark parameters carried in the multimedia code stream, the watermark parameters comprising: a watermark logo, a watermark position, a watermark size, and a watermark transparency;
removing the watermark parameters in the multimedia code stream to obtain a first multimedia code stream;
decoding the first multimedia code stream to obtain first multimedia data; and
performing watermark inverse superposition processing on the first multimedia data according to the watermark parameters to obtain original multimedia data, performing the watermark inverse superposition processing on the first multimedia data comprises:
obtaining a watermark image to which the watermark logo corresponds;
adjusting a size of the watermark image according to the watermark size to obtain a first watermark image;
determining a to-be-adjusted area of a respective image in the first multimedia data according to the watermark position and the watermark size; and
adjusting values of pixels in the to-be-adjusted area of the respective image according to the watermark transparency and the first watermark image.

### Claim 8 (depends on 7)

The method of claim 7, wherein the inverse superposition processing is an inverse process of performing watermark superposition processing on the original multimedia data.

### Claim 9 (depends on 7)

The method of claim 7, wherein the adjusting values of pixels in the to-be-adjusted area of the respective image according to the watermark transparency and the first watermark image comprises:
determining a third ratio and a fourth ratio according to the watermark transparency;
determining signal components to which a respective pixel in the to-be-adjusted area of the respective image corresponds;
determining signal components to which a respective pixel in the first watermark image corresponds, the respective pixel in the first watermark image corresponding to the respective pixel in the to-be-adjusted area;
determining a first signal component of signal components of the respective pixel in the to-be-adjusted area according to the third ratio and the signal components of the respective pixel in the to-be-adjusted area;
determining a second signal component of signal components of the respective pixel in the first watermark image according to the fourth ratio and the signal components of the respective pixel in the first watermark image; and
determining a difference between a first signal component of signal components of the respective pixel in the to-be-adjusted area and a second signal component of signal components of the respective pixel in the first watermark image as a signal component of the respective pixel in the to-be-adjusted area after adjustment.

### Claim 10 (depends on 9)

The method of claim 9, wherein the signal components comprise:
a luminance signal component;
a first chrominance signal component; and
a second chrominance signal component.

### Claim 11

A device comprising:
one or more processors;
memory storing thereon computer-readable instructions that, when executed by the one or more processors, cause the one or more processors to perform acts comprising:
generating watermark parameters for original multimedia data, the watermark parameters comprising: a watermark logo, a watermark position, a watermark size, and a watermark transparency;
performing watermark superposition processing on the original multimedia data according to the watermark parameters to obtain first multimedia data, wherein performing the watermark superposition processing on the original multimedia data comprises:
adjusting a size of a watermark image to which the watermark logo corresponds according to the watermark size to obtain a first watermark image;
determining a to-be-adjusted area of a respective image in the original multimedia data according to the watermark position and the watermark size; and
adjusting values of pixels in the to-be-adjusted area of the respective image according to the watermark transparency and the first watermark image to obtain the first multimedia data;
encoding the first multimedia data to obtain a first multimedia code stream;
encapsulating the watermark parameters into the first multimedia code stream to obtain a second multimedia code stream; and
sending the second multimedia code stream to a terminal device to enable the terminal device to perform watermark inverse superposition processing on the first multimedia data according to the watermark parameters to obtain the original multimedia data, the inverse superposition processing being an inverse process of performing watermark superposition processing on the original multimedia data.

### Claim 12 (depends on 11)

The device of claim 11, wherein the adjusting values of the pixels in the to-be-adjusted area of the respective image according to the watermark transparency and the first watermark image comprises:
determining a first ratio and a second ratio according to the watermark transparency;
determining signal components to which a respective pixel in the to-be-adjusted area of the image corresponds;
determining signal components to which a respective pixel in the first watermark image corresponds, the respective pixel in the first watermark image corresponding to the respective pixel in the to-be-adjusted area;
determining a first signal component of the signal components of the respective pixel in the to-be-adjusted area according to the first ratio and the signal components of the respective pixel in the to-be-adjusted area;
determining a second signal component of the signal components of the respective pixel in the first watermark image according to the second ratio and the signal components of the respective pixel in the first watermark image; and
determining a sum of the first signal component of the signal components of the respective pixel in the to-be-adjusted area and the second signal component of the signal components of the respective pixel in the first watermark image as a signal component of the respective pixel in the to-be-adjusted area after adjustment.

### Claim 13 (depends on 12)

The device of claim 12, wherein the signal components comprise:
a luminance signal component;
a first chrominance signal component; and
a second chrominance signal component.

### Claim 14 (depends on 11)

The device of claim 11, wherein the generating the watermark parameters for the original multimedia data comprises:
determining reference values of the watermark parameters;
generating adjustment parameters; and
adjusting the reference values of the watermark parameters according to the adjustment parameters to obtain the watermark parameters.
