# US 2025/0166255 A1 · Data processing method and apparatus, 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 2025/0166255 A1
- Document ID: US20250166255A1
- Status: Published application
- Kind: A1
- Application number: 18/840,823
- Filed: 2023-05-22
- Published: 2025-05-22
- Earliest claimed: 2022-08-31
- Assignees: Honor Device Co., Ltd.
- Applicants: Honor Device Co., Ltd.
- Inventors: Zhichao Liu
- Web page: https://patentgrep.com/patent/US20250166255A1

## CPC

- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06T 11/40: Filling planar surfaces by adding surface attributes, e.g. adding colours or textures
- G06T 1/60: Memory management
- G06T 3/18: Image warping, e.g. rearranging pixels individually
- G06T 7/11: Region-based segmentation
- G06T 7/90: Determination of colour characteristics
- G06T 11/10: Texturing; Colouring; Generation of textures or colours (retouching, inpainting or scratch removal G06T5/77)
- G06T 15/205: {Image-based rendering}
- H04N 7/0127: {by changing the field or frame frequency of the incoming video signal, e.g. frame rate converter}
- H04N 7/0137: {dependent on presence/absence of motion, e.g. of motion zones (H04N7/014 takes precedence; movement detection in television signals H04N5/144)}
- H04N 7/014: {involving the use of motion vectors (motion estimation and compensation in video coding H04N19/51)}
- H04N 19/132: Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
- H04N 19/503: involving temporal prediction (adaptive coding with adaptive selection between spatial and temporal predictive coding H04N19/107; adaptive coding with adaptive selection among a plurality of temporal predictive coding modes H04N19/109)
- H04N 19/80: Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation (H04N19/635, H04N19/86 take precedence)
- H04N 19/86: involving reduction of coding artifacts, e.g. of blockiness
- G06T 2207/10024: Color image
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

This application provides a data processing method and apparatus, a device, and a storage medium. The method includes: processing, when a frame interpolation condition is satisfied between an obtained first real image frame and an obtained second real image frame, the first real image frame to obtain a first image and a mask image used for marking to-be-filled pixels and effective pixels in the first image; sampling mask data of the mask image pixel by pixel to determine whether pixels in the first image are to-be-filled pixels; and using color data of the first real image frame read from an internal memory to perform color filling on the to-be-filled pixel in the first image, to generate a predicted image frame displayed between the first real image frame and the second real image frame, where color data of the effective pixels in the first image is retained.

## Claims

### Claim 1

A data processing method, comprising:
obtaining a first real image frame and a second real image frame;
processing, when a frame interpolation condition is satisfied between the first real image frame and the second real image frame, the first real image frame to obtain a first image and a mask image of the first image, wherein the mask image is used for marking to-be-filled pixels and effective pixels in the first image, wherein the frame interpolation condition comprises that a moving distance between two consecutive real image frames is less than a distance threshold and there is no translucent object in a real image frame;
sampling mask data of the mask image pixel by pixel to determine whether pixels in the first image are to-be-filled pixels; and
reading, for any one of the to-be-filled pixels in the first image, color data of the first real image frame from an internal memory, and using the color data to perform color filling on the to-be-filled pixel in the first image, to generate a predicted image frame displayed between the first real image frame and the second real image frame, wherein color data of the effective pixels in the first image is retained.

### Claim 2

(canceled)

### Claim 3 (depends on 21)

The method according to claim 21, wherein after the obtaining a first real image frame and a second real image frame, the method further comprises:
determining whether there is a translucent object in the first real image frame;
calculating a first moving distance between the first real image frame and the second real image frame in response to that there is no translucent object in the first real image frame;
determining whether the first moving distance is less than the distance threshold;
determining, in response to that the first moving distance is less than the distance threshold, that the frame interpolation condition is satisfied between the first real image frame and the second real image frame; and
determining, in response to that there is a translucent object in the first real image frame and/or the first moving distance is greater than or equal to the distance threshold, that the frame interpolation condition is not satisfied between the first real image frame and the second real image frame.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the reading color data of the first real image frame from an internal memory, and using the color data to perform color filling on the to-be-filled pixel in the first image comprises:
determining at least one candidate reference pixel of the to-be-filled pixel in the first image;
determining a target reference pixel from the at least one candidate reference pixel based on object categories to which candidate reference pixels respectively belong;
determining, based on a relationship between the target reference pixel and the first real image frame, color data of the target reference pixel by reading the internal memory; and
performing the color filling on the to-be-filled pixel based on the color data of the target reference pixel.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the determining a candidate reference pixel of the to-be-filled pixel in the first image comprises:
randomly moving to a first position in the first image with a position of the to-be-filled pixel as a starting point;
determining, if a pixel at the first position is not a to-be-filled pixel, that the pixel at the first position is the candidate reference pixel of the to-be-filled pixel; and
if the pixel at the first position is a to-be-filled pixel, continuing to randomly move in the first image with the first position as the starting point until moving to a second location where a pixel is not a to-be-filled pixel, and determining the pixel at the second position as the candidate reference pixel of the to-be-filled pixel.

### Claim 6 (depends on 4)

The method according to claim 4, wherein the performing the color filling on the to-be-filled pixel based on the color data of the target reference pixel comprises:
determining effective color data of the target reference pixel based on a weight corresponding to the target reference pixel and the color data of the target reference pixel;
accumulating the effective color data into existing color data of the to-be-filled pixel until a quantity of color accumulations of the to-be-filled pixel is equal to a first threshold to obtain current color data of the to-be-filled pixel;
dividing the current color data by the first threshold to obtain first color data of the to-be-filled pixel; and
writing the first color data to a position of the to-be-filled pixel in the first image.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the processing the first real image frame to obtain a first image and a mask image of the first image comprises:
using, based on object categories to which pixels in the first real image frame respectively belong, a motion vector to perform an image warp operation twice on the first real image frame to generate the first image; and
generating the mask image of the first image based on whether color data exists for the pixels in the first image.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the processing the first real image frame to obtain a first image and a mask image of the first image comprises:
generating a stencil buffer of the first real image frame based on the object categories to which the pixels in the first real image frame respectively belong;
querying the stencil buffer, and determining object categories to which pixels in a mask texture image respectively belong, wherein the mask texture image is an image of which initial values are all equal to a first value, and the first value is used for marking the to-be-filled pixels in the first image; and
using, based on the object categories to which the pixels respectively belong, a motion vector to perform an image warp operation twice on both the first real image frame and the mask texture image to generate the first image and the mask image of the first image.

### Claim 9 (depends on 8)

The method according to claim 8, wherein the using, based on the object categories to which the pixels respectively belong, a motion vector to perform an image warp operation twice on both the first real image frame and the mask texture image to generate the first image and the mask image of the first image comprises:
using a multiple render targets MRT technology to perform a first image warp operation corresponding to the motion vector simultaneously on pixels in the first real image frame belonging to a first object category and pixels in the mask texture image belonging to the first object category to generate a warped first real image frame and a warped mask texture image; and
performing a second image warp operation corresponding to the motion vector simultaneously on pixels in the warped first real image frame belonging to a second object category and pixels in the warped mask texture image belonging to the second object category to generate the first image and the mask image of the first image, wherein
the first object category is a static object, and the second object category is a dynamic object, or the first object category is a dynamic object, and the second object category is a static object.

### Claim 10 (depends on 1)

The method according to claim 1, wherein the sampling mask data of the mask image pixel by pixel to determine whether pixels in the first image are to-be-filled pixels comprises:
sampling mask data of pixels in the mask image pixel by pixel;
determining, if the mask data of the sampled pixels is equal to the first value in the mask image, that a pixel at a corresponding position in the first image is a to-be-filled pixel; and
determining, if the mask data of the sampled pixels is equal to a second value, that the pixel at the corresponding position in the first image is not a to-be-filled pixel.

### Claim 11 (depends on 10)

The method according to claim 10, wherein the mask image is a binary image, the first value is equal to 1, and the second value is equal to 0.

### Claim at position 12

-15. (canceled)

### Claim 16

An electronic device, comprising:
one or more processors;
one or more memories; and
a module at which a plurality of applications are installed, wherein
the memory stores one or more programs, and when the one or more programs are executed by the processor, the electronic device is enabled to perform a method, the method comprising:
obtaining a first real image frame and a second real image frame;
processing, when a frame interpolation condition is satisfied between the first real image frame and the second real image frame, the first real image frame to obtain a first image and a mask image of the first image, wherein the mask image is used for marking to-be-filled pixels and effective pixels in the first image, wherein the frame interpolation condition comprises that a moving distance between two consecutive real image frames is less than a distance threshold and there is no translucent object in a real image frame;
sampling mask data of the mask image pixel by pixel to determine whether pixels in the first image are to-be-filled pixels; and
reading, for any one of the to-be-filled pixels in the first image, color data of the first real image frame from an internal memory, and using the color data to perform color filling on the to-be-filled pixel in the first image, to generate a predicted image frame displayed between the first real image frame and the second real image frame, wherein color data of the effective pixels in the first image is retained.

### Claim 17 (depends on 16)

The device according to claim 16, wherein after the obtaining a first real image frame and a second real image frame, the method further comprises:
determining whether there is a translucent object in the first real image frame;
calculating a first moving distance between the first real image frame and the second real image frame in response to that there is no translucent object in the first real image frame;
determining whether the first moving distance is less than the distance threshold;
determining, in response to that the first moving distance is less than the distance threshold, that the frame interpolation condition is satisfied between the first real image frame and the second real image frame; and
determining, in response to that there is a translucent object in the first real image frame and/or the first moving distance is greater than or equal to the distance threshold, that the frame interpolation condition is not satisfied between the first real image frame and the second real image frame.

### Claim 18 (depends on 16)

The device according to claim 16, wherein the reading color data of the first real image frame from an internal memory, and using the color data to perform color filling on the to-be-filled pixel in the first image comprises:
determining at least one candidate reference pixel of the to-be-filled pixel in the first image;
determining a target reference pixel from the at least one candidate reference pixel based on object categories to which candidate reference pixels respectively belong;
determining, based on a relationship between the target reference pixel and the first real image frame, color data of the target reference pixel by reading the internal memory; and
performing the color filling on the to-be-filled pixel based on the color data of the target reference pixel.

### Claim 19 (depends on 18)

The device according to claim 18, wherein the determining a candidate reference pixel of the to-be-filled pixel in the first image comprises:
randomly moving to a first position in the first image with a position of the to-be-filled pixel as a starting point;
determining, if a pixel at the first position is not a to-be-filled pixel, that the pixel at the first position is the candidate reference pixel of the to-be-filled pixel; and
if the pixel at the first position is a to-be-filled pixel, continuing to randomly move in the first image with the first position as the starting point until moving to a second location where a pixel is not a to-be-filled pixel, and determining the pixel at the second position as the candidate reference pixel of the to-be-filled pixel.

### Claim 20

A non-transitory computer-readable storage medium, comprising
a computer program, which when executed by a processor, cause the processor to perform operations comprising:
obtaining a first real image frame and a second real image frame;
processing, when a frame interpolation condition is satisfied between the first real image frame and the second real image frame, the first real image frame to obtain a first image and a mask image of the first image, wherein the mask image is used for marking to-be-filled pixels and effective pixels in the first image, wherein the frame interpolation condition comprises that a moving distance between two consecutive real image frames is less than a distance threshold and there is no translucent object in a real image frame;
sampling mask data of the mask image pixel by pixel to determine whether pixels in the first image are to-be-filled pixels; and
reading, for any one of the to-be-filled pixels in the first image, color data of the first real image frame from an internal memory, and using the color data to perform color filling on the to-be-filled pixel in the first image, to generate a predicted image frame displayed between the first real image frame and the second real image frame, wherein color data of the effective pixels in the first image is retained.
