# US 2024/0005442 A1 · Image Frame Storage Method, Photographing Method, and Electronic Device

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

- Number: US 2024/0005442 A1
- Document ID: US20240005442A1
- Status: Published application
- Kind: A1
- Application number: 18/251,331
- Filed: 2021-10-30
- Published: 2024-01-04
- Earliest claimed: 2020-10-31
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Xi Chen
- Web page: https://patentgrep.com/patent/US20240005442A1

## CPC

- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- H04N 21/4335: Housekeeping operations, e.g. prioritizing content for deletion because of storage space restrictions {(storage management, e.g. defragmentation G06F3/0604; unloading stored programs G06F9/445; storage management in file systems G06F16/10; buffering arrangements in a network node or in an end terminal in packet networks H04L49/90)}
- G06F 16/5838: {using colour}
- G06T 1/60: Memory management
- G06T 7/0002: {Inspection of images, e.g. flaw detection}
- G06V 10/56: relating to colour
- G06V 10/761: {Proximity, similarity or dissimilarity measures}
- G06V 10/945: {User interactive design; Environments; Toolboxes}
- G06V 10/993: {Evaluation of the quality of the acquired pattern}
- G06V 20/49: {Segmenting video sequences, i.e. computational techniques such as parsing or cutting the sequence, low-level clustering or determining units such as shots or scenes}
- H04N 5/772: {the recording apparatus and the television camera being placed in the same enclosure}
- H04N 5/783: Adaptations for reproducing at a rate different from the recording rate
- H04N 21/41407: {embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop (constructional details of equipment or arrangements specially adapted for portable computer application G06F1/1626; arrangements specially adapted for mobile receivers in broadcast systems H04H20/57)}
- H04N 21/4223: Cameras (H04N23/00 takes precedence)
- H04N 23/60: Control of cameras or camera modules
- H04N 23/62: Control of parameters via user interfaces
- H04N 23/631: {Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters}
- H04N 23/632: {for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters}
- H04N 23/633: {for displaying additional information relating to control or operation of the camera}
- G06T 2207/30168: Image quality inspection
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

An image frame storage method is applied to an electronic device, where a maximum frame quantity of image frames that are allowed to be stored in a first storage space of the electronic device is N, where N is a positive integer. The method includes collecting a first image frame within first duration, where every m first image frames consecutively collected within the first duration are a group of image frames; and storing a second image frame that meets an image quality condition and that is in the first image frame into the first storage space.

## Claims

### Claim at position 1

1-29. (canceled)

### Claim 30

An electronic device, comprising:
a memory configured to store computer instructions; and
one or more processors coupled to the memory and configured to execute the computer instructions to cause the electronic device to:
collect a first image frame within a first duration, wherein every m first image frames consecutively collected within the first duration are a group of image frames, wherein m is based on a total quantity F of image frames collected within the first duration and a maximum frame quantity N, wherein the total quantity F is a quantity of image frames that can be collected within the first duration using a first frame rate, and wherein the total quantity F is greater than the maximum frame quantity N; and
store, into a first storage space, a second image frame that meets an image quality condition and that is in the first image frame, wherein the second image frame meets the image quality condition when:
an image quality of the second image frame is a highest image quality in a group in which the first image frame is located; or
the image quality of the second image frame is higher than a first image quality, a difference value between image content of adjacent second image frames is greater than a first value, a quantity of the second image frames that belong to a Kth group of image frames is equal to 1 when K is equal to 1, and a quantity of the second image frames that belong to a Kth group of image frames is less than or equal to (K−1) when K is greater than or equal to 2.

### Claim 31 (depends on 30)

The electronic device of claim 30, wherein the one or more processors is further configured to execute the computer instructions to cause the electronic device to store the second image frame by storing an image frame f1 into the first storage space when the image frame f1 in each group of image frames is collected, and wherein the image frame f1 is a first collected image frame in each group of image frames.

### Claim 32 (depends on 31)

The electronic device of claim 31, wherein the first storage space in each group of image frames stores a third image frame, wherein the third image frame belongs to a same group of image frames as an image frame fh, and wherein after the image frame f1 in each group of image frames is collected, the one or more processors is further configured to execute the computer instructions to cause the electronic device to:
overwrite, when the image frame fh in each group of image frames is collected and when image quality of the image frame fh is higher than that of the third image frame, the third image frame using the image frame fh and storing the image frame fh; and
skip, when image quality of the image frame fh is lower than that of the third image frame, performing any operation, wherein the image frame fh is an image frame whose collection time sequence is in an hth sequential position in each group of image frames, and 2≤h≤m.

### Claim 33 (depends on 30)

The electronic device of claim 30, wherein an image frame fkh represents an hth image frame in a Kth group of image frames, K is a positive integer, h is a positive integer, and h≤m; the Kth group of image frames refers to a group of image frames whose collection time sequence is in a Kth sequential position within the first duration; and the hth image frame refers to an image frame whose collection time sequence is in an hth sequential position in the Kth group of image frames; Δ represents a difference value between the image frame fkh and a fourth image frame, the fourth image frame represents an image frame that is last stored in the first storage space within the first duration, a larger value of Δ indicates a larger difference between image content presented by the image frame fkh and image content presented by the fourth image frame, and Δthrd is the first value; Qfkh represents image quality of the image frame fkh, Qthrd represents the first image quality, and Qlast represents image quality of the fourth image frame; and an initial value of an integer value X is w, wherein w is an integer.

### Claim 34 (depends on 33)

The electronic device of claim 33, wherein the one or more processors is further configured to execute the computer instructions to cause the electronic device to store the second image frame by storing an image frame f11 into the first storage space when the image frame f11 is collected.

### Claim 35 (depends on 34)

The electronic device of claim 34, wherein after the image frame f11 is collected, the one or more processors is further configured to execute the computer instructions to cause the electronic device to store the image frame fkh into the first storage space when the image frame fkh is collected, when the image frame fkh and the fourth image frame do not belong to a same group of image frames, when Δ>Δthrd, and when Qfkh>Qthrd.

### Claim 36 (depends on 34)

The electronic device of claim 34, wherein after the image frame f11 is collected, the one or more processors is further configured to execute the computer instructions to cause the electronic device to perform an update so that X=X+1 when the image frame fkh is collected, when the image frame fkh and the fourth image frame do not belong to a same group of image frames, when h=m, and when Δ≤Δthrd or Qfkh≤Qthrd.

### Claim 37 (depends on 34)

The electronic device of claim 34, wherein after the image frame f11 is collected, the one or more processors is further configured to execute the computer instructions to cause the electronic device to:
perform an update so that X=X−1 when the image frame fkh is collected, when the image frame fkh and the fourth image frame belong to a same group of image frames, and when Δ>Δthrd, Qfkh>Qthrd, and X>w; and
store the image frame fkh into the first storage space.

### Claim 38 (depends on 34)

The electronic device of claim 34, wherein after the image frame f11 is collected, the one or more processors is further configured to execute the computer instructions to cause the electronic device to:
overwrite the fourth image frame using the image frame fkh when the image frame fkh is collected, when the image frame fkh and the fourth image frame belong to a same group of image frames, and when Δ≤Δthrd, Qfkh>Qlast, and X>w; and
store the image frame fkh into the first storage space.

### Claim 39 (depends on 34)

The electronic device of claim 34, wherein after the image frame f11 is collected, the one or more processors is further configured to execute the computer instructions to cause the electronic device to:
overwrite the fourth image frame using the image frame fkh when the image frame fkh is collected, when the image frame fkh and the fourth image frame belong to a same group of image frames, and when X=w and Qfkh>Qlast; and
store the image frame fkh into the first storage space.

### Claim 40

A wireless communications system, comprising:
a second electronic device; and
a first electronic device communicatively connected to the second electronic device and configured to:
collect a first image frame within a first duration, wherein every m first image frames consecutively collected within the first duration are a group of image frames, wherein m is based on a total quantity F of image frames collected within the first duration and a maximum frame quantity N, wherein the total quantity F is a quantity of image frames that can be collected by the first electronic device within the first duration using a first frame rate, wherein the total quantity F is greater than the maximum frame quantity N, wherein a maximum frame quantity of image frames that are allowed to be stored in a first storage space of the first electronic device is N, and wherein N is a positive integer;
store, into the first storage space, a second image frame that meets an image quality condition and that is in the first image frame, wherein the image quality condition comprises:
an image quality of the second image frame is a highest image quality in a group in which the first image frame is located; or
the image quality of the second image frame is higher than a first image quality, a difference value between image content of adjacent second image frames is greater than a first value, a quantity of the second image frames that belong to a Kth group of image frames is equal to 1 when K is equal to 1, and a quantity of the second image frames that belong to a Kth group of image frames is less than or equal to (K−1) when K is greater than or equal to 2;
receive, from the second electronic device, a first data packet comprising a photographing instruction based on a first operation;
determine, according to the photographing instruction, Z second image frames from the second image frame stored in the first storage space, wherein Z is a positive integer; and
send, to the second electronic device, the Z second image frames to display or store.

### Claim 41 (depends on 40)

The wireless communications system of claim 40, wherein the first electronic device is configured to store the second image frame by storing an image frame f1 into the first storage space when the image frame f1 in each group of image frames is collected, wherein the image frame f1 is a first collected image frame in each group of image frames.

### Claim 42 (depends on 41)

The wireless communications system of claim 41, wherein the first storage space in each group of image frames stores a third image frame, wherein the third image frame belongs to a same group of image frames as an image frame fh, and wherein after the image frame f1 in each group of image frames is collected, the one or more processors is further configured to execute the computer instructions to cause the first electronic device to:
overwrite, when the image frame fh in each group of image frames is collected and when image quality of the image frame fh is higher than that of the third image frame, the third image frame using the image frame fh and store the image frame fh; and
skip, when the image frame fh in each group of image frames is collected and when image quality of the image frame fh is lower than that of the third image frame, performing any operation, wherein the image frame fh is an image frame whose collection time sequence is in an hth sequential position in each group of image frames, and wherein 2≤h≤m.

### Claim 43 (depends on 42)

The wireless communications system of claim 42, wherein an image frame fkh represents an hth image frame in a Kth group of image frames, K is a positive integer, h is a positive integer, and h≤m; the Kth group of image frames refers to a group of image frames whose collection time sequence is in a Kth sequential position within the first duration; and the hth image frame refers to an image frame whose collection time sequence is in an hth sequential position in the Kth group of image frames;
Δ represents a difference value between the image frame f11 and a fourth image frame, the fourth image frame represents an image frame that is last stored in the first storage space within the first duration, a larger value of Δ indicates a larger difference between image content presented by the image frame fkh and image content presented by the fourth image frame, and Δthrd is the first value;
Qfkh represents image quality of the image frame fkh, Qthrd represents the first image quality, and Qlast represents image quality of the fourth image frame; and
an initial value of an integer value X is w, wherein w is an integer.

### Claim 44 (depends on 43)

The wireless communications system of claim 43, wherein the first electronic device is configured to store the second image frame by storing an image frame f11 into the first storage space when the image frame f11 is collected.

### Claim 45 (depends on 44)

The wireless communications system of claim 44, wherein after the image frame f11 is collected, the one or more processors is further configured to execute the computer instructions to cause the first electronic device to store, when the image frame fkh is collected, when the image frame fkh and the fourth image frame do not belong to a same group of image frames, and when Δ>Δthrd and Qfkh>Qthrd, the image frame fkh into the first storage space.

### Claim 46 (depends on 44)

The wireless communications system of claim 44, wherein after the image frame f11 is collected, the one or more processors is further configured to execute the computer instructions to cause the first electronic device to perform an update so that X=X+1 when the image frame fkh is collected, when the image frame fkh and the fourth image frame do not belong to a same group of image frames, when h=m, and when Δ≤Δthrd or Qfkh≤Qthrd.

### Claim 47 (depends on 44)

The wireless communications system of claim 44, wherein after the image frame f11 is collected, the one or more processors is further configured to execute the computer instructions to cause the first electronic device to:
perform, when the image frame fkh is collected, when the image frame fkh and the fourth image frame belong to a same group of image frames, and when Δ>Δthrd, Qfkh>Qthrd, and X>w, an update so that X=X−1; and
store the image frame fkh into the first storage space.

### Claim 48 (depends on 44)

The wireless communications system of claim 44, wherein after the image frame fit is collected, the one or more processors is further configured to execute the computer instructions to cause the first electronic device to:
overwrite, when the image frame fkh is collected, when the image frame fkh and the fourth image frame belong to a same group of image frames, and when Δ≤Δthrd, Qfkh>Qlast, and X>w, the fourth image frame using the image frame fkh; and
store the image frame fkh into the first storage space.

### Claim 49 (depends on 44)

The wireless communications system of claim 44, wherein after the image frame fit is collected, the one or more processors is further configured to execute the computer instructions to cause the first electronic device to:
overwrite, when the image frame fkh is collected when the image frame fkh and the fourth image frame belong to a same group of image frames, and when X=w and Qfkh>Qlast, the fourth image frame using the image frame fkh; and
store the image frame fkh into the first storage space.
