IP Library Granted Patent US 12,430,706
Granted Patent B2
US 12,430,706 · App. 18/251,331 · Granted Sep 30, 2025

Image frame storage method, photographing method, and electronic device

Inventor: Xi Chen (Shenzhen, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
G06T1/20G06T7/0002G06V10/761G06T2207/30168
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,430,706
App. No.
18/251,331
Granted
Sep 30, 2025
Kind
B2
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 (54)

1. 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 K th 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 K th group of image frames is less than or equal to (K−1) when K is greater than or equal to 2.

2. The electronic device of claim 1 , 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 f 1 into the first storage space when the image frame f 1 in each group of image frames is collected, and wherein the image frame f 1 is a first collected image frame in each group of image frames.

3. The electronic device of claim 2 , 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 f h , and wherein after the image frame f 1 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 f h in each group of image frames is collected and when image quality of the image frame f h is higher than that of the third image frame, the third image frame using the image frame f h and storing the image frame f h ; and

skip, when image quality of the image frame f h is lower than that of the third image frame, performing any operation, wherein the image frame f h is an image frame whose collection time sequence is in an h th sequential position in each group of image frames, and 2≤h≤m.

4. The electronic device of claim 1 , wherein an image frame f kh represents an h th image frame in a K th group of image frames, K is a positive integer, h is a positive integer, and h≤m; the K th group of image frames refers to a group of image frames whose collection time sequence is in a K th sequential position within the first duration; and the h th image frame refers to an image frame whose collection time sequence is in an h th sequential position in the K th group of image frames; Δ represents a difference value between the image frame f kh 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 f kh and image content presented by the fourth image frame, and Δ thrd is the first value; Q fkh represents image quality of the image frame f kh , Q thrd represents the first image quality, and Q last represents image quality of the fourth image frame; and an initial value of an integer value X is w, wherein w is an integer.

5. The electronic device of claim 4 , 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 f 11 into the first storage space when the image frame f 11 is collected.

6. The electronic device of claim 5 , wherein after the image frame f 11 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 f kh into the first storage space when the image frame f kh is collected, when the image frame f kh and the fourth image frame do not belong to a same group of image frames, when Δ>Δ thrd , and when Q fkh >Q thrd .

7. The electronic device of claim 5 , wherein after the image frame f 11 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 f kh is collected, when the image frame f kh and the fourth image frame do not belong to a same group of image frames, when h=m, and when Δ≤Δ thrd or Q fkh ≤Q thrd .

8. The electronic device of claim 5 , wherein after the image frame f 11 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 f kh is collected, when the image frame f kh and the fourth image frame belong to a same group of image frames, and when Δ>Δ thrd , Q fkh >Q thrd , and X>w; and

store the image frame f kh into the first storage space.

9. The electronic device of claim 5 , wherein after the image frame f 11 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 f kh when the image frame f kh is collected, when the image frame f kh and the fourth image frame belong to a same group of image frames, and when Δ≤Δ thrd , Q fkh >Q last , and X>w; and

store the image frame f kh into the first storage space.

10. The electronic device of claim 5 , wherein after the image frame f 11 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 f kh when the image frame f kh is collected, when the image frame f kh and the fourth image frame belong to a same group of image frames, and when X=w and Q fkh >Q last ; and

store the image frame f kh into the first storage space.

11. 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 K th 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 K th 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.

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

13. The wireless communications system of claim 12 , 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 f h , and wherein after the image frame f 1 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 f h in each group of image frames is collected and when image quality of the image frame f h is higher than that of the third image frame, the third image frame using the image frame f h and store the image frame f h ; and

skip, when the image frame f h in each group of image frames is collected and when image quality of the image frame f h is lower than that of the third image frame, performing any operation, wherein the image frame f h is an image frame whose collection time sequence is in an h th sequential position in each group of image frames, and wherein 2≤h≤m.

14. The wireless communications system of claim 13 , wherein an image frame f kh represents an h th image frame in a K th group of image frames, K is a positive integer, h is a positive integer, and h≤m; the K th group of image frames refers to a group of image frames whose collection time sequence is in a K th sequential position within the first duration; and the h th image frame refers to an image frame whose collection time sequence is in an h th sequential position in the K th group of image frames;

Δ represents a difference value between the image frame f kh 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 f kh and image content presented by the fourth image frame, and Δ thrd is the first value;

Q fkh represents image quality of the image frame f kh , Q thrd represents the first image quality, and Q last represents image quality of the fourth image frame; and

an initial value of an integer value X is w, wherein w is an integer.

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

16. The wireless communications system of claim 15 , wherein after the image frame f 11 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 f kh is collected, when the image frame f kh and the fourth image frame do not belong to a same group of image frames, and when Δ>Δ thrd and Q fkh >Q thrd , the image frame f kh into the first storage space.

17. The wireless communications system of claim 15 , wherein after the image frame f 11 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 f kh is collected, when the image frame f kh and the fourth image frame do not belong to a same group of image frames, when h=m, and when Δ≤Δ thrd or Q fkh ≤Q thrd .

18. The wireless communications system of claim 15 , wherein after the image frame f 11 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 f kh is collected, when the image frame f kh and the fourth image frame belong to a same group of image frames, and when Δ>Δ thrd , Q fkh >Q thrd , and X>w, an update so that X=X−1; and

store the image frame f kh into the first storage space.

19. The wireless communications system of claim 15 , wherein after the image frame f 11 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 f kh is collected, when the image frame fkh and the fourth image frame belong to a same group of image frames, and when Δ≤Δ thrd , Q fkh >Q last , and X>w, the fourth image frame using the image frame f kh ; and

store the image frame f kh into the first storage space.

20. The wireless communications system of claim 15 , wherein after the image frame f 11 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 f kh is collected when the image frame f kh and the fourth image frame belong to a same group of image frames, and when X=w and Q fkh >Q last , the fourth image frame using the image frame f kh ; and

store the image frame f kh into the first storage space.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 25, 2025
From: SHANGHAI HUAWEI TECHNOLOGIES CO., LTD.
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 071705/0734 →
EMPLOYMENT AGREEMENT Recorded Jun 25, 2025
From: CHEN, XI
To: SHANGHAI HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 071709/0570 →
Priority Claims (2)
CN 202011199064.0 · Oct 31, 2020 · national
CN 202011574651.3 · Dec 25, 2020 · national
Continuity (1)
Related Publication 20240005442A1 · Jan 4, 2024
References Cited (21)
US 10462381B2 · Murphy et al. · 2019 [cited by applicant]
US 20060221223A1 · Terada · 2006 [cited by examiner]
US 20070081813A1 · Hong et al. · 2007 [cited by applicant]
US 20140240537A1 · Nakada · 2014 [cited by examiner]
US 20180278257A1 · Omori · 2018 [cited by applicant]
US 20190034746A1 · Feng · 2019 [cited by examiner]
US 20230396783A1 · Li · 2023 [cited by examiner]
CN 104580908A · 2015 [cited by applicant]
CN 104767933A · 2015 [cited by applicant]
CN 105224409A · 2016 [cited by applicant]
CN 106326908A · 2017 [cited by applicant]
CN 107172296A · 2017 [cited by applicant]
CN 107302664A · 2017 [cited by applicant]
CN 107615745A · 2018 [cited by applicant]
CN 108322656A · 2018 [cited by applicant]
CN 110049247A · 2019 [cited by applicant]
CN 110213202A · 2019 [cited by applicant]
CN 110399842A · 2019 [cited by applicant]
WO 2018161118A1 · 2018 [cited by applicant]
WO 2019104185A1 · 2019 [cited by applicant]
WO 2020155052A1 · 2020 [cited by applicant]