CN110557566B - Video shooting method and electronic equipment - Google Patents

Video shooting method and electronic equipment Download PDF

Info

Publication number
CN110557566B
CN110557566B CN201910814752.4A CN201910814752A CN110557566B CN 110557566 B CN110557566 B CN 110557566B CN 201910814752 A CN201910814752 A CN 201910814752A CN 110557566 B CN110557566 B CN 110557566B
Authority
CN
China
Prior art keywords
video
shooting
condition
preset
frames
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910814752.4A
Other languages
Chinese (zh)
Other versions
CN110557566A (en
Inventor
贺佐军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910814752.4A priority Critical patent/CN110557566B/en
Publication of CN110557566A publication Critical patent/CN110557566A/en
Priority to PCT/CN2020/101062 priority patent/WO2021036536A1/en
Application granted granted Critical
Publication of CN110557566B publication Critical patent/CN110557566B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces

Abstract

The invention relates to the technical field of communication, and provides a video shooting method and electronic equipment, wherein the method comprises the following steps: receiving a first input; capturing a first video in response to the first input; and in the process of shooting the first video, if a preset condition is met, shooting a second video under the condition of continuously shooting the first video. The embodiment of the invention can reduce the complexity of the operation of acquiring the interested shooting fragment in the video shooting process.

Description

Video shooting method and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a video shooting method and an electronic device.
Background
With the development of electronic devices, the functions of the electronic devices are more and more, and the electronic devices have become indispensable tools. Video shooting is an important function of electronic equipment, and a user can shoot videos through the electronic equipment so as to record good moments in life.
In the prior art, in the process of video shooting, if an interested shooting segment is found, the shot video can be edited only in the later period to obtain the interested shooting segment, and the operation is complex.
Disclosure of Invention
The embodiment of the invention provides a video shooting method and electronic equipment, and aims to solve the problem that in the prior art, the operation of obtaining an interested shooting fragment in the video shooting process is complicated.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a video shooting method, including:
receiving a first input;
capturing a first video in response to the first input;
and in the process of shooting the first video, if a preset condition is met, shooting a second video under the condition of continuously shooting the first video.
In a second aspect, an embodiment of the present invention provides an electronic device, including:
a receiving module for receiving a first input;
a first capture module to capture a first video in response to the first input;
and the second shooting module is used for shooting a second video under the condition of continuously shooting the first video if a preset condition is met in the process of shooting the first video.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor and a program stored on the memory and executable on the processor, which program, when executed by the processor, carries out the steps in the video capturing method as described in the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the video shooting method according to the first aspect.
In the embodiment of the invention, a first input is received; capturing a first video in response to the first input; and in the process of shooting the first video, if a preset condition is met, shooting a second video under the condition of continuously shooting the first video. In this way, the second video is shot while the first video is continuously shot, and the operation complexity of acquiring the interesting shooting section in the video shooting process can be reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a video shooting method according to an embodiment of the present invention;
fig. 2 is a second flowchart of a video shooting method according to an embodiment of the present invention;
fig. 3 is a third flowchart of a video shooting method according to an embodiment of the present invention;
FIG. 4 is a fourth flowchart of a video shooting method according to an embodiment of the present invention;
FIG. 5 is a fifth flowchart of a video shooting method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 7 is a second schematic structural diagram of an electronic device according to an embodiment of the invention;
fig. 8 is a third schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted mobile terminal, a wearable device, a pedometer, and the like.
Referring to fig. 1, fig. 1 is a flowchart of a video shooting method according to an embodiment of the present invention, where the method is applied to an electronic device, and as shown in fig. 1, the method includes the following steps:
step 101, receiving a first input.
The first input is used for shooting a first video, and the first input can be an input of clicking an icon of an application program on the electronic equipment; alternatively, the first input may be an input pressing a hardware button on the electronic device; alternatively, the first input may be an input of a slide preset gesture on a screen of the electronic device. The first input is not limited in the embodiments of the present invention. Taking the electronic device as a mobile phone as an example, the camera icon on the mobile phone may be clicked, and the video preview interface is entered to capture the first video.
Step 102, responding to the first input, shooting a first video.
Wherein, after receiving the first input, taking a first video.
And 103, in the process of shooting the first video, if a preset condition is met, shooting a second video under the condition of continuously shooting the first video.
The meeting of the preset condition may be detecting a first input to the video preview interface of the first video, for example, detecting an operation of pressing on the video preview interface of the first video for a preset time; or, detecting that a moving object exists in the video preview interface of the first video; alternatively, the first preset operation on the hardware button on the electronic device may be detected, for example, a double-click operation on the hardware button on the electronic device is detected, and the preset condition is not limited in the embodiment of the present invention.
Further, the first video and the second video may be shot by the same camera, or the first video and the second video may be shot by different cameras. The first thread may be started to shoot the first video, and in the process of shooting the first video, if it is detected that the preset condition is met, the second thread is started to shoot the second video. The first video may have a first photographing preview display picture, the second video may have a second photographing preview display picture, and the first photographing preview display picture and the second photographing preview display picture may be displayed in different windows, or the second photographing preview display picture may be reduced and then superimposed on a preset region of the first photographing preview display picture for display, for example, may be displayed in the upper right corner of the first photographing preview display picture.
Preferably, the electronic device includes a first camera and a second camera, and in the process of shooting the first video, if a preset condition is met, shooting the second video under the condition of continuing to shoot the first video includes: in the process of shooting the first video based on the first camera, if a preset condition is met, shooting a second video based on the second camera under the condition that the first video is continuously shot based on the first camera.
In addition, after the second video is shot, shooting of the second video can be finished to obtain a second video file, and shooting of the first video is finished to obtain a first video file. The shooting of the second video can be finished to obtain a second video file, and then the shooting of the first video is finished to obtain a first video file; or the shooting of the first video can be finished to obtain a first video file, and then the shooting of the second video is finished to obtain a second video file. The condition for ending the shooting of the second video may be that the shooting of the second video is started after a second input for the video preview interface of the first video is detected, for example, the second input may be an operation of pressing the video preview interface of the first video for a preset time period, and the shooting of the second video is ended after the pressing operation for the video preview interface of the first video is detected to be ended; the condition for ending the shooting of the second video can be that a moving object in the shooting picture of the first video is detected to stop moving; alternatively, a second preset operation on a hardware button on the electronic device may be detected, for example, a single-click operation on the hardware button on the electronic device is detected. The embodiment of the present invention does not limit the condition for finishing capturing the second video.
The image capturing condition for starting capturing the second image may or may not have a certain correlation with the condition for ending capturing the second image. For example, the shooting of the second video may be started after an operation of pressing the video preview interface of the first video for a preset time period is detected, and the shooting of the second video is ended after an operation of pressing the video preview interface of the first video is detected to be ended; the second video may be started to be shot after an operation of pressing a preset time length on the video preview interface of the first video is detected, and the shooting of the second video is ended after a second preset operation of a hardware button on the electronic device is detected.
In addition, the condition for finishing shooting the first video may be that a third input to the video preview interface of the first video is detected, for example, a click operation on a control button on the video preview interface of the first video is detected; or, a third preset operation for a hardware button on the electronic device may be detected, for example, an operation of pressing the hardware button on the electronic device for a preset time period is detected.
Further, when the first video and the second video are shot by the same camera, the first video file and the second video file may be video files generated from image data cached after being shot by the camera, and the first video file and the second video file may both be video files with different durations obtained based on the same image data.
In the embodiment of the invention, a first input is received; capturing a first video in response to the first input; and in the process of shooting the first video, if a preset condition is met, shooting a second video under the condition of continuously shooting the first video. In this way, the second video is shot while the first video is continuously shot, and the operation complexity of acquiring the interesting shooting section in the video shooting process can be reduced.
Referring to fig. 2, fig. 2 is a flowchart of another video shooting method provided by an embodiment of the present invention, where the method is applied to an electronic device, and as shown in fig. 2, the method includes the following steps:
step 201, receiving a first input.
This step is the same as step 101 in the above method embodiment, and reference may be specifically made to the description in the above embodiment, and details are not repeated here in order to avoid repetition.
Step 202, in response to the first input, capturing a first video.
This step is the same as step 102 in the above method embodiment, and reference may be specifically made to the description in the above embodiment, and in order to avoid repetition, details are not described here again.
Step 203, in the process of shooting the first video, if a second input is received, responding to the second input, and shooting a second video under the condition of continuing to shoot the first video.
Wherein the second input may be an input to a video preview interface for the first video, or may be an input to a hardware button on the electronic device, or the like. For example, the second input may be an input of pressing a preset time length on a video preview interface of the first video; or, the input of clicking a control button on the video preview interface of the first video; or, for example, the second input may not be limited in the embodiment of the present invention, such as an operation of sliding a preset track on the video preview interface of the first video.
Optionally, if a second input is received, in response to the second input, in a case where the shooting of the first video is continued, shooting a second video includes:
if the operation of selecting a target area in the video preview interface is received, shooting a second video under the condition of continuously shooting the first video;
and the second video is the video corresponding to the target area.
When a user finds that the image content of a certain area of a shooting picture is interested in the process of shooting a first video, the area can be selected as a target area on a video preview interface of the first video, and after the electronic equipment detects that the operation of selecting the target area on the video preview interface of the first video, the electronic equipment starts shooting a second video and continuously shoots the first video.
In addition, under the condition that the first video is shot through the first camera and the second video is shot through the second camera, the main camera can be used for shooting the first video, the long-focus camera is used for shooting the second video, the long-focus camera is used for shooting the video corresponding to the target area, and the shooting effect is good.
In this embodiment, if an operation of selecting a target area in the video preview interface is received, a second video is shot while the first video is continuously shot; the second video is the video corresponding to the target area, so that in the process of shooting the first video, a partial area in a video preview interface of the first video can be selected to shoot the second video, and the user experience is better.
In the embodiment of the invention, a first input is received; capturing a first video in response to the first input; and in the process of shooting the first video, if a second input is received, responding to the second input, and shooting a second video under the condition of continuously shooting the first video. Therefore, when the second input is received, the second video starts to be shot, the operation is more intuitive and simple, and the method and the device can further reduce the complexity of the operation of obtaining the interesting shooting section in the video shooting process.
As a specific implementation manner, in the case that the electronic device is a mobile phone, as shown in fig. 3, the video shooting method specifically includes the following steps:
step 301, start the camera.
Step 302, recording the first video.
The recording of the first video may be performed after receiving an operation of clicking a recording button.
Step 303, detecting whether the user presses the video recording interface. If the user is detected to press the video recording interface, step 304 is executed, otherwise, step 310 is executed.
The user can click on the video recording interface by using a finger and continuously press the video recording interface.
And step 304, recording the second video, and continuously recording the first video.
Wherein, the user can start a new thread to record the second video.
And 305, detecting whether the time for pressing the video recording interface by the user exceeds a preset time. If the fact that the user presses the video recording interface for more than the preset time is detected, executing step 307, otherwise, executing step 306.
The preset time period may be 3s or 5s, and the like.
And step 306, finishing recording the second video and discarding the second video file.
And 307, continuously recording the second video and continuously recording the first video.
And step 308, detecting whether the user finishes pressing the video recording interface. If the user is detected to finish pressing the video recording interface, step 309 is executed, otherwise step 307 is executed.
Step 309, ending recording the second video, saving the second video file, and continuously recording the first video.
Step 310, detecting whether the user clicks a video recording button. If the user clicks the video recording button, step 311 is executed, otherwise, step 302 is executed.
And 311, ending recording the first video and saving the first video file.
In the embodiment of the invention, when a user records a video, a function of recording again is provided, when the user records a first video and encounters a beautiful scene or a more wonderful moment, a new thread can be restarted to record a second video by pressing a video interface with fingers for a long time, and the recording of the first video is not influenced when the second video is recorded, so that the moment that the user needs to record can be accurately captured in real time, the integrity of the recording of the first video is ensured, a second video file is stored on the basis of the first video file, more video selections are provided for the user, the user can more accurately capture the more wonderful moment and the more beautiful scene in real time, the requirement of the user on the recording of the video is improved, particularly, many careless moments are indefinite in the process of capturing children, the integrity of each moment in the original captured first video can be ensured, and the moment that the child is more lovely and beautiful can be accurately captured in real time, so that the recorded shooting is richer in expressive force, and the user experience is greatly optimized.
Referring to fig. 4, fig. 4 is a flowchart of another video shooting method provided by an embodiment of the present invention, where the method is applied to an electronic device, and as shown in fig. 4, the method includes the following steps:
step 401, receive a first input.
This step is the same as step 101 in the above method embodiment, and reference may be specifically made to the description in the above embodiment, and details are not repeated here in order to avoid repetition.
Step 402, in response to the first input, capturing a first video.
This step is the same as step 102 in the above method embodiment, and reference may be specifically made to the description in the above embodiment, and in order to avoid repetition, details are not described here again.
Step 403, in the process of shooting the first video, if a preset object exists in the video preview interface, shooting a second video under the condition of continuously shooting the first video.
Optionally, if a preset object exists in the video preview interface, shooting a second video while continuing to shoot the first video includes:
and if a preset object exists in the video preview interface, shooting a second video aiming at the preset object under the condition of continuously shooting the first video.
The preset object may be a moving object, or may be a preset object, such as a person, or an object with a specific shape. Shooting a second video for the preset object, where the second video may be shot for a region where the preset object is located, for example, shooting the first video is performed by using 1024 × 768 pixels, and shooting the second video for a region where 300 × 300 pixels centered on the preset object are located; when the preset object is a moving object, shooting a second video for the preset object, or shooting the second video for the state of the moving object, where the shooting of the second video may be started when the moving object starts to move, and the shooting of the second video is finished when the moving object stops moving.
In this embodiment, if a preset object exists in the video preview interface, a second video is shot for the preset object under the condition that the first video is continuously shot. Therefore, the second video is shot for the preset object, so that the user can conveniently obtain the interested video, and the user experience is better.
Optionally, the preset object is a moving object with a moving speed greater than a preset value, and if the preset object exists in the video preview interface, shooting a second video for the preset object under the condition of continuously shooting the first video includes:
if the moving object exists in the video preview interface, starting to shoot a second video aiming at the moving object under the condition of continuously shooting the first video;
and if the moving object stops moving in the video preview interface, finishing shooting the second video.
The preset value can be 0, the moving speed is greater than 0, and the mobile object can be considered as a moving object; or, the preset value may also be 1, and if the distance that the object moves in 1s in the video preview interface is greater than 1 pixel, the object may be considered as a moving object; or, the preset value may also be 2, and if the distance that the object moves in 1s in the video preview interface is greater than 2 pixels, the object may be considered as a moving object. The embodiment of the invention does not limit the preset value. Motion detection may be performed on image frames of the first video to determine whether a moving object is present in the video preview interface. The motion detection may be performed by using an inter-frame difference method, or may be performed by using a background subtraction method, for example, a three-frame interpolation detection algorithm may be used for the motion detection. Detecting that a moving object exists in the video preview interface of the first video, where the moving object exists in a preset region of the video preview interface of the first video, for example, the moving object exists in a central region of the video preview interface of the first video; alternatively, a moving object may be detected in any area of the video preview interface of the first video, which is not limited in this embodiment of the present invention.
In addition, if the moving object in the video preview interface of the first video stops moving, shooting of the second video is finished. The capturing of the second video may be finished when it is detected that the moving object changes from a moving state to a stationary state in the video preview interface of the first video. The motion detection may be performed by using an inter-frame difference method, or may be performed by using a background subtraction method, and the capturing of the second video may be finished when it is detected that a moving object is changed from a moving object to a moving object in a video preview interface of the first video.
In this embodiment, if the moving object exists in the video preview interface, in the case of continuing to capture the first video, a second video starts to be captured for the moving object; and if the moving object stops moving in the video preview interface, finishing shooting the second video, wherein the automation degree is higher.
Optionally, if a preset object exists in the video preview interface, in a case that the first video is continuously shot, before shooting a second video for the preset object, the method further includes:
storing N frames of images in the first video, wherein the N frames of images are associated with the image frame where the preset object is located, and N is greater than or equal to 2;
if a preset object exists in the video preview interface, shooting a second video for the preset object under the condition of continuously shooting the first video, wherein the method further comprises the following steps:
inserting the N frames of images into the second video.
The value of N may be 3, or may be 5, or may be 10, and the like, which is not limited in this embodiment of the present invention. The N frames of images are associated with the image frame where the preset object is located, and may be that the N frames of images are continuous with the image frame where the preset object is located; or, the N frame images may include partial frames of an image frame in which the preset object is located. When the preset object is a moving object with a moving speed greater than a preset value, the N frame images may be associated with image frames for motion detection.
Further, the N frame images are associated with the image frames for motion detection, and may be consecutive to the image frames for motion detection, for example, the image frames for motion detection start from the M-th frame, the N frame images are (M-N) -th to (M-1) -th frame images, and M is greater than N; alternatively, the N frame images include all frames in the image frames for motion detection, for example, the image frames for motion detection are the mth frame, the (M +1) th frame, and the (M +2) th frame, the N frame images are the (M-N +3) th to (M +2) th frame images, M is greater than (N-3), and N is greater than 3; or, the N frame images may include partial frames in the image frames subjected to motion detection, for example, the image frames subjected to motion detection are an mth frame, an (M +1) th frame, and an (M +2) th frame, the N frame images include an (M +2) th frame image, and M is greater than 0. Inserting the N frames of images into the second video, which may be an initial time of inserting the second video, for example, taking the N frames of images as an initial N frames of images of a second video file; inserting the N-frame image into the second video, and if it is detected that a part of or all of the frames in the N-frame image are the same as one or more frames of the second video starting at the initial time, deleting the image frame of the N-frame image that is the same as the one or more frames of the second video starting at the initial time.
In this embodiment, N frames of images in the first video are stored, where the N frames of images are associated with an image frame where the preset object is located, and N is greater than or equal to 2; inserting the N frames of images into the second video. Therefore, the multi-frame image related to the image frame where the preset object is located can exist in the second video, so that the second video file is more complete.
In the embodiment of the invention, a first input is received; capturing a first video in response to the first input; in the process of shooting the first video, if a preset object exists in a video preview interface, shooting a second video under the condition of continuously shooting the first video. Therefore, when the preset object exists in the video preview interface, the second video is automatically shot, and the method and the device can further reduce the complexity of the operation of obtaining the interesting shooting section in the video shooting process.
As a specific implementation manner, in the case that the electronic device is a mobile phone, as shown in fig. 5, the video shooting method specifically includes the following steps:
step 501, start the camera.
Step 502, recording the first video.
And 503, storing the N frames of images in the first video.
Wherein the value of N may be 5, and the thread may be enabled to cache 5 frames of images of the first video.
Step 504, motion detection is performed on the first video.
The thread can be enabled to perform motion detection, and three-frame difference detection can be performed on the image currently shot by the first video.
And 505, detecting whether a moving object exists in the center of the shooting picture of the first video. If a moving object is detected to exist in the center of the shooting picture of the first video, executing the step 507, otherwise, executing the step 506.
The center of the shot picture may be a preset region including the center of the shot picture, for example, a region of 3cm × 3cm including the center of the shot picture.
Step 506, discarding the N frames of images in the first video.
And step 507, recording the second video.
And step 508, detecting whether the moving object stops moving. If the moving object is detected to stop moving, go to step 509, otherwise go to step 507.
And 509, ending recording the second video and saving the second video file.
Step 510, detecting whether the user clicks a video recording button. If the user is detected to click the video recording button, step 511 is executed, otherwise, step 502 is executed.
And 511, finishing recording the first video and saving the first video file.
If the user clicks the record button to end recording the first video before step 509 is executed, recording the second video is ended, the second video file is saved, recording the first video is ended, and the first video file is saved.
In the embodiment of the invention, the accurate snapshot is realized in the recorded video, the motion detection is added, when the moving object exists in the center of the shot picture, the intelligent snapshot is automatically started to record the second video, and the automation degree is higher.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 6, the electronic device 600 includes:
a receiving module 601, configured to receive a first input;
a first capture module 602 to capture a first video in response to the first input;
a second shooting module 603, configured to shoot a second video while continuing to shoot the first video if a preset condition is met in a process of shooting the first video.
Optionally, the second shooting module 603 is specifically configured to: in the process of shooting the first video, if a second input is received, responding to the second input, and shooting a second video under the condition of continuously shooting the first video;
alternatively, the first and second electrodes may be,
the second shooting module 603 is specifically configured to: in the process of shooting the first video, if a preset object exists in a video preview interface, shooting a second video under the condition of continuously shooting the first video.
Optionally, the second shooting module 603 is specifically configured to:
in the process of shooting the first video, if an operation of selecting a target area in the video preview interface is received, shooting a second video under the condition of continuously shooting the first video;
and the second video is the video corresponding to the target area.
Optionally, the second shooting module 603 is specifically configured to:
in the process of shooting the first video, if a preset object exists in a video preview interface, shooting a second video aiming at the preset object under the condition of continuously shooting the first video.
Optionally, the preset object is a moving object with a moving speed greater than a preset value, and the second shooting module 603 is specifically configured to:
if the moving object exists in the video preview interface, starting to shoot a second video aiming at the moving object under the condition of continuously shooting the first video;
and if the moving object stops moving in the video preview interface, finishing shooting the second video.
Optionally, the electronic device 600 further includes:
a storage module 604, configured to store N frames of images in the first video, where the N frames of images are associated with an image frame where the preset object is located, and N is greater than or equal to 2;
an inserting module 605, configured to insert the N frames of images into the second video.
Optionally, the electronic device 600 includes a first camera and a second camera, and the second shooting module 603 is specifically configured to:
in the process of shooting the first video based on the first camera, if a preset condition is met, shooting a second video based on the second camera under the condition that the first video is continuously shot based on the first camera.
The electronic device can implement each process implemented by the electronic device in the method embodiments of fig. 1, fig. 2, and fig. 4, and details are not described here to avoid repetition.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, a power supply 711, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 8 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a robot, a wearable device, a pedometer, and the like.
A processor 710 configured to perform the following processes:
receiving a first input;
capturing a first video in response to the first input;
and in the process of shooting the first video, if a preset condition is met, shooting a second video under the condition of continuously shooting the first video.
In the embodiment of the invention, a first input is received; capturing a first video in response to the first input; and in the process of shooting the first video, if a preset condition is met, shooting a second video under the condition of continuously shooting the first video. In this way, the second video is shot while the first video is continuously shot, and the operation complexity of acquiring the interesting shooting section in the video shooting process can be reduced.
Optionally, if the preset condition is met, the shooting of the second video under the condition that the shooting of the first video is continued by the processor 710 includes:
if a second input is received, responding to the second input, and shooting a second video under the condition of continuously shooting the first video;
alternatively, the first and second electrodes may be,
and if the preset object exists in the video preview interface, shooting a second video under the condition of continuously shooting the first video.
Optionally, the capturing a second video while continuing to capture the first video in response to the second input if the second input is received by the processor 710 includes:
if the operation of selecting a target area in the video preview interface is received, shooting a second video under the condition of continuously shooting the first video;
and the second video is the video corresponding to the target area.
Optionally, if a preset object exists in the video preview interface, the shooting of the second video under the condition of continuing to shoot the first video by the processor 710 includes:
and if a preset object exists in the video preview interface, shooting a second video aiming at the preset object under the condition of continuously shooting the first video.
Optionally, the preset object is a moving object whose moving speed is greater than a preset value, and if the preset object exists in the video preview interface, the shooting of the second video for the preset object performed by the processor 710 includes:
if the moving object exists in the video preview interface, starting to shoot a second video aiming at the moving object under the condition of continuously shooting the first video;
and if the moving object stops moving in the video preview interface, finishing shooting the second video.
Optionally, the processor 710 is further configured to:
storing N frames of images in the first video, wherein the N frames of images are associated with the image frame where the preset object is located, and N is greater than or equal to 2;
inserting the N frames of images into the second video.
Optionally, the electronic device includes a first camera and a second camera, and the shooting of the second video by the processor 710 includes, if a preset condition is met in the process of shooting the first video and under the condition of continuing to shoot the first video, the shooting of the first video including:
in the process of shooting the first video based on the first camera, if a preset condition is met, shooting a second video based on the second camera under the condition that the first video is continuously shot based on the first camera.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 710; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 701 may also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 702, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 703 may convert audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output as sound. Also, the audio output unit 703 may also provide audio output related to a specific function performed by the electronic apparatus 700 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
The input unit 704 is used to receive audio or video signals. The input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics processor 7041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 706. The image frames processed by the graphic processor 7041 may be stored in the memory 709 (or other storage medium) or transmitted via the radio unit 701 or the network module 702. The microphone 7042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 701 in case of a phone call mode.
The electronic device 700 also includes at least one sensor 705, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 7061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 7061 and/or a backlight when the electronic device 700 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 705 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 706 is used to display information input by the user or information provided to the user. The Display unit 706 may include a Display panel 7061, and the Display panel 7061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 707 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 7071 (e.g., operations by a user on or near the touch panel 7071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 7071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 710, receives a command from the processor 710, and executes the command. In addition, the touch panel 7071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 707 may include other input devices 7072 in addition to the touch panel 7071. In particular, the other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 7071 may be overlaid on the display panel 7061, and when the touch panel 7071 detects a touch operation on or near the touch panel 7071, the touch operation is transmitted to the processor 710 to determine the type of the touch event, and then the processor 710 provides a corresponding visual output on the display panel 7061 according to the type of the touch event. Although in fig. 8, the touch panel 7071 and the display panel 7061 are implemented as two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 708 is an interface for connecting an external device to the electronic apparatus 700. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 708 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 700 or may be used to transmit data between the electronic apparatus 700 and the external device.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 709 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 710 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 709 and calling data stored in the memory 709, thereby monitoring the whole electronic device. Processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The electronic device 700 may also include a power supply 711 (e.g., a battery) for providing power to the various components, and preferably, the power supply 711 may be logically coupled to the processor 710 via a power management system, such that functions of managing charging, discharging, and power consumption may be performed via the power management system.
In addition, the electronic device 700 includes some functional modules that are not shown, and are not described in detail herein.
An embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a program stored in the memory and capable of running on the processor, where the program, when executed by the processor, implements each process of the embodiment of the video shooting method, and can achieve the same technical effect, and is not described herein again to avoid repetition.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the embodiment of the video shooting method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (7)

1. A video shooting method is applied to electronic equipment and is characterized by comprising the following steps:
receiving a first input;
capturing a first video in response to the first input;
in the process of shooting the first video, if a preset condition is met, shooting a second video under the condition of continuously shooting the first video;
if the preset condition is met, shooting a second video under the condition of continuously shooting the first video, wherein the shooting comprises the following steps:
if a preset object exists in the video preview interface, shooting a second video under the condition of continuously shooting the first video;
if a preset object exists in the video preview interface, shooting a second video under the condition of continuously shooting the first video, wherein the shooting comprises the following steps:
if a preset object exists in the video preview interface, shooting a second video aiming at the preset object under the condition of continuously shooting the first video;
if a preset object exists in the video preview interface, in the case of continuously shooting the first video, before shooting a second video for the preset object, the method further includes:
storing N frames of images in the first video, wherein the N frames of images are associated with the image frame where the preset object is located, and N is greater than or equal to 2;
if a preset object exists in the video preview interface, shooting a second video for the preset object under the condition of continuously shooting the first video, wherein the method further comprises the following steps:
inserting the N frames of images into the second video, inserting the N frames of images into the initial time of the second video, and deleting the image frames, which are the same as the one or more frames of images starting from the initial time in the second video, in the N frames of images if the fact that part or all of the frames of images are the same as the one or more frames of images starting from the initial time in the second video is detected.
2. The method of claim 1, wherein the preset object is a moving object with a moving speed greater than a preset value, and if there is a preset object in the video preview interface, shooting a second video for the preset object while continuing to shoot the first video comprises:
if the moving object exists in the video preview interface, starting to shoot a second video aiming at the moving object under the condition of continuously shooting the first video;
and if the moving object stops moving in the video preview interface, finishing shooting the second video.
3. The method according to claim 1, wherein the electronic device comprises a first camera and a second camera, and the capturing a second video while continuing to capture the first video if a preset condition is met during the capturing of the first video comprises:
in the process of shooting the first video based on the first camera, if a preset condition is met, shooting a second video based on the second camera under the condition that the first video is continuously shot based on the first camera.
4. An electronic device, comprising:
a receiving module for receiving a first input;
a first capture module to capture a first video in response to the first input;
the second shooting module is used for shooting a second video under the condition of continuously shooting the first video if a preset condition is met in the process of shooting the first video;
the second shooting module is specifically configured to: in the process of shooting the first video, if a preset object exists in a video preview interface, shooting a second video under the condition of continuously shooting the first video;
the second shooting module is specifically configured to:
in the process of shooting the first video, if a preset object exists in a video preview interface, shooting a second video aiming at the preset object under the condition of continuously shooting the first video;
the electronic device further includes:
the storage module is used for storing N frames of images in the first video, the N frames of images are associated with the image frame where the preset object is located, and N is greater than or equal to 2;
and the inserting module is used for inserting the N frames of images into the second video, inserting the N frames of images into the initial time of the second video, and deleting the image frame which is the same as the one or more frames of images starting from the initial time in the second video in the N frames of images if detecting that part or all of the frames of the N frames of images are the same as the one or more frames of images starting from the initial time in the second video.
5. The electronic device of claim 4, wherein the preset object is a moving object with a moving speed greater than a preset value, and the second photographing module is specifically configured to:
if the moving object exists in the video preview interface, starting to shoot a second video aiming at the moving object under the condition of continuously shooting the first video;
and if the moving object stops moving in the video preview interface, finishing shooting the second video.
6. The electronic device of claim 4, wherein the electronic device comprises a first camera and a second camera, and the second camera module is specifically configured to:
in the process of shooting the first video based on the first camera, if a preset condition is met, shooting a second video based on the second camera under the condition that the first video is continuously shot based on the first camera.
7. An electronic device, comprising: memory, processor and program stored on the memory and executable on the processor, which when executed by the processor implements the steps in the video capturing method of any of claims 1 to 3.
CN201910814752.4A 2019-08-30 2019-08-30 Video shooting method and electronic equipment Active CN110557566B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910814752.4A CN110557566B (en) 2019-08-30 2019-08-30 Video shooting method and electronic equipment
PCT/CN2020/101062 WO2021036536A1 (en) 2019-08-30 2020-07-09 Video photographing method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910814752.4A CN110557566B (en) 2019-08-30 2019-08-30 Video shooting method and electronic equipment

Publications (2)

Publication Number Publication Date
CN110557566A CN110557566A (en) 2019-12-10
CN110557566B true CN110557566B (en) 2021-12-17

Family

ID=68738529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910814752.4A Active CN110557566B (en) 2019-08-30 2019-08-30 Video shooting method and electronic equipment

Country Status (2)

Country Link
CN (1) CN110557566B (en)
WO (1) WO2021036536A1 (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110557566B (en) * 2019-08-30 2021-12-17 维沃移动通信有限公司 Video shooting method and electronic equipment
CN111147779B (en) * 2019-12-31 2022-07-29 维沃移动通信有限公司 Video production method, electronic device, and medium
CN112261218B (en) * 2020-10-21 2022-09-20 维沃移动通信有限公司 Video control method, video control device, electronic device and readable storage medium
CN115776532B (en) * 2021-09-07 2023-10-20 荣耀终端有限公司 Method for capturing images in video and electronic equipment
CN113766130B (en) * 2021-09-13 2023-07-28 维沃移动通信有限公司 Video shooting method, electronic equipment and device
CN116033261B (en) * 2021-10-22 2023-10-20 荣耀终端有限公司 Video processing method, electronic equipment, storage medium and chip
CN114125325A (en) * 2021-11-30 2022-03-01 维沃移动通信有限公司 Video shooting method and device and electronic equipment
CN114422692B (en) * 2022-01-12 2023-12-08 西安维沃软件技术有限公司 Video recording method and device and electronic equipment
CN116708649A (en) * 2022-02-28 2023-09-05 荣耀终端有限公司 Video processing method, electronic device and readable medium
CN114598819A (en) * 2022-03-16 2022-06-07 维沃移动通信有限公司 Video recording method and device and electronic equipment
CN116112781B (en) * 2022-05-25 2023-12-01 荣耀终端有限公司 Video recording method, device and storage medium
CN116055869B (en) * 2022-05-30 2023-10-20 荣耀终端有限公司 Video processing method and terminal
CN117177063A (en) * 2022-05-30 2023-12-05 荣耀终端有限公司 Shooting method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102148965A (en) * 2011-05-09 2011-08-10 上海芯启电子科技有限公司 Video monitoring system for multi-target tracking close-up shooting
WO2015197815A1 (en) * 2014-06-27 2015-12-30 Koninklijke Kpn N.V. Determining a region of interest on the basis of a hevc-tiled video stream
CN106506968A (en) * 2016-11-29 2017-03-15 广东欧珀移动通信有限公司 Control method, control device, electronic installation
CN106713772A (en) * 2017-03-31 2017-05-24 维沃移动通信有限公司 Photographing method and mobile terminal
CN106791455A (en) * 2017-03-31 2017-05-31 努比亚技术有限公司 Panorama shooting method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105657299A (en) * 2015-07-14 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Method and system for processing shot data based on double cameras
CN105827935B (en) * 2015-07-23 2018-10-16 维沃移动通信有限公司 A kind of method and terminal of terminal sectional drawing
US10051182B2 (en) * 2015-10-05 2018-08-14 Light Labs Inc. Methods and apparatus for compensating for motion and/or changing light conditions during image capture
CN107786827B (en) * 2017-11-07 2020-03-10 维沃移动通信有限公司 Video shooting method, video playing method and device and mobile terminal
CN107707825B (en) * 2017-11-27 2019-12-03 维沃移动通信有限公司 A kind of panorama shooting method, mobile terminal and computer readable storage medium
CN110072059A (en) * 2019-05-28 2019-07-30 珠海格力电器股份有限公司 Image capturing device, method and terminal
CN110557566B (en) * 2019-08-30 2021-12-17 维沃移动通信有限公司 Video shooting method and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102148965A (en) * 2011-05-09 2011-08-10 上海芯启电子科技有限公司 Video monitoring system for multi-target tracking close-up shooting
WO2015197815A1 (en) * 2014-06-27 2015-12-30 Koninklijke Kpn N.V. Determining a region of interest on the basis of a hevc-tiled video stream
CN106506968A (en) * 2016-11-29 2017-03-15 广东欧珀移动通信有限公司 Control method, control device, electronic installation
CN106713772A (en) * 2017-03-31 2017-05-24 维沃移动通信有限公司 Photographing method and mobile terminal
CN106791455A (en) * 2017-03-31 2017-05-31 努比亚技术有限公司 Panorama shooting method and device

Also Published As

Publication number Publication date
WO2021036536A1 (en) 2021-03-04
CN110557566A (en) 2019-12-10

Similar Documents

Publication Publication Date Title
CN110557566B (en) Video shooting method and electronic equipment
CN108668083B (en) Photographing method and terminal
CN108762954B (en) Object sharing method and mobile terminal
CN110740259B (en) Video processing method and electronic equipment
CN108471498B (en) Shooting preview method and terminal
CN109597556B (en) Screen capturing method and terminal
CN109078319B (en) Game interface display method and terminal
CN110557683B (en) Video playing control method and electronic equipment
CN110913139B (en) Photographing method and electronic equipment
CN110213440B (en) Image sharing method and terminal
CN110602389B (en) Display method and electronic equipment
CN109922265B (en) Video shooting method and terminal equipment
CN108124059B (en) Recording method and mobile terminal
CN109922294B (en) Video processing method and mobile terminal
CN107728923B (en) Operation processing method and mobile terminal
CN109618218B (en) Video processing method and mobile terminal
CN110855921B (en) Video recording control method and electronic equipment
CN108174110B (en) Photographing method and flexible screen terminal
CN108132749B (en) Image editing method and mobile terminal
CN110944114B (en) Photographing method and electronic equipment
CN107277364B (en) Shooting method, mobile terminal and computer readable storage medium
CN111050214A (en) Video playing method and electronic equipment
CN110955793A (en) Display control method and electronic equipment
CN108924413B (en) Shooting method and mobile terminal
CN111246105B (en) Photographing method, electronic device, and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant