CN110557566B - Video shooting method and electronic equipment - Google Patents
Video shooting method and electronic equipment Download PDFInfo
- 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
- shoot
- frames
- preset
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 96
- 230000004044 response Effects 0.000 claims abstract description 20
- 238000004891 communication Methods 0.000 abstract description 4
- 239000012634 fragment Substances 0.000 abstract 1
- 238000001514 detection method Methods 0.000 description 26
- 230000006870 function Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 5
- 238000004590 computer program Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 2
- 238000011410 subtraction method Methods 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User 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/72439—User 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Studio Devices (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种视频拍摄方法及电子设备。The present invention relates to the field of communication technologies, and in particular, to a video shooting method and an electronic device.
背景技术Background technique
随着电子设备的发展,电子设备的功能越来越多,已经成为人们必不可少的工具。视频拍摄是电子设备的一项重要功能,用户可以通过电子设备进行视频拍摄从而记录生活中的美好时刻。With the development of electronic equipment, electronic equipment has more and more functions and has become an indispensable tool for people. Video shooting is an important function of electronic devices, and users can shoot video through electronic devices to record beautiful moments in life.
现有技术中,在视频拍摄的过程中,若发现感兴趣的拍摄片段,只能通过后期对拍摄完成的视频进行剪辑,获取感兴趣的拍摄片段,操作较为繁琐。In the prior art, in the process of video shooting, if an interesting shooting segment is found, the interesting shooting segment can only be obtained by editing the completed video in a later stage, and the operation is relatively cumbersome.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种视频拍摄方法及电子设备,以解决现有技术中在视频拍摄的过程中获取感兴趣的拍摄片段的操作较为繁琐的问题。Embodiments of the present invention provide a video shooting method and an electronic device, so as to solve the problem that the operation of acquiring interesting shooting segments in the process of video shooting in the prior art is cumbersome.
为了解决上述技术问题,本发明是这样实现的:In order to solve the above-mentioned technical problems, the present invention is achieved in this way:
第一方面,本发明实施例提供了一种视频拍摄方法,包括:In a first aspect, an embodiment of the present invention provides a video shooting method, including:
接收第一输入;receive a first input;
响应于所述第一输入,拍摄第一视频;in response to the first input, capturing a first video;
在拍摄所述第一视频的过程中,若满足预设条件,则在继续拍摄所述第一视频的情况下,拍摄第二视频。During the process of shooting the first video, if a preset condition is satisfied, a second video is shot while continuing to shoot the first video.
第二方面,本发明实施例提供了一种电子设备,包括:In a second aspect, an embodiment of the present invention provides an electronic device, including:
接收模块,用于接收第一输入;a receiving module for receiving the first input;
第一拍摄模块,用于响应于所述第一输入,拍摄第一视频;a first shooting module, configured to shoot a first video in response to the first input;
第二拍摄模块,用于在拍摄所述第一视频的过程中,若满足预设条件,则在继续拍摄所述第一视频的情况下,拍摄第二视频。The second shooting module is configured to shoot a second video while continuing to shoot the first video if a preset condition is satisfied 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, when the program is executed by the processor The steps in the video shooting method according to the first aspect are implemented.
第四方面,本发明实施例提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如第一方面所述的视频拍摄方法中的步骤。In a fourth aspect, an embodiment of the present invention 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 video shooting according to the first aspect is implemented steps in the method.
本发明实施例中,接收第一输入;响应于所述第一输入,拍摄第一视频;在拍摄所述第一视频的过程中,若满足预设条件,则在继续拍摄所述第一视频的情况下,拍摄第二视频。这样,在继续拍摄所述第一视频的情况下拍摄第二视频,能够降低在视频拍摄的过程中获取感兴趣的拍摄片段的操作繁琐程度。In this embodiment of the present invention, a first input is received; in response to the first input, a first video is shot; during the process of shooting the first video, if a preset condition is met, the first video is continued to be shot case, shoot a second video. In this way, shooting the second video while continuing to shoot the first video can reduce the cumbersome degree of operation of acquiring interesting shooting segments during the video shooting process.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative labor.
图1是本发明实施例提供的一种视频拍摄方法的流程图之一;1 is one of the flowcharts of a video shooting method provided by an embodiment of the present invention;
图2是本发明实施例提供的一种视频拍摄方法的流程图之二;2 is the second flowchart of a video shooting method provided by an embodiment of the present invention;
图3是本发明实施例提供的一种视频拍摄方法的流程图之三;3 is a third flowchart of a video shooting method provided by an embodiment of the present invention;
图4是本发明实施例提供的一种视频拍摄方法的流程图之四;4 is a fourth flowchart of a video shooting method provided by an embodiment of the present invention;
图5是本发明实施例提供的一种视频拍摄方法的流程图之五;5 is a fifth flowchart of a video shooting method provided by an embodiment of the present invention;
图6是本发明实施例提供的一种电子设备的结构示意图之一;6 is one of the schematic structural diagrams of an electronic device provided by an embodiment of the present invention;
图7是本发明实施例提供的一种电子设备的结构示意图之二;7 is a second schematic structural diagram of an electronic device provided by an embodiment of the present invention;
图8是本发明实施例提供的一种电子设备的结构示意图之三。FIG. 8 is a third schematic structural diagram of an electronic device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts 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 palmtop computer, a vehicle-mounted mobile terminal, a wearable device, a pedometer, and the like.
参见图1,图1是本发明实施例提供的一种视频拍摄方法的流程图,所述方法应用于电子设备,如图1所示,包括以下步骤:Referring to FIG. 1, FIG. 1 is a flowchart of a video shooting method provided by an embodiment of the present invention. The method is applied to an electronic device, as shown in FIG. 1, and includes the following steps:
步骤101、接收第一输入。Step 101: Receive a first input.
其中,所述第一输入用于拍摄第一视频,所述第一输入可以是点击电子设备上的应用程序的图标的输入;或者,所述第一输入可以是按压电子设备上的硬件按钮的输入;或者,所述第一输入可以是在电子设备的屏幕上滑动预设手势的输入。本发明实施例对第一输入不进行限定。以电子设备为手机为例,可以是点击手机上的相机图标,进入视频预览界面,进行第一视频的拍摄。Wherein, the first input is used to shoot a first video, and the first input may be an input of clicking an icon of an application program on an electronic device; or, the first input may be an input of pressing a hardware button on the electronic device input; or, the first input may be an input of sliding a preset gesture on the screen of the electronic device. This embodiment of the present invention does not limit the first input. Taking the electronic device as a mobile phone as an example, it may be to click the camera icon on the mobile phone to enter the video preview interface, and to shoot the first video.
步骤102、响应于所述第一输入,拍摄第一视频。
其中,在接收到第一输入后,进行第一视频的拍摄。Wherein, after receiving the first input, the shooting of the first video is performed.
步骤103、在拍摄所述第一视频的过程中,若满足预设条件,则在继续拍摄所述第一视频的情况下,拍摄第二视频。Step 103: During the process of shooting the first video, if a preset condition is satisfied, shoot a second video while continuing to shoot the first video.
其中,所述满足预设条件,可以是检测到针对所述第一视频的视频预览界面的第一输入,例如,检测到在所述第一视频的视频预览界面上的按压预设时长的操作;或者,可以是检测到所述第一视频的视频预览界面中存在运动物体;或者,可以是检测到针对所述电子设备上的硬件按钮的第一预设操作,例如,检测到对所述电子设备上的硬件按钮的双击操作等,本发明实施例对所述预设条件不进行限定。Wherein, satisfying the preset condition may be detection of a first input on the video preview interface of the first video, for example, detection of an operation of pressing a preset duration on the video preview interface of the first video ; or, it may be that there is a moving object in the video preview interface of the first video; or, it may be that a first preset operation for a hardware button on the electronic device is detected, For example, a double-click operation of a hardware button on the electronic device, the embodiment of the present invention does not limit the preset conditions.
进一步的,第一视频和第二视频可以是通过同一个摄像头进行拍摄,或者,第一视频和第二视频可以是通过不同的摄像头进行拍摄。可以是,启用第一线程拍摄第一视频,在拍摄第一视频的过程中,若检测到满足预设条件,则启用第二线程拍摄第二视频。第一视频可以有第一拍照预览显示画面,第二视频可以有第二拍照预览显示画面,第一拍照预览显示画面和第二拍照预览显示画面可以在不同的窗口显示,或者,第二拍照预览显示画面可以缩小后叠加在第一拍照预览显示画面的预设区域显示,例如,可以在第一拍照预览显示画面的右上角显示。Further, the first video and the second video may be captured by the same camera, or the first video and the second video may be captured by different cameras. It may be that the first thread is enabled to shoot the first video, and during the process of capturing the first video, if it is detected that a preset condition is met, the second thread is enabled to shoot the second video. The first video may have a first photo preview display screen, the second video may have a second photo preview display screen, the first photo preview display screen and the second photo preview display screen may be displayed in different windows, or, the second photo preview display screen The display screen may be reduced and then superimposed on a preset area of the first photo preview display screen for display, for example, may be displayed in the upper right corner of the first photo preview display screen.
优选的,所述电子设备包括第一摄像头及第二摄像头,所述在拍摄所述第一视频的过程中,若满足预设条件,则在继续拍摄所述第一视频的情况下,拍摄第二视频,包括:在基于所述第一摄像头拍摄所述第一视频的过程中,若满足预设条件,则在基于所述第一摄像头继续拍摄所述第一视频的情况下,基于所述第二摄像头拍摄第二视频。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, in the case of continuing to shoot the first video, shooting the first video Two videos, including: in the process of shooting the first video based on the first camera, if a preset condition is satisfied, in the case of continuing to shoot the first video based on the first camera, based on the The second camera captures a second video.
另外,在拍摄所述第二视频后,可以结束拍摄所述第二视频,得到第二视频文件,结束拍摄所述第一视频,得到第一视频文件。可以先结束拍摄所述第二视频,得到第二视频文件,然后再结束拍摄所述第一视频,得到第一视频文件;或者可以先结束拍摄所述第一视频,得到第一视频文件,然后再结束拍摄所述第二视频,得到第二视频文件。结束拍摄所述第二视频的条件可以是,在检测到针对所述第一视频的视频预览界面的第二输入,例如,可以是在检测到在所述第一视频的视频预览界面上按压预设时长的操作后,开始拍摄所述第二视频,在检测到结束对所述第一视频的视频预览界面的按压操作后,结束拍摄所述第二视频;结束拍摄所述第二视频的条件还可以是,检测到所述第一视频的拍摄画面中的运动物体停止运动;或者,还可以是,检测到针对所述电子设备上的硬件按钮的第二预设操作,例如,检测到对所述电子设备上的硬件按钮的单击操作。本发明实施例对结束拍摄所述第二视频的条件不进行限定。In addition, after the shooting of the second video, the shooting of the second video may be ended to obtain a second video file, and the shooting of the first video may be ended to obtain a first video file. The shooting of the second video may be ended first to obtain the second video file, and then the shooting of the first video may be ended to obtain the first video file; or the shooting of the first video may be ended first to obtain the first video file, and then Then finish shooting the second video to obtain a second video file. The condition for ending the shooting of the second video may be that the second input on the video preview interface for the first video is detected, for example, it may be that pressing the preset button on the video preview interface of the first video is detected. After the operation of setting the time length, start shooting the second video, and after detecting the pressing operation to end the video preview interface of the first video, end the shooting of the second video; the conditions for ending the shooting of the second video It may also be that it is detected that the moving object in the shooting picture of the first video stops moving; or, it may also be that a second preset operation for a hardware button on the electronic device is detected, for example, a pair of A click operation of a hardware button on the electronic device. The embodiment of the present invention does not limit the conditions for ending the shooting of the second video.
需要说明的是,开始拍摄第二视频的视频拍摄条件与结束拍摄第二视频的条件可以存在一定的关联关系,也可以不存在关联关系。例如,可以是在检测到在所述第一视频的视频预览界面上按压预设时长的操作后,开始拍摄所述第二视频,在检测到结束对所述第一视频的视频预览界面的按压操作后,结束拍摄所述第二视频;也可以是,在检测到在所述第一视频的视频预览界面上按压预设时长的操作后,开始拍摄所述第二视频,在检测到针对所述电子设备上的硬件按钮的第二预设操作后,结束拍摄所述第二视频。It should be noted that the video shooting conditions for starting the shooting of the second video and the conditions for ending the shooting of the second video may have a certain relationship, or may not have a relationship. For example, after detecting the operation of pressing the preset duration on the video preview interface of the first video, start shooting the second video, and after detecting the end of pressing on the video preview interface of the first video After the operation, the shooting of the second video is ended; it is also possible to start shooting the second video after detecting the operation of pressing the preset duration on the video preview interface of the first video, and after detecting the After the second preset operation of the hardware button on the electronic device is performed, the shooting of the second video is ended.
另外,结束拍摄所述第一视频的条件,可以是检测到针对所述第一视频的视频预览界面的第三输入,例如,检测到对所述第一视频的视频预览界面上的控件按钮的点击操作;或者可以是,检测到针对所述电子设备上的硬件按钮的第三预设操作,例如,检测到对所述电子设备上的硬件按钮的按压预设时长的操作。In addition, the condition for ending the shooting of the first video may be detection of a third input on the video preview interface of the first video, for example, detection of a control button on the video preview interface of the first video. A click operation; or, it may be that a third preset operation on a hardware button on the electronic device is detected, for example, an operation of pressing a hardware button on the electronic device for a preset duration is detected.
进一步的,在第一视频和第二视频是通过同一个摄像头进行拍摄的情况下,第一视频文件和第二视频文件可以是由该摄像头拍摄后缓存的图像数据生成的视频文件,第一视频文件和第二视频文件可以都是基于同一图像数据得到的不同时长的视频文件。Further, in the case where the first video and the second video are captured by the same camera, the first video file and the second video file may be video files generated by the image data cached after the camera captures, and the first video file and the second video file may be The file and the second video file may both be video files of different durations obtained based on the same image data.
本发明实施例中,接收第一输入;响应于所述第一输入,拍摄第一视频;在拍摄所述第一视频的过程中,若满足预设条件,则在继续拍摄所述第一视频的情况下,拍摄第二视频。这样,在继续拍摄所述第一视频的情况下拍摄第二视频,能够降低在视频拍摄的过程中获取感兴趣的拍摄片段的操作繁琐程度。In this embodiment of the present invention, a first input is received; in response to the first input, a first video is shot; during the process of shooting the first video, if a preset condition is met, the first video is continued to be shot case, shoot a second video. In this way, shooting the second video while continuing to shoot the first video can reduce the cumbersome degree of operation of acquiring interesting shooting segments during the video shooting process.
参见图2,图2是本发明实施例提供的另一种视频拍摄方法的流程图,所述方法应用于电子设备,如图2所示,包括以下步骤:Referring to FIG. 2, FIG. 2 is a flowchart of another video shooting method provided by an embodiment of the present invention. The method is applied to an electronic device, as shown in FIG. 2, and includes the following steps:
步骤201、接收第一输入。Step 201: Receive a first input.
该步骤与上述方法实施例中的步骤101相同,具体可参考上述实施例中的描述,为避免重复,在此不再赘述。This step is the same as
步骤202、响应于所述第一输入,拍摄第一视频。
该步骤与上述方法实施例中的步骤102相同,具体可参考上述实施例中的描述,为避免重复,在此不再赘述。This step is the same as
步骤203、在拍摄所述第一视频的过程中,若接收到第二输入,则响应于所述第二输入,在继续拍摄所述第一视频的情况下,拍摄第二视频。Step 203: During the process of shooting the first video, if a second input is received, in response to the second input, shooting a second video while continuing to shoot the first video.
其中,所述第二输入可以是针对所述第一视频的视频预览界面的输入,或者可以是针对所述电子设备上的硬件按钮的输入等。例如,所述第二输入可以是,在所述第一视频的视频预览界面上按压预设时长的输入;或者可以是,对所述第一视频的视频预览界面上的控件按钮的点击输入;或者可以是,在所述第一视频的视频预览界面上滑动预设轨迹的操作等,本发明实施例对第二输入不进行限定。Wherein, the second input may be an input for a video preview interface of the first video, or may be an input for a hardware button on the electronic device, or the like. For example, the second input may be an input of pressing a preset duration on the video preview interface of the first video; or it may be a click input of a control button on the video preview interface of the first video; Alternatively, the operation of sliding a preset track on the video preview interface of the first video, etc., is not limited in this embodiment of the present invention.
可选的,所述若接收到第二输入,则响应于所述第二输入,在继续拍摄所述第一视频的情况下,拍摄第二视频,包括:Optionally, if the second input is received, in response to the second input, in the case of continuing to shoot the first video, shooting a second video, including:
若接收到在所述视频预览界面中选择目标区域的操作,则在继续拍摄所述第一视频的情况下,拍摄第二视频;If an operation of selecting a target area in the video preview interface is received, shooting a second video while continuing to shoot the first video;
其中,所述第二视频为所述目标区域对应的视频。Wherein, the second video is a video corresponding to the target area.
其中,当用户在拍摄第一视频的过程中,发现对拍摄画面的某个区域的图像内容感兴趣时,可以在所述第一视频的视频预览界面选取该区域作为目标区域,电子设备在检测到在所述第一视频的视频预览界面选择目标区域的操作后,开始拍摄第二视频,并持续拍摄所述第一视频。Wherein, when the user finds that he is interested in the image content of a certain area of the photographed screen during the process of shooting the first video, the user can select this area as the target area on the video preview interface of the first video, and the electronic device is detecting After the operation of selecting the target area on the video preview interface of the first video, the shooting of the second video is started, and the shooting of the first video is continued.
另外,在通过第一摄像头拍摄所述第一视频,第二摄像头拍摄第二视频的情况下,可以采用主摄像头拍摄第一视频,采用长焦摄像头拍摄第二视频,长焦摄像头拍摄目标区域对应的视频,拍摄效果较佳。In addition, in the case where the first video is captured by the first camera and the second video is captured by the second camera, the main camera may be used to capture the first video, the telephoto camera may be used to capture the second video, and the target area captured by the telephoto camera corresponds to video, the shooting effect is better.
该实施方式中,若接收到在所述视频预览界面中选择目标区域的操作,则在继续拍摄所述第一视频的情况下,拍摄第二视频;其中,所述第二视频为所述目标区域对应的视频,这样,在拍摄第一视频的过程中,可以选择第一视频的视频预览界面中的部分区域拍摄第二视频,用户体验较好。In this implementation manner, if an operation of selecting a target area in the video preview interface is received, a second video is shot while continuing to shoot the first video; wherein the second video is the target In this way, during the process of shooting the first video, a part of the region in the video preview interface of the first video can be selected to shoot the second video, which provides a better user experience.
本发明实施例中,接收第一输入;响应于所述第一输入,拍摄第一视频;在拍摄所述第一视频的过程中,若接收到第二输入,则响应于所述第二输入,在继续拍摄所述第一视频的情况下,拍摄第二视频。这样,在接收到第二输入的情况下,开始拍摄第二视频,操作更为直观及简便,本发明实施例能够进一步降低在视频拍摄的过程中获取感兴趣的拍摄片段的操作繁琐程度。In this embodiment of the present invention, a first input is received; in response to the first input, a first video is shot; during the process of shooting the first video, if a second input is received, the second input is responded to , and in the case of continuing to shoot the first video, shoot a second video. In this way, when the second input is received, the operation of starting to shoot the second video is more intuitive and simple, and the embodiment of the present invention can further reduce the cumbersome operation of acquiring interesting shooting segments in the process of video shooting.
作为一种具体的实施方式,在所述电子设备为手机的情况下,如图3所示,所述视频拍摄方法具体包括如下步骤:As a specific implementation manner, when the electronic device is a mobile phone, as shown in FIG. 3 , the video shooting method specifically includes the following steps:
步骤301、启动相机。
步骤302、录制第一视频。
其中,可以是在接收到点击录制按钮的操作后,进行第一视频的录制。The recording of the first video may be performed after receiving the operation of clicking the recording button.
步骤303、检测用户是否按压视频录制界面。若检测到用户按压视频录制界面,则执行步骤304,否则,执行步骤310。Step 303: Detect whether the user presses the video recording interface. If it is detected that the user presses the video recording interface, step 304 is performed; otherwise,
其中,用户可以用手指点击在视频录制界面,并持续按压在视频录制界面。Wherein, the user can click on the video recording interface with a finger, and keep pressing on the video recording interface.
步骤304、录制第二视频,并持续录制第一视频。Step 304: Record the second video, and continue to record the first video.
其中,用户可以开启新的线程录制第二视频。The user may start a new thread to record the second video.
步骤305、检测用户按压视频录制界面是否超过预设时长。若检测到用户按压视频录制界面超过预设时长,则执行步骤307,否则,执行步骤306。Step 305: Detect whether the user presses the video recording interface for more than a preset duration. If it is detected that the user has pressed the video recording interface for more than the preset time period,
其中,预设时长可以为3s或者可以为5s等等。Wherein, the preset duration may be 3s or may be 5s and so on.
步骤306、结束录制第二视频,丢弃第二视频文件。Step 306: End the recording of the second video, and discard the second video file.
步骤307、继续录制第二视频,并持续录制第一视频。Step 307: Continue to record the second video and continue to record the first video.
步骤308、检测用户是否结束按压视频录制界面。若检测到用户结束按压视频录制界面,则执行步骤309,否则执行步骤307。Step 308: Detect whether the user ends pressing the video recording interface. If it is detected that the user ends pressing the video recording interface,
步骤309、结束录制第二视频,保存第二视频文件,并持续录制第一视频。Step 309: End the recording of the second video, save the second video file, and continue to record the first video.
步骤310、检测用户是否点击录像按钮。若检测到用户点击录像按钮,则执行步骤311,否则,执行步骤302。Step 310: Detect whether the user clicks the record button. If it is detected that the user clicks the recording button,
步骤311、结束录制第一视频,保存第一视频文件。Step 311: End the recording of the first video, and save the first video file.
本发明实施例中,用户在录制视频时,提供了再一次录像的功能,当用户在录制第一视频时,遇到更美丽的景色或者更精彩瞬间时,通过手指长按录像界面,即能重新启动新的线程进行第二视频的录制,并且在录制第二视频时不影响第一视频的录制,从而能更实时准确地抓拍到用户需要录制的瞬间,在保证了第一视频录制的完整性的同时,又在第一视频文件的基础上保存了一份第二视频文件,给用户多了一次录像选择,从而让用户更实时更准确地抓拍到更精彩的瞬间和更美丽的风景,提升了用户对录制视频的需求,尤其是在抓拍小孩过程中,很多不经意的瞬间都是不定性的,可以确保原抓拍第一视频中小孩每个瞬间的完整性,又能更实时准确地抓取到小孩更可爱美丽的瞬间,使得录制拍摄更富有表现力,极大地优化了用户体验。In the embodiment of the present invention, the user is provided with the function of recording video again when recording the video. When the user encounters a more beautiful scene or a more exciting moment when recording the first video, he can press and hold the finger on the recording interface to record the first video. Restart a new thread to record the second video, and record the second video without affecting the recording of the first video, so that the moment the user needs to record can be captured more accurately in real time, ensuring the integrity of the first video recording At the same time, it saves a second video file on the basis of the first video file, giving users one more choice of video recording, so that users can capture more exciting moments and more beautiful scenery in real time and more accurately. It increases the user's demand for recording videos, especially in the process of capturing children, many inadvertent moments are indeterminate, which can ensure the integrity of each moment of the child in the original first video captured, and can capture more accurately in real time. Capture more cute and beautiful moments of children, make recording and shooting more expressive, and greatly optimize the user experience.
参见图4,图4是本发明实施例提供的另一种视频拍摄方法的流程图,所述方法应用于电子设备,如图4所示,包括以下步骤:Referring to FIG. 4, FIG. 4 is a flowchart of another video shooting method provided by an embodiment of the present invention. The method is applied to an electronic device, as shown in FIG. 4, and includes the following steps:
步骤401、接收第一输入。Step 401: Receive a first input.
该步骤与上述方法实施例中的步骤101相同,具体可参考上述实施例中的描述,为避免重复,在此不再赘述。This step is the same as
步骤402、响应于所述第一输入,拍摄第一视频。
该步骤与上述方法实施例中的步骤102相同,具体可参考上述实施例中的描述,为避免重复,在此不再赘述。This step is the same as
步骤403、在拍摄所述第一视频的过程中,若视频预览界面中存在预设物体,则在继续拍摄所述第一视频的情况下,拍摄第二视频。Step 403: During the process of shooting the first video, if there is a preset object in the video preview interface, shoot a second video while continuing to shoot the first video.
可选的,所述若视频预览界面中存在预设物体,则在继续拍摄所述第一视频的情况下,拍摄第二视频,包括:Optionally, if there is a preset object in the video preview interface, in the case of continuing to shoot the first video, shooting a second video, including:
若视频预览界面中存在预设物体,则在继续拍摄所述第一视频的情况下,针对所述预设物体,拍摄第二视频。If there is a preset object in the video preview interface, in the case of continuing to shoot the first video, shoot a second video for the preset object.
其中,所述预设物体可以为运动物体,或者可以为预先设置的物体,例如,人物,或者,特定形状的物体等等。针对所述预设物体,拍摄第二视频,可以是,针对所述预设物体所在的区域拍摄第二视频,例如,拍摄第一视频是采用1024*768像素进行拍摄,可以将以预设物体为中心的300*300像素所在的区域拍摄第二视频;在预设物体为运动物体的情况下,针对所述预设物体,拍摄第二视频,还可以是,针对所述运动物体的状态拍摄第二视频,可以是在所述运动物体开始运动时,开始拍摄第二视频,在所述运动物体停止运动时,结束拍摄所述第二视频。The preset object may be a moving object, or may be a preset object, such as a character, or an object of a specific shape, and so on. Shooting the second video for the preset object may be shooting the second video for the area where the preset object is located. For example, shooting the first video is shot with 1024*768 pixels, and the preset object may be shot with Shoot the second video for the area where the center 300*300 pixels are located; if the preset object is a moving object, shoot the second video for the preset object, or shoot the state of the moving object For the second video, when the moving object starts to move, the shooting of the second video starts, and when the moving object stops moving, the shooting of the second video ends.
该实施方式中,若视频预览界面中存在预设物体,则在继续拍摄所述第一视频的情况下,针对所述预设物体,拍摄第二视频。这样,针对预设物体进行第二视频的拍摄,便于用户获取到感兴趣的视频,用户体验较好。In this embodiment, if there is a preset object in the video preview interface, in the case of continuing to shoot the first video, a second video is shot for the preset object. In this way, the shooting of the second video for the preset object is convenient for the user to obtain the video of interest, 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 there is a preset object in the video preview interface, in the case of continuing to shoot the first video, for the preset object Object, shoot a second video, including:
若视频预览界面中存在所述运动物体,则在继续拍摄所述第一视频的情况下,针对所述运动物体,开始拍摄第二视频;If the moving object exists in the video preview interface, in the case of continuing to shoot the first video, start shooting a second video for the moving object;
若所述视频预览界面中所述运动物体停止运动,则结束拍摄所述第二视频。If the moving object in the video preview interface stops moving, the shooting of the second video is ended.
其中,所述预设值可以为0,移动速度大于0,可以认为是运动物体;或者,预设值还可以为1,若物体在视频预览界面中在1s内移动的距离大于1个像素,可以认为是运动物体;或者,预设值还可以为2,若物体在视频预览界面中在1s内移动的距离大于2个像素,可以认为是运动物体。本发明实施例对预设值不进行限定。可以对所述第一视频的图像帧进行运动检测,确定所述视频预览界面中是否存在运动物体。可以是采用帧间差分法进行运动检测,或者可以采用背景相减法进行运动检测,例如,可以采用三帧插值检测算法进行运动检测。检测到所述第一视频的视频预览界面中存在运动物体,可以是检测到所述第一视频的视频预览界面的预设区域存在运动物体,例如,可以是检测到所述第一视频的视频预览界面的中心区域存在运动物体;或者,可以是检测到所述第一视频的视频预览界面的任意区域存在运动物体,本发明实施例对此不进行限定。Wherein, the preset value can be 0, and the moving speed is greater than 0, it can be considered as a moving object; or, the preset value can also be 1, if the distance of the object moving within 1s in the video preview interface is greater than 1 pixel, It can be considered as a moving object; or, the preset value can also be 2, if the distance of the object moving within 1s in the video preview interface is greater than 2 pixels, it can be considered as a moving object. The embodiment of the present invention does not limit the preset value. Motion detection may be performed on the image frames of the first video to determine whether there is a moving object in the video preview interface. The motion detection may be performed by using an inter-frame difference method, or the motion detection may be performed by a background subtraction method, for example, a three-frame interpolation detection algorithm may be used for motion detection. Detecting that there is a moving object in the video preview interface of the first video, it may be that there is a moving object in a preset area of the video preview interface of the first video, for example, it may be that the video of the first video is detected. There is a moving object in the central area of the preview interface; or, it may be that there is a moving object 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 it is detected that the moving object in the video preview interface of the first video stops moving, the shooting of the second video is ended. The shooting of the second video may be ended when it is detected that the moving object in the video preview interface of the first video changes from a moving state to a static state. The motion detection may be performed by the inter-frame difference method, or the motion detection may be performed by the background subtraction method. When it is detected that the video preview interface of the first video changes from the presence of moving objects to the absence of moving objects, the shooting session is terminated. the second video.
该实施方式中,若视频预览界面中存在所述运动物体,则在继续拍摄所述第一视频的情况下,针对所述运动物体,开始拍摄第二视频;若所述视频预览界面中所述运动物体停止运动,则结束拍摄所述第二视频,自动化程度较高。In this embodiment, if there is the moving object in the video preview interface, in the case of continuing to shoot the first video, start to shoot the second video for the moving object; if the video preview interface describes When the moving object stops moving, the shooting of the second video is ended, and the degree of automation is high.
可选的,所述若视频预览界面中存在预设物体,则在继续拍摄所述第一视频的情况下,针对所述预设物体,拍摄第二视频之前,所述方法还包括:Optionally, if there is a preset object in the video preview interface, in the case of continuing to shoot the first video, for the preset object, before shooting the second video, the method further includes:
存储所述第一视频中的N帧图像,所述N帧图像与所述预设物体所在的图像帧相关联,N大于或等于2;storing N frames of images in the first video, where the N frames of images are associated with the image frames where the preset object is located, and N is greater than or equal to 2;
所述若视频预览界面中存在预设物体,则在继续拍摄所述第一视频的情况下,针对所述预设物体,拍摄第二视频之后,所述方法还包括:If there is a preset object in the video preview interface, in the case of continuing to shoot the first video, after shooting the second video for the preset object, the method further includes:
将所述N帧图像插入所述第二视频中。Inserting the N frames of images into the second video.
其中,N的值可以为3,或者可以为5,或者可以为10等等,本发明实施例对此不进行限定。所述N帧图像与所述预设物体所在的图像帧相关联,可以是,所述N帧图像与所述预设物体所在的图像帧连续;或者可以是,所述N帧图像包括所述预设物体所在的图像帧的部分帧。在所述预设物体为移动速度大于预设值的运动物体时,所述N帧图像可以与进行运动检测的图像帧相关联。The value of N may be 3, or may be 5, or may be 10, etc., which is not limited in this embodiment of the present invention. The N frames of images are associated with the image frames where the preset object is located, which may be that the N frames of images are continuous with the image frames where the preset object is located; or the N frames of images include the Part of the image frame where the preset object is located. When the preset object is a moving object with a moving speed greater than a preset value, the N frames of images may be associated with image frames for motion detection.
进一步的,所述N帧图像与进行运动检测的图像帧相关联,可以是所述N帧图像与进行运动检测的图像帧连续,例如,进行运动检测的图像帧从第M帧开始,所述N帧图像为第(M-N)帧至第(M-1)帧图像,M大于N;或者可以是,所述N帧图像中包括进行运动检测的图像帧中的全部帧,例如,进行运动检测的图像帧为第M帧、第(M+1)帧以及第(M+2)帧,所述N帧图像为第(M-N+3)帧至第(M+2)帧图像,M大于(N-3),N大于3;或者可以是,所述N帧图像中包括进行运动检测的图像帧中的部分帧,例如,进行运动检测的图像帧为第M帧、第(M+1)帧以及第(M+2)帧,所述N帧图像包括第(M+2)帧图像,M大于0。将所述N帧图像插入所述第二视频中,可以是插入所述第二视频的初始时刻,例如,将所述N帧图像作为第二视频文件初始的N帧图像;将所述N帧图像插入所述第二视频中,若检测到所述N帧图像中的部分帧或全部帧与所述第二视频中的初始时刻开始的一帧或多帧图像相同时,可以将所述N帧图像中与所述第二视频中的初始时刻开始的一帧或多帧图像相同的图像帧删除。Further, the N frames of images are associated with the image frames for motion detection, and the N frames of images may be continuous with the image frames for motion detection. For example, the image frames for motion detection start from the Mth frame, and the The N frames of images are the (M-N)th to (M-1)th frames of images, and M is greater than N; or, the N frames of images may include all frames in the image frames for which motion detection is performed, for example, motion detection is performed. The image frames are the Mth frame, the (M+1)th frame and the (M+2)th frame, and 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 frames of images include some frames in the image frames for motion detection, for example, the image frames for motion detection are the Mth frame, the (M+th) 1) The frame and the (M+2)th frame, the N frame images include the (M+2)th frame image, and M is greater than 0. Inserting the N frames of images into the second video may be the initial moment of inserting the second video, for example, using the N frames of images as the initial N frames of images of the second video file; inserting the N frames of images into the second video file The image is inserted into the second video, if it is detected that some or all of the frames in the N frames of images are the same as one or more frames of images starting from the initial moment in the second video, the N frames can be inserted into the second video. In the frame images, the same image frames as one or more frames of images starting from the initial moment in the second video are deleted.
该实施方式中,存储所述第一视频中的N帧图像,所述N帧图像与所述预设物体所在的图像帧相关联,N大于或等于2;将所述N帧图像插入所述第二视频中。这样,所述预设物体所在的图像帧关联的多帧图像能够存在于第二视频中,使得第二视频文件更为完整。In this embodiment, N frames of images in the first video are stored, 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; the N frames of images are inserted into the in the second video. In this way, multiple frames of images associated with 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 present invention, a first input is received; in response to the first input, a first video is shot; during the process of shooting the first video, if there is a preset object in the video preview interface, the camera will continue to shoot the In the case of the above-mentioned first video, shoot the second video. In this way, when there is a preset object in the video preview interface, the shooting of the second video is automatically performed, and the embodiment of the present invention can further reduce the cumbersome operation of acquiring interesting shooting segments during the video shooting process.
作为一种具体的实施方式,在所述电子设备为手机的情况下,如图5所示,所述视频拍摄方法具体包括如下步骤: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:
步骤501、启动相机。
步骤502、录制第一视频。
步骤503、存储所述第一视频中的N帧图像。Step 503: Store N frames of images in the first video.
其中,N的值可以为5,可以启用线程缓存所述第一视频的5帧图像。The value of N may be 5, and the thread may be enabled to cache 5 frames of images of the first video.
步骤504、对第一视频进行运动检测。Step 504: Perform motion detection on the first video.
其中,可以启用线程进行运动检测,可以对所述第一视频当前拍摄的图像进行三帧差值检测。Wherein, a thread may be enabled to perform motion detection, and three-frame difference detection may be performed on an image currently captured by the first video.
步骤505、检测所述第一视频的拍摄画面中心是否存在运动物体。若检测到所述第一视频的拍摄画面中心存在运动物体,则执行步骤507,否则,执行步骤506。Step 505: Detect whether there is a moving object in the center of the captured image of the first video. If it is detected that there is a moving object in the center of the shooting picture of the first video,
其中,所述拍摄画面中心可以是包括拍摄画面中心位置的预设区域,例如,可以是包括拍摄画面中心位置的3cm*3cm大小的区域。The center of the shooting image may be a preset area including the center position of the shooting image, for example, may be a 3cm*3cm area including the center position of the shooting image.
步骤506、丢弃所述第一视频中的N帧图像。Step 506: Discard N frames of images in the first video.
步骤507、录制第二视频。Step 507: Record a second video.
步骤508、检测所述运动物体是否停止运动。若检测到所述运动物体停止运动,则执行步骤509,否则,执行步骤507。Step 508: Detect whether the moving object stops moving. If it is detected that the moving object stops moving,
步骤509、结束录制第二视频,保存第二视频文件。Step 509: End the recording of the second video, and save the second video file.
步骤510、检测用户是否点击录像按钮。若检测到用户点击录像按钮,则执行步骤511,否则,执行步骤502。Step 510: Detect whether the user clicks the record button. If it is detected that the user clicks the recording button, step 511 is performed; otherwise,
步骤511、结束录制第一视频,保存第一视频文件。Step 511: End the recording of the first video, and save the first video file.
其中,若在执行步骤509之前,用户点击录像按钮结束第一视频的录制,则结束录制第二视频,保存第二视频文件,且结束录制第一视频,保存第一视频文件。Wherein, if the user clicks the record button to end the recording of the first video before performing
本发明实施例中,在录制视频中实现精准抓拍,加入运动检测,当识别到拍摄画面中心存在运动物体时,自动启用智能抓拍录制第二视频,自动化程度较高。In the embodiment of the present invention, accurate capture is achieved in the recorded video, and motion detection is added. When a moving object is identified in the center of the captured image, intelligent capture is automatically enabled to record the second video, with a high degree of automation.
参见图6,图6是本发明实施例提供的一种电子设备的结构示意图,如图6所示,电子设备600包括:Referring to FIG. 6, FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. As shown in FIG. 6, the
接收模块601,用于接收第一输入;a
第一拍摄模块602,用于响应于所述第一输入,拍摄第一视频;a
第二拍摄模块603,用于在拍摄所述第一视频的过程中,若满足预设条件,则在继续拍摄所述第一视频的情况下,拍摄第二视频。The
可选的,所述第二拍摄模块603具体用于:在拍摄所述第一视频的过程中,若接收到第二输入,则响应于所述第二输入,在继续拍摄所述第一视频的情况下,拍摄第二视频;Optionally, the
或者,or,
所述第二拍摄模块603具体用于:在拍摄所述第一视频的过程中,若视频预览界面中存在预设物体,则在继续拍摄所述第一视频的情况下,拍摄第二视频。The
可选的,所述第二拍摄模块603具体用于:Optionally, the
在拍摄所述第一视频的过程中,若接收到在所述视频预览界面中选择目标区域的操作,则在继续拍摄所述第一视频的情况下,拍摄第二视频;During 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 while continuing to shoot the first video;
其中,所述第二视频为所述目标区域对应的视频。Wherein, the second video is a video corresponding to the target area.
可选的,所述第二拍摄模块603具体用于:Optionally, the
在拍摄所述第一视频的过程中,若视频预览界面中存在预设物体,则在继续拍摄所述第一视频的情况下,针对所述预设物体,拍摄第二视频。During the process of shooting the first video, if there is a preset object in the video preview interface, in the case of continuing to shoot the first video, a second video is shot for the preset object.
可选的,所述预设物体为移动速度大于预设值的运动物体,所述第二拍摄模块603具体用于:Optionally, the preset object is a moving object with a moving speed greater than a preset value, and the
若视频预览界面中存在所述运动物体,则在继续拍摄所述第一视频的情况下,针对所述运动物体,开始拍摄第二视频;If the moving object exists in the video preview interface, in the case of continuing to shoot the first video, start shooting a second video for the moving object;
若所述视频预览界面中所述运动物体停止运动,则结束拍摄所述第二视频。If the moving object in the video preview interface stops moving, the shooting of the second video is ended.
可选的,所述电子设备600还包括:Optionally, the
存储模块604,用于存储所述第一视频中的N帧图像,所述N帧图像与所述预设物体所在的图像帧相关联,N大于或等于2;A
插入模块605,用于将所述N帧图像插入所述第二视频中。An inserting
可选的,所述电子设备600包括第一摄像头及第二摄像头,所述第二拍摄模块603具体用于:Optionally, the
在基于所述第一摄像头拍摄所述第一视频的过程中,若满足预设条件,则在基于所述第一摄像头继续拍摄所述第一视频的情况下,基于所述第二摄像头拍摄第二视频。During the process of shooting the first video based on the first camera, if a preset condition is satisfied, in the case of continuing to shoot the first video based on the first camera, shooting the first video based on the second camera Two videos.
电子设备能够实现图1、图2及图4的方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。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 to avoid repetition, details are not repeated here.
图8为实现本发明各个实施例的一种电子设备的硬件结构示意图。FIG. 8 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
该电子设备700包括但不限于:射频单元701、网络模块702、音频输出单元703、输入单元704、传感器705、显示单元706、用户输入单元707、接口单元708、存储器709、处理器710、以及电源711等部件。本领域技术人员可以理解,图8中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、机器人、可穿戴设备、以及计步器等。The
处理器710,用于执行下述过程:The
接收第一输入;receive a first input;
响应于所述第一输入,拍摄第一视频;in response to the first input, capturing a first video;
在拍摄所述第一视频的过程中,若满足预设条件,则在继续拍摄所述第一视频的情况下,拍摄第二视频。During the process of shooting the first video, if a preset condition is satisfied, a second video is shot while continuing to shoot the first video.
本发明实施例中,接收第一输入;响应于所述第一输入,拍摄第一视频;在拍摄所述第一视频的过程中,若满足预设条件,则在继续拍摄所述第一视频的情况下,拍摄第二视频。这样,在继续拍摄所述第一视频的情况下拍摄第二视频,能够降低在视频拍摄的过程中获取感兴趣的拍摄片段的操作繁琐程度。In this embodiment of the present invention, a first input is received; in response to the first input, a first video is shot; during the process of shooting the first video, if a preset condition is met, the first video is continued to be shot case, shoot a second video. In this way, shooting the second video while continuing to shoot the first video can reduce the cumbersome degree of operation of acquiring interesting shooting segments during the video shooting process.
可选的,处理器710执行的所述若满足预设条件,则在继续拍摄所述第一视频的情况下,拍摄第二视频,包括:Optionally, if the preset condition is met, the
若接收到第二输入,则响应于所述第二输入,在继续拍摄所述第一视频的情况下,拍摄第二视频;If a second input is received, in response to the second input, in the case of continuing to shoot the first video, shoot a second video;
或者,or,
若视频预览界面中存在预设物体,则在继续拍摄所述第一视频的情况下,拍摄第二视频。If there is a preset object in the video preview interface, in the case of continuing to shoot the first video, shoot the second video.
可选的,处理器710执行的所述若接收到第二输入,则响应于所述第二输入,在继续拍摄所述第一视频的情况下,拍摄第二视频,包括:Optionally, if the
若接收到在所述视频预览界面中选择目标区域的操作,则在继续拍摄所述第一视频的情况下,拍摄第二视频;If an operation of selecting a target area in the video preview interface is received, shooting a second video while continuing to shoot the first video;
其中,所述第二视频为所述目标区域对应的视频。Wherein, the second video is a video corresponding to the target area.
可选的,处理器710执行的所述若视频预览界面中存在预设物体,则在继续拍摄所述第一视频的情况下,拍摄第二视频,包括:Optionally, if there is a preset object in the video preview interface executed by the
若视频预览界面中存在预设物体,则在继续拍摄所述第一视频的情况下,针对所述预设物体,拍摄第二视频。If there is a preset object in the video preview interface, in the case of continuing to shoot the first video, shoot a second video for the preset object.
可选的,所述预设物体为移动速度大于预设值的运动物体,处理器710执行的所述若视频预览界面中存在预设物体,则在继续拍摄所述第一视频的情况下,针对所述预设物体,拍摄第二视频,包括:Optionally, the preset object is a moving object with a moving speed greater than a preset value, and the
若视频预览界面中存在所述运动物体,则在继续拍摄所述第一视频的情况下,针对所述运动物体,开始拍摄第二视频;If the moving object exists in the video preview interface, in the case of continuing to shoot the first video, start shooting a second video for the moving object;
若所述视频预览界面中所述运动物体停止运动,则结束拍摄所述第二视频。If the moving object in the video preview interface stops moving, the shooting of the second video is ended.
可选的,处理器710还用于执行:Optionally, the
存储所述第一视频中的N帧图像,所述N帧图像与所述预设物体所在的图像帧相关联,N大于或等于2;storing N frames of images in the first video, where the N frames of images are associated with the image frames where the preset object is located, and N is greater than or equal to 2;
将所述N帧图像插入所述第二视频中。Inserting the N frames of images into the second video.
可选的,所述电子设备包括第一摄像头及第二摄像头,处理器710执行的所述在拍摄所述第一视频的过程中,若满足预设条件,则在继续拍摄所述第一视频的情况下,拍摄第二视频,包括:Optionally, the electronic device includes a first camera and a second camera, and in the process of shooting the first video executed by the
在基于所述第一摄像头拍摄所述第一视频的过程中,若满足预设条件,则在基于所述第一摄像头继续拍摄所述第一视频的情况下,基于所述第二摄像头拍摄第二视频。During the process of shooting the first video based on the first camera, if a preset condition is satisfied, in the case of continuing to shoot the first video based on the first camera, shooting the first video based on the second camera Two videos.
应理解的是,本发明实施例中,射频单元701可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器710处理;另外,将上行的数据发送给基站。通常,射频单元701包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元701还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the
电子设备通过网络模块702为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides the user with wireless broadband Internet access through the
音频输出单元703可以将射频单元701或网络模块702接收的或者在存储器709中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元703还可以提供与电子设备700执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元703包括扬声器、蜂鸣器以及受话器等。The
输入单元704用于接收音频或视频信号。输入单元704可以包括图形处理器(Graphics Processing Unit,GPU)7041和麦克风7042,图形处理器7041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元706上。经图形处理器7041处理后的图像帧可以存储在存储器709(或其它存储介质)中或者经由射频单元701或网络模块702进行发送。麦克风7042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元701发送到移动通信基站的格式输出。The
电子设备700还包括至少一种传感器705,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板7061的亮度,接近传感器可在电子设备700移动到耳边时,关闭显示面板7061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器705还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The
显示单元706用于显示由用户输入的信息或提供给用户的信息。显示单元706可包括显示面板7061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板7061。The
用户输入单元707可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元707包括触控面板7071以及其他输入设备7072。触控面板7071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板7071上或在触控面板7071附近的操作)。触控面板7071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器710,接收处理器710发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板7071。除了触控面板7071,用户输入单元707还可以包括其他输入设备7072。具体地,其他输入设备7072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The
进一步的,触控面板7071可覆盖在显示面板7061上,当触控面板7071检测到在其上或附近的触摸操作后,传送给处理器710以确定触摸事件的类型,随后处理器710根据触摸事件的类型在显示面板7061上提供相应的视觉输出。虽然在图8中,触控面板7071与显示面板7061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板7071与显示面板7061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the
接口单元708为外部装置与电子设备700连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元708可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备700内的一个或多个元件或者可以用于在电子设备700和外部装置之间传输数据。The
存储器709可用于存储软件程序以及各种数据。存储器709可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器709可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The
处理器710是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器709内的软件程序和/或模块,以及调用存储在存储器709内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器710可包括一个或多个处理单元;优选的,处理器710可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器710中。The
电子设备700还可以包括给各个部件供电的电源711(比如电池),优选的,电源711可以通过电源管理系统与处理器710逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The
另外,电子设备700包括一些未示出的功能模块,在此不再赘述。In addition, the
本发明实施例还提供一种电子设备,包括处理器,存储器,存储在存储器上并可在所述处理器上运行的程序,该程序被处理器执行时实现上述视频拍摄方法中实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present invention further provides an electronic device, including a processor, a memory, a program stored in the memory and executable on the processor, and when the program is executed by the processor, implements each of the embodiments of the above video shooting method process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述视频拍摄方法中实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the embodiments of the above video shooting method can be implemented, and the same can be achieved. The technical effect, in order to avoid repetition, will not be repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk, or an optical disk.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.
Claims (7)
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 (16)
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 | 荣耀终端有限公司 | A method and electronic device for capturing images during video recording |
CN113766130B (en) * | 2021-09-13 | 2023-07-28 | 维沃移动通信有限公司 | Video shooting method, electronic equipment and device |
CN116033261B (en) * | 2021-10-22 | 2023-10-20 | 荣耀终端有限公司 | A video processing method, electronic device, storage medium and chip |
US12114061B2 (en) | 2021-10-22 | 2024-10-08 | Honor Device Co., Ltd. | Video processing method and electronic device |
CN114125325B (en) * | 2021-11-30 | 2024-08-27 | 维沃移动通信有限公司 | Video shooting method, device and electronic equipment |
CN114241014A (en) * | 2021-12-03 | 2022-03-25 | 上海锡鼎智能科技有限公司 | A kind of intelligent capture method of head-mounted micro-camera for experimental examination |
CN114422692B (en) * | 2022-01-12 | 2023-12-08 | 西安维沃软件技术有限公司 | Video recording method and device and electronic equipment |
CN116708649B (en) * | 2022-02-28 | 2025-07-11 | 荣耀终端股份有限公司 | Video processing method, electronic device and readable medium |
CN114598819B (en) * | 2022-03-16 | 2024-08-02 | 维沃移动通信有限公司 | 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 |
CN117177063B (en) * | 2022-05-30 | 2024-10-15 | 荣耀终端有限公司 | Shooting method and electronic equipment |
CN117692762B (en) * | 2023-06-21 | 2024-11-26 | 荣耀终端有限公司 | Shooting method and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102148965A (en) * | 2011-05-09 | 2011-08-10 | 上海芯启电子科技有限公司 | Multi-target tracking close-up shooting video surveillance system |
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 device |
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)
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 shooting device and method and terminal |
CN110557566B (en) * | 2019-08-30 | 2021-12-17 | 维沃移动通信有限公司 | Video shooting method and electronic equipment |
-
2019
- 2019-08-30 CN CN201910814752.4A patent/CN110557566B/en active Active
-
2020
- 2020-07-09 WO PCT/CN2020/101062 patent/WO2021036536A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102148965A (en) * | 2011-05-09 | 2011-08-10 | 上海芯启电子科技有限公司 | Multi-target tracking close-up shooting video surveillance system |
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 device |
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 | |
CN108471498B (en) | Shooting preview method and terminal | |
WO2019137429A1 (en) | Picture processing method and mobile terminal | |
WO2019196929A1 (en) | Video data processing method and mobile terminal | |
CN109597556B (en) | Screen capture method and terminal | |
WO2019223494A1 (en) | Screenshot capturing method and mobile terminal | |
CN108471550B (en) | A kind of video interception method and terminal | |
CN107786827A (en) | Video capture method, video broadcasting method, device and mobile terminal | |
CN111726525A (en) | Video recording method, device, electronic device and storage medium | |
CN108124059B (en) | Recording method and mobile terminal | |
CN110213440A (en) | A kind of images share method and terminal | |
CN108132749B (en) | Image editing method and mobile terminal | |
CN108121486B (en) | Picture display method and mobile terminal | |
CN110602386A (en) | Video recording method and electronic equipment | |
CN108366221A (en) | A kind of video call method and terminal | |
CN108334265A (en) | A kind of document handling method and mobile terminal | |
CN110855921A (en) | Video recording control method and electronic equipment | |
CN110333803A (en) | A multimedia object selection method and terminal equipment | |
CN108833796A (en) | An image capturing method and terminal | |
CN109672845B (en) | Video call method and device and mobile terminal | |
CN107817933A (en) | A kind of screenshotss method and mobile terminal | |
CN108989554B (en) | An information processing method and terminal | |
CN110868535A (en) | A shooting method, a method for determining shooting parameters, an electronic device and a server |
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 |