IP Library Granted Patent US 12,470,816
Granted Patent B2
US 12,470,816 · App. 17/792,527 · Granted Nov 11, 2025

Video shooting method and electronic device

Inventor: Qiuyang Wei (Shenzhen, CN)
Assignee: Honor Device Co., Ltd.
H04N23/667G06T7/20H04N23/45H04N23/63G06T2207/10016
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,470,816
App. No.
17/792,527
Granted
Nov 11, 2025
Kind
B2
Abstract

This application relates to the field of terminal AI technologies, and discloses a video shooting method and an electronic device. The electronic device disclosed in this application is provided with a first camera and a second camera. After receiving an instruction for shooting a slow motion video, the electronic device can invoke the first camera to perform preview, and after detecting that a target moving object moves in a field of view of the first camera, determine a target shooting frame rate. Further, the electronic device invokes the second camera to shoot a slow motion video of the target moving object at the target shooting frame rate. In this way, the electronic device can determine a best shooting frame rate based on a moving speed of the target moving object. This achieves a high degree of intelligence, and can optimize a shooting effect.

Claims (63)

1 . A video shooting method, applied to an electronic device, wherein the electronic device is provided with a first camera and a second camera, the first camera and the second camera are different in a field of view and a shooting direction, and the method comprises:

receiving a shooting instruction entered by a user;

when the shooting instruction is a first shooting instruction, determining a camera with a relatively large field of view as the first camera;

when the shooting instruction is a second shooting instruction, determining a camera with a relatively small field of view as the first camera;

invoking the first camera to perform preview;

if it is detected that a target moving object moves in the field of view of the first camera, determining a target shooting frame rate based on a moving speed of the target moving object, wherein the target shooting frame rate is determined further based on a quantity of pixels by which the target moving object moves in the field of view of the first camera and a quantity of pixels of a shooting area of the second camera in a moving direction of the target moving object; and

calculating a trigger location for starting the second camera before invoking the second camera to shoot a slow motion video of the target moving object at the target shooting frame rate, wherein the trigger location is a location in the field of view of the first camera to which the target moving object moves.

2 . The method according to claim 1 , wherein the invoking the first camera to perform preview comprises:

when the shooting instruction is the first shooting instruction, invoking the first camera to perform preview at a first frame rate; or

when the shooting instruction is the second shooting instruction, invoking the first camera to perform preview at a second frame rate.

3 . The method according to claim 1 , wherein the determining a target shooting frame rate based on a moving speed of the target moving object comprises:

determining a best frame rate based on the moving speed of the target moving object; and

determining, as the target shooting frame rate, a frame rate that is in frame rates supported by the second camera and that is adjacent to the best frame rate and greater than the best frame rate.

4 . The method according to claim 1 , wherein the determining a target shooting frame rate based on a moving speed of the target moving object comprises: determining a best frame rate based on the moving speed of the target moving object;

calculating a difference between the best frame rate and each of frame rates supported by the second camera, to obtain one or more differences;

determining whether a smallest difference in the one or more differences is less than a first threshold, wherein the first threshold is a value obtained by multiplying a frame rate corresponding to the smallest difference by a preset percentage; and

if the smallest difference is less than the first threshold, determining the frame rate corresponding to the smallest difference as the target shooting frame rate.

5 . The method according to claim 3 , wherein the determining a best frame rate based on the moving speed of the target moving object comprises:

determining, according to T 2 =L 2 /(L 1 /T 1 )=T 1 *L 2 /L 1 , total duration T 2 for which the target moving object passes through the shooting area of the second camera, wherein L 1 /T 1 is the moving speed of the target moving object, T 1 is a first duration, L 1 is the quantity of pixels by which the target moving object moves in the field of view of the first camera within the first duration, and L 2 is the quantity of pixels of the shooting area of the second camera in the moving direction of the target moving object; and

determining the best frame rate f according to f=k*1/T 2 , wherein k is an integer greater than 1.

6 . The method according to claim 1 , wherein if it is detected that the target moving object moves in the field of view of the first camera, the method further comprises:

determining one or more of the following parameters based on the moving speed of the target moving object: a moment of starting the second camera, the trigger location of starting the second camera, an exposure parameter of the second camera, or a focal length of the second camera;

wherein the trigger location is calculated using D=(T 3 −Tn)/T 1 *L 1 , wherein D is the trigger location, T 3 is a moment at which the second camera is started, Tn is a current moment, T 1 is a first duration, and L 1 is a quantity of pixels in the field of view of the first camera the target moving object passes through during T 1 .

7 . The method according to claim 1 , wherein when the invoking the second camera to shoot a video of the target moving object at the target shooting frame rate, the method further comprises:

invoking the first camera to shoot the video of the target moving object at a third shooting frame rate, wherein the third shooting frame rate is different from the target shooting frame rate.

8 . The method according to claim 1 , wherein after the invoking the second camera to shoot a video of the target moving object at the target shooting frame rate, the method further comprises:

playing a first video file shot by the first camera and a second video file shot by the second camera.

9 . An electronic device, comprising a processor and a memory, wherein

the processor is coupled to the memory, the memory stores program code, and the processor invokes and executes the program code in the memory, so that the electronic device performs a video shooting method applied to the electronic device, wherein the electronic device is provided with a first camera and a second camera, the first camera and the second camera are different in a field of view and a shooting direction, and the method comprises:

receiving a shooting instruction entered by a user;

when the shooting instruction is a first shooting instruction, determining a camera with a relatively large field of view as the first camera;

when the shooting instruction is a second shooting instruction, determining a camera with a relatively small field of view as the first camera;

invoking the first camera to perform preview;

if it is detected that a target moving object moves in the field of view of the first camera, determining a target shooting frame rate based on a moving speed of the target moving object, wherein the target shooting frame rate is determined further based on a quantity of pixels by which the target moving object moves in the field of view of the first camera and a quantity of pixels of a shooting area of the second camera in a moving direction of the target moving object; and

calculating a trigger location for starting the second camera, before invoking the second camera to shoot a slow motion video of the target moving object at the target shooting frame rate, wherein the trigger location is a location in the field of view of the first camera to which the target object moves.

10 . The electronic device of claim 9 , wherein the invoking the first camera to perform preview comprises:

when the shooting instruction is the first shooting instruction, invoking the first camera to perform preview at a first frame rate; or

when the shooting instruction is the second shooting instruction, invoking the first camera to perform preview at a second frame rate.

11 . The electronic device of claim 9 , wherein the determining a target shooting frame rate based on a moving speed of the target moving object comprises:

determining a best frame rate based on the moving speed of the target moving object; and

determining, as the target shooting frame rate, a frame rate that is in frame rates supported by the second camera and that is adjacent to the best frame rate and greater than the best frame rate.

12 . The electronic device of claim 9 , wherein the determining a target shooting frame rate based on a moving speed of the target moving object comprises: determining a best frame rate based on the moving speed of the target moving object;

calculating a difference between the best frame rate and each of frame rates supported by the second camera, to obtain one or more differences;

determining whether a smallest difference in the one or more differences is less than a first threshold, wherein the first threshold is a value obtained by multiplying a frame rate corresponding to the smallest difference by a preset percentage; and

if the smallest difference is less than the first threshold, determining the frame rate corresponding to the smallest difference as the target shooting frame rate.

13 . The electronic device of claim 11 , wherein the determining a best frame rate based on the moving speed of the target moving object comprises:

determining, according to T 2 =L 2 /(L 1 /T 1 )=T 1 *L 2 /L 1 , a total duration T 2 for which the L 1 target moving object passes through the shooting area of the second camera, wherein L 1 /T 1 is the moving speed of the target moving object, T 1 is first duration, L 1 is the quantity of pixels by which the target moving object moves in the field of view of the first camera within the first duration, and L 2 is the quantity of pixels of the shooting area of the second camera in the moving direction of the target moving object; and

determining the best frame rate f according to f=k*1/T 2 , wherein k is an integer greater than 1.

14 . The electronic device of claim 9 , wherein if it is detected that the target moving object moves in the field of view of the first camera, the method further comprises:

determining one or more of the following parameters based on the moving speed of the target moving object: a moment of starting the second camera, the trigger location of starting the second camera, an exposure parameter of the second camera, or a focal length of the second camera;

wherein the trigger location is calculated using D=(T 3 −Tn)/T 1 *L 1 , wherein D is the trigger location, T 3 is a moment at which the second camera is started, Tn is a current moment, T 1 is a first duration, and L 1 is a quantity of pixels in the field of view in the first camera the target moving object passes through during T 1 .

15 . The electronic device of claim 9 , wherein when the invoking the second camera to shoot a video of the target moving object at the target shooting frame rate, the method further comprises:

invoking the first camera to shoot the video of the target moving object at a third shooting frame rate, wherein the third shooting frame rate is different from the target shooting frame rate.

16 . The electronic device of claim 9 , wherein after the invoking the second camera to shoot a video of the target moving object at the target shooting frame rate, the method further comprises:

playing a first video file shot by the first camera and a second video file shot by the second camera.

17 . A non-transitory computer readable storage medium comprising a computer program that causes a computer to execute a video shooting method applied to an electronic device, wherein the electronic device is provided with a first camera and a second camera, the first camera and the second camera are different in a field of view and a shooting direction, and the method comprises:

receiving a shooting instruction entered by a user, the shooting instruction being used to instruct the electronic device to shoot a video in slow motion;

when the shooting instruction is a first shooting instruction, determining a camera with a relatively large field of view as the first camera;

when the shooting instruction is a second shooting instruction, determining a camera with a relatively small field of view as the first camera;

invoking the first camera to perform preview;

if it is detected that a target moving object moves in the field of view of the first camera, determining a target shooting frame rate based on a moving speed of the target moving object, wherein the target shooting frame rate is determined based on a quantity of pixels by which the target moving object moves in the field of view of the first camera and a quantity of pixels of a shooting area of the second camera in a moving direction of the target moving object; and

calculating a trigger location for starting the second camera, wherein the trigger location is a location in the field of view of the first camera to which the target moving object moves before invoking the second camera to shoot a slow motion video of the target moving object at the target shooting frame rate.

18 . The method according to claim 1 , wherein the first camera is a long-focus camera type and the second camera is a wide-angle camera type.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 10, 2023
From: WEI, QIUYANG
To: HONOR DEVICE CO., LTD.
Reel/Frame 063589/0920 →
Priority Claims (1)
CN 202010331367.7 · Apr 24, 2020 · national
Continuity (1)
Related Publication 20230055623A1 · Feb 23, 2023
References Cited (20)
US 10438630B2 · Nakagawa · 2019 [cited by examiner]
US 10785415B2 · Nakayama · 2020 [cited by examiner]
US 10812768B2 · Youn et al. · 2020 [cited by applicant]
US 10979626B2 · Okita · 2021 [cited by examiner]
US 11064108B2 · Puttamalla · 2021 [cited by examiner]
US 11343441B2 · Okuike · 2022 [cited by examiner]
US 11417249B2 · Yamaguchi · 2022 [cited by examiner]
US 12219289B2 · Zhao · 2025 [cited by examiner]
US 20110149072A1 · Mccormack · 2011 [cited by applicant]
US 20180233174A1 · Nakagawa · 2018 [cited by applicant]
US 20200120265A1 · Brown et al. · 2020 [cited by applicant]
US 20250080838A1 · Smith · 2025 [cited by examiner]
CN 104967803A · 2015 [cited by applicant]
CN 107395972A · 2017 [cited by applicant]
CN 107396019A · 2017 [cited by applicant]
CN 104967803B · 2018 [cited by applicant]
CN 109743505A · 2019 [cited by applicant]
CN 111526314A · 2020 [cited by applicant]
EP 3481048A1 · 2019 [cited by applicant]
EP 4064689A1 · 2022 [cited by examiner]