WO2022226745A1 - Photographing method, control apparatus, photographing device, and storage medium - Google Patents

Photographing method, control apparatus, photographing device, and storage medium Download PDF

Info

Publication number
WO2022226745A1
WO2022226745A1 PCT/CN2021/090053 CN2021090053W WO2022226745A1 WO 2022226745 A1 WO2022226745 A1 WO 2022226745A1 CN 2021090053 W CN2021090053 W CN 2021090053W WO 2022226745 A1 WO2022226745 A1 WO 2022226745A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
image
video data
photographing device
video frame
Prior art date
Application number
PCT/CN2021/090053
Other languages
French (fr)
Chinese (zh)
Inventor
杜丹阳
Original Assignee
深圳市大疆创新科技有限公司
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 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to CN202180094795.5A priority Critical patent/CN116941235A/en
Priority to PCT/CN2021/090053 priority patent/WO2022226745A1/en
Publication of WO2022226745A1 publication Critical patent/WO2022226745A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working

Abstract

A photographing method, a control apparatus, a photographing device, and a storage medium. The photographing method comprises: controlling a first photographing apparatus to photograph a first target, and controlling a second photographing apparatus to photograph a second target, so as to obtain first video data and second video data (S101); extracting a target image of the second target according to video frame images of the second video data (S102); and synthesizing the target image of the second target into a corresponding video frame image of the first video data, so as to obtain target video data (S103).

Description

拍摄方法、控制装置、拍摄设备存储介质Shooting method, control device, and storage medium of shooting equipment 技术领域technical field
本申请涉及拍摄技术领域,尤其涉及一种拍摄方法、控制装置、拍摄设备及存储介质。The present application relates to the field of photographing technologies, and in particular, to a photographing method, a control device, a photographing device, and a storage medium.
背景技术Background technique
随着互联网技术的发展,视频直播逐渐进入人们的生活,比如旅游直播介绍、直播带货等等。其中,直播带货是指主播通过一些互联网平台使用直播技术进行商品线上展示、咨询答疑、导购销售的新型服务方式。为了具有更好的直播效果,可以使用带有摄像头的手持云台进行视频直播,并且该手持云台上还可以安装移动终端进行拍摄或者观看视频直播,但是由于视频直播过程中一般只能向观看者提供一个摄像头的视频数据,导致两个拍摄装置(手持云台上的摄像头和移动终端)不能够完全被利用,因此无法给用户提供更好的体验。With the development of Internet technology, live video has gradually entered people's lives, such as introduction of travel live broadcast, live broadcast of goods and so on. Among them, live broadcast with goods refers to a new service method in which the anchor uses live broadcast technology to display goods online, consult and answer questions, and guide sales through some Internet platforms. In order to have a better live broadcast effect, a handheld PTZ with a camera can be used for live video, and a mobile terminal can also be installed on the handheld PTZ to shoot or watch the live video. The user provides the video data of one camera, so that the two shooting devices (the camera on the hand-held PTZ and the mobile terminal) cannot be fully utilized, so that a better experience cannot be provided to the user.
发明内容SUMMARY OF THE INVENTION
为此,本申请提供了一种拍摄方法、控制装置、拍摄设备及存储介质,通过该拍摄方法拍摄的视频可以应用于视频直播,以给用户更好的观看体验。To this end, the present application provides a shooting method, a control device, a shooting device, and a storage medium, and videos shot by the shooting method can be applied to live video broadcasts, so as to give users a better viewing experience.
第一方面,本申请提供了一种拍摄方法,应用于拍摄设备,所述拍摄设备至少包括第一拍摄装置和第二拍摄装置的拍摄设备,所述方法包括:In a first aspect, the present application provides a photographing method, which is applied to a photographing device, where the photographing device at least includes a photographing device of a first photographing device and a second photographing device, and the method includes:
控制所述第一拍摄装置对第一目标进行拍摄,以及控制所述第二拍摄装置对第二目标进行拍摄,得到第一视频数据和第二视频数据;controlling the first photographing device to photograph the first target, and controlling the second photographing device to photograph the second target, to obtain first video data and second video data;
根据所述第二视频数据的视频帧图像提取所述第二目标的目标图像;Extract the target image of the second target according to the video frame image of the second video data;
将所述第二目标的目标图像合成在所述第一视频数据的对应视频帧图像中,得到目标视频数据。The target image of the second target is synthesized into the corresponding video frame image of the first video data to obtain target video data.
第二方面,本申请还提供了一种控制装置,所述控制装置用于控制第一拍摄装置和第二拍摄装置拍摄图像,所述控制装置包括存储器和处理器;In a second aspect, the present application further provides a control device, the control device is configured to control the first shooting device and the second shooting device to capture images, the control device includes a memory and a processor;
所述存储器用于存储计算机程序;the memory is used to store computer programs;
所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:The processor is configured to execute the computer program and implement the following steps when executing the computer program:
控制所述第一拍摄装置对第一目标进行拍摄,以及控制所述第二拍摄装置对第二目标进行拍摄,得到第一视频数据和第二视频数据;controlling the first photographing device to photograph the first target, and controlling the second photographing device to photograph the second target, to obtain first video data and second video data;
根据所述第二视频数据的视频帧图像提取所述第二目标的目标图像;Extract the target image of the second target according to the video frame image of the second video data;
将所述第二目标的目标图像合成在所述第一视频数据的对应视频帧图像中,得到目标视频数据。The target image of the second target is synthesized into the corresponding video frame image of the first video data to obtain target video data.
第三方面,本申请还提供了一种拍摄设备,所述拍摄设备包括存储器和处理器,以及至少还包括第一拍摄装置和第二拍摄装置;In a third aspect, the present application further provides a photographing device, the photographing device includes a memory and a processor, and at least further includes a first photographing device and a second photographing device;
所述第一拍摄装置和第二拍摄装置用于拍摄图像;the first photographing device and the second photographing device are used for photographing images;
所述存储器用于存储计算机程序;the memory is used to store computer programs;
所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现如本申请实施例提供的任一项所述的拍摄方法的步骤。The processor is configured to execute the computer program, and when executing the computer program, implement the steps of the photographing method according to any one of the embodiments of the present application.
第四方面,本申请还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现本申请提供的任一项所述的拍摄方法。In a fourth aspect, the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor enables the processor to implement any one of the methods provided in the present application. The shooting method described in item.
本申请实施例提供了一种拍摄方法、控制装置、拍摄设备及存储介质,其中,通过控制第一拍摄装置对第一目标进行拍摄以及控制第二拍摄装置对第二目标进行拍摄,得到第一视频数据和第二视频数据,再根据第二视频数据的视频帧图像提取第二目标的目标图像,将第二目标的目标图像合成在第一视频数据的对应视频帧图像中,得到目标视频数据,由此实现利用两个拍摄装置同时拍摄得到不同目标的同一视频数据,以用于视频直播,进而提高用户的观看体验。Embodiments of the present application provide a photographing method, a control device, a photographing device, and a storage medium, wherein by controlling the first photographing device to photograph the first target and the second photographing device to photograph the second target, the first The video data and the second video data, then extract the target image of the second target according to the video frame image of the second video data, and synthesize the target image of the second target in the corresponding video frame image of the first video data to obtain the target video data In this way, the same video data of different targets can be obtained by using two shooting devices at the same time, so as to be used for live video, thereby improving the viewing experience of the user.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not limiting of the present application.
附图说明Description of drawings
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要 使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. For those of ordinary skill, other drawings can also be obtained from these drawings without any creative effort.
图1是本申请实施例提供的一种手持云台的结构示意图;Fig. 1 is the structural schematic diagram of a kind of hand-held PTZ provided by the embodiment of the present application;
图2是本申请实施例提供的一种控制装置的示意性框图;FIG. 2 is a schematic block diagram of a control device provided by an embodiment of the present application;
图3是本申请实施例提供的另一种手持云台的结构示意图;3 is a schematic structural diagram of another handheld pan/tilt provided by an embodiment of the present application;
图4是本申请实施例提供的一种拍摄方法的步骤示意流程图;4 is a schematic flowchart of steps of a shooting method provided by an embodiment of the present application;
图5a和5b是本申请实施例提供的拍摄方法的一种应用场景示意图;5a and 5b are schematic diagrams of an application scenario of the shooting method provided by the embodiment of the present application;
图6a和图6b是本申请实施例提供的两种目标图像的示意图;6a and 6b are schematic diagrams of two kinds of target images provided by the embodiments of the present application;
图7是本申请实施例提供的拍摄方法的另一种应用场景示意图;7 is a schematic diagram of another application scenario of the shooting method provided by the embodiment of the present application;
图8是本申请实施例提供的一种预设构图位置的示意图;8 is a schematic diagram of a preset composition position provided by an embodiment of the present application;
图9a和图9b是本申请实施例提供的确定子目标的示意图;9a and 9b are schematic diagrams of determining sub-targets provided by an embodiment of the present application;
图10是本申请实施例提供的一种播放目标视频数据的场景示意图。FIG. 10 is a schematic diagram of a scenario of playing target video data according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terminology used in the specification of the application herein is for the purpose of describing particular embodiments only and is not intended to limit the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural unless the context clearly dictates otherwise.
还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be further understood that, as used in this specification and the appended claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items .
附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowcharts shown in the figures are for illustration only, and do not necessarily include all contents and operations/steps, nor do they have to be performed in the order described. For example, some operations/steps can also be decomposed, combined or partially combined, so the actual execution order may be changed according to the actual situation.
随着互联网及流媒体技术的发展,视频直播逐渐进入人们的生活,比如旅游直播介绍、直播带货等等。其中,直播带货是指主播通过一些互联网平台使用直播技术进行商品线上展示、咨询答疑、导购销售的新型服务方式。为了具有更好的直播效果,可以使用带有摄像头的手持云台进行视频直播,并且该手持云台上还可以安装移动终端(比如手机)进行拍摄或者观看视频直播,但是由于视频直播过程中一般只能向观看者提供一个摄像头的视频数据,导致两个拍摄装置(手持云台上的摄像头和移动终端)不能够完全被利用,因此无法给用户提供更好的体验。With the development of the Internet and streaming media technology, live video has gradually entered people's lives, such as introduction of travel live broadcast, live broadcast of goods and so on. Among them, live broadcast with goods refers to a new service method in which the anchor uses live broadcast technology to display goods online, consult and answer questions, and guide sales through some Internet platforms. In order to have a better live broadcast effect, a handheld gimbal with a camera can be used for live video, and a mobile terminal (such as a mobile phone) can also be installed on the handheld gimbal to shoot or watch live video, but because the process of live video is generally Only the video data of one camera can be provided to the viewer, resulting in that the two shooting devices (the camera on the hand-held PTZ and the mobile terminal) cannot be fully utilized, so that a better experience cannot be provided to the user.
为此,本申请实施例提供了一种拍摄方法、控制装置、拍摄设备以及存储介质,其中该控制装置和拍摄设备均可以执行本申请实施例提供任一种拍摄方法,以充分利用拍摄设备的拍摄装置,将拍摄的视频用于视频直播,以提高用户的体验度。To this end, the embodiments of the present application provide a photographing method, a control device, a photographing device, and a storage medium, wherein the control device and the photographing device can execute any photographing method provided by the embodiments of the present application, so as to make full use of the capabilities of the photographing device. The shooting device uses the shot video for live video broadcast, so as to improve the user's experience.
需要说明的是,在本申请的实施例,将以拍摄设备具体为手持云台为例进行介绍,需知手持云台并不构成对拍摄设备具体形式的限定。It should be noted that, in the embodiments of the present application, the photographing device is specifically a handheld pan/tilt as an example for introduction. It should be understood that the handheld pan/tilt does not constitute a limitation on the specific form of the photographing device.
下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and features in the embodiments may be combined with each other without conflict.
请参阅图1,图1示出了本申请实施例提供的一种手持云台100的结构,如图1所示,该手持云台100可以包括握持部10、云台11、设备支架12、第一拍摄装置13和第二拍摄装置14。Please refer to FIG. 1 . FIG. 1 shows the structure of a handheld pan/tilt 100 provided by an embodiment of the present application. As shown in FIG. 1 , the handheld pan/tilt 100 may include a holding part 10 , a pan/tilt 11 , and a device bracket 12 , a first photographing device 13 and a second photographing device 14 .
云台11设置于握持部10上,该云台11用于搭载第一拍摄装置13,以对第一拍摄装置13进行增稳。需要说明的是,在本申请的实施例的云台11可以是两轴云台,也可以是三轴云台,能够调整第一拍摄装置13的拍摄方向。The gimbal 11 is disposed on the grip portion 10 , and the gimbal 11 is used to mount the first photographing device 13 to enhance the stability of the first photographing device 13 . It should be noted that, in the embodiment of the present application, the pan/tilt 11 may be a two-axis pan/tilt or a three-axis pan/tilt, and the shooting direction of the first shooting device 13 can be adjusted.
第一拍摄装置13具体可以包括固定安装在云台11的摄像头,也可以包括可拆卸地安装在云台11的相机,可拆卸地安装具体可以理解为在使用手持云台100时可以将相机安装在云台11上,在不使用时可以将相机从云台11拆卸,以便于用户收纳或携带。The first photographing device 13 may specifically include a camera fixedly installed on the gimbal 11 , or may include a camera detachably installed on the gimbal 11 , and the detachable installation may specifically be understood that the camera can be installed when the handheld gimbal 100 is used. On the gimbal 11, the camera can be detached from the gimbal 11 when not in use, so that the user can store or carry the camera.
第二拍摄装置14通过设备支架12设置在手持云台100的握持部10上,具体地,设备支架12可以为一个夹持部件,该夹持部件设置在握持部10上,用于夹持第二拍摄装置14。其中,第二拍摄装置14可以包括智能手机、平板电脑或相机等。The second photographing device 14 is disposed on the holding part 10 of the handheld platform 100 through the device bracket 12 . Specifically, the device bracket 12 may be a clamping part, and the clamping part is disposed on the holding part 10 for clamping The second photographing device 14 . Wherein, the second photographing device 14 may include a smart phone, a tablet computer, a camera, or the like.
在一些实施例中,第二拍摄装置14可以包括前置摄像头和后置摄像头,前置摄像头位于第二拍摄装置14的显示屏侧,前置摄像头和后置摄像头均可以用于拍摄。In some embodiments, the second camera 14 may include a front camera and a rear camera, the front camera is located on the display screen side of the second camera 14, and both the front camera and the rear camera may be used for shooting.
手持云台100包括控制装置20,控制装置20设置在握持部10内,具体如图2所示,该控制装置20包括耦合连接的处理器201和存储器202,该耦合连接比如通过I2C总线连接。控制装置20能够控制云台11转动,进而调整第一拍摄装置13的拍摄方向,以及还可控制第一拍摄装置13和第二拍摄装置14。The hand-held pan-tilt 100 includes a control device 20 disposed in the grip portion 10. As shown in FIG. 2, the control device 20 includes a processor 201 and a memory 202 that are coupled, such as through an I2C bus. The control device 20 can control the rotation of the pan/tilt 11 to adjust the photographing direction of the first photographing device 13 , and can also control the first photographing device 13 and the second photographing device 14 .
其中,控制装置20还可以调整第一拍摄装置13的参数,比如用于调整第一拍摄装置13的拍摄参数。示例性的,比如用于控制第一拍摄装置13对拍摄对象进行对焦,或调整第一拍摄装置13的曝光时间等。Wherein, the control device 20 may also adjust the parameters of the first photographing device 13 , for example, for adjusting the photographing parameters of the first photographing device 13 . Exemplarily, for example, it is used to control the first photographing device 13 to focus on the photographed object, or adjust the exposure time of the first photographing device 13, and so on.
在一些实施例中,该控制装置20还可以控制第二拍摄装置14进行拍摄图像,调整第二拍摄装置14的拍摄参数,切换第二拍摄装置14的前置摄像头和后置摄像头进行拍摄,当然还可以控制第二拍摄装置14的显示屏进行显示,比如显示拍摄的视频画面。In some embodiments, the control device 20 may also control the second shooting device 14 to shoot images, adjust the shooting parameters of the second shooting device 14, switch the front camera and the rear camera of the second shooting device 14 to shoot, of course It is also possible to control the display screen of the second photographing device 14 to display, for example, to display a photographed video image.
其中,处理器201例如可以是微控制单元(Micro-controller Unit,MCU)、中央处理单元(Central Processing Unit,CPU)或数字信号处理器(Digital Signal Processor,DSP)等。The processor 201 may be, for example, a Micro-controller Unit (MCU, MCU), a Central Processing Unit (Central Processing Unit, CPU), or a Digital Signal Processor (Digital Signal Processor, DSP) or the like.
存储器202可以是Flash芯片、只读存储器(ROM,Read-Only Memory)磁盘、光盘、U盘或移动硬盘等。The memory 202 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) magnetic disk, an optical disk, a U disk, or a removable hard disk, and the like.
在一些实施例中,如图3所示,该手持云台100还包括显示屏15,该显示屏15可以设置在握持部10上,可以用于显示第一拍摄装置13拍摄的内容,同时还可以显示手持云台100的拍摄界面,该拍摄界面可用于调整第一拍摄装置13的拍摄参数。In some embodiments, as shown in FIG. 3 , the handheld cloud platform 100 further includes a display screen 15, and the display screen 15 can be arranged on the holding part 10, and can be used to display the content shot by the first shooting device 13, and also A shooting interface of the handheld platform 100 can be displayed, and the shooting interface can be used to adjust the shooting parameters of the first shooting device 13 .
以下,将图1中的手持云台对本申请的实施例提供的拍摄方法进行详细介绍,即本申请实施例提供的拍摄方法可以应用于该手持云台中。需知,图1示出的手持云台仅用于解释本申请的拍摄方法。Hereinafter, the shooting method provided by the embodiments of the present application will be described in detail with the handheld gimbal in FIG. 1 , that is, the shooting methods provided by the embodiments of the present application may be applied to the handheld gimbal. It should be noted that the handheld gimbal shown in FIG. 1 is only used to explain the shooting method of the present application.
请参阅图4,图4是本申请实施例提供的一种拍摄方法的步骤示意流程图。该拍摄方法可应用于拍摄设备中,该拍摄设备比如为上述实施例提供的手持云台,以充分利用该手持云台的两个拍摄装置拍摄视频以用于视频直播,进而提高用户的观看体验。Please refer to FIG. 4 , which is a schematic flowchart of steps of a photographing method provided by an embodiment of the present application. The shooting method can be applied to shooting equipment, such as the handheld gimbal provided in the above-mentioned embodiment, so as to make full use of the two shooting devices of the handheld gimbal to shoot videos for live video, thereby improving the viewing experience of users .
需要说明的是,拍摄设备至少包括第一拍摄装置和第二拍摄装置,在一些实施例中,该拍摄设备还包括云台和设备支架,云台可以是三轴云台,第一拍摄装置安装在云台上,第二拍摄装置安装在设备支架上,拍摄设备可以通过云台控制第一拍摄装置的拍摄角度并对第一拍摄装置进行增稳。It should be noted that the photographing device includes at least a first photographing device and a second photographing device. In some embodiments, the photographing device further includes a pan/tilt and a device bracket. The pan/tilt may be a three-axis pan/tilt, and the first photographing device is installed On the gimbal, the second photographing device is installed on the equipment bracket, and the photographing device can control the photographing angle of the first photographing device and enhance the stability of the first photographing device through the gimbal.
在一些实施例中,第一拍摄装置可例如为相机,当然也可以是一个摄像头,第二拍摄装置可例如为移动终端,比如为手机。In some embodiments, the first photographing device may be, for example, a camera, or, of course, a camera, and the second photographing device may be, for example, a mobile terminal, such as a cell phone.
如图4所示,该拍摄方法包括步骤S101至步骤S103。As shown in FIG. 4 , the photographing method includes steps S101 to S103.
S101、控制所述第一拍摄装置对第一目标进行拍摄,以及控制所述第二拍摄装置对第二目标进行拍摄,得到第一视频数据和第二视频数据;S101, controlling the first photographing device to photograph a first target, and controlling the second photographing device to photograph a second target, to obtain first video data and second video data;
S102、根据所述第二视频数据的视频帧图像提取所述第二目标的目标图像;S102, extracting the target image of the second target according to the video frame image of the second video data;
S103、将所述第二目标的目标图像合成在所述第一视频数据的对应视频帧图像中,得到目标视频数据。S103. Synthesize the target image of the second target into the corresponding video frame image of the first video data to obtain target video data.
其中,第一目标和第二目标可以为类型不同的目标,比如第一目标可以是物品,第二目标可以是人物(如视频拍摄者或视频主播);第一目标和第二目标也可以为类型相同的目标,比如第一目标和第二目标均为人物,或者均可以为物品,再或者均可以为动物,以及均可以是风景等。The first target and the second target may be targets of different types, for example, the first target may be an item, and the second target may be a person (such as a video shooter or a video host); the first target and the second target may also be Targets of the same type, for example, the first target and the second target are both characters, or both can be objects, or both can be animals, and both can be landscapes.
在本申请一实施例中,第一目标包括非人物目标,比如风景或物品等;第二目标包括人物目标,比如为使用该拍摄设备用户,更具体地可以是视频主播。In an embodiment of the present application, the first target includes a non-personal target, such as a landscape or an object, etc.; the second target includes a human target, such as a user using the photographing device, more specifically a video host.
在拍摄时第一目标和第二目标所相对拍摄设备的位置不同,具体可以位于拍摄设备的不同侧,也可以位于拍摄设备同一侧但是在不同的拍摄角度。When shooting, the positions of the first target and the second target relative to the shooting device are different, and may be located on different sides of the shooting device, or may be located on the same side of the shooting device but at different shooting angles.
示例性的,如图5a所示,第一目标和第二目标的类型不同,第一目标为风景,第二目标为人物,第一目标和第二目标位于手持云台100的两侧;如图5b所示,第一目标和第二目标的类型相同,第一目标为花瓶,第二目标也为花瓶,第一目标和第二目标位于手持云台100的同侧,但位于不同的拍摄角度,需要使用两个拍摄装置分别拍摄,一个拍摄设备的视场角无法覆盖该第一目标和第二目标。Exemplarily, as shown in FIG. 5a, the types of the first target and the second target are different, the first target is a landscape, the second target is a person, and the first target and the second target are located on both sides of the handheld gimbal 100; As shown in FIG. 5b , the first target and the second target are of the same type, the first target is a vase, and the second target is also a vase. The first target and the second target are located on the same side of the handheld gimbal 100, but are located in different shots It is necessary to use two shooting devices to shoot separately, and the field of view of one shooting device cannot cover the first target and the second target.
在本申请的实施例中,分别控制第一拍摄装置对第一目标进行拍摄,以及控制第二拍摄装置对第二目标进行拍摄,得到第一目标对应的第一视频数据和第二目标对应的第二视频数据。再根据第二视频数据的视频帧图像提取第二目标的目标图像。In the embodiment of the present application, the first shooting device is controlled to shoot the first target, and the second shooting device is controlled to shoot the second target, so as to obtain the first video data corresponding to the first target and the video data corresponding to the second target. second video data. Then, the target image of the second target is extracted according to the video frame image of the second video data.
其中,该目标图像可以包括部分第二目标或全部第二目标,具体如图6a和图6b所示,图6a的目标图像包括全部第二目标,图6b的目标图像包括部分第二目标。The target image may include part of the second target or all of the second target. Specifically, as shown in Figures 6a and 6b, the target image in Figure 6a includes all the second targets, and the target image in Figure 6b includes part of the second targets.
在一些实施例中,为了提高视频的拍摄效果,以及在视频直播时提高用户的观看体验,在控制第一拍摄装置对第一目标进行拍摄时,具体可以控制第一拍摄装置对第一目标进行拍摄,并根据拍摄的图像进行目标识别;以及根据识别结果对第一目标进行跟踪拍摄。尤其适合第一目标为运动目标时,比如第一目标为机器人、电动玩具车等等,在通过视频直播导购这些物品时,利用跟踪拍摄可以方便拍摄者又可以方便用户观看该视频,有利于物品的介绍。In some embodiments, in order to improve the shooting effect of the video and improve the user's viewing experience during live video, when the first shooting device is controlled to shoot the first target, the first shooting device can be specifically controlled to shoot the first target. photographing, and performing target recognition according to the photographed image; and tracking and photographing the first target according to the recognition result. It is especially suitable when the first target is a moving target, such as a robot, an electric toy car, etc. When shopping for these items through live video, tracking shooting can be used to facilitate the photographer and the user to watch the video, which is beneficial to the items. 's introduction.
示例性的,在视频直播的场景中,比如通过视频直播方式介绍机器人(第一目标),在直播时为了介绍该机器人可能会让机器人在现场运动或者完成其他动态功能,由此可以通过识别机器人的目标特征,根据该目标特征控制第一拍摄装置跟随机器人进行跟踪拍摄,如图7所示,可以通过云台控制第一拍摄装置跟随机器人运动(如从T1时刻至Tn时刻)进行跟踪拍摄。通过跟踪拍摄可以使得第一目标始终在拍摄画面内,并且还可以保持画面的稳定,由此可以提高了用户的观看体验。Exemplarily, in a live video scenario, for example, the robot (the first target) is introduced through live video. During the live broadcast, the robot may move or complete other dynamic functions in order to introduce the robot. According to the target feature, the first shooting device is controlled to follow the robot to perform tracking shooting. As shown in Figure 7, the first shooting device can be controlled by the PTZ to follow the movement of the robot (eg, from time T1 to time Tn) to perform tracking shooting. By tracking the shooting, the first target can always be in the shooting picture, and the picture can also be kept stable, thereby improving the viewing experience of the user.
在一些实施例中,控制第一拍摄装置对第一目标进行拍摄时,具体还可以根据预设构图位置,通过云台控制第一拍摄装置运动以使第一目标位于所述预设构图位置,并对所述第一目标进行拍摄。由此可以制作出具有特定构图的视频,进而提高用户的视频观看体验。In some embodiments, when controlling the first photographing device to photograph the first target, specifically, according to the preset composition position, the motion of the first photographing device may be controlled by the pan/tilt so that the first target is located at the preset composition position, and photographing the first target. As a result, a video with a specific composition can be produced, thereby improving the user's video viewing experience.
其中,预设构图位置可以是用户选择的构图位置,该构图位置可以理解为设置第一目标在拍摄画面中的位置,示例性的,如图8所示,预设构图位置为设置第一目标在拍摄画面中的左上角,当然也可以为其他位置,在此不做具体限定,可由用户进行设定,提高用户的体验度。The preset composition position may be the composition position selected by the user, and the composition position may be understood as setting the position of the first target in the shooting screen. Exemplarily, as shown in FIG. 8 , the preset composition position is the setting of the first target Of course, the upper left corner of the shooting screen can also be other positions, which is not specifically limited here, and can be set by the user to improve the user's experience.
具体地,可以控制云台转动以调整第一目标在拍摄画面中的位置,比如调整第一目标在拍摄画面中的左上角的位置,则确定第一目标在拍摄画面的左上角即为预设构图位置。Specifically, the gimbal can be controlled to rotate to adjust the position of the first target in the shooting screen. For example, to adjust the position of the upper left corner of the first target in the shooting screen, it is determined that the first target is in the upper left corner of the shooting screen as the preset Composition location.
在一些实施例中,若检测到用于控制云台转动的控制指令,则根据控制指令控制云台转动以改变第一目标在第一视频数据中的预设构图位置,再根据改变后的预设构图位置通过云台控制第一拍摄装置运动以使第一目标位于改变后 的预设构图位置,并对第一目标进行拍摄。由此可以方便用户对预设构图位置进行调整,由此拍摄出多样性的视频。In some embodiments, if a control instruction for controlling the rotation of the gimbal is detected, the rotation of the gimbal is controlled according to the control instruction to change the preset composition position of the first object in the first video data, and then the preset composition position of the first object in the first video data is changed according to the control instruction. The composition position is set to control the movement of the first photographing device through the PTZ, so that the first target is located at the changed preset composition position, and the first target is photographed. Therefore, it is convenient for the user to adjust the preset composition position, thereby shooting a variety of videos.
比如,用户想将第二目标的目标图像合成在第一视频数据的对应视频帧图像中的左上角位置,因此可以通过控制云台的各个轴以改变原来的预设构图位置。For example, if the user wants to synthesize the target image of the second target in the upper left corner of the corresponding video frame image of the first video data, the original preset composition position can be changed by controlling each axis of the gimbal.
在一些实施例中,控制第二拍摄装置对第二目标进行拍摄时,具体可以获取第一拍摄装置对第一目标进行拍摄时的拍摄参数;基于第一拍摄装置的拍摄参数确定第二拍摄装置的拍摄参数,并根据确定的拍摄参数对第二目标进行拍摄。由此可以确保合成的目标视频数据具有更好的匹配度,使得目标视频数据更加自然,由此提高用户的观看体验。In some embodiments, when controlling the second photographing device to photograph the second target, the photographing parameters of the first photographing device when photographing the first target may be specifically obtained; the second photographing device is determined based on the photographing parameters of the first photographing device and shooting the second target according to the determined shooting parameters. In this way, it can be ensured that the synthesized target video data has a better degree of matching, so that the target video data is more natural, thereby improving the user's viewing experience.
在本申请的实施例中,拍摄参数包括当不限于曝光时间、光圈大小、分辨率、白平衡等。In the embodiments of the present application, the shooting parameters include, but are not limited to, exposure time, aperture size, resolution, white balance, and the like.
根据第二视频数据的视频帧图像提取第二目标的目标图像,具体可以利用图像识别技术从第二视频数据的视频帧图像识别第二目标,并提取第二目标的目标图像。Extracting the target image of the second target according to the video frame image of the second video data, specifically, image recognition technology may be used to identify the second target from the video frame image of the second video data, and extract the target image of the second target.
在一些实施例中,还可以对第二视频数据的视频帧图像进行目标识别,并在显示第二视频数据时显示识别结果以供用户确认,根据用户的确认结果确定第二目标的目标图像。In some embodiments, target recognition may also be performed on the video frame image of the second video data, and the recognition result is displayed for user confirmation when the second video data is displayed, and the target image of the second target is determined according to the user's confirmation result.
比如,若第二视频数据的视频帧图像中的第二目标包括多个子目标,用户需要在多个子目标中确定一个特定的子目标,具体可以对第二视频数据的视频帧图像进行目标识别,得到多个子目标的识别结果,并在显示第二视频数据时显示每个子目标的识别结果以供用户确认,具体可以在显示第二视频数据每个视频帧图时显示每个子目标对应的识别框以便用户确定,若用户操作了其中一个识别框,则确定该识别框对应的图像为特定的子目标的目标图像。For example, if the second target in the video frame image of the second video data includes multiple sub-targets, the user needs to determine a specific sub-target among the multiple sub-targets. Specifically, target recognition can be performed on the video frame image of the second video data. Obtain the recognition results of multiple sub-targets, and display the recognition results of each sub-target for confirmation by the user when displaying the second video data, and specifically display the recognition frame corresponding to each sub-target when displaying each video frame of the second video data. In order for the user to determine, if the user operates one of the recognition frames, the image corresponding to the recognition frame is determined to be the target image of the specific sub-target.
示例性的,如图9a所示,利用图像识别技术识别到第二视频数据中视频帧图像中包括5个子目标,分别为子目标a1、子目标a2、子目标a3、子目标a4和子目标a5,并在显示第二视频数据中视频帧图像时显示该5个子目标的识别框,并获取用户对识别框的点击操作,比如用户点击子目标a5,则确定子目标a5的识别框对应的图像为特定的子目标的目标图像,作为提取到的目标图像,具体如图9b所示。Exemplarily, as shown in Figure 9a, it is recognized that the video frame image in the second video data includes 5 sub-targets, which are respectively sub-target a1, sub-target a2, sub-target a3, sub-target a4 and sub-target a5. , and display the recognition frames of the five sub-targets when displaying the video frame images in the second video data, and obtain the user's click operation on the recognition frames. For example, if the user clicks on the sub-target a5, the image corresponding to the recognition frame of the sub-target a5 is determined. The target image of a specific sub-target is used as the extracted target image, as shown in Figure 9b.
当然根据第二视频数据的视频帧图像提取第二目标的目标图像还可以采用其他方式,比如采用图像分割的方式,以分割出第二目标的目标图像。Of course, other methods may also be used to extract the target image of the second target according to the video frame image of the second video data, such as image segmentation, to segment the target image of the second target.
在提取第二目标的目标图像后,将第二目标的目标图像合成在第一视频数据的对应视频帧图像中,得到目标视频数据。其中,第一视频数据的对应视频帧图像是指与第二目标的目标图像对应的视频帧图像的采集时间相同或相近的视频帧。After extracting the target image of the second target, the target image of the second target is synthesized into the corresponding video frame image of the first video data to obtain target video data. Wherein, the corresponding video frame image of the first video data refers to a video frame with the same or similar acquisition time as the video frame image corresponding to the target image of the second target.
譬如,第一拍摄装置和第二拍摄装置的视频采集帧率相同,比如均为30fps(帧每秒),第一视频数据的对应视频帧图像是指与第二目标的目标图像对应的视频帧图像的采集时间相同的视频帧,比如具体可以用第几帧视频帧来表示,若第二目标的目标图像对应为第2帧视频帧,第一视频数据的对应视频帧图像也为第2帧视频帧;若第二目标的目标图像对应为第2帧视频帧至第m帧视频帧,第一视频数据的对应视频帧图像也为第2帧视频帧至第m帧视频帧。For example, the video capture frame rates of the first shooting device and the second shooting device are the same, for example, both are 30fps (frames per second), and the corresponding video frame image of the first video data refers to the video frame corresponding to the target image of the second target. The video frames with the same image acquisition time, for example, can be represented by the number of video frames. If the target image of the second target corresponds to the second video frame, the corresponding video frame image of the first video data is also the second frame. Video frame; if the target image of the second target corresponds to the second to mth video frames, the corresponding video frame images of the first video data are also the second to mth video frames.
在一些实施例中,将所述第二目标的目标图像合成在第一视频数据的对应视频帧图像中,具体可以获取第一视频数据的对应视频帧图像的图像参数;根据第一视频数据的对应视频帧图像的图像参数,调整第二目标的目标图像的图像参数,以使第二目标的目标图像的图像参数与第一视频数据的对应视频帧图像的图像参数相匹配;以及将调整后的第二目标的目标图像合成在第一视频数据的对应视频帧图像中。In some embodiments, the target image of the second target is synthesized in the corresponding video frame image of the first video data, specifically, the image parameters of the corresponding video frame image of the first video data can be obtained; The image parameters of the corresponding video frame images, adjust the image parameters of the target image of the second target, so that the image parameters of the target image of the second target match the image parameters of the corresponding video frame images of the first video data; The target image of the second target is synthesized in the corresponding video frame image of the first video data.
其中,图像参数包括亮度、色温、曝光度、对比度和饱和度中至少一种。相对于上述通过在拍摄前通过调整拍摄装置的拍摄参数,通过改变目标图像的图像参数的方式,也可以使得合成的图像看着更加自然一些,进而提高用户的观看体验。需要说明的是,第二目标的目标图像的图像参数与第一视频数据的对应视频帧图像的图像参数相匹配,具体可以是两个图像的图像参数相同或相近,比如在预设阈值范围内,让用户看着更加自然。The image parameters include at least one of brightness, color temperature, exposure, contrast, and saturation. Compared with the above-mentioned method of adjusting the shooting parameters of the shooting device before shooting, by changing the image parameters of the target image, the synthesized image can also be made to look more natural, thereby improving the user's viewing experience. It should be noted that the image parameters of the target image of the second target match the image parameters of the corresponding video frame image of the first video data. Specifically, the image parameters of the two images may be the same or similar, such as within a preset threshold range. , allowing users to look more natural.
在一些实施例中,在根据图像参数调整第二目标的目标图像的图像参数之后,还可以获取调整第二目标的目标图像的图像参数对应的参数调整量;将参数调整量发送至第二拍摄装置,以使第二拍摄装置根据参数调整量改变拍摄参数对第二目标进行拍摄。以便用户选择其他特定的子目标时,合成该子目标的目标图像至第一视频数据的对应视频帧图像中,使得合成的图像也更加自然,并且不需要根据图像参数进行调整,提高合成效率和用户的观看体验。In some embodiments, after adjusting the image parameters of the target image of the second target according to the image parameters, the parameter adjustment amount corresponding to the image parameter of the target image for adjusting the second target may also be obtained; the parameter adjustment amount is sent to the second shooting the device, so that the second shooting device changes the shooting parameters according to the parameter adjustment amount to shoot the second target. So that when the user selects other specific sub-targets, the target image of the sub-target is synthesized into the corresponding video frame image of the first video data, so that the synthesized image is also more natural, and does not need to be adjusted according to the image parameters, which improves the synthesis efficiency and efficiency. User viewing experience.
在一些实施例中,为了提高用户的观看体验,在将第二目标的目标图像合成在第一视频数据的对应视频帧图像中时,具体还可以获取合成参数,根据该合成参数,将第二目标的目标图像合成在第一视频数据的对应视频帧图像中。该合成参数可以是用户预先设置的,以提高用户的体验度。In some embodiments, in order to improve the viewing experience of the user, when synthesizing the target image of the second target into the corresponding video frame image of the first video data, a synthesis parameter may be specifically obtained, and according to the synthesis parameter, the second target The target image of the target is synthesized in the corresponding video frame image of the first video data. The synthesis parameter may be preset by the user to improve the user's experience.
其中,合成参数至少包括目标图像在第一视频数据中的对应视频帧图像中的位置信息。该位置信息是指目标图像合成在第一视频数据中的对应视频帧图像的位置,比如具体可以合成在左上角、右上角或中间位置。Wherein, the synthesis parameter includes at least position information of the target image in the corresponding video frame image in the first video data. The position information refers to the position of the corresponding video frame image in which the target image is synthesized in the first video data, for example, it may be synthesized at the upper left corner, the upper right corner or the middle position.
在一些实施例中,为了提高用户的观看体验,可以设置不同的目标图像在第一视频数据的对应视频帧图像中的位置信息不同。这样合成的目标视频数据中的第二目标在视频播放时不会在一个固定位置,因此相对目前通过小窗口或者画中画,该方式的灵活性更好,客户体验度更高。In some embodiments, in order to improve the viewing experience of the user, different target images may have different position information in the corresponding video frame images of the first video data. The second target in the target video data synthesized in this way will not be in a fixed position when the video is played, so compared with the current small window or picture-in-picture, this method has better flexibility and higher customer experience.
在一些实施例中,不同的位置信息形成第二目标的目标移动轨迹。比如第二目标是一台车辆时,通过形成目标移动轨迹,可以让用户在观看目标视频数据时,感受到该车辆在运动,即感受到动态的第二目标,而实际拍摄第二目标却是静止的,由此可以进一步提高用户的体验度。In some embodiments, the different position information forms the target movement trajectory of the second target. For example, when the second target is a vehicle, by forming the target movement trajectory, the user can feel the vehicle is moving when watching the target video data, that is, feel the dynamic second target, but the actual shooting of the second target is static, which can further improve the user's experience.
在一些实施例中,不同的位置信息根据用户在第二拍摄装置的显示屏上滑动轨迹确定。比如用户在第二拍摄装置的显示屏上的滑动轨迹为“L”型,则该“L”型确定了不同的位置信息,即可以理解为不同的位置信息形成第二目标的目标移动轨迹也为“L”型,由此不仅可以提高用户观看体验,还可以提高视频拍摄者的操作体验。In some embodiments, the different location information is determined according to the user's sliding track on the display screen of the second photographing device. For example, the user's sliding trajectory on the display screen of the second photographing device is an "L" shape, and the "L" shape determines different position information, that is, it can be understood that different position information forms the target movement trajectory of the second target. It is an "L" shape, which can not only improve the user's viewing experience, but also improve the operating experience of the video shooter.
在一些实施例中,将第二目标的目标图像合成在第一视频数据的对应视频帧图像中,具体可以从第一视频数据的视频帧图像中确定第一目标视频帧图像;将第二视频数据的多帧视频帧图像中的目标图像合成在第一目标视频帧图像中。由此可以实现第一视频数据的部分视频帧是静止播放效果,目标图像相对实现动态播放,进而提高用户观看体验。In some embodiments, the target image of the second target is synthesized in the corresponding video frame image of the first video data, specifically, the first target video frame image may be determined from the video frame image of the first video data; The target images in the multi-frame video frame images of the data are synthesized in the first target video frame image. In this way, part of the video frames of the first video data can be played still, and the target image can be played relatively dynamically, thereby improving the user's viewing experience.
示例性的,比如第一拍摄装置拍摄的第一视频数据是风景,第二拍摄装置拍摄第二视频数据是人物,由此选择一帧风景较好的视频帧图像(第一目标视频帧图像)作为固定背景,多帧视频帧图像中的目标图像合成在第一目标视频帧图像,实现背景固定人物动态直播的效果,由此提高了用户观看体验。Exemplarily, for example, the first video data captured by the first photographing device is a landscape, and the second video data captured by the second photographing device is a character, so a frame of video frame image with better scenery (the first target video frame image) is selected. As a fixed background, the target images in the multi-frame video frame images are synthesized in the first target video frame image to realize the effect of a dynamic live broadcast of characters with fixed backgrounds, thereby improving the user's viewing experience.
在一些实施例中,将第二目标的目标图像合成在第一视频数据的对应视频 帧图像中,具体还可以从第二视频数据的视频帧图像中确定第二目标视频帧图像;将第二目标视频帧图像中的目标图像,合成在第一视频数据的多帧视频帧图像中。由此可以实现目标图像静止播放,第一视频数据动态播放,进而提高用户观看体验。In some embodiments, the target image of the second target is synthesized in the corresponding video frame image of the first video data, and specifically, the second target video frame image may be determined from the video frame image of the second video data; The target image in the target video frame image is synthesized in the multiple video frame images of the first video data. Thereby, the target image can be still played, and the first video data can be played dynamically, thereby improving the user's viewing experience.
示例性的,比如第一拍摄装置拍摄的第一视频数据是风景,第二拍摄装置拍摄第二视频数据是人物,由此选择人物的目标图像以固定人物,动态播放风景,实现人物固定动态直播风景的效果,由此提高了用户观看体验。Exemplarily, for example, the first video data captured by the first photographing device is a landscape, and the second video data captured by the second photographing device is a character, so the target image of the character is selected to fix the character, the scenery is dynamically played, and the fixed and dynamic live broadcast of the character is realized. The effect of the scenery, thereby improving the user viewing experience.
其中,第一目标视频帧图像和第二目标视频帧图像根据用户的选择操作确定。比如根据用户在拍摄设备的显示屏的点击操作确定第一目标视频帧图像,以及根据用户在第二拍摄装置的显示屏点击操作确定第二目标视频帧图像。The first target video frame image and the second target video frame image are determined according to a user's selection operation. For example, the first target video frame image is determined according to the user's click operation on the display screen of the shooting device, and the second target video frame image is determined according to the user's click operation on the display screen of the second shooting device.
在一些实施例中,为了方便视频拍摄者可以随时调整拍摄的视频,还可以通过第二拍摄装置的显示屏显示目标视频数据。示例性的,如图5a或图5b所示,通过终端的显示屏显示目标视频数据,以便视频拍摄者确定播放的视频的拍摄是否满意,以便进行及时调整。In some embodiments, in order to facilitate the video shooter to adjust the captured video at any time, target video data may also be displayed through the display screen of the second capture device. Exemplarily, as shown in FIG. 5a or FIG. 5b, the target video data is displayed on the display screen of the terminal, so that the video shooter can determine whether the shooting of the played video is satisfactory, so as to make timely adjustments.
在一些实施例中,还可以输出所述目标视频数据。示例性的,具体如图10所示,可以将得到目标视频数据发送服务器,由服务器发送给各个终端播放该视频数据以便用户观看,比如服务器安装有直播平台的服务端,终端中安装有直播平台的客户端。In some embodiments, the target video data may also be output. Exemplarily, as shown in FIG. 10 , the obtained target video data can be sent to a server, and the server can send the video data to each terminal to play the video data for users to watch. For example, the server is installed with the server of the live broadcast platform, and the terminal is installed with the live broadcast platform. client.
需要说明的是,如图10所示,不同于现有的直播平台通过画中画或分屏显示比如多个拍摄装置拍摄的图像,本申请的实施例的目标视频数据不需要使用这些显示技术(画中画和分屏显示)显示两个视频数据,也可以达到显示多个拍摄装置的拍摄画面,并且具有更好的效果。It should be noted that, as shown in FIG. 10 , unlike existing live broadcast platforms that display images captured by multiple cameras through picture-in-picture or split-screen display, the target video data of the embodiment of the present application does not need to use these display technologies. (Picture-in-picture and split-screen display) display two video data, and can also display the shooting pictures of multiple shooting devices, and has better effects.
在一些实施例中,还可以预先设置一个预设模式,该预设模式为用于触发执行本申请提供的任一种所述的拍摄方法,即在用户选择该预设模式时,才执行本申请的提供的拍摄方法,由此方便用户确定是否使用该拍摄方法,进而提高用户的体验度。In some embodiments, a preset mode may also be preset, and the preset mode is used to trigger the execution of any of the shooting methods provided in this application, that is, when the user selects the preset mode, this preset mode is executed. The application provides the shooting method, thereby facilitating the user to determine whether to use the shooting method, thereby improving the user's experience.
具体地,在控制第一拍摄装置对第一目标进行拍摄,以及控制第二拍摄装置对第二目标进行拍摄之前,还可以获取用户触发的预设模式触发指令,根据所述预设模式触发指令执行本申请提供的拍摄方法的步骤,比如执行步骤S101至S103,实现拍摄出目标视频数据。Specifically, before controlling the first photographing device to photograph the first target and controlling the second photographing device to photograph the second target, a preset mode trigger instruction triggered by the user may also be obtained, and the preset mode trigger instruction may be obtained according to the preset mode trigger instruction. The steps of the shooting method provided by the present application are executed, for example, steps S101 to S103 are executed to realize the shooting of target video data.
在一些实施例中,具体可以将预设模式与拍摄设备上设置的模式按键相关联,当用户操作该模式按键时,即表示选择了该预设模式。相应地,所述拍摄方法还可以检测用户是否操作该模式按键,若检测到用户操作模式按键,生成所述预设模式触发指令。In some embodiments, the preset mode may be specifically associated with a mode button set on the photographing device, and when the user operates the mode button, it means that the preset mode is selected. Correspondingly, the shooting method can also detect whether the user operates the mode button, and if it is detected that the user operates the mode button, the preset mode trigger instruction is generated.
在另一些实施例中,第二拍摄装置的显示屏显示有拍摄控制界面,拍摄控制界面包括模式图标,可以将预设模式与模式图标相关联,当用户操作该模式图标时,即表示选择了该预设模式。相应地,所述拍摄方法还可以检测用户是否操作该模式图标,若检测到用户操作所述模式图标,生成所述预设模式触发指令。In other embodiments, the display screen of the second photographing device displays a photographing control interface, and the photographing control interface includes a mode icon, and a preset mode can be associated with the mode icon. When the user operates the mode icon, it means that the user has selected the mode icon. the preset mode. Correspondingly, the shooting method may also detect whether the user operates the mode icon, and if it is detected that the user operates the mode icon, the preset mode trigger instruction is generated.
上述实施例提供的拍摄方法,通过控制第一拍摄装置对第一目标进行拍摄以及控制第二拍摄装置对第二目标进行拍摄,得到第一视频数据和第二视频数据,再根据第二视频数据的视频帧图像提取第二目标的目标图像,将第二目标的目标图像合成在第一视频数据的对应视频帧图像中,得到目标视频数据,由此实现利用两个拍摄装置同时拍摄得到不同目标的同一视频数据,以用于视频直播,进而提高用户的观看体验。In the shooting method provided by the above embodiment, the first video data and the second video data are obtained by controlling the first shooting device to shoot the first target and the second shooting device to shoot the second target, and then according to the second video data The target image of the second target is extracted from the video frame image of the second target, and the target image of the second target is synthesized in the corresponding video frame image of the first video data to obtain target video data, thereby realizing the simultaneous shooting of different targets by using two shooting devices. The same video data is used for live video, thereby improving the user's viewing experience.
本申请的实施例还提供了一种控制装置,该控制装置可以设置在拍摄设备中或者其他设备,用于控制拍摄设备的第一拍摄装置和第二拍摄装置拍摄图像,所述控制装置包括存储器和处理器;所述存储器用于存储计算机程序;所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现本申请实施例提供的任一种所述的拍摄方法的步骤。该控制装置可以是处理器、控制器、芯片、可编程逻辑器件等等。拍摄设备可以是相机、手机、搭载相机的手持设备、可移动平台等。Embodiments of the present application also provide a control device, which may be set in a photographing device or other equipment, and used to control the first photographing device and the second photographing device of the photographing device to capture images, the control device includes a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and when executing the computer program, implement any of the shooting methods provided in the embodiments of this application. step. The control device may be a processor, a controller, a chip, a programmable logic device, or the like. The photographing device may be a camera, a mobile phone, a handheld device equipped with a camera, a movable platform, and the like.
具体地,如图2所示,拍摄装置20包括通过总线连接的处理器201和存储器202,该总线比如为I2C(Inter-integrated Circuit)总线。Specifically, as shown in FIG. 2 , the photographing device 20 includes a processor 201 and a memory 202 connected by a bus, such as an I2C (Inter-integrated Circuit) bus.
处理器201可以是微控制单元(Micro-controller Unit,MCU)、中央处理单元(Central Processing Unit,CPU)或数字信号处理器(Digital Signal Processor,DSP)等。The processor 201 may be a micro-controller unit (Micro-controller Unit, MCU), a central processing unit (Central Processing Unit, CPU), or a digital signal processor (Digital Signal Processor, DSP) or the like.
存储器202可以是Flash芯片、只读存储器(ROM,Read-Only Memory)磁盘、光盘、U盘或滑动硬盘等。The memory 202 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) magnetic disk, an optical disk, a U disk, a sliding hard disk, and the like.
其中,所述处理器用于运行存储在存储器中的计算机程序,并在执行所述 计算机程序时实现本申请实施例提供的任意一种所述的拍摄方法。Wherein, the processor is configured to run a computer program stored in the memory, and implement any one of the shooting methods provided in the embodiments of the present application when the computer program is executed.
示例性的,所述处理器用于运行存储在存储器中的计算机程序,并在执行所述计算机程序时实现如下步骤:Exemplarily, the processor is configured to run a computer program stored in the memory, and implement the following steps when executing the computer program:
控制所述第一拍摄装置对第一目标进行拍摄,以及控制所述第二拍摄装置对第二目标进行拍摄,得到第一视频数据和第二视频数据;controlling the first photographing device to photograph the first target, and controlling the second photographing device to photograph the second target, to obtain first video data and second video data;
根据所述第二视频数据的视频帧图像提取所述第二目标的目标图像;Extract the target image of the second target according to the video frame image of the second video data;
将所述第二目标的目标图像合成在所述第一视频数据的对应视频帧图像中,得到目标视频数据。The target image of the second target is synthesized into the corresponding video frame image of the first video data to obtain target video data.
在一些实施例中,所述控制装置应用于拍摄设备,所述拍摄设备包括云台和设备支架,所述第一拍摄装置安装在所述云台上,所述第二拍摄装置安装在所述设备支架上。In some embodiments, the control device is applied to a photographing device, the photographing device includes a pan/tilt and a device bracket, the first photographing device is mounted on the pan/tilt, and the second photographing device is mounted on the on the device stand.
在一些实施例中,所述第一拍摄装置包括相机,所述第二拍摄装置包括移动终端。In some embodiments, the first photographing device includes a camera, and the second photographing device includes a mobile terminal.
在一些实施例中,所述第一目标包括非人物目标,所述第二目标包括人物目标。In some embodiments, the first target includes a non-personal target and the second target includes a character target.
在一些实施例中,所述控制所述第一拍摄装置对第一目标进行拍摄,包括:In some embodiments, the controlling the first photographing device to photograph the first target includes:
控制所述第一拍摄装置对第一目标进行拍摄,并根据拍摄的图像进行目标识别;以及根据识别结果对所述第一目标进行跟踪拍摄。The first photographing device is controlled to photograph the first target, and target recognition is performed according to the photographed image; and the first target is tracked and photographed according to the recognition result.
在一些实施例中,所述控制所述第一拍摄装置对第一目标进行拍摄,包括:In some embodiments, the controlling the first photographing device to photograph the first target includes:
根据预设构图位置,通过云台控制所述第一拍摄装置运动以使第一目标位于所述预设构图位置,并对所述第一目标进行拍摄。According to the preset composition position, the movement of the first photographing device is controlled by the pan/tilt so that the first target is located at the preset composition position, and the first target is photographed.
在一些实施例中,所述处理器还用于:In some embodiments, the processor is further configured to:
若检测到用于控制所述云台转动的控制指令,则根据所述控制指令控制所述云台转动以改变所述第一目标在所述第一视频数据中的预设构图位置;根据改变后的预设构图位置,通过云台控制所述第一拍摄装置运动以使第一目标位于所述改变后的预设构图位置,并对所述第一目标进行拍摄。If a control instruction for controlling the rotation of the PTZ is detected, control the rotation of the PTZ according to the control instruction to change the preset composition position of the first target in the first video data; according to the change After the preset composition position is obtained, the movement of the first photographing device is controlled by the pan/tilt so that the first target is located at the changed preset composition position, and the first target is photographed.
在一些实施例中,所述控制所述第二拍摄装置对第二目标进行拍摄,包括:In some embodiments, the controlling the second photographing device to photograph the second target includes:
获取所述第一拍摄装置对所述第一目标进行拍摄时的拍摄参数;基于所述第一拍摄装置的拍摄参数确定所述第二拍摄装置的拍摄参数,并根据确定的拍摄参数对第二目标进行拍摄。Obtain the shooting parameters when the first shooting device shoots the first target; determine the shooting parameters of the second shooting device based on the shooting parameters of the first shooting device, and determine the shooting parameters of the second shooting device according to the determined shooting parameters. target to shoot.
在一些实施例中,所述将所述第二目标的目标图像合成在所述第一视频数据的对应视频帧图像中,包括:In some embodiments, the synthesizing the target image of the second target in the corresponding video frame image of the first video data includes:
获取所述第一视频数据的对应视频帧图像的图像参数;根据所述第一视频数据的对应视频帧图像的图像参数,调整所述第二目标的目标图像的图像参数,以使所述第二目标的目标图像的图像参数与所述第一视频数据的对应视频帧图像的图像参数相匹配;以及将调整后的所述第二目标的目标图像合成在所述第一视频数据的对应视频帧图像中。Acquiring image parameters of the corresponding video frame image of the first video data; adjusting the image parameters of the target image of the second target according to the image parameters of the corresponding video frame image of the first video data, so that the first The image parameters of the target image of the second target match the image parameters of the corresponding video frame image of the first video data; and the adjusted target image of the second target is synthesized in the corresponding video of the first video data. in the frame image.
在一些实施例中,所述图像参数包括:亮度、色温、曝光度、对比度和饱和度中至少一种。In some embodiments, the image parameters include at least one of brightness, color temperature, exposure, contrast, and saturation.
在一些实施例中,所述根据所述图像参数调整所述第二目标的目标图像的图像参数之后,所述处理器还用于:In some embodiments, after adjusting the image parameters of the target image of the second target according to the image parameters, the processor is further configured to:
获取所述调整所述第二目标的目标图像的图像参数对应的参数调整量;将所述参数调整量发送至所述第二拍摄装置,以使所述第二拍摄装置根据所述参数调整量改变拍摄参数对所述第二目标进行拍摄。Acquire a parameter adjustment amount corresponding to the image parameter of the target image for adjusting the second target; send the parameter adjustment amount to the second photographing device, so that the second photographing device can adjust the parameter according to the parameter adjustment amount The second target is photographed by changing the photographing parameters.
在一些实施例中,所述第二拍摄装置包括显示屏,所述处理器用于:In some embodiments, the second photographing device includes a display screen, and the processor is configured to:
通过所述第二拍摄装置的显示屏显示所述目标视频数据。The target video data is displayed through the display screen of the second photographing device.
在一些实施例中,所述将所述第二目标的目标图像合成在所述第一视频数据的对应视频帧图像中,包括:In some embodiments, the synthesizing the target image of the second target in the corresponding video frame image of the first video data includes:
获取合成参数,其中,所述合成参数至少包括所述目标图像在所述第一视频数据中的对应视频帧图像中的位置信息;根据所述合成参数,将所述第二目标的目标图像合成在所述第一视频数据的对应视频帧图像中。Obtaining synthesis parameters, wherein the synthesis parameters include at least position information of the target image in the corresponding video frame image in the first video data; according to the synthesis parameters, the target image of the second target is synthesized in the corresponding video frame image of the first video data.
在一些实施例中,不同的所述目标图像在所述第一视频数据的对应视频帧图像中的位置信息不同。In some embodiments, different target images have different position information in corresponding video frame images of the first video data.
在一些实施例中,不同的所述位置信息形成所述第二目标的目标移动轨迹。In some embodiments, the different pieces of the position information form a target movement trajectory of the second target.
在一些实施例中,不同的所述位置信息根据用户在所述第二拍摄装置的显示屏上滑动轨迹确定。In some embodiments, the different pieces of the location information are determined according to the sliding track of the user on the display screen of the second photographing device.
在一些实施例中,所述将所述第二目标的目标图像合成在所述第一视频数据的对应视频帧图像中,包括:In some embodiments, the synthesizing the target image of the second target in the corresponding video frame image of the first video data includes:
从所述第一视频数据的视频帧图像中确定第一目标视频帧图像;将所述第二视频数据的多帧视频帧图像中的目标图像合成在所述第一目标视频帧图像中。The first target video frame image is determined from the video frame images of the first video data; the target images in the multiple video frame images of the second video data are synthesized into the first target video frame image.
在一些实施例中,所述将所述第二目标的目标图像合成在所述第一视频数据的对应视频帧图像中,包括:In some embodiments, the synthesizing the target image of the second target in the corresponding video frame image of the first video data includes:
从所述第二视频数据的视频帧图像中确定第二目标视频帧图像;将所述第二目标视频帧图像中的目标图像,合成在所述第一视频数据的多帧视频帧图像中。A second target video frame image is determined from the video frame image of the second video data; and the target image in the second target video frame image is synthesized into multiple video frame images of the first video data.
在一些实施例中,所述第一目标视频帧图像和所述第二目标视频帧图像根据用户的选择操作确定。In some embodiments, the first target video frame image and the second target video frame image are determined according to a user's selection operation.
在一些实施例中,所述处理器用于:输出所述目标视频数据。In some embodiments, the processor is configured to: output the target video data.
在一些实施例中,所述控制所述第一拍摄装置对第一目标进行拍摄,以及控制所述第二拍摄装置对第二目标进行拍摄之前,所述处理器还用于:In some embodiments, before the controlling the first photographing device to photograph the first target and the controlling the second photographing device to photograph the second target, the processor is further configured to:
获取用户触发的预设模式触发指令,根据所述预设模式触发指令执行所述控制所述第一拍摄装置对第一目标进行拍摄,以及控制所述第二拍摄装置对第二目标进行拍摄的步骤。Obtain a preset mode trigger instruction triggered by the user, and execute the control of the first shooting device to shoot the first target and the second shooting device to shoot the second target according to the preset mode trigger command. step.
在一些实施例中,所述拍摄设备上设置有模式按键;所述处理器用于:In some embodiments, a mode button is provided on the photographing device; the processor is used for:
若检测到用户操作所述模式按键,生成所述预设模式触发指令。If it is detected that the user operates the mode button, the preset mode trigger instruction is generated.
在一些实施例中,所述第二拍摄装置的显示屏显示有拍摄控制界面,所述拍摄控制界面包括模式图标;所述处理器用于:In some embodiments, the display screen of the second photographing device displays a photographing control interface, and the photographing control interface includes a mode icon; the processor is configured to:
若检测到用户操作所述模式图标,生成所述预设模式触发指令。If it is detected that the user operates the mode icon, the preset mode trigger instruction is generated.
本申请的实施例中还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序中包括程序指令,所述处理器执行所述程序指令,实现上述实施例提供的任一种所述的拍摄方法的步骤。The embodiments of the present application further provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program, the computer program includes program instructions, and the processor executes the program instructions to implement the above implementation The steps of any one of the shooting methods provided in the example.
其中,所述计算机可读存储介质可以是前述任一实施例所述的拍摄设备的内部存储单元,例如所述拍摄设备的存储器或内存。所述计算机可读存储介质也可以是所述拍摄设备的外部存储设备,例如所述拍摄设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。The computer-readable storage medium may be an internal storage unit of the photographing device described in any of the foregoing embodiments, such as a memory or internal memory of the photographing device. The computer-readable storage medium may also be an external storage device of the photographing device, such as a plug-in hard disk equipped on the photographing device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) ) card, Flash Card, etc.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalents within the technical scope disclosed in the present application. Modifications or substitutions shall be covered by the protection scope of this application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (49)

  1. 一种拍摄方法,其特征在于,应用于至少包括第一拍摄装置和第二拍摄装置的拍摄设备,所述方法包括:A photographing method, characterized in that, applied to a photographing device including at least a first photographing device and a second photographing device, the method comprising:
    控制所述第一拍摄装置对第一目标进行拍摄,以及控制所述第二拍摄装置对第二目标进行拍摄,得到第一视频数据和第二视频数据;controlling the first photographing device to photograph the first target, and controlling the second photographing device to photograph the second target, to obtain first video data and second video data;
    根据所述第二视频数据的视频帧图像提取所述第二目标的目标图像;Extract the target image of the second target according to the video frame image of the second video data;
    将所述第二目标的目标图像合成在所述第一视频数据的对应视频帧图像中,得到目标视频数据。The target image of the second target is synthesized into the corresponding video frame image of the first video data to obtain target video data.
  2. 根据权利要求1所述的方法,其特征在于,所述拍摄设备包括云台和设备支架,所述第一拍摄装置安装在所述云台上,所述第二拍摄装置安装在所述设备支架上。The method according to claim 1, wherein the photographing device comprises a pan/tilt and a device support, the first shooting device is mounted on the pan/tilt, and the second shooting device is mounted on the device support superior.
  3. 根据权利要求1所述的方法,其特征在于,所述第一拍摄装置包括相机,所述第二拍摄装置包括移动终端。The method according to claim 1, wherein the first photographing device comprises a camera, and the second photographing device comprises a mobile terminal.
  4. 根据权利要求1所述的方法,其特征在于,所述第一目标包括非人物目标,所述第二目标包括人物目标。The method of claim 1, wherein the first target comprises a non-personal target and the second target comprises a character target.
  5. 根据权利要求1所述的方法,其特征在于,所述控制所述第一拍摄装置对第一目标进行拍摄,包括:The method according to claim 1, wherein the controlling the first photographing device to photograph the first target comprises:
    控制所述第一拍摄装置对第一目标进行拍摄,并根据拍摄的图像进行目标识别;以及controlling the first photographing device to photograph the first target, and performing target recognition according to the photographed image; and
    根据识别结果对所述第一目标进行跟踪拍摄。The first target is tracked and photographed according to the recognition result.
  6. 根据权利要求1所述的方法,其特征在于,所述控制所述第一拍摄装置对第一目标进行拍摄,包括:The method according to claim 1, wherein the controlling the first photographing device to photograph the first target comprises:
    根据预设构图位置,通过云台控制所述第一拍摄装置运动以使第一目标位于所述预设构图位置,并对所述第一目标进行拍摄。According to the preset composition position, the movement of the first photographing device is controlled by the pan/tilt so that the first target is located at the preset composition position, and the first target is photographed.
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method according to claim 6, wherein the method further comprises:
    若检测到用于控制所述云台转动的控制指令,则根据所述控制指令控制所述云台转动以改变所述第一目标在所述第一视频数据中的预设构图位置;If a control instruction for controlling the rotation of the PTZ is detected, controlling the rotation of the PTZ according to the control instruction to change the preset composition position of the first target in the first video data;
    根据改变后的预设构图位置,通过云台控制所述第一拍摄装置运动以使第 一目标位于所述改变后的预设构图位置,并对所述第一目标进行拍摄。According to the changed preset composition position, the movement of the first photographing device is controlled by the PTZ so that the first target is located at the changed preset composition position, and the first target is photographed.
  8. 根据权利要求1所述的方法,其特征在于,所述控制所述第二拍摄装置对第二目标进行拍摄,包括:The method according to claim 1, wherein the controlling the second photographing device to photograph the second target comprises:
    获取所述第一拍摄装置对所述第一目标进行拍摄时的拍摄参数;acquiring shooting parameters when the first shooting device shoots the first target;
    基于所述第一拍摄装置的拍摄参数确定所述第二拍摄装置的拍摄参数,并根据确定的拍摄参数对第二目标进行拍摄。The shooting parameters of the second shooting device are determined based on the shooting parameters of the first shooting device, and the second target is shot according to the determined shooting parameters.
  9. 根据权利要求1所述的方法,其特征在于,所述将所述第二目标的目标图像合成在所述第一视频数据的对应视频帧图像中,包括:The method according to claim 1, wherein the synthesizing the target image of the second target into the corresponding video frame image of the first video data comprises:
    获取所述第一视频数据的对应视频帧图像的图像参数;Obtain the image parameters of the corresponding video frame image of the first video data;
    根据所述第一视频数据的对应视频帧图像的图像参数,调整所述第二目标的目标图像的图像参数,以使所述第二目标的目标图像的图像参数与所述第一视频数据的对应视频帧图像的图像参数相匹配;以及Adjust the image parameters of the target image of the second target according to the image parameters of the corresponding video frame images of the first video data, so that the image parameters of the target image of the second target are the same as the image parameters of the first video data. matching the image parameters of the corresponding video frame images; and
    将调整后的所述第二目标的目标图像合成在所述第一视频数据的对应视频帧图像中。The adjusted target image of the second target is synthesized into the corresponding video frame image of the first video data.
  10. 根据权利要求9所述的方法,其特征在于,所述图像参数包括:亮度、色温、曝光度、对比度和饱和度中至少一种。The method according to claim 9, wherein the image parameters include at least one of brightness, color temperature, exposure, contrast and saturation.
  11. 根据权利要求9所述的方法,其特征在于,所述根据所述图像参数调整所述第二目标的目标图像的图像参数之后,所述方法还包括:The method according to claim 9, wherein after adjusting the image parameters of the target image of the second target according to the image parameters, the method further comprises:
    获取所述调整所述第二目标的目标图像的图像参数对应的参数调整量;obtaining the parameter adjustment amount corresponding to the image parameter of the target image for adjusting the second target;
    将所述参数调整量发送至所述第二拍摄装置,以使所述第二拍摄装置根据所述参数调整量改变拍摄参数对所述第二目标进行拍摄。The parameter adjustment amount is sent to the second photographing device, so that the second photographing device changes the photographing parameter according to the parameter adjustment amount to photograph the second target.
  12. 根据权利要求1所述的方法,其特征在于,所述第二拍摄装置包括显示屏,所述方法包括:The method according to claim 1, wherein the second photographing device comprises a display screen, and the method comprises:
    通过所述第二拍摄装置的显示屏显示所述目标视频数据。The target video data is displayed through the display screen of the second photographing device.
  13. 根据权利要求1所述的方法,其特征在于,所述将所述第二目标的目标图像合成在所述第一视频数据的对应视频帧图像中,包括:The method according to claim 1, wherein the synthesizing the target image of the second target into the corresponding video frame image of the first video data comprises:
    获取合成参数,其中,所述合成参数至少包括所述目标图像在所述第一视频数据中的对应视频帧图像中的位置信息;acquiring synthesis parameters, wherein the synthesis parameters include at least position information of the target image in the corresponding video frame image in the first video data;
    根据所述合成参数,将所述第二目标的目标图像合成在所述第一视频数据的对应视频帧图像中。According to the synthesis parameter, the target image of the second target is synthesized into the corresponding video frame image of the first video data.
  14. 根据权利要求13所述的方法,其特征在于,不同的所述目标图像在所述第一视频数据的对应视频帧图像中的位置信息不同。The method according to claim 13, wherein the position information of the different target images in the corresponding video frame images of the first video data is different.
  15. 根据权利要求13所述的方法,其特征在于,不同的所述位置信息形成所述第二目标的目标移动轨迹。The method according to claim 13, wherein the different position information forms a target movement trajectory of the second target.
  16. 根据权利要求13所述的方法,其特征在于,不同的所述位置信息根据用户在所述第二拍摄装置的显示屏上滑动轨迹确定。The method according to claim 13, wherein the different pieces of the position information are determined according to the sliding track of the user on the display screen of the second photographing device.
  17. 根据权利要求1所述的方法,其特征在于,所述将所述第二目标的目标图像合成在所述第一视频数据的对应视频帧图像中,包括:The method according to claim 1, wherein the synthesizing the target image of the second target into the corresponding video frame image of the first video data comprises:
    从所述第一视频数据的视频帧图像中确定第一目标视频帧图像;Determine a first target video frame image from the video frame image of the first video data;
    将所述第二视频数据的多帧视频帧图像中的目标图像合成在所述第一目标视频帧图像中。The target images in the multiple frames of video frame images of the second video data are synthesized into the first target video frame images.
  18. 根据权利要求1所述的方法,其特征在于,所述将所述第二目标的目标图像合成在所述第一视频数据的对应视频帧图像中,包括:The method according to claim 1, wherein the synthesizing the target image of the second target into the corresponding video frame image of the first video data comprises:
    从所述第二视频数据的视频帧图像中确定第二目标视频帧图像;Determine a second target video frame image from the video frame image of the second video data;
    将所述第二目标视频帧图像中的目标图像,合成在所述第一视频数据的多帧视频帧图像中。The target image in the second target video frame image is synthesized into multiple video frame images of the first video data.
  19. 根据权利要求17或18所述的方法,其特征在于,所述第一目标视频帧图像和所述第二目标视频帧图像根据用户的选择操作确定。The method according to claim 17 or 18, wherein the first target video frame image and the second target video frame image are determined according to a user's selection operation.
  20. 根据权利要求1所述的方法,其特征在于,所述方法包括:The method of claim 1, wherein the method comprises:
    输出所述目标视频数据。The target video data is output.
  21. 根据权利要求1所述的方法,其特征在于,所述控制所述第一拍摄装置对第一目标进行拍摄,以及控制所述第二拍摄装置对第二目标进行拍摄之前,所述方法还包括:The method according to claim 1, characterized in that before the controlling the first photographing device to photograph the first target and the controlling the second photographing device to photograph the second target, the method further comprises: :
    获取用户触发的预设模式触发指令,根据所述预设模式触发指令执行所述控制所述第一拍摄装置对第一目标进行拍摄,以及控制所述第二拍摄装置对第二目标进行拍摄的步骤。Obtain a preset mode trigger instruction triggered by the user, and execute the control of the first shooting device to shoot the first target and the second shooting device to shoot the second target according to the preset mode trigger command. step.
  22. 根据权利要求21所述的方法,其特征在于,所述拍摄设备上设置有模式按键;所述方法包括:The method according to claim 21, wherein a mode button is provided on the photographing device; the method comprises:
    若检测到用户操作所述模式按键,生成所述预设模式触发指令。If it is detected that the user operates the mode button, the preset mode trigger instruction is generated.
  23. 根据权利要求21所述的方法,其特征在于,所述第二拍摄装置的显示 屏显示有拍摄控制界面,所述拍摄控制界面包括模式图标;所述方法包括:The method according to claim 21, wherein the display screen of the second photographing device displays a photographing control interface, and the photographing control interface includes a mode icon; the method comprises:
    若检测到用户操作所述模式图标,生成所述预设模式触发指令。If it is detected that the user operates the mode icon, the preset mode trigger instruction is generated.
  24. 一种控制装置,其特征在于,所述控制装置用于控制第一拍摄装置和第二拍摄装置拍摄图像,所述控制装置包括存储器和处理器;A control device, characterized in that the control device is used to control a first photographing device and a second photographing device to photograph images, and the control device includes a memory and a processor;
    所述存储器用于存储计算机程序;the memory is used to store computer programs;
    所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:The processor is configured to execute the computer program and implement the following steps when executing the computer program:
    控制所述第一拍摄装置对第一目标进行拍摄,以及控制所述第二拍摄装置对第二目标进行拍摄,得到第一视频数据和第二视频数据;controlling the first photographing device to photograph the first target, and controlling the second photographing device to photograph the second target, to obtain first video data and second video data;
    根据所述第二视频数据的视频帧图像提取所述第二目标的目标图像;Extract the target image of the second target according to the video frame image of the second video data;
    将所述第二目标的目标图像合成在所述第一视频数据的对应视频帧图像中,得到目标视频数据。The target image of the second target is synthesized into the corresponding video frame image of the first video data to obtain target video data.
  25. 根据权利要求24所述的控制装置,其特征在于,所述控制装置应用于拍摄设备,所述拍摄设备包括云台和设备支架,所述第一拍摄装置安装在所述云台上,所述第二拍摄装置安装在所述设备支架上。The control device according to claim 24, wherein the control device is applied to a photographing device, the photographing device comprises a pan/tilt and a device bracket, the first photographing device is mounted on the pan/tilt, the The second photographing device is mounted on the equipment support.
  26. 根据权利要求24所述的控制装置,其特征在于,所述第一拍摄装置包括相机,所述第二拍摄装置包括移动终端。The control device according to claim 24, wherein the first photographing device comprises a camera, and the second photographing device comprises a mobile terminal.
  27. 根据权利要求24所述的控制装置,其特征在于,所述第一目标包括非人物目标,所述第二目标包括人物目标。The control device of claim 24, wherein the first target comprises a non-personal target, and the second target comprises a character target.
  28. 根据权利要求24所述的控制装置,其特征在于,所述控制所述第一拍摄装置对第一目标进行拍摄,包括:The control device according to claim 24, wherein the controlling the first photographing device to photograph the first target comprises:
    控制所述第一拍摄装置对第一目标进行拍摄,并根据拍摄的图像进行目标识别;以及controlling the first photographing device to photograph the first target, and performing target recognition according to the photographed image; and
    根据识别结果对所述第一目标进行跟踪拍摄。The first target is tracked and photographed according to the recognition result.
  29. 根据权利要求24所述的控制装置,其特征在于,所述控制所述第一拍摄装置对第一目标进行拍摄,包括:The control device according to claim 24, wherein the controlling the first photographing device to photograph the first target comprises:
    根据预设构图位置,通过云台控制所述第一拍摄装置运动以使第一目标位于所述预设构图位置,并对所述第一目标进行拍摄。According to the preset composition position, the movement of the first photographing device is controlled by the pan/tilt so that the first target is located at the preset composition position, and the first target is photographed.
  30. 根据权利要求29所述的控制装置,其特征在于,所述处理器还用于:The control device of claim 29, wherein the processor is further configured to:
    若检测到用于控制所述云台转动的控制指令,则根据所述控制指令控制所 述云台转动以改变所述第一目标在所述第一视频数据中的预设构图位置;If a control instruction for controlling the rotation of the pan-tilt is detected, then the pan-tilt is controlled to rotate according to the control instruction to change the preset composition position of the first target in the first video data;
    根据改变后的预设构图位置,通过云台控制所述第一拍摄装置运动以使第一目标位于所述改变后的预设构图位置,并对所述第一目标进行拍摄。According to the changed preset composition position, the movement of the first photographing device is controlled by the pan/tilt so that the first target is located at the changed preset composition position, and the first target is photographed.
  31. 根据权利要求24所述的控制装置,其特征在于,所述控制所述第二拍摄装置对第二目标进行拍摄,包括:The control device according to claim 24, wherein the controlling the second photographing device to photograph the second target comprises:
    获取所述第一拍摄装置对所述第一目标进行拍摄时的拍摄参数;acquiring shooting parameters when the first shooting device shoots the first target;
    基于所述第一拍摄装置的拍摄参数确定所述第二拍摄装置的拍摄参数,并根据确定的拍摄参数对第二目标进行拍摄。The shooting parameters of the second shooting device are determined based on the shooting parameters of the first shooting device, and the second target is shot according to the determined shooting parameters.
  32. 根据权利要求24所述的控制装置,其特征在于,所述将所述第二目标的目标图像合成在所述第一视频数据的对应视频帧图像中,包括:The control device according to claim 24, wherein the synthesizing the target image of the second target into the corresponding video frame image of the first video data comprises:
    获取所述第一视频数据的对应视频帧图像的图像参数;Obtain the image parameters of the corresponding video frame image of the first video data;
    根据所述第一视频数据的对应视频帧图像的图像参数,调整所述第二目标的目标图像的图像参数,以使所述第二目标的目标图像的图像参数与所述第一视频数据的对应视频帧图像的图像参数相匹配;以及Adjust the image parameters of the target image of the second target according to the image parameters of the corresponding video frame images of the first video data, so that the image parameters of the target image of the second target are the same as the image parameters of the first video data. matching the image parameters of the corresponding video frame images; and
    将调整后的所述第二目标的目标图像合成在所述第一视频数据的对应视频帧图像中。The adjusted target image of the second target is synthesized into the corresponding video frame image of the first video data.
  33. 根据权利要求32所述的控制装置,其特征在于,所述图像参数包括:亮度、色温、曝光度、对比度和饱和度中至少一种。The control device according to claim 32, wherein the image parameters include at least one of brightness, color temperature, exposure, contrast and saturation.
  34. 根据权利要求32所述的控制装置,其特征在于,所述根据所述图像参数调整所述第二目标的目标图像的图像参数之后,所述处理器还用于:The control device according to claim 32, wherein after adjusting the image parameters of the target image of the second target according to the image parameters, the processor is further configured to:
    获取所述调整所述第二目标的目标图像的图像参数对应的参数调整量;obtaining the parameter adjustment amount corresponding to the image parameter of the target image for adjusting the second target;
    将所述参数调整量发送至所述第二拍摄装置,以使所述第二拍摄装置根据所述参数调整量改变拍摄参数对所述第二目标进行拍摄。The parameter adjustment amount is sent to the second photographing device, so that the second photographing device changes the photographing parameter according to the parameter adjustment amount to photograph the second target.
  35. 根据权利要求24所述的控制装置,其特征在于,所述第二拍摄装置包括显示屏,所述处理器用于:The control device according to claim 24, wherein the second photographing device comprises a display screen, and the processor is configured to:
    通过所述第二拍摄装置的显示屏显示所述目标视频数据。The target video data is displayed through the display screen of the second photographing device.
  36. 根据权利要求24所述的控制装置,其特征在于,所述将所述第二目标的目标图像合成在所述第一视频数据的对应视频帧图像中,包括:The control device according to claim 24, wherein the synthesizing the target image of the second target into the corresponding video frame image of the first video data comprises:
    获取合成参数,其中,所述合成参数至少包括所述目标图像在所述第一视频数据中的对应视频帧图像中的位置信息;acquiring synthesis parameters, wherein the synthesis parameters include at least position information of the target image in the corresponding video frame image in the first video data;
    根据所述合成参数,将所述第二目标的目标图像合成在所述第一视频数据的对应视频帧图像中。According to the synthesis parameter, the target image of the second target is synthesized into the corresponding video frame image of the first video data.
  37. 根据权利要求36所述的控制装置,其特征在于,不同的所述目标图像在所述第一视频数据的对应视频帧图像中的位置信息不同。The control device according to claim 36, wherein the position information of the different target images in the corresponding video frame images of the first video data is different.
  38. 根据权利要求36所述的控制装置,其特征在于,不同的所述位置信息形成所述第二目标的目标移动轨迹。The control device according to claim 36, wherein the different position information forms a target movement trajectory of the second target.
  39. 根据权利要求36所述的控制装置,其特征在于,不同的所述位置信息根据用户在所述第二拍摄装置的显示屏上滑动轨迹确定。The control device according to claim 36, wherein the different position information is determined according to the sliding track of the user on the display screen of the second photographing device.
  40. 根据权利要求24所述的控制装置,其特征在于,所述将所述第二目标的目标图像合成在所述第一视频数据的对应视频帧图像中,包括:The control device according to claim 24, wherein the synthesizing the target image of the second target into the corresponding video frame image of the first video data comprises:
    从所述第一视频数据的视频帧图像中确定第一目标视频帧图像;Determine a first target video frame image from the video frame image of the first video data;
    将所述第二视频数据的多帧视频帧图像中的目标图像合成在所述第一目标视频帧图像中。The target images in the multiple frames of video frame images of the second video data are synthesized into the first target video frame images.
  41. 根据权利要求24所述的控制装置,其特征在于,所述将所述第二目标的目标图像合成在所述第一视频数据的对应视频帧图像中,包括:The control device according to claim 24, wherein the synthesizing the target image of the second target into the corresponding video frame image of the first video data comprises:
    从所述第二视频数据的视频帧图像中确定第二目标视频帧图像;Determine a second target video frame image from the video frame image of the second video data;
    将所述第二目标视频帧图像中的目标图像,合成在所述第一视频数据的多帧视频帧图像中。The target image in the second target video frame image is synthesized into multiple video frame images of the first video data.
  42. 根据权利要求40或41所述的控制装置,其特征在于,所述第一目标视频帧图像和所述第二目标视频帧图像根据用户的选择操作确定。The control device according to claim 40 or 41, wherein the first target video frame image and the second target video frame image are determined according to a user's selection operation.
  43. 根据权利要求24所述的控制装置,其特征在于,所述处理器用于:The control device of claim 24, wherein the processor is configured to:
    输出所述目标视频数据。The target video data is output.
  44. 根据权利要求24所述的控制装置,其特征在于,所述控制所述第一拍摄装置对第一目标进行拍摄,以及控制所述第二拍摄装置对第二目标进行拍摄之前,所述处理器还用于:The control device according to claim 24, characterized in that before the control of the first photographing device to photograph the first target and the control of the second photographing device to photograph the second target, the processor Also used for:
    获取用户触发的预设模式触发指令,根据所述预设模式触发指令执行所述控制所述第一拍摄装置对第一目标进行拍摄,以及控制所述第二拍摄装置对第二目标进行拍摄的步骤。Obtain a preset mode trigger instruction triggered by the user, and execute the control of the first shooting device to shoot the first target and the second shooting device to shoot the second target according to the preset mode trigger command. step.
  45. 根据权利要求44所述的控制装置,其特征在于,所述拍摄设备上设置有模式按键;所述处理器用于:The control device according to claim 44, wherein a mode button is provided on the photographing device; the processor is used for:
    若检测到用户操作所述模式按键,生成所述预设模式触发指令。If it is detected that the user operates the mode button, the preset mode trigger instruction is generated.
  46. 根据权利要求44所述的控制装置,其特征在于,所述第二拍摄装置的显示屏显示有拍摄控制界面,所述拍摄控制界面包括模式图标;所述处理器用于:The control device according to claim 44, wherein the display screen of the second shooting device displays a shooting control interface, and the shooting control interface includes a mode icon; the processor is configured to:
    若检测到用户操作所述模式图标,生成所述预设模式触发指令。If it is detected that the user operates the mode icon, the preset mode trigger instruction is generated.
  47. 一种拍摄设备,其特征在于,所述拍摄设备包括存储器和处理器,以及至少还包括第一拍摄装置和第二拍摄装置;A photographing device, characterized in that the photographing device includes a memory and a processor, and at least further includes a first photographing device and a second photographing device;
    所述第一拍摄装置和第二拍摄装置用于拍摄图像;the first photographing device and the second photographing device are used for photographing images;
    所述存储器用于存储计算机程序;the memory is used to store computer programs;
    所述处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现如权利要求1-23任一项所述的拍摄方法的步骤。The processor is configured to execute the computer program and implement the steps of the photographing method according to any one of claims 1-23 when the computer program is executed.
  48. 根据权利要求47所述的拍摄设备,其特征在于,所述拍摄设备包括手持云台。The photographing device of claim 47, wherein the photographing device comprises a hand-held head.
  49. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如权利要求1至23任一项所述的拍摄方法的步骤。A computer-readable storage medium, characterized in that, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the process according to any one of claims 1 to 23 the steps of the shooting method.
PCT/CN2021/090053 2021-04-26 2021-04-26 Photographing method, control apparatus, photographing device, and storage medium WO2022226745A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202180094795.5A CN116941235A (en) 2021-04-26 2021-04-26 Shooting method, control device and shooting equipment storage medium
PCT/CN2021/090053 WO2022226745A1 (en) 2021-04-26 2021-04-26 Photographing method, control apparatus, photographing device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/090053 WO2022226745A1 (en) 2021-04-26 2021-04-26 Photographing method, control apparatus, photographing device, and storage medium

Publications (1)

Publication Number Publication Date
WO2022226745A1 true WO2022226745A1 (en) 2022-11-03

Family

ID=83847626

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/090053 WO2022226745A1 (en) 2021-04-26 2021-04-26 Photographing method, control apparatus, photographing device, and storage medium

Country Status (2)

Country Link
CN (1) CN116941235A (en)
WO (1) WO2022226745A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851128A (en) * 2017-03-20 2017-06-13 努比亚技术有限公司 A kind of video data handling procedure and device based on dual camera
US20170289462A1 (en) * 2016-03-31 2017-10-05 Lg Electronics Inc. Mobile terminal and method for controlling the same
CN108259810A (en) * 2018-03-29 2018-07-06 上海掌门科技有限公司 A kind of method of video calling, equipment and computer storage media
CN109803110A (en) * 2019-01-29 2019-05-24 维沃移动通信有限公司 A kind of image processing method, terminal device and server
CN110198428A (en) * 2019-05-29 2019-09-03 维沃移动通信有限公司 A kind of multimedia file producting method and first terminal
CN110536075A (en) * 2019-09-20 2019-12-03 上海掌门科技有限公司 Video generation method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170289462A1 (en) * 2016-03-31 2017-10-05 Lg Electronics Inc. Mobile terminal and method for controlling the same
CN106851128A (en) * 2017-03-20 2017-06-13 努比亚技术有限公司 A kind of video data handling procedure and device based on dual camera
CN108259810A (en) * 2018-03-29 2018-07-06 上海掌门科技有限公司 A kind of method of video calling, equipment and computer storage media
CN109803110A (en) * 2019-01-29 2019-05-24 维沃移动通信有限公司 A kind of image processing method, terminal device and server
CN110198428A (en) * 2019-05-29 2019-09-03 维沃移动通信有限公司 A kind of multimedia file producting method and first terminal
CN110536075A (en) * 2019-09-20 2019-12-03 上海掌门科技有限公司 Video generation method and device

Also Published As

Publication number Publication date
CN116941235A (en) 2023-10-24

Similar Documents

Publication Publication Date Title
WO2017036329A1 (en) Method and device for playing video content at any position and time
US8976255B2 (en) Imaging apparatus
CN111698390A (en) Virtual camera control method and device, and virtual studio implementation method and system
WO2018133849A1 (en) Panoramic image photographic method, panoramic image display method, panoramic image photographic device, and panoramic image display device
US8514285B2 (en) Image processing apparatus, image processing method and program
KR20160132094A (en) Dual display system
US10764493B2 (en) Display method and electronic device
CN108377398B (en) Infrared-based AR imaging method and system and electronic equipment
WO2018133848A1 (en) Panoramic image photography device, display device, photography method, and display method
JP2014529930A (en) Selective capture and display of a portion of a native image
CN113329172B (en) Shooting method and device and electronic equipment
WO2020110322A1 (en) Video synthesis device, video synthesis method and recording medium
CN114286142A (en) Virtual reality equipment and VR scene screen capturing method
WO2023103953A1 (en) Photographing method and device
CN110730340B (en) Virtual audience display method, system and storage medium based on lens transformation
CN110225401B (en) Video playing method and device capable of adjusting visual angle
CN108134928A (en) VR display methods and device
JP2007264592A (en) Automatic three-dimensional image forming device and method
JP2018033107A (en) Video distribution device and distribution method
CN116320363B (en) Multi-angle virtual reality shooting method and system
CN111200686A (en) Photographed image synthesizing method, terminal, and computer-readable storage medium
US20230353717A1 (en) Image processing system, image processing method, and storage medium
WO2022226745A1 (en) Photographing method, control apparatus, photographing device, and storage medium
AU2008255262B2 (en) Performing a display transition
CN114625468B (en) Display method and device of augmented reality picture, computer equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21938236

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 202180094795.5

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21938236

Country of ref document: EP

Kind code of ref document: A1