# US 2024/0205491 A1 · Method and image-processing device for adding an overlay to a video sequence

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

- Number: US 2024/0205491 A1
- Document ID: US20240205491A1
- Status: Published application
- Kind: A1
- Application number: 18/536,270
- Filed: 2023-12-12
- Published: 2024-06-20
- Earliest claimed: 2022-12-16
- Assignees: Axis AB
- Applicants: Axis AB
- Inventors: Johan NYSTRÖM; Johan FÖRBERG; Song YUAN
- Web page: https://patentgrep.com/patent/US20240205491A1

## CPC

- H04N 21/4316: {for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window}
- H04N 21/8146: {involving graphical data, e.g. 3D object, 2D graphics}
- G06V 20/52: Surveillance or monitoring of activities, e.g. for recognising suspicious objects (recognising microscopic objects G06V20/69)
- H04N 19/00: Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N 19/172: the region being a picture, frame or field
- H04N 19/20: using video object coding
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 21/234: Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N 21/4312: {involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations}
- H04N 19/93: Run-length coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A method for adding an overlay to a video sequence includes determining whether a content of the overlay is updated within a time period; then determining whether to provide a second representation of the overlay in a compressed format, wherein it is determined to provide the second representation in response to determining that the content of the overlay is not updated within the time period, and wherein it is determined to not provide the second representation of the overlay in response to determining that the content of the overlay is updated within the time period; and when the second representation of the overlay has been provided, adding the second representation of the overlay to a video frame of the video sequence if a compression ratio of the second representation of the overlay with respect to a first representation of the overlay in an uncompressed format is above a threshold.

## Claims

### Claim 1

A method, performed by an image-processing device, for adding an overlay to a video sequence, the method comprising:
determining, based on a representation of the overlay stored in one or more buffers or memory areas of the image-processing device, whether or not a content of the overlay is updated within a time period;
determining, based on whether or not the content of the overlay is determined to be updated within the time period, whether or not to provide, by a Central Processing Unit, CPU, or Graphic Processing Unit, GPU, a compressed representation of the overlay in a compressed format to an image compositor, wherein it is determined to provide the compressed representation of the overlay in response to determining that the content of the overlay is not updated within the time period, and wherein it is determined to not provide the compressed representation of the overlay in response to determining that the content of the overlay is updated within the time period; and
when the compressed representation of the overlay in the compressed format has been provided, decoding and adding, by the image compositor, the compressed representation of the overlay to video data of a video frame of the video sequence if a compression ratio of the compressed representation of the overlay with respect to an uncompressed representation of the overlay in an uncompressed format is above a threshold, while if the compression ratio is below the threshold, adding the uncompressed representation of the overlay to video data of the video frame of the video sequence, and
when the compressed representation of the overlay in the compressed format has not been provided, adding the uncompressed representation of the overlay to video data of the video frame of the video sequence.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising: computing the compression ratio of the compressed representation with respect to the uncompressed representation when the image-processing device has provided the compressed representation.

### Claim 3 (depends on 1)

The method according to claim 1, wherein adding the overlay to the video data of the video frame of the video sequence comprises:
controlling an image compositor to load the uncompressed representation of the overlay in the uncompressed format for adding it to the video data of the video frame of the video sequence when the compressed representation of the overlay in the compressed format has not been provided or when the compression ratio is below the threshold; or
controlling the image compositor to decode the compressed representation of the overlay in the compressed format and add the decoded compressed representation of the overlay to the video data of the video frame of the video sequence when the compressed representation of the overlay in the compressed format has been provided and the compression ratio is above the threshold.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the uncompressed format is a direct representation of image pixels, such as a raster format or a block-based format.

### Claim 5 (depends on 2)

The method according to claim 2, wherein the compressed format is a Run-Length Encoding, RLE, format or a block-based entropy coding format, such as Joint Photographic Experts Group, JPEG.

### Claim 6 (depends on 3)

The method according to claim 3, wherein providing the compressed representation of the overlay in the compressed format comprises any one or more of:
compressing the uncompressed representation of the overlay in the uncompressed format to the compressed representation of the overlay in the compressed format; and
rendering the compressed representation of the overlay based on a description of the overlay.

### Claim 7 (depends on 1)

The method according to claim 1, wherein determining whether or not the content of the overlay is updated within the time period comprises obtaining first information indicative of a first content of the overlay and determining whether or not second information indicative of a second content of the overlay is obtained within the time period starting from obtaining the first information.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the second content differs from the first content.

### Claim 9 (depends on 7)

The method according to claim 7, wherein obtaining the first information comprises obtaining a first indication of a first buffer comprising the first content of the overlay and available for reading the first content and wherein obtaining the second information comprises obtaining a second indication of a second buffer comprising the second content of the overlay and available for reading the second content of the overlay.

### Claim 10 (depends on 1)

The method according to claim 1, wherein a length of the time period is at least two video frames of the video sequence.

### Claim 11 (depends on 1)

The method according to claim 1, wherein the overlay is a graphic overlay.

### Claim 12 (depends on 1)

An image-processing device configured to perform the method according to claim 1.

### Claim 13 (depends on 12)

The image-processing device according to claim 12, wherein the image-processing device is a video camera, such as a surveillance camera, or a video-server.

### Claim 14 (depends on 1)

A non-transitory computer readable memory having stored therein program (603), comprising computer readable code units which when executed on an image-processing device causes the image-processing device to perform the method according to claim 1.

### Claim 15

(canceled)
