# US 12,589,298 B2 · Image prediction method, 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 12,589,298 B2
- Document ID: US12589298B2
- Status: Granted
- Kind: B2
- Application number: 18/025,975
- Filed: 2022-01-21
- Published: 2023-11-16
- Granted: 2026-03-31
- Earliest claimed: 2021-06-11
- Assignees: Honor Device Co., Ltd.
- Applicants: Honor Device Co., Ltd.
- Inventors: Yuchen Wang; Xin Bai; Zhaoyang Yin; Wei Li
- Web page: https://patentgrep.com/patent/US12589298B2

## CPC

- A63F 13/52: involving aspects of the displayed game scene
- A63F 13/837: Shooting of targets
- G06T 1/60: Memory management
- G06T 7/246: using feature-based methods, e.g. the tracking of corners or segments
- G06T 11/00: Two-dimensional [2D] image generation
- A63F 2300/538: for performing operations on behalf of the game client, e.g. rendering
- A63F: CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

This application provides an image prediction method, an electronic device, and a storage medium. The prediction method includes: obtaining a drawing instruction stream of a first image frame, wherein the first image frame contains one or more first objects; calculating a first motion vector between the one or more first objects and the one or more third objects, wherein the one or more third objects match the one or more first objects; obtaining a second motion vector, wherein the second motion vector is a motion vector between the one or more third objects and one or more fourth objects in a third image frame; calculating a third motion vector based on a first motion vector and a second motion vector; obtaining a first prediction image frame based on the first motion vector, the third motion vector, and the one or more first objects.

## Claims

### Claim 1

An image prediction method, comprising:
obtaining, by a processor in an electronic device, a drawing instruction stream of a first image frame, wherein the first image frame includes one or more first objects;
obtaining, by the processor, the one or more first objects in the first image frame according to a first-type drawing instruction in the drawing instruction stream of the first image frame, wherein the first-type drawing instruction is a scenario drawing instruction and the one or more first objects are drawn in the first image frame based on the scenario drawing instruction;
obtaining, by the processor, one or more second objects in the first image frame according to a second-type drawing instruction in the drawing instruction stream of the first image frame, wherein the second-type drawing instruction is a control drawing instruction and the one or more second objects are drawn in the first image frame based on the control drawing instruction;
obtaining, by the processor, one or more third objects in a second image frame, wherein the second image frame is an image frame before the first image frame;
calculating, by the processor, a first motion vector between the one or more first objects and the one or more third objects, wherein the one or more third objects match the one or more first objects;
obtaining, by the processor, a second motion vector, wherein the second motion vector is a motion vector between the one or more third objects and one or more fourth objects in a third image frame, wherein the one or more third objects match the one or more fourth objects, and the third image frame is an image frame before the second image frame;
calculating, by the processor, a third motion vector based on the first motion vector and the second motion vector;
obtaining, by the processor, a first prediction image frame based on the first motion vector, the third motion vector, and the one or more first objects;
combining, by the processor, the first prediction image frame with the one or more second objects to obtain a second prediction image frame; and
causing, by the processor, the second prediction image frame to be displayed on a display device after the first image frame is displayed on the display device.

### Claim 2 (depends on 1)

The image prediction method according to claim 1, wherein before the obtaining the drawing instruction stream of the first image frame, the method further comprises:
replacing a first pointer in a pointer list with a second pointer, wherein the first pointer points to a first function, the second pointer points to a second function, the first function is used to draw the first image frame, and the second function is used to identify a drawing instruction in the drawing instruction stream of the first image frame.

### Claim 3 (depends on 2)

The image prediction method according to claim 2, further comprising:
identifying the drawing instruction in the drawing instruction stream of the first image frame based on the second function, to determine the first-type drawing instruction, the second-type drawing instruction, and a third-type drawing instruction in the drawing instruction stream of the first image frame.

### Claim 4 (depends on 1)

The image prediction method according to claim 1, wherein before the obtaining the one or more third objects in the second image frame, the method further comprises:
obtaining a drawing instruction stream of the second image frame;
obtaining the one or more third objects in the second image frame according to the first-type drawing instruction in the drawing instruction stream of the second image frame; and
storing the one or more third objects in the second image frame.

### Claim 5 (depends on 4)

The image prediction method according to claim 4, wherein the obtaining the one or more third objects in the second image frame comprises:
obtaining the one or more third objects in the second image frame according to a third-type drawing instruction in the drawing instruction stream of the first image frame, wherein the third-type drawing instruction is an image display instruction.

### Claim 6 (depends on 1)

The image prediction method according to claim 1, wherein the one or more first objects comprise a fifth object, the one or more third objects comprise a sixth object, the one or more fourth objects comprise a seventh object, that the one or more first objects match the one or more third objects is that an identifier of the fifth object is the same as an identifier of the sixth object, and that the one or more third objects match the one or more fourth objects is that the identifier of the sixth object is the same as an identifier of the seventh object.

### Claim 7 (depends on 1)

The image prediction method according to claim 1, wherein P image frames are spaced between the first image frame and the second image frame, Q image frames are spaced between the second image frame and the third image frame, and P and Q are positive integers.

### Claim 8 (depends on 6)

The image prediction method according to claim 6, wherein the one or more first objects comprise the fifth object and an eighth object, the one or more third objects comprise the sixth object and a ninth object, the identifier of the fifth object is the same as the identifier of the sixth object, and an identifier of the eighth object is the same as an identifier of the ninth object, wherein the method further comprises:
obtaining vertex information of the sixth object based on the identifier of the fifth object;
determining, based on the vertex information of the fifth object being different from the vertex information of the sixth object, that the fifth object is a dynamic object;
obtaining vertex information of the ninth object based on the identifier of the eighth object;
determining, based on the vertex information of the eighth object being the same as the vertex information of the ninth object, that the eighth object is a static object;
recording the fifth object as the dynamic object; and
recording the eighth object as the static object.

### Claim 9 (depends on 8)

The image prediction method according to claim 8, wherein the calculating the first motion vector between the one or more first objects and the one or more third objects comprises:
calculating a first motion component of the first motion vector based on coordinates of the fifth object and coordinates of the sixth object; and
calculating a second motion component of the first motion vector based on coordinates of the eighth object and coordinates of the ninth object.

### Claim 10 (depends on 1)

The image prediction method according to claim 1,
wherein before the obtaining the second motion vector, the method further comprises:
obtaining a drawing instruction stream of the third image frame;
obtaining the one or more fourth objects in the third image frame according to a first-type drawing instruction in the drawing instruction stream of the third image frame; and
storing the one or more fourth objects;
wherein after the obtaining the one or more third objects in the second image frame, the method further comprises:
calculating the second motion vector between the one or more third objects and the one or more fourth objects; and
storing the second motion vector.

### Claim 11 (depends on 6)

The image prediction method according to claim 6,
wherein the one or more fourth objects comprise the seventh object and a tenth object, the identifier of the sixth object is the same as the identifier of the seventh object, and the identifier of the ninth object is the same as an identifier of the tenth object; and
wherein the calculating the second motion vector between the one or more third objects and the one or more fourth objects comprises:
calculating a first motion component of the second motion vector based on the coordinates of the sixth object and coordinates of the seventh object; and
calculating a second motion component of the second motion vector based on the coordinates of the ninth object and coordinates of the tenth object.

### Claim 12 (depends on 7)

The image prediction method according to claim 7, wherein P=Q=1, and the calculating the third motion vector based on the first motion vector and the second motion vector comprises:
using half of a difference between the second motion vector and the first motion vector as the third motion vector.

### Claim 13 (depends on 9)

The image prediction method according to claim 9, wherein the obtaining the first prediction image frame based on the first motion vector, the third motion vector, and the one or more first objects comprises:
obtaining prediction coordinates of the fifth object based on a sum of half of the first motion component of the first motion vector, a first motion component of the third motion vector, and the coordinates of the fifth object;
obtaining prediction coordinates of the eighth object based on a sum of half of the second motion component of the first motion vector, a second motion component of the third motion vector, and the coordinates of the eighth object; and
obtaining the first prediction image frame based on the prediction coordinates of the fifth object and the prediction coordinates of the eighth object.

### Claim 14 (depends on 1)

The image prediction method according to claim 1, further comprising:
discarding a drawing instruction stream of an image frame between the first image frame and the second image frame; and
discarding a drawing instruction stream of an image frame between the second image frame and the third image frame.

### Claim 15 (depends on 1)

The image prediction method according to claim 1, further comprising:
drawing the drawing instruction stream of the first image frame.

### Claim 16

An electronic device, comprising:
a processor; and
a storage device, wherein the storage device stores program instructions, wherein when the program instructions are run by the processor, the processor is enabled to perform operations comprising:
obtaining a drawing instruction stream of a first image frame, wherein the first image frame includes one or more first objects;
obtaining the one or more first objects in the first image frame according to a first-type drawing instruction in the drawing instruction stream of the first image frame, wherein the first-type drawing instruction is a scenario drawing instruction and the one or more first objects are drawn in the first image frame based on the scenario drawing instruction;
obtaining one or more second objects in the first image frame according to a second-type drawing instruction in the drawing instruction stream of the first image frame, wherein the second-type drawing instruction is a control drawing instruction and the one or more second objects are drawn in the first image frame based on the control drawing instruction;
obtaining one or more third objects in a second image frame, wherein the second image frame is an image frame before the first image frame;
calculating a first motion vector between the one or more first objects and the one or more third objects, wherein the one or more third objects match the one or more first objects;
obtaining a second motion vector, wherein the second motion vector is a motion vector between the one or more third objects and one or more fourth objects in a third image frame, wherein the one or more third objects match the one or more fourth objects, and the third image frame is an image frame before the second image frame;
calculating a third motion vector based on the first motion vector and the second motion vector;
obtaining a first prediction image frame based on the first motion vector, the third motion vector, and the one or more first objects;
combining the first prediction image frame with the one or more second objects to obtain a second prediction image frame; and
causing the second prediction image frame to be displayed on a display device after the first image frame is displayed on the display device.

### Claim 17

A non-transitory computer-readable storage medium comprising computer instructions, wherein when the computer instructions are run on a processor included in an electronic device, the processor is enabled to perform operations comprising:
obtaining a drawing instruction stream of a first image frame, wherein the first image frame includes one or more first objects;
obtaining the one or more first objects in the first image frame according to a first-type drawing instruction in the drawing instruction stream of the first image frame, wherein the first-type drawing instruction is a scenario drawing instruction and the one or more first objects are drawn in the first image frame based on the scenario drawing instruction;
obtaining one or more second objects in the first image frame according to a second-type drawing instruction in the drawing instruction stream of the first image frame, wherein the second-type drawing instruction is a control drawing instruction and the one or more second objects are drawn in the first image frame based on the control drawing instruction;
obtaining one or more third objects in a second image frame, wherein the second image frame is an image frame before the first image frame;
calculating a first motion vector between the one or more first objects and the one or more third objects, wherein the one or more third objects match the one or more first objects;
obtaining a second motion vector, wherein the second motion vector is a motion vector between the one or more third objects and one or more fourth objects in a third image frame, wherein the one or more third objects match the one or more fourth objects, and the third image frame is an image frame before the second image frame;
calculating a third motion vector based on the first motion vector and the second motion vector;
obtaining a first prediction image frame based on the first motion vector, the third motion vector, and the one or more first objects;
combining the first prediction image frame with the one or more second objects to obtain a second prediction image frame; and
causing the second prediction image frame to be displayed on a display device after the first image frame is displayed on the display device.
