Movatterモバイル変換


[0]ホーム

URL:


CN114125297B - Video shooting method, device, electronic device and storage medium - Google Patents

Video shooting method, device, electronic device and storage medium
Download PDF

Info

Publication number
CN114125297B
CN114125297BCN202111421290.3ACN202111421290ACN114125297BCN 114125297 BCN114125297 BCN 114125297BCN 202111421290 ACN202111421290 ACN 202111421290ACN 114125297 BCN114125297 BCN 114125297B
Authority
CN
China
Prior art keywords
image
target
frame
video
input
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
CN202111421290.3A
Other languages
Chinese (zh)
Other versions
CN114125297A (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 LtdfiledCriticalVivo Mobile Communication Co Ltd
Priority to CN202111421290.3ApriorityCriticalpatent/CN114125297B/en
Publication of CN114125297ApublicationCriticalpatent/CN114125297A/en
Priority to PCT/CN2022/133206prioritypatent/WO2023093669A1/en
Application grantedgrantedCritical
Publication of CN114125297BpublicationCriticalpatent/CN114125297B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The application provides a video shooting method, a video shooting device, electronic equipment and a storage medium. The method comprises the following steps: under the condition that at least one frame of first image is displayed on a shooting preview interface, controlling a camera to acquire at least one frame of second image; a target video is generated based on the at least one frame of the first image and the at least one frame of the second image.

Description

Translated fromChinese
视频拍摄方法、装置、电子设备及存储介质Video shooting method, device, electronic device and storage medium

技术领域Technical Field

本申请属于摄像技术领域,具体涉及视频拍摄处理方法、装置、电子设备及存储介质。The present application belongs to the field of video technology, and specifically relates to a video shooting and processing method, device, electronic device and storage medium.

背景技术Background technique

目前,随着电子设备的普及,越来越多的用户使用电子设备拍摄视频。Currently, with the popularization of electronic devices, more and more users use electronic devices to shoot videos.

用户可以在拍摄视频后,使用后期处理工具对视频进行相应的处理,得到特效视频。然而,上述使用后期处理工具处理视频的操作非常繁琐,且操作耗时长。After shooting a video, the user can use a post-processing tool to process the video accordingly to obtain a special effect video. However, the operation of using the post-processing tool to process the video is very cumbersome and time-consuming.

发明内容Summary of the invention

本申请实施例的目的是一种视频拍摄方法、装置、电子设备及存储介质,能够解决相关技术中进行视频拍摄操作繁琐的问题。The purpose of the embodiments of the present application is to provide a video shooting method, device, electronic device and storage medium, which can solve the problem of cumbersome video shooting operations in related technologies.

第一方面,本申请实施例提供了一种视频拍摄方法,该方法包括:In a first aspect, an embodiment of the present application provides a video shooting method, the method comprising:

在拍摄预览界面显示至少一帧第一图像的情况下,控制摄像头采集至少一帧第二图像;When at least one frame of the first image is displayed on the shooting preview interface, controlling the camera to capture at least one frame of the second image;

基于所述至少一帧第一图像和所述至少一帧第二图像,生成目标视频。A target video is generated based on the at least one frame of the first image and the at least one frame of the second image.

第二方面,本申请实施例提供了一种视频拍摄装置,该装置包括:In a second aspect, an embodiment of the present application provides a video shooting device, the device comprising:

控制模块,用于在拍摄预览界面显示至少一帧第一图像的情况下,控制摄像头采集至少一帧第二图像;A control module, used to control the camera to capture at least one frame of the second image when at least one frame of the first image is displayed on the shooting preview interface;

生成模块,用于基于所述至少一帧第一图像和所述至少一帧第二图像,生成目标视频。A generating module is used to generate a target video based on the at least one frame of the first image and the at least one frame of the second image.

第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

本申请实施例中,在拍摄预览界面显示至少一帧第一图像的情况下,控制摄像头采集至少一帧第二图像;基于至少一帧第一图像和至少一帧第二图像,生成目标视频。本申请实施例中,在拍摄预览界面显示第一图像的情况下,控制摄像头采集第二图像,进一步地,基于该第一图像和第二图像生成目标视频。上述实施过程中,用户不需要使用后期处理工具对摄像头采集的图像进行相应的处理,降低了制作特效视频的复杂度,使得特效视频的制作更为便捷。In an embodiment of the present application, when at least one frame of the first image is displayed on the shooting preview interface, the camera is controlled to capture at least one frame of the second image; based on the at least one frame of the first image and the at least one frame of the second image, a target video is generated. In an embodiment of the present application, when the shooting preview interface displays the first image, the camera is controlled to capture the second image, and further, a target video is generated based on the first image and the second image. During the above implementation process, the user does not need to use post-processing tools to perform corresponding processing on the images captured by the camera, which reduces the complexity of producing special effects videos and makes the production of special effects videos more convenient.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是本申请实施例提供的视频拍摄方法的流程图;FIG1 is a flow chart of a video shooting method provided by an embodiment of the present application;

图2是本申请实施例提供的视频拍摄方法的应用场景图之一;FIG. 2 is one of the application scenario diagrams of the video shooting method provided in an embodiment of the present application;

图3是本申请实施例提供的视频拍摄方法的应用场景图之二;FIG3 is a second application scenario diagram of the video shooting method provided in an embodiment of the present application;

图4是本申请实施例提供的视频拍摄方法的应用场景图之三;FIG4 is a third application scenario diagram of the video shooting method provided in an embodiment of the present application;

图5是本申请实施例提供的视频拍摄方法的应用场景图之四;FIG5 is a fourth application scenario diagram of the video shooting method provided in an embodiment of the present application;

图6是本申请实施例提供的视频拍摄方法的应用场景图之五;FIG6 is a fifth application scenario diagram of the video shooting method provided in an embodiment of the present application;

图7是本申请实施例提供的视频拍摄方法的应用场景图之六;FIG7 is a sixth application scenario diagram of the video shooting method provided in an embodiment of the present application;

图8是本申请实施例提供的视频拍摄装置的结构图;FIG8 is a structural diagram of a video shooting device provided in an embodiment of the present application;

图9是本申请实施例提供的电子设备的结构图;FIG9 is a structural diagram of an electronic device provided in an embodiment of the present application;

图10是本申请实施例提供的电子设备的硬件结构图。FIG. 10 is a hardware structure diagram of an electronic device provided in an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and/or" in the specification and claims represents at least one of the connected objects, and the character "/" generally indicates that the objects associated with each other are in an "or" relationship.

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的视频拍摄方法进行详细地说明。The video shooting method provided by the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

请参阅图1,图1是本申请实施例提供的视频拍摄方法的流程图。本申请实施例提供的视频拍摄方法包括以下步骤:Please refer to FIG1 , which is a flow chart of a video shooting method provided in an embodiment of the present application. The video shooting method provided in an embodiment of the present application comprises the following steps:

S101,在拍摄预览界面显示至少一帧第一图像的情况下,控制摄像头采集至少一帧第二图像。S101, when at least one frame of a first image is displayed on a shooting preview interface, controlling a camera to capture at least one frame of a second image.

本步骤中,可以通过读取本地视频的方式,或者从互联网下载的方式,得到至少一帧第一图像,并在拍摄预览界面显示该至少一帧第一图像,也就是说,第一图像是预先设置或录制好的图像。应理解,在拍摄预览界面显示至少一帧第一图像的情况下,控制摄像头采集至少一帧第二图像,也就是说,第二图像是摄像头实时采集到的图像。In this step, at least one frame of the first image can be obtained by reading a local video or downloading it from the Internet, and the at least one frame of the first image can be displayed on the shooting preview interface, that is, the first image is a pre-set or recorded image. It should be understood that when the shooting preview interface displays at least one frame of the first image, the camera is controlled to capture at least one frame of the second image, that is, the second image is an image captured by the camera in real time.

本实施例中,当只有一帧第一图像时,即显示的是静态图像,当包括至少两帧第一图像时,则显示的是动态图像或视频。In this embodiment, when there is only one frame of the first image, a static image is displayed, and when at least two frames of the first image are included, a dynamic image or video is displayed.

在图2示出的实施场景中,在用户打开摄像头的情况下,可以点击“更多”控件201,进而“人物替换”模式,在进入上述模式后,在拍摄预览界面显示至少一帧第一图像。In the implementation scenario shown in FIG. 2 , when the user turns on the camera, he or she can click on the “more” control 201 and then enter the “character replacement” mode. After entering the above mode, at least one frame of the first image is displayed on the shooting preview interface.

S102,基于所述至少一帧第一图像和所述至少一帧第二图像,生成目标视频。S102: Generate a target video based on the at least one frame of the first image and the at least one frame of the second image.

本步骤中,在得到上述至少一帧第一图像和至少一帧第二图像之后,对该第一图像和第二图像进行相应的处理,生成目标视频,其中,目标视频是特效类视频。具体如何生成目标视频的技术方案,请参阅后续实施例。In this step, after obtaining the above-mentioned at least one first image and at least one second image, the first image and the second image are processed accordingly to generate a target video, wherein the target video is a special effects video. For a specific technical solution for generating the target video, please refer to the subsequent embodiments.

本申请实施例中,在拍摄预览界面显示至少一帧第一图像的情况下,控制摄像头采集至少一帧第二图像;基于至少一帧第一图像和至少一帧第二图像,生成目标视频。本申请实施例中,在拍摄预览界面显示第一图像的情况下,控制摄像头采集第二图像,进一步地,基于该第一图像和第二图像生成目标视频。上述实施过程中,用户不需要使用后期处理工具对摄像头采集的图像进行相应的处理,降低了制作特效视频的复杂度,使得特效视频的制作更为便捷。In an embodiment of the present application, when at least one frame of the first image is displayed on the shooting preview interface, the camera is controlled to capture at least one frame of the second image; based on the at least one frame of the first image and the at least one frame of the second image, a target video is generated. In an embodiment of the present application, when the shooting preview interface displays the first image, the camera is controlled to capture the second image, and further, a target video is generated based on the first image and the second image. During the above implementation process, the user does not need to use post-processing tools to perform corresponding processing on the images captured by the camera, which reduces the complexity of producing special effects videos and makes the production of special effects videos more convenient.

可选地,所述拍摄预览界面包括第一显示区域和第二显示区域,所述第一显示区域用于显示所述至少一帧第一图像,所述第二显示区域用于显示所述摄像头采集的所述至少一帧第二图像。Optionally, the shooting preview interface includes a first display area and a second display area, the first display area is used to display the at least one frame of the first image, and the second display area is used to display the at least one frame of the second image captured by the camera.

本实施例中,拍摄预览界面包括第一显示区域和第二显示区域,其中,第一显示区域显示有至少一帧第一图像,第二显示区域显示有至少一帧第二图像。In this embodiment, the shooting preview interface includes a first display area and a second display area, wherein the first display area displays at least one frame of the first image, and the second display area displays at least one frame of the second image.

如图3所示,在一实施场景中,第一显示区域301位于拍摄预览界面的左下角,第二显示区域302位于拍摄预览界面的中间位置,且第一显示区域301的面积小于第二显示区域302的面积。As shown in FIG. 3 , in an implementation scenario, the first display area 301 is located at the lower left corner of the shooting preview interface, the second display area 302 is located in the middle of the shooting preview interface, and the area of the first display area 301 is smaller than that of the second display area 302 .

本实施例中,第一图像是预先设置的图像,通过在拍摄预览界面的第一显示区域显示第一图像,指导用户按照第一图像中的图像内容,使用摄像头录制得到第二图像。In this embodiment, the first image is a pre-set image, and by displaying the first image in the first display area of the shooting preview interface, the user is guided to use the camera to record the second image according to the image content in the first image.

请参阅图4,如图4所示,本实施例的一种实施场景为,在拍摄预览界面401显示第一图像,并显示“请观看以下人物动作并学习”的文字信息。用户可以点击“继续”控件402,进入拍摄页面,进入图3所示的实施场景。Please refer to FIG. 4 , as shown in FIG. 4 , an implementation scenario of this embodiment is that the first image is displayed in the shooting preview interface 401 , and a text message “Please watch the following character movements and learn” is displayed. The user can click the “Continue” control 402 to enter the shooting page and enter the implementation scenario shown in FIG. 3 .

可选地,所述基于所述至少一帧第一图像和所述至少一帧第二图像,生成目标视频,包括:Optionally, generating a target video based on the at least one frame of the first image and the at least one frame of the second image includes:

对所述至少一帧第一图像进行图像分割处理,得到至少一帧目标背景图像,对所述至少一帧第二图像进行图像分割处理,得到至少一帧目标前景图像;Performing image segmentation processing on the at least one frame of the first image to obtain at least one frame of the target background image, and performing image segmentation processing on the at least one frame of the second image to obtain at least one frame of the target foreground image;

对所述至少一帧目标背景图像和所述至少一帧目标前景图像进行图像融合处理,得到所述目标视频。Image fusion processing is performed on the at least one frame of target background image and the at least one frame of target foreground image to obtain the target video.

本实施例中,可以对第一图像进行图像分割处理,得到目标背景图像;对第二图像进行图像分割处理,得到目标前景图像。其中,上述图像分割处理可以是图像边缘检测算法或最大类间方差算法或其他算法,上述目标前景图像中包括拍摄主体,上述目标背景图像中包括除拍摄主体外的背景部分。In this embodiment, the first image may be subjected to image segmentation processing to obtain a target background image, and the second image may be subjected to image segmentation processing to obtain a target foreground image. The image segmentation processing may be an image edge detection algorithm or a maximum inter-class variance algorithm or other algorithms, the target foreground image includes the photographed subject, and the target background image includes the background portion other than the photographed subject.

在得到至少一帧目标背景图像和至少一帧目标前景图像后,对上述目标背景图像和目标前景图像进行图像融合处理,得到目标视频。其中,目标视频的每一视频帧对应的图像包括背景和拍摄主体。After obtaining at least one frame of target background image and at least one frame of target foreground image, image fusion processing is performed on the target background image and the target foreground image to obtain a target video, wherein the image corresponding to each video frame of the target video includes a background and a subject.

一种可选地实施方式为,在第一图像的数量为一帧的情况下,对一帧第一图像进行图像分割处理,得到一帧目标背景图像,将一帧目标背景图像与多帧目标前景图像进行图像融合处理,得到目标视频。An optional implementation is, when the number of first images is one frame, performing image segmentation processing on one frame of the first image to obtain one frame of target background image, performing image fusion processing on the one frame of target background image and multiple frames of target foreground images to obtain the target video.

另一种可选地实施方式为,在第一图像的数量为多帧的情况下,对多帧第一图像进行图像分割处理,得到多帧目标背景图像,将多帧目标背景图像与多帧目标前景图像进行图像融合处理,得到目标视频。本实施例中,通过分别对第一图像和第二图像进图像分割,得到目标背景图像和目标前景图像,进一步地,对目标背景图像和目标前景图像进行图像融合,得到具备特效效果的目标视频。Another optional implementation is, when the number of the first image is multiple frames, image segmentation processing is performed on the multiple frames of the first image to obtain multiple frames of target background images, and image fusion processing is performed on the multiple frames of the target background images and the multiple frames of the target foreground images to obtain the target video. In this embodiment, the target background image and the target foreground image are obtained by performing image segmentation on the first image and the second image respectively, and further, the target background image and the target foreground image are image fused to obtain the target video with special effects.

可选地,所述对所述至少一帧目标背景图像和所述至少一帧目标前景图像进行图像融合处理之前,还包括:Optionally, before performing image fusion processing on the at least one frame of target background image and the at least one frame of target foreground image, the method further includes:

显示第一目标背景图像和第一目标前景图像;displaying a first target background image and a first target foreground image;

接收用户对第一目标图像的第一输入;receiving a first input of a user on a first target image;

响应于所述第一输入,对所述第一目标图像执行第一编辑处理。In response to the first input, a first editing process is performed on the first target image.

本实施例中,在得到目标背景图像和目标前景图像之后,显示第一目标背景图像和第一目标前景图像,其中,第一目标背景图像为目标背景图像中的一帧图像,第一目标前景图像为目标前景图像中的一帧图像。In this embodiment, after obtaining the target background image and the target foreground image, the first target background image and the first target foreground image are displayed, wherein the first target background image is a frame image in the target background image, and the first target foreground image is a frame image in the target foreground image.

在接收到用户对第一目标图像的第一输入的情况下,对第一目标图像执行第一编辑处理。其中,第一目标图像包括以下至少一项:第一目标背景图像、第一目标前景图像。其中,第一编辑处理包括但不限于在第一目标图像中添加文字信息,在第一目标图像中添加滤镜效果,在第一目标图像中添加音频信息,改变第一目标图像的大小以及调整第一目标图像的显示位置。In the case of receiving a first input of the user to the first target image, a first editing process is performed on the first target image. The first target image includes at least one of the following: a first target background image and a first target foreground image. The first editing process includes but is not limited to adding text information to the first target image, adding a filter effect to the first target image, adding audio information to the first target image, changing the size of the first target image, and adjusting the display position of the first target image.

上述第一输入可以是用户对第一目标图像的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本实施例在此不做具体限定。The first input may be a click input of the user on the first target image, or a voice command input by the user, or a specific gesture input by the user, which may be determined according to actual usage requirements and is not specifically limited in this embodiment.

一种可选的实施方式为,第一输入为针对第一目标背景图像的输入,这种情况下,响应该第一输入,对第一目标背景图像执行第一编辑处理。An optional implementation manner is that the first input is an input for a first target background image. In this case, in response to the first input, a first editing process is performed on the first target background image.

另一种可选的实施方式为,第一输入为针对第一目标前景图像的输入,这种情况下,响应该第一输入,对第一目标前景图像执行第一编辑处理。Another optional implementation is that the first input is an input for a first target foreground image. In this case, in response to the first input, a first editing process is performed on the first target foreground image.

另一种可选地实施方式为,第一输入为针对第一目标背景图像和第一目标前景图像的输入,这种情况下,响应该第一输入,对第一目标背景图像和第一目标前景图像执行第一编辑处理。Another optional implementation is that the first input is an input for a first target background image and a first target foreground image. In this case, in response to the first input, a first editing process is performed on the first target background image and the first target foreground image.

为便于理解,请参阅图5,在图5示出的实施场景中,在拍摄预览界面501,显示有第一目标背景图像和第一目标前景图像,用户可以对上述图像中的拍摄主体的尺寸进行调整,以此实现对第一目标图像的编辑处理。For ease of understanding, please refer to Figure 5. In the implementation scenario shown in Figure 5, a first target background image and a first target foreground image are displayed in the shooting preview interface 501. The user can adjust the size of the subject in the above images to implement editing of the first target image.

例如,当用户认为第一目标前景图像在第一目标背景图像中的位置不合适时,可以对第一目标前景图像执行滑动操作,以此调整第一目标前景图像的显示位置。例如在图5中,第一目标前景图像和第一目标背景图像有部分区域重叠,则可通过调整第一目标前景图像或者第一目标背景图像的显示位置来得到构图合理的融合图像。For example, when the user believes that the position of the first target foreground image in the first target background image is inappropriate, the user can perform a sliding operation on the first target foreground image to adjust the display position of the first target foreground image. For example, in FIG5 , the first target foreground image and the first target background image have a partial overlap, and a fused image with a reasonable composition can be obtained by adjusting the display position of the first target foreground image or the first target background image.

本实施例中,通过对第一目标图像执行第一编辑处理,可以调整目标视频的显示效果,得到让用户满意的视频。In this embodiment, by performing the first editing process on the first target image, the display effect of the target video can be adjusted to obtain a video that satisfies the user.

可选地,所述对所述至少一帧目标背景图像和所述至少一帧目标前景图像进行图像融合处理之前,还包括:Optionally, before performing image fusion processing on the at least one frame of target background image and the at least one frame of target foreground image, the method further includes:

显示至少一个目标背景缩略图和至少一个目标前景缩略图;displaying at least one target background thumbnail and at least one target foreground thumbnail;

接收用户对目标缩略图的第二输入;receiving a second input of the user regarding the target thumbnail;

响应于所述第二输入,对所述目标缩略图对应的图像执行第二编辑处理。In response to the second input, a second editing process is performed on the image corresponding to the target thumbnail.

本实施例中,在对目标背景图像和目标前景图像进行图像融合处理之前,显示有目标背景缩略图和目标前景缩略图,其中,目标背景缩略图为目标背景图像的缩略图,目标前景缩略图为目标前景图像的缩略图。In this embodiment, before the target background image and the target foreground image are subjected to image fusion processing, a target background thumbnail and a target foreground thumbnail are displayed, wherein the target background thumbnail is a thumbnail of the target background image, and the target foreground thumbnail is a thumbnail of the target foreground image.

在接收到用户对目标缩略图的第二输入的情况下,对目标缩略图对应的图像执行第二编辑处理。其中,目标缩略图包括以下至少一项:目标背景缩略图中的至少一个、目标前景缩略图中的至少一个。其中,第二编辑处理包括但不限于在目标缩略图对应的图像中添加文字信息,在目标缩略图对应的图像中添加滤镜效果,在目标缩略图对应的图像中添加音频信息、改变目标缩略图对应的图像中拍摄对象的大小,以及调整目标缩略图对应的图像中拍摄对象的显示位置。When receiving a second input from the user to the target thumbnail, a second editing process is performed on the image corresponding to the target thumbnail. The target thumbnail includes at least one of the following: at least one of the target background thumbnails and at least one of the target foreground thumbnails. The second editing process includes but is not limited to adding text information to the image corresponding to the target thumbnail, adding a filter effect to the image corresponding to the target thumbnail, adding audio information to the image corresponding to the target thumbnail, changing the size of the photographed object in the image corresponding to the target thumbnail, and adjusting the display position of the photographed object in the image corresponding to the target thumbnail.

上述第二输入可以是用户对目标缩略图的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本实施例在此不做具体限定。The second input may be a click input of the target thumbnail by the user, or a voice command input by the user, or a specific gesture input by the user. The specific input may be determined according to actual usage requirements and is not specifically limited in this embodiment.

一种可选的实施方式为,第二输入为针对目标背景缩略图的输入,这种情况下,响应该第二输入,对目标背景缩略图对应的图像执行第二编辑处理。An optional implementation manner is that the second input is an input for the target background thumbnail. In this case, in response to the second input, a second editing process is performed on the image corresponding to the target background thumbnail.

另一种可选的实施方式为,第二输入为针对目标前景缩略图的输入,这种情况下,响应该第二输入,对目标前景缩略图对应的图像执行第二编辑处理。Another optional implementation is that the second input is an input for the target foreground thumbnail. In this case, in response to the second input, a second editing process is performed on the image corresponding to the target foreground thumbnail.

另一种可选的实施方式为,第二输入为针对目标背景缩略图和目标前景缩略图的输入,这种情况下,响应该第二输入,对目标背景缩略图对应的图像和目标前景缩略图对应的图像执行第二编辑处理。Another optional implementation is that the second input is input for the target background thumbnail and the target foreground thumbnail. In this case, in response to the second input, a second editing process is performed on the image corresponding to the target background thumbnail and the image corresponding to the target foreground thumbnail.

为便于理解,请参阅图6,在图6示出的实施场景中,在拍摄预览界面601,显示有目标前景缩略图对应的图像和目标背景缩略图对应的图像,用户可以对目标前景缩略图和/或目标背景缩略图执行输入,以编辑目标前景缩略图对应的图像和/或目标背景缩略图对应的图像。For ease of understanding, please refer to Figure 6. In the implementation scenario shown in Figure 6, in the shooting preview interface 601, the image corresponding to the target foreground thumbnail and the image corresponding to the target background thumbnail are displayed. The user can input the target foreground thumbnail and/or the target background thumbnail to edit the image corresponding to the target foreground thumbnail and/or the image corresponding to the target background thumbnail.

本实施例中,通过对目标缩略图对应的图像执行第二编辑处理,可以调整目标视频的显示效果,得到让用户满意的视频。In this embodiment, by performing the second editing process on the image corresponding to the target thumbnail, the display effect of the target video can be adjusted to obtain a video that satisfies the user.

可选地,所述拍摄预览界面包括第三显示区域和第四显示区域,所述第三显示区域用于显示所述至少一帧第一图像,所述第一图像为背景图像,所述第四显示区域用于显示所述摄像头采集的至少一帧前景预览图像。Optionally, the shooting preview interface includes a third display area and a fourth display area, the third display area is used to display the at least one frame of the first image, the first image is a background image, and the fourth display area is used to display at least one frame of foreground preview image captured by the camera.

本实施例中,拍摄预览界面还包括第三显示区域和第四显示区域,第三显示区域显示有至少一帧第一图像,第四显示区域显示有至少一帧前景预览图像,其中,上述第一图像为背景图像,上述前景预览图像是摄像头采集到的图像。In this embodiment, the shooting preview interface also includes a third display area and a fourth display area, the third display area displays at least one frame of the first image, and the fourth display area displays at least one frame of the foreground preview image, wherein the above-mentioned first image is the background image, and the above-mentioned foreground preview image is the image captured by the camera.

示例性地,第三显示区域显示的第一图像可以只包括拍摄背景,即第一图像中不包括拍摄主体,第一图像包括为拍摄主体设置的预设区域;第四显示区域显示的前景预览图像为用户使用摄像头拍摄得到的拍摄主体图像。这种情况下,用户在使用摄像头时,需要将拍摄主体的显示位置调整到第一图像中的预设区域,例如,当预设区域的轮廓为全身照的轮廓时,用户可以摆出与轮廓相符的姿势;当预设区域为头像的轮廓时,将自身的头像调整到第三显示区域中的预设区域。进一步地,用户可以对拍摄预览界面中的相关控件进行操作,完成拍照。Exemplarily, the first image displayed in the third display area may only include the shooting background, that is, the first image does not include the shooting subject, and the first image includes a preset area set for the shooting subject; the foreground preview image displayed in the fourth display area is the shooting subject image obtained by the user using the camera. In this case, when using the camera, the user needs to adjust the display position of the shooting subject to the preset area in the first image. For example, when the outline of the preset area is the outline of a full-body photo, the user can pose in a posture consistent with the outline; when the preset area is the outline of an avatar, the user's own avatar is adjusted to the preset area in the third display area. Furthermore, the user can operate the relevant controls in the shooting preview interface to complete the photo shooting.

可选地,所述方法还包括:Optionally, the method further comprises:

在所述第三显示区域显示所述至少一帧第一图像中的第二目标图像,以及所述第四显示区域显示目标前景预览图像的情况下,接收用户的第三输入;In the case where the third display area displays the second target image in the at least one frame of the first image, and the fourth display area displays the target foreground preview image, receiving a third input from the user;

响应于所述第三输入,得到第一视频图像。In response to the third input, a first video image is obtained.

本实施例中,上述第二目标图像可以理解为第一图像对应的视频帧序列中的暂停帧对应的图像。应理解,在视频帧序列的当前帧为暂停帧时,视频帧序列停止播放。当第三显示区域显示第二目标图像时,暂停更新第一图像。也就是说,当第三显示区域显示的图像为视频帧序列中的暂停帧对应的图像时,在第三显示区域暂停更新背景图像。当暂停帧只包括背景图像时,第一图像即为暂停帧;当暂停帧既包括背景图像又包括全景图像时,第一图像可以为从暂停帧中抠图出来的背景图像。In this embodiment, the second target image can be understood as the image corresponding to the pause frame in the video frame sequence corresponding to the first image. It should be understood that when the current frame of the video frame sequence is a pause frame, the video frame sequence stops playing. When the third display area displays the second target image, the updating of the first image is paused. In other words, when the image displayed in the third display area is the image corresponding to the pause frame in the video frame sequence, the updating of the background image is paused in the third display area. When the pause frame only includes the background image, the first image is the pause frame; when the pause frame includes both the background image and the panoramic image, the first image can be the background image cut out from the pause frame.

当第三显示区域显示第二目标图像,第四显示区域显示前景预览图像时,接收用户的第三输入。When the third display area displays the second target image and the fourth display area displays the foreground preview image, a third input from the user is received.

其中,上述第三输入可以是用户对拍摄预览界面中目标控件的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本实施例在此不做具体限定。Among them, the above-mentioned third input can be a click input of the user on the target control in the shooting preview interface, or a voice command input by the user, or a specific gesture input by the user. The specific one can be determined according to actual usage requirements, and this embodiment does not make any specific limitations here.

在接收到第三输入后,响应该第三输入,对第二目标图像和该目标前景预览图像进行图像融合处理,得到第一视频图像。其中,上述第一视频图像为目标视频的一部分,即目标视频包括第一视频图像。After receiving the third input, in response to the third input, the second target image and the target foreground preview image are subjected to image fusion processing to obtain a first video image, wherein the first video image is a part of the target video, that is, the target video includes the first video image.

示例性地,用户想拍摄一段舞蹈视频,但是因为没有基本功,所以无法连贯的完成舞蹈动作。这种情况下,可以从舞蹈视频中确定多个暂停帧,当播放至目标暂停帧时,对目标暂停帧进行图像分割处理,将分割出来的背景图像作为第二目标图像,并在拍摄预览界面显示该第二目标图像。用户根据显示的第二目标图像摆出舞蹈动作,得到目标前景预览图像,用户执行第三输入,生成第一视频图像。进一步地,拍摄完成后,继续播放下一暂停帧,然后用户可以继续拍摄得到第二视频图像,基于拍摄得到的多帧视频图像,可以得到以用户为拍摄主体的舞蹈视频。For example, a user wants to shoot a dance video, but because he does not have the basic skills, he cannot complete the dance movements coherently. In this case, multiple pause frames can be determined from the dance video. When the target pause frame is played, the target pause frame is subjected to image segmentation processing, and the segmented background image is used as the second target image, and the second target image is displayed in the shooting preview interface. The user performs dance movements according to the displayed second target image to obtain the target foreground preview image, and the user performs a third input to generate the first video image. Furthermore, after the shooting is completed, the next pause frame continues to be played, and then the user can continue to shoot to obtain the second video image. Based on the multiple frames of video images obtained by shooting, a dance video with the user as the shooting subject can be obtained.

本实施例中,在接收到用户的第三输入的情况下,对第二目标图像和拍摄得到的目标前景预览图像进行图像融合处理,得到第一视频图像,进而生成具备特效效果的目标视频。In this embodiment, when the third input from the user is received, the second target image and the captured target foreground preview image are subjected to image fusion processing to obtain a first video image, thereby generating a target video with special effects.

可选地,所述接收用户的第三输入之后,还包括:Optionally, after receiving the third input from the user, the method further includes:

响应于所述第三输入,在所述第三显示区域显示所述至少一帧第一图像中的第三目标图像。In response to the third input, a third target image in the at least one frame of the first image is displayed in the third display area.

本实施例中,上述第三目标图像可以理解为第一图像对应的视频帧序列中的暂停帧。当接收到第三输入之后,按照视频帧序列中第一图像的排序继续显示第一图像,直至显示到暂停帧,即第三目标图像时,第三显示区域暂停显示第一图像,在拍摄得到目标前景预览图像,且接收到用户的输入后,才继续显示第一图像。In this embodiment, the third target image can be understood as a pause frame in the video frame sequence corresponding to the first image. After receiving the third input, the first image continues to be displayed according to the order of the first image in the video frame sequence until the pause frame, i.e., the third target image, is displayed. The third display area pauses to display the first image, and continues to display the first image after capturing the target foreground preview image and receiving the user's input.

本实施例中,在第三显示区域显示第三目标图像,进一步地,对第三目标图像和拍摄得到的目标前景预览图像进行图像融合处理,生成具备特效效果的目标视频。In this embodiment, the third target image is displayed in the third display area. Furthermore, the third target image and the captured target foreground preview image are subjected to image fusion processing to generate a target video with special effects.

可选地,所述得到第一视频图像之后,还包括:Optionally, after obtaining the first video image, the method further includes:

显示所述第一视频图像;displaying the first video image;

接收用户的第四输入;receiving a fourth input from the user;

响应于所述第四输入,对所述第一视频图像进行第三编辑处理。In response to the fourth input, a third editing process is performed on the first video image.

本实施例中,在得到第一视频图像之后,显示第一视频图像,并接收用户对第一视频图像的第四输入。In this embodiment, after the first video image is obtained, the first video image is displayed, and a fourth input of the user on the first video image is received.

其中,上述第四输入可以是用户对第一视频图像的点击输入,或者为用户输入的语音指令,或者为用户输入的特定手势,具体的可以根据实际使用需求确定,本实施例在此不做具体限定。Among them, the above-mentioned fourth input can be a click input of the user on the first video image, or a voice command input by the user, or a specific gesture input by the user. The specific one can be determined according to actual usage requirements, and this embodiment does not make any specific limitations here.

响应该第四输入,对第一视频图像进行第三编辑处理。其中,第三编辑处理包括但不限于在第一视频图像中添加文字信息,在第一视频图像中添加滤镜效果,在第一视频图像中添加音频信息、改变第一视频图像中拍摄对象的大小,以及调整第一视频图像的显示位置。In response to the fourth input, a third editing process is performed on the first video image, wherein the third editing process includes but is not limited to adding text information to the first video image, adding a filter effect to the first video image, adding audio information to the first video image, changing the size of the object in the first video image, and adjusting the display position of the first video image.

请参阅图7,在图7示出的实施场景中,图7中的控件显示栏701显示有多个控件,例如“构图”、“修复”、“调节”、“涂鸦”、“滤镜”和“文字”。用户可以对这些控件执行触控输入,以此对第一视频图像进行编辑。Referring to FIG7 , in the implementation scenario shown in FIG7 , a plurality of controls are displayed in the control display bar 701 in FIG7 , such as “compose”, “repair”, “adjust”, “graffiti”, “filter” and “text”. The user can perform touch input on these controls to edit the first video image.

本实施例中,通过对第一视频图像执行第三编辑处理,可以调整目标视频的显示效果,得到让用户满意的视频。In this embodiment, by performing the third editing process on the first video image, the display effect of the target video can be adjusted to obtain a video that satisfies the user.

本申请实施例提供的视频拍摄方法,执行主体可以为视频拍摄装置,或者该视频拍摄装置中的用于执行视频拍摄方法的控制模块。本申请实施例中以视频拍摄装置执行视频拍摄方法为例,说明本申请实施例提供的视频拍摄装置。The video shooting method provided in the embodiment of the present application can be executed by a video shooting device or a control module in the video shooting device for executing the video shooting method. In the embodiment of the present application, the video shooting device provided in the embodiment of the present application is described by taking the video shooting method executed by the video shooting device as an example.

请参阅图8,图8是本申请实施例提供的视频拍摄装置的结构图。如图8所示,视频拍摄装置800包括:Please refer to FIG8 , which is a structural diagram of a video shooting device provided in an embodiment of the present application. As shown in FIG8 , the video shooting device 800 includes:

控制模块801,用于在拍摄预览界面显示至少一帧第一图像的情况下,控制摄像头采集至少一帧第二图像;The control module 801 is used to control the camera to capture at least one frame of the second image when at least one frame of the first image is displayed on the shooting preview interface;

生成模块802,用于基于所述至少一帧第一图像和所述至少一帧第二图像,生成目标视频。The generating module 802 is configured to generate a target video based on the at least one frame of the first image and the at least one frame of the second image.

本实施例中,用户不需要使用后期处理工具对摄像头采集的图像进行相应的处理,降低了制作特效视频的复杂度,使得特效视频的制作更为便捷。In this embodiment, the user does not need to use post-processing tools to perform corresponding processing on the images captured by the camera, which reduces the complexity of producing special effects videos and makes the production of special effects videos more convenient.

可选地,所述生成模块802,具体用于:Optionally, the generating module 802 is specifically configured to:

对所述至少一帧第一图像进行图像分割处理,得到至少一帧目标背景图像,对所述至少一帧第二图像进行图像分割处理,得到至少一帧目标前景图像;Performing image segmentation processing on the at least one frame of the first image to obtain at least one frame of the target background image, and performing image segmentation processing on the at least one frame of the second image to obtain at least one frame of the target foreground image;

对所述至少一帧目标背景图像和所述至少一帧目标前景图像进行图像融合处理,得到所述目标视频。Image fusion processing is performed on the at least one frame of target background image and the at least one frame of target foreground image to obtain the target video.

本实施例中,通过分别对第一图像和第二图像进图像分割,得到目标背景图像和目标前景图像,进一步地,对目标背景图像和目标前景图像进行图像融合,得到具备特效效果的目标视频。In this embodiment, by performing image segmentation on the first image and the second image respectively, a target background image and a target foreground image are obtained. Further, the target background image and the target foreground image are fused to obtain a target video with special effects.

可选地,所述视频拍摄装置800还包括:Optionally, the video shooting device 800 further includes:

第一显示模块,用于显示第一目标背景图像和第一目标前景图像,所述第一目标背景图像为所述至少一帧目标背景图像中的一帧图像,所述第一目标前景图像为所述至少一帧目标前景图像中的一帧图像;A first display module, used for displaying a first target background image and a first target foreground image, wherein the first target background image is one frame of the at least one frame of the target background image, and the first target foreground image is one frame of the at least one frame of the target foreground image;

第一接收模块,用于接收用户对第一目标图像的第一输入,所述第一目标图像包括以下至少一项:第一目标背景图像、第一目标前景图像;A first receiving module is used to receive a first input of a first target image from a user, wherein the first target image includes at least one of the following: a first target background image and a first target foreground image;

第一处理模块,用于响应于所述第一输入,对所述第一目标图像执行第一编辑处理。The first processing module is used to perform a first editing process on the first target image in response to the first input.

本实施例中,通过对第一目标图像执行第一编辑处理,可以调整目标视频的显示效果,得到让用户满意的视频。In this embodiment, by performing the first editing process on the first target image, the display effect of the target video can be adjusted to obtain a video that satisfies the user.

可选地,所述视频拍摄装置800还包括:Optionally, the video shooting device 800 further includes:

第二显示模块,用于显示至少一个目标背景缩略图和至少一个目标前景缩略图,所述至少一个目标背景缩略图为所述至少一帧目标背景图像的缩略图,所述至少一个目标前景缩略图为所述至少一帧目标前景图像的缩略图;A second display module, used for displaying at least one target background thumbnail and at least one target foreground thumbnail, wherein the at least one target background thumbnail is a thumbnail of the at least one frame of target background image, and the at least one target foreground thumbnail is a thumbnail of the at least one frame of target foreground image;

第二接收模块,用于接收用户对目标缩略图的第二输入,所述目标缩略图包括以下至少一项:所述目标背景缩略图中的至少一个、所述目标前景缩略图中的至少一个;A second receiving module is used to receive a second input of a target thumbnail from a user, wherein the target thumbnail includes at least one of the following: at least one of the target background thumbnails and at least one of the target foreground thumbnails;

第二处理模块,用于响应于所述第二输入,对所述目标缩略图对应的图像执行第二编辑处理。The second processing module is used to perform a second editing process on the image corresponding to the target thumbnail in response to the second input.

本实施例中,通过对目标缩略图执行第二编辑处理,可以调整目标视频的显示效果,得到让用户满意的视频。In this embodiment, by performing the second editing process on the target thumbnail, the display effect of the target video can be adjusted to obtain a video that satisfies the user.

可选地,所述视频拍摄装置800还包括:Optionally, the video shooting device 800 further includes:

第三接收模块,用于在所述第三显示区域显示所述至少一帧第一图像中的第二目标图像,以及所述第四显示区域显示目标前景预览图像的情况下,接收用户的第三输入;A third receiving module, configured to receive a third input from a user when the second target image in the at least one frame of the first image is displayed in the third display area and the target foreground preview image is displayed in the fourth display area;

响应模块,用于响应于所述第三输入,得到第一视频图像,所述目标视频包括所述第一视频图像。The response module is used to obtain a first video image in response to the third input, and the target video includes the first video image.

本实施例中,在接收到用户的第三输入的情况下,对第二目标图像和拍摄得到的目标前景预览图像进行图像融合处理,得到第一视频图像,进而生成具备特效效果的目标视频。In this embodiment, when the third input from the user is received, the second target image and the captured target foreground preview image are subjected to image fusion processing to obtain a first video image, thereby generating a target video with special effects.

可选地,所述视频拍摄装置800还包括:Optionally, the video shooting device 800 further includes:

第三显示模块,用于响应于所述第三输入,在所述第三显示区域显示所述至少一帧第一图像中的第三目标图像。The third display module is used to display a third target image in the at least one frame of the first image in the third display area in response to the third input.

本实施例中,在第三显示区域显示第三目标图像,进一步地,对第三目标图像和拍摄得到的目标前景预览图像进行图像融合处理,生成具备特效效果的目标视频。In this embodiment, the third target image is displayed in the third display area. Furthermore, the third target image and the captured target foreground preview image are subjected to image fusion processing to generate a target video with special effects.

可选地,所述视频拍摄装置800还包括:Optionally, the video shooting device 800 further includes:

第四显示模块,用于显示所述第一视频图像;A fourth display module, used for displaying the first video image;

第四接收模块,用于接收用户的第四输入;A fourth receiving module, used to receive a fourth input from a user;

第三处理模块,用于响应于所述第四输入,对所述第一视频图像进行第三编辑处理。The third processing module is used to perform a third editing process on the first video image in response to the fourth input.

本实施例中,通过对第一视频图像执行第三编辑处理,可以调整目标视频的显示效果,得到让用户满意的视频。In this embodiment, by performing the third editing process on the first video image, the display effect of the target video can be adjusted to obtain a video that satisfies the user.

本申请实施例中的视频拍摄装置可以是电子设备,也可以是电子设备中的部件、例如集成电路、或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性地,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtualreality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personalcomputer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personalcomputer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The video shooting device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiment of the present application is not specifically limited.

本申请实施例中的视频拍摄装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The video shooting device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

本申请实施例提供的视频拍摄装置能够实现图1方法实施例实现的各个过程,实现相同的技术效果,为避免重复,这里不再赘述。The video shooting device provided in the embodiment of the present application can implement each process implemented in the method embodiment of Figure 1 and achieve the same technical effect. To avoid repetition, it will not be repeated here.

可选地,如图9所示,本申请实施例还提供一种电子设备900,包括处理器901和存储器902,存储器902上存储有可在所述处理器901上运行的程序或指令,该程序或指令被处理器901执行时实现上述视频拍摄方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in Figure 9, an embodiment of the present application also provides an electronic device 900, including a processor 901 and a memory 902, and the memory 902 stores a program or instruction that can be executed on the processor 901. When the program or instruction is executed by the processor 901, the various steps of the above-mentioned video shooting method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

图10为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 10 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.

该电子设备1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009、以及处理器1010等部件。The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.

本领域技术人员可以理解,电子设备1000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1010逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图10中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 1000 can also include a power supply (such as a battery) for supplying power to each component, and the power supply can be logically connected to the processor 1010 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The electronic device structure shown in FIG10 does not constitute a limitation on the electronic device, and the electronic device can include more or fewer components than shown in the figure, or combine certain components, or arrange components differently, which will not be described in detail here.

其中,处理器1010,还用于在拍摄预览界面显示至少一帧第一图像的情况下,控制摄像头采集至少一帧第二图像;The processor 1010 is further configured to control the camera to capture at least one frame of the second image when at least one frame of the first image is displayed on the shooting preview interface;

基于所述至少一帧第一图像和所述至少一帧第二图像,生成目标视频。A target video is generated based on the at least one frame of the first image and the at least one frame of the second image.

本实施例中,用户不需要使用后期处理工具对摄像头采集的图像进行相应的处理,降低了制作特效视频的复杂度,使得特效视频的制作更为便捷。In this embodiment, the user does not need to use post-processing tools to perform corresponding processing on the images captured by the camera, which reduces the complexity of producing special effects videos and makes the production of special effects videos more convenient.

其中,处理器1010,还用于对所述至少一帧第一图像进行图像分割处理,得到至少一帧目标背景图像,对所述至少一帧第二图像进行图像分割处理,得到至少一帧目标前景图像;The processor 1010 is further configured to perform image segmentation processing on the at least one frame of the first image to obtain at least one frame of the target background image, and perform image segmentation processing on the at least one frame of the second image to obtain at least one frame of the target foreground image;

对所述至少一帧目标背景图像和所述至少一帧目标前景图像进行图像融合处理,得到所述目标视频。Image fusion processing is performed on the at least one frame of target background image and the at least one frame of target foreground image to obtain the target video.

本实施例中,通过分别对第一图像和第二图像进图像分割,得到目标背景图像和目标前景图像,进一步地,对目标背景图像和目标前景图像进行图像融合,得到具备特效效果的目标视频。In this embodiment, by performing image segmentation on the first image and the second image respectively, a target background image and a target foreground image are obtained. Further, the target background image and the target foreground image are fused to obtain a target video with special effects.

其中,显示单元1006,还用于显示第一目标背景图像和第一目标前景图像;The display unit 1006 is further used to display the first target background image and the first target foreground image;

用户输入单元1007,还用于接收用户对第一目标图像的第一输入;The user input unit 1007 is further used to receive a first input of a user on a first target image;

处理器1010,还用于响应于所述第一输入,对所述第一目标图像执行第一编辑处理。The processor 1010 is further configured to perform a first editing process on the first target image in response to the first input.

本实施例中,通过对第一目标图像执行第一编辑处理,可以调整目标视频的显示效果,得到让用户满意的视频。In this embodiment, by performing the first editing process on the first target image, the display effect of the target video can be adjusted to obtain a video that satisfies the user.

其中,显示单元1006,还用于显示至少一个目标背景缩略图和至少一个目标前景缩略图;The display unit 1006 is further configured to display at least one target background thumbnail and at least one target foreground thumbnail;

用户输入单元1007,还用于接收用户对目标缩略图的第二输入;The user input unit 1007 is further used to receive a second input of the user on the target thumbnail;

处理器1010,还用于响应于所述第二输入,对所述目标缩略图对应的图像执行第二编辑处理。The processor 1010 is further configured to, in response to the second input, perform a second editing process on the image corresponding to the target thumbnail.

本实施例中,通过对目标缩略图执行第二编辑处理,可以调整目标视频的显示效果,得到让用户满意的视频。In this embodiment, by performing the second editing process on the target thumbnail, the display effect of the target video can be adjusted to obtain a video that satisfies the user.

其中,用户输入单元1007,还用于在所述第三显示区域显示所述至少一帧第一图像中的第二目标图像,以及所述第四显示区域显示目标前景预览图像的情况下,接收用户的第三输入;The user input unit 1007 is further configured to receive a third input from the user when the second target image in the at least one frame of the first image is displayed in the third display area and the target foreground preview image is displayed in the fourth display area;

处理器1010,还用于响应于所述第三输入,得到第一视频图像。The processor 1010 is further configured to obtain a first video image in response to the third input.

本实施例中,在接收到用户的第三输入的情况下,对第二目标图像和拍摄得到的目标前景预览图像进行图像融合处理,得到第一视频图像,进而生成具备特效效果的目标视频。In this embodiment, when the third input from the user is received, the second target image and the captured target foreground preview image are subjected to image fusion processing to obtain a first video image, thereby generating a target video with special effects.

其中,显示单元1006,还用于响应于所述第三输入,在所述第三显示区域显示所述至少一帧第一图像中的第三目标图像。The display unit 1006 is further configured to display a third target image in the at least one frame of the first image in the third display area in response to the third input.

本实施例中,在第三显示区域显示第三目标图像,进一步地,对第三目标图像和拍摄得到的目标前景预览图像进行图像融合处理,生成具备特效效果的目标视频。In this embodiment, the third target image is displayed in the third display area. Furthermore, the third target image and the captured target foreground preview image are subjected to image fusion processing to generate a target video with special effects.

其中,显示单元1006,还用于显示所述第一视频图像;The display unit 1006 is further configured to display the first video image;

用户输入单元1007,还用于接收用户的第四输入;The user input unit 1007 is further used to receive a fourth input from the user;

处理器1010,还用于响应于所述第四输入,对所述第一视频图像进行第三编辑处理。The processor 1010 is further configured to perform a third editing process on the first video image in response to the fourth input.

本实施例中,通过对第一视频图像执行第三编辑处理,可以调整目标视频的显示效果,得到让用户满意的视频。In this embodiment, by performing the third editing process on the first video image, the display effect of the target video can be adjusted to obtain a video that satisfies the user.

应理解的是,本申请实施例中,输入单元1004可以包括图形处理器(GraphicsProcessing Unit,GPU)10041和麦克风10042,图形处理器10041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1006可包括显示面板10061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板10061。用户输入单元1007包括触控面板10071以及其他输入设备10072中的至少一种。触控面板10071,也称为触摸屏。触控面板10071可包括触摸检测装置和触摸控制器两个部分。其他输入设备10072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 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 will not be repeated here.

存储器1009可用于存储软件程序以及各种数据。存储器1009可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器1009可以包括易失性存储器或非易失性存储器,或者,存储器1009可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器1009包括但不限于这些和任意其它适合类型的存储器。The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

处理器1010可包括一个或多个处理单元;可选地,处理器1010集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.

本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述视频拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned video shooting method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(ROM)、随机存取存储器(RAM)、磁碟或者光盘等。The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述视频拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned video shooting method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述视频拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned video shooting method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises one..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be noted that the scope of the method and device in the embodiment of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims (15)

Translated fromChinese
1.一种视频拍摄方法,其特征在于,包括:1. A video shooting method, comprising:在拍摄预览界面显示至少一帧第一图像的情况下,控制摄像头采集至少一帧第二图像;When at least one frame of the first image is displayed on the shooting preview interface, controlling the camera to capture at least one frame of the second image;基于所述至少一帧第一图像和所述至少一帧第二图像,生成目标视频;Generate a target video based on the at least one frame of the first image and the at least one frame of the second image;其中,所述拍摄预览界面包括第三显示区域和第四显示区域,所述第三显示区域用于显示所述至少一帧第一图像,所述第一图像为背景图像,所述第四显示区域用于显示所述摄像头采集的至少一帧第二图像,所述第二图像包括前景预览图像;所述基于所述至少一帧第一图像和所述至少一帧第二图像,生成目标视频包括:The shooting preview interface includes a third display area and a fourth display area, the third display area is used to display the at least one frame of the first image, the first image is a background image, and the fourth display area is used to display the at least one frame of the second image captured by the camera, the second image includes a foreground preview image; the generating the target video based on the at least one frame of the first image and the at least one frame of the second image includes:在所述第三显示区域显示所述至少一帧第一图像中的第二目标图像,以及所述第四显示区域显示目标前景预览图像的情况下,接收用户的第三输入,所述第二目标图像为所述第一图像对应的视频帧序列中的暂停帧对应的图像;In a case where the third display area displays a second target image in the at least one frame of the first image, and the fourth display area displays a target foreground preview image, receiving a third input from a user, wherein the second target image is an image corresponding to a pause frame in a video frame sequence corresponding to the first image;响应于所述第三输入,对所述第二目标图像和所述目标前景预览图像进行图像融合处理,得到第一视频图像,基于所述第一视频图像生成目标视频。In response to the third input, image fusion processing is performed on the second target image and the target foreground preview image to obtain a first video image, and a target video is generated based on the first video image.2.根据权利要求1所述的方法,其特征在于,所述拍摄预览界面包括第一显示区域和第二显示区域,所述第一显示区域用于显示所述至少一帧第一图像,所述第二显示区域用于显示所述摄像头采集的所述至少一帧第二图像。2. The method according to claim 1 is characterized in that the shooting preview interface includes a first display area and a second display area, the first display area is used to display the at least one frame of the first image, and the second display area is used to display the at least one frame of the second image captured by the camera.3.根据权利要求1所述的方法,其特征在于,所述基于所述至少一帧第一图像和所述至少一帧第二图像,生成目标视频,包括:3. The method according to claim 1, characterized in that generating a target video based on the at least one frame of the first image and the at least one frame of the second image comprises:对所述至少一帧第一图像进行图像分割处理,得到至少一帧目标背景图像,对所述至少一帧第二图像进行图像分割处理,得到至少一帧目标前景图像;Performing image segmentation processing on the at least one frame of the first image to obtain at least one frame of the target background image, and performing image segmentation processing on the at least one frame of the second image to obtain at least one frame of the target foreground image;对所述至少一帧目标背景图像和所述至少一帧目标前景图像进行图像融合处理,得到所述目标视频。Image fusion processing is performed on the at least one frame of target background image and the at least one frame of target foreground image to obtain the target video.4.根据权利要求3所述的方法,其特征在于,所述对所述至少一帧目标背景图像和所述至少一帧目标前景图像进行图像融合处理之前,还包括:4. The method according to claim 3, characterized in that before the image fusion processing is performed on the at least one frame of the target background image and the at least one frame of the target foreground image, it also includes:显示第一目标背景图像和第一目标前景图像,所述第一目标背景图像为所述至少一帧目标背景图像中的一帧图像,所述第一目标前景图像为所述至少一帧目标前景图像中的一帧图像;Displaying a first target background image and a first target foreground image, wherein the first target background image is one frame of the at least one frame of the target background image, and the first target foreground image is one frame of the at least one frame of the target foreground image;接收用户对第一目标图像的第一输入,所述第一目标图像包括以下至少一项:第一目标背景图像、第一目标前景图像;Receiving a first input of a first target image from a user, wherein the first target image includes at least one of the following: a first target background image and a first target foreground image;响应于所述第一输入,对所述第一目标图像执行第一编辑处理。In response to the first input, a first editing process is performed on the first target image.5.根据权利要求3所述的方法,其特征在于,所述对所述至少一帧目标背景图像和所述至少一帧目标前景图像进行图像融合处理之前,还包括:5. The method according to claim 3, characterized in that before the image fusion processing is performed on the at least one frame of the target background image and the at least one frame of the target foreground image, it also includes:显示至少一个目标背景缩略图和至少一个目标前景缩略图,所述至少一个目标背景缩略图为所述至少一帧目标背景图像的缩略图,所述至少一个目标前景缩略图为所述至少一帧目标前景图像的缩略图;Displaying at least one target background thumbnail and at least one target foreground thumbnail, wherein the at least one target background thumbnail is a thumbnail of the at least one frame of target background image, and the at least one target foreground thumbnail is a thumbnail of the at least one frame of target foreground image;接收用户对目标缩略图的第二输入,所述目标缩略图包括以下至少一项:所述目标背景缩略图中的至少一个、所述目标前景缩略图中的至少一个;receiving a second input of a target thumbnail from a user, wherein the target thumbnail includes at least one of the following: at least one of the target background thumbnails and at least one of the target foreground thumbnails;响应于所述第二输入,对所述目标缩略图对应的图像执行第二编辑处理。In response to the second input, a second editing process is performed on the image corresponding to the target thumbnail.6.根据权利要求1所述的方法,其特征在于,所述接收用户的第三输入之后,还包括:6. The method according to claim 1, characterized in that after receiving the third input from the user, it also includes:响应于所述第三输入,在所述第三显示区域显示所述至少一帧第一图像中的第三目标图像。In response to the third input, a third target image in the at least one frame of the first image is displayed in the third display area.7.根据权利要求1所述的方法,其特征在于,所述得到第一视频图像之后,还包括:7. The method according to claim 1, characterized in that after obtaining the first video image, it also includes:显示所述第一视频图像;displaying the first video image;接收用户的第四输入;receiving a fourth input from the user;响应于所述第四输入,对所述第一视频图像进行第三编辑处理。In response to the fourth input, a third editing process is performed on the first video image.8.一种视频拍摄装置,其特征在于,包括:8. A video shooting device, comprising:控制模块,用于在拍摄预览界面显示至少一帧第一图像的情况下,控制摄像头采集至少一帧第二图像;A control module, used to control the camera to capture at least one frame of the second image when at least one frame of the first image is displayed on the shooting preview interface;生成模块,用于基于所述至少一帧第一图像和所述至少一帧第二图像,生成目标视频;A generating module, configured to generate a target video based on the at least one frame of the first image and the at least one frame of the second image;其中,所述拍摄预览界面包括第三显示区域和第四显示区域,所述第三显示区域用于显示所述至少一帧第一图像,所述第一图像为背景图像,所述第四显示区域用于显示所述摄像头采集的至少一帧第二图像,所述第二图像包括前景预览图像;所述生成模块包括:The shooting preview interface includes a third display area and a fourth display area, the third display area is used to display the at least one frame of the first image, the first image is a background image, and the fourth display area is used to display at least one frame of the second image captured by the camera, the second image includes a foreground preview image; the generation module includes:第三接收模块,用于在所述第三显示区域显示所述至少一帧第一图像中的第二目标图像,以及所述第四显示区域显示目标前景预览图像的情况下,接收用户的第三输入,所述第二目标图像为所述第一图像对应的视频帧序列中的暂停帧对应的图像;A third receiving module is used to receive a third input from a user when the third display area displays a second target image in the at least one frame of the first image and the fourth display area displays a target foreground preview image, wherein the second target image is an image corresponding to a pause frame in a video frame sequence corresponding to the first image;响应模块,用于响应于所述第三输入,对所述第二目标图像和所述目标前景预览图像进行图像融合处理,得到第一视频图像,基于所述第一视频图像生成目标视频。The response module is used to respond to the third input, perform image fusion processing on the second target image and the target foreground preview image to obtain a first video image, and generate a target video based on the first video image.9.根据权利要求8所述的装置,其特征在于,所述生成模块,具体用于:9. The device according to claim 8, characterized in that the generating module is specifically used for:对所述至少一帧第一图像进行图像分割处理,得到至少一帧目标背景图像,对所述至少一帧第二图像进行图像分割处理,得到至少一帧目标前景图像;Performing image segmentation processing on the at least one frame of the first image to obtain at least one frame of the target background image, and performing image segmentation processing on the at least one frame of the second image to obtain at least one frame of the target foreground image;对所述至少一帧目标背景图像和所述至少一帧目标前景图像进行图像融合处理,得到所述目标视频。Image fusion processing is performed on the at least one frame of target background image and the at least one frame of target foreground image to obtain the target video.10.根据权利要求9所述的装置,其特征在于,所述视频拍摄装置还包括:10. The device according to claim 9, characterized in that the video shooting device further comprises:第一显示模块,用于显示第一目标背景图像和第一目标前景图像,所述第一目标背景图像为所述至少一帧目标背景图像中的一帧图像,所述第一目标前景图像为所述至少一帧目标前景图像中的一帧图像;A first display module, used for displaying a first target background image and a first target foreground image, wherein the first target background image is one frame of the at least one frame of the target background image, and the first target foreground image is one frame of the at least one frame of the target foreground image;第一接收模块,用于接收用户对第一目标图像的第一输入,所述第一目标图像包括以下至少一项:第一目标背景图像、第一目标前景图像;A first receiving module is used to receive a first input of a first target image from a user, wherein the first target image includes at least one of the following: a first target background image and a first target foreground image;第一处理模块,用于响应于所述第一输入,对所述第一目标图像执行第一编辑处理。The first processing module is used to perform a first editing process on the first target image in response to the first input.11.根据权利要求9所述的装置,其特征在于,所述视频拍摄装置还包括:11. The device according to claim 9, characterized in that the video shooting device further comprises:第二显示模块,用于显示至少一个目标背景缩略图和至少一个目标前景缩略图,所述至少一个目标背景缩略图为所述至少一帧目标背景图像的缩略图,所述至少一个目标前景缩略图为所述至少一帧目标前景图像的缩略图;A second display module, used for displaying at least one target background thumbnail and at least one target foreground thumbnail, wherein the at least one target background thumbnail is a thumbnail of the at least one frame of target background image, and the at least one target foreground thumbnail is a thumbnail of the at least one frame of target foreground image;第二接收模块,用于接收用户对目标缩略图的第二输入,所述目标缩略图包括以下至少一项:所述目标背景缩略图中的至少一个、所述目标前景缩略图中的至少一个;A second receiving module is used to receive a second input of a target thumbnail from a user, wherein the target thumbnail includes at least one of the following: at least one of the target background thumbnails and at least one of the target foreground thumbnails;第二处理模块,用于响应于所述第二输入,对所述目标缩略图对应的图像执行第二编辑处理。The second processing module is used to perform a second editing process on the image corresponding to the target thumbnail in response to the second input.12.根据权利要求8所述的装置,其特征在于,所述视频拍摄装置还包括:12. The device according to claim 8, characterized in that the video shooting device further comprises:第三显示模块,用于响应于所述第三输入,在所述第三显示区域显示所述至少一帧第一图像中的第三目标图像。The third display module is used to display a third target image in the at least one frame of the first image in the third display area in response to the third input.13.根据权利要求12所述的装置,其特征在于,所述视频拍摄装置还包括:13. The device according to claim 12, characterized in that the video shooting device further comprises:第四显示模块,用于显示所述第一视频图像;A fourth display module, used for displaying the first video image;第四接收模块,用于接收用户的第四输入;A fourth receiving module, used to receive a fourth input from a user;第三处理模块,用于响应于所述第四输入,对所述第一视频图像进行第三编辑处理。The third processing module is used to perform a third editing process on the first video image in response to the fourth input.14.一种电子设备,其特征在于,包括处理器和存储器,所述存储器存储可在所述处理器上运行的计算机可执行程序,所述计算机可执行程序被所述处理器执行时实现如权利要求1-7中任一项所述的视频拍摄方法的步骤。14. An electronic device, comprising a processor and a memory, wherein the memory stores a computer executable program that can be run on the processor, and when the computer executable program is executed by the processor, the steps of the video shooting method according to any one of claims 1 to 7 are implemented.15.一种可读存储介质,其特征在于,所述可读存储介质上存储计算机可执行程序,所述计算机可执行程序被处理器执行时实现如权利要求1-7中任一项所述的视频拍摄方法的步骤。15. A readable storage medium, characterized in that a computer executable program is stored on the readable storage medium, and when the computer executable program is executed by a processor, the steps of the video shooting method according to any one of claims 1 to 7 are implemented.
CN202111421290.3A2021-11-262021-11-26 Video shooting method, device, electronic device and storage mediumActiveCN114125297B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN202111421290.3ACN114125297B (en)2021-11-262021-11-26 Video shooting method, device, electronic device and storage medium
PCT/CN2022/133206WO2023093669A1 (en)2021-11-262022-11-21Video filming method and apparatus, and electronic device and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202111421290.3ACN114125297B (en)2021-11-262021-11-26 Video shooting method, device, electronic device and storage medium

Publications (2)

Publication NumberPublication Date
CN114125297A CN114125297A (en)2022-03-01
CN114125297Btrue CN114125297B (en)2024-04-09

Family

ID=80369974

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202111421290.3AActiveCN114125297B (en)2021-11-262021-11-26 Video shooting method, device, electronic device and storage medium

Country Status (2)

CountryLink
CN (1)CN114125297B (en)
WO (1)WO2023093669A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114125297B (en)*2021-11-262024-04-09维沃移动通信有限公司 Video shooting method, device, electronic device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102055834A (en)*2009-10-302011-05-11Tcl集团股份有限公司Double-camera photographing method of mobile terminal
CN103856617A (en)*2012-12-032014-06-11联想(北京)有限公司Photographing method and user terminal
CN104349065A (en)*2014-10-292015-02-11宇龙计算机通信科技(深圳)有限公司Picture shooting method, picture shooting device and intelligent terminal
CN107767430A (en)*2017-09-212018-03-06努比亚技术有限公司One kind shooting processing method, terminal and computer-readable recording medium
CN109413330A (en)*2018-11-072019-03-01深圳市博纳思信息技术有限公司A kind of certificate photograph intelligently changes background method
CN111405199A (en)*2020-03-272020-07-10维沃移动通信(杭州)有限公司Image shooting method and electronic equipment
CN112511741A (en)*2020-11-252021-03-16努比亚技术有限公司Image processing method, mobile terminal and computer storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114125297B (en)*2021-11-262024-04-09维沃移动通信有限公司 Video shooting method, device, electronic device and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102055834A (en)*2009-10-302011-05-11Tcl集团股份有限公司Double-camera photographing method of mobile terminal
CN103856617A (en)*2012-12-032014-06-11联想(北京)有限公司Photographing method and user terminal
CN104349065A (en)*2014-10-292015-02-11宇龙计算机通信科技(深圳)有限公司Picture shooting method, picture shooting device and intelligent terminal
CN107767430A (en)*2017-09-212018-03-06努比亚技术有限公司One kind shooting processing method, terminal and computer-readable recording medium
CN109413330A (en)*2018-11-072019-03-01深圳市博纳思信息技术有限公司A kind of certificate photograph intelligently changes background method
CN111405199A (en)*2020-03-272020-07-10维沃移动通信(杭州)有限公司Image shooting method and electronic equipment
CN112511741A (en)*2020-11-252021-03-16努比亚技术有限公司Image processing method, mobile terminal and computer storage medium

Also Published As

Publication numberPublication date
WO2023093669A1 (en)2023-06-01
CN114125297A (en)2022-03-01

Similar Documents

PublicationPublication DateTitle
CN114598819B (en)Video recording method and device and electronic equipment
US20250016416A1 (en)Video editing method and apparatus, and electronic device
CN115499589B (en)Shooting method, shooting device, electronic equipment and medium
CN114679546B (en) A display method and device, electronic device and readable storage medium
CN114125297B (en) Video shooting method, device, electronic device and storage medium
CN114466232B (en)Video processing method, device, electronic equipment and medium
CN114222069B (en)Shooting method, shooting device and electronic equipment
WO2025087165A1 (en)Photographing method, photographing apparatus, and electronic device
WO2025077527A1 (en)Media content generation method and apparatus, and electronic device and readable storage medium
CN115037874A (en)Photographing method and device and electronic equipment
CN114025237B (en) Video generation method, device and electronic device
CN114143455B (en)Shooting method and device and electronic equipment
CN114286010B (en)Shooting method, shooting device, electronic equipment and medium
CN115174812A (en)Video generation method, video generation device and electronic equipment
CN115589458A (en) Shooting method, device, electronic device and storage medium
CN114860122A (en)Application program control method and device
CN114615426A (en)Shooting method, shooting device, electronic equipment and readable storage medium
CN114285922A (en) Screenshot method, device, electronic device and medium
CN115334242B (en) Video recording method, device, electronic device and medium
CN114710624B (en)Shooting method and shooting device
CN114157810B (en)Shooting method, shooting device, electronic equipment and medium
CN114286002B (en)Image processing circuit, method, device, electronic equipment and chip
CN114449172B (en)Shooting method and device and electronic equipment
CN113923367B (en) Shooting method and shooting device
CN118803414A (en) Shooting method, device and electronic equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp