CPC H04N 5/772 (2013.01) [G06T 7/215 (2017.01); G06V 10/454 (2022.01); G06V 10/82 (2022.01); G06V 20/41 (2022.01); G06V 40/23 (2022.01); H04N 5/915 (2013.01); H04N 23/62 (2023.01); H04N 23/632 (2023.01); H04N 23/667 (2023.01)] | 20 Claims |
1. An electronic device, comprising:
a camera;
a display screen; and
a processor coupled to the camera and the display screen and configured to:
enable a camera application to start the camera;
enable a motion detection function of the camera application;
display, in response to enabling the motion detection function, a slow-motion video recording mode of the camera application on the display screen;
detect, from a user, a video recording instruction input on the slow-motion video recording mode;
start, using the camera and in response to the video recording instruction input, capturing a plurality of first video frames;
record a second video frame set of the first video frames at a first frame rate when a motion of a human body in a first video frame set of the first video frames is a first preset motion;
generate, based on the second video frame set, a first target video comprising a first slow-motion video clip, wherein the first slow-motion video clip comprises a plurality of second video frames in the second video frame set, wherein a first playback duration of the first slow-motion video clip at a first playback speed is a first duration when the motion is the first preset motion, wherein a second playback duration of the first slow-motion video clip at the first playback speed is a second duration when the motion is a second preset motion, wherein the first preset motion is different from the second preset motion, and wherein the first duration is different from the second duration; and
use a target video frame as a cover of the first target video when a third preset motion of the human body appears in the target video frame in the second video frame set.
|