WO2021026782A1 - Control method and control apparatus for handheld cradle head, handheld cradle head and storage medium - Google Patents

Control method and control apparatus for handheld cradle head, handheld cradle head and storage medium Download PDF

Info

Publication number
WO2021026782A1
WO2021026782A1 PCT/CN2019/100446 CN2019100446W WO2021026782A1 WO 2021026782 A1 WO2021026782 A1 WO 2021026782A1 CN 2019100446 W CN2019100446 W CN 2019100446W WO 2021026782 A1 WO2021026782 A1 WO 2021026782A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
area
specific
specific body
enlarged
Prior art date
Application number
PCT/CN2019/100446
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 CN201980033454.XA priority Critical patent/CN112154652A/en
Priority to PCT/CN2019/100446 priority patent/WO2021026782A1/en
Publication of WO2021026782A1 publication Critical patent/WO2021026782A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/017Gesture based interaction, e.g. based on a set of recognized hand gestures

Abstract

A control method and control apparatus for a handheld cradle head, the handheld cradle head and a storage medium. A specific posture in an image (50) collected by a photographing device (13) on a handheld cradle head is detected, and an object to follow in the image (50) is determined according to the specific posture, the handheld cradle head is further controlled to follow said object, and during the process of following, the photographing device (13) is controlled to perform image capture on the said object, so that when a user is at a certain distance from the handheld cradle head, the user may control the handheld cradle head by means of the specific posture to follow and perform image capture so as to capture a photo or video with a better composition, which improves the user experience.

Description

手持云台的控制方法、控制装置、手持云台及存储介质Hand-held pan/tilt control method, control device, handheld pan/tilt and storage medium 技术领域Technical field
本申请实施例涉及手持云台领域,尤其涉及一种手持云台的控制方法、控制装置、手持云台及存储介质。The embodiments of the present application relate to the field of handheld pan/tilt, and in particular, to a control method, control device, handheld pan/tilt, and storage medium of a handheld pan/tilt.
背景技术Background technique
现有技术中拍摄设备可搭载在手持云台上,以便通过该手持云台来增强拍摄画面的稳定性。In the prior art, the photographing equipment can be mounted on a handheld pan-tilt, so as to enhance the stability of the photographed image through the handheld pan-tilt.
在一些场景中,用户可能会通过在手持云台上搭载拍摄设备来进行自拍,但是,由于手持云台距离用户可能比较远,用户无法控制手持云台,从而导致用户无法拍摄出较好的照片或视频,降低了用户体验。In some scenes, the user may take a selfie by carrying a camera on the handheld gimbal. However, because the handheld gimbal may be far away from the user, the user cannot control the handheld gimbal, which prevents the user from taking better photos Or video, which reduces the user experience.
发明内容Summary of the invention
本申请实施例提供一种手持云台的控制方法、控制装置、手持云台及存储介质,当用户相距手持云台有一定距离时,用户可通过特定姿势控制手持云台进行跟随并拍摄,以便拍摄出构图较好的照片或视频,提高用户体验。The embodiment of the application provides a control method, control device, hand-held PTZ and storage medium of a handheld PTZ. When the user is at a certain distance from the handheld PTZ, the user can control the handheld PTZ through a specific posture to follow and shoot, Take photos or videos with better composition to improve user experience.
本申请实施例的第一方面是提供一种手持云台的控制方法,所述手持云台上搭载有拍摄设备,所述方法包括:The first aspect of the embodiments of the present application is to provide a method for controlling a handheld PTZ, the handheld PTZ is equipped with a photographing device, and the method includes:
获取所述拍摄设备采集到的图像;Acquiring an image collected by the photographing device;
检测所述图像中的特定姿势;Detecting a specific posture in the image;
根据所述特定姿势确定所述图像中的跟随对象;Determining the following object in the image according to the specific posture;
控制所述手持云台对所述跟随对象进行跟随,并在跟随的过程中控制所述拍摄设备对所述跟随对象进行拍摄。Control the handheld pan/tilt to follow the following object, and control the photographing device to photograph the following object during the following process.
本申请实施例的第二方面是提供一种手持云台的控制方法,所述手持云台上搭载有拍摄设备,所述方法包括:The second aspect of the embodiments of the present application is to provide a method for controlling a handheld PTZ, the handheld PTZ is equipped with a photographing device, and the method includes:
获取所述拍摄设备采集到的图像;Acquiring an image collected by the photographing device;
检测所述图像中的特定姿势;Detecting a specific posture in the image;
根据所述特定姿势控制所述手持云台和/或所述拍摄设备的参数。Controlling the parameters of the handheld pan/tilt and/or the photographing device according to the specific posture.
本申请实施例的第三方面是提供一种手持云台的控制装置,所述手持云台上搭载有拍摄设备,所述控制装置包括:存储器和处理器;A third aspect of the embodiments of the present application is to provide a control device for a handheld pan/tilt, the handheld pan/tilt mount is equipped with photographing equipment, and the control device includes: a memory and a processor;
所述存储器用于存储程序代码;The memory is used to store program codes;
所述处理器,调用所述程序代码,当程序代码被执行时,用于执行以下操作:The processor calls the program code, and when the program code is executed, is used to perform the following operations:
获取所述拍摄设备采集到的图像;Acquiring an image collected by the photographing device;
检测所述图像中的特定姿势;Detecting a specific posture in the image;
根据所述特定姿势确定所述图像中的跟随对象;Determining the following object in the image according to the specific posture;
控制所述手持云台对所述跟随对象进行跟随,并在跟随的过程中控制所述拍摄设备对所述跟随对象进行拍摄。Control the handheld pan/tilt to follow the following object, and control the photographing device to photograph the following object during the following process.
本申请实施例的第四方面是提供一种手持云台的控制装置,所述手持云台上搭载有拍摄设备,所述控制装置包括:存储器和处理器;A fourth aspect of the embodiments of the present application is to provide a control device for a handheld pan/tilt, the handheld pan/tilt mount is equipped with photographing equipment, and the control device includes: a memory and a processor;
所述存储器用于存储程序代码;The memory is used to store program codes;
所述处理器,调用所述程序代码,当程序代码被执行时,用于执行以下操作:The processor calls the program code, and when the program code is executed, is used to perform the following operations:
获取所述拍摄设备采集到的图像;Acquiring an image collected by the photographing device;
检测所述图像中的特定姿势;Detecting a specific posture in the image;
根据所述特定姿势控制所述手持云台和/或所述拍摄设备的参数。Controlling the parameters of the handheld pan/tilt and/or the photographing device according to the specific posture.
本申请实施例的第五方面是提供一种手持云台,包括:The fifth aspect of the embodiments of the present application is to provide a handheld PTZ, including:
云台,所述云台上承载有拍摄设备;A pan/tilt, on which photographing equipment is carried;
基座,所述基站与所述云台连接;以及A base, the base station is connected to the pan-tilt; and
如上第三方面或第四方面所述的控制装置。The control device described in the third or fourth aspect above.
本申请实施例的第六方面是提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行以实现第一方面或第二方面所述的方法。The sixth aspect of the embodiments of the present application is to provide a computer-readable storage medium having a computer program stored thereon, and the computer program is executed by a processor to implement the method described in the first aspect or the second aspect.
本实施例提供的手持云台的控制方法、控制装置、手持云台及存储介质,通过检测手持云台上的拍摄设备采集到的图像中的特定姿势,并根据该特定姿势确定该图像中的跟随对象,进一步控制手持云台对该跟随对象进行跟随,并在跟随的过程中控制该拍摄设备对该跟随对象进行拍摄,使 得用户相距手持云台有一定距离时,用户可通过特定姿势控制手持云台进行跟随并拍摄,以便拍摄出构图较好的照片或视频,提高了用户体验。The control method, control device, handheld PTZ and storage medium provided in this embodiment detect a specific posture in an image collected by a shooting device on the handheld PTZ, and determine the image in the image according to the specific posture. Follow the object, further control the handheld PTZ to follow the follow object, and control the shooting device to shoot the follow object during the following process, so that when the user is a certain distance from the handheld PTZ, the user can control the handheld through a specific posture The pan/tilt follows and shoots in order to take a better-composed photo or video, which improves the user experience.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor.
图1为本申请实施例提供的一种手持云台的示意图;FIG. 1 is a schematic diagram of a handheld pan/tilt provided by an embodiment of the application;
图2为本申请实施例提供的手持云台的控制方法的流程图;2 is a flowchart of a method for controlling a handheld PTZ provided by an embodiment of the application;
图3为本申请实施例提供的一种应用场景的示意图;FIG. 3 is a schematic diagram of an application scenario provided by an embodiment of the application;
图4为本申请实施例提供的一种图像的示意图;FIG. 4 is a schematic diagram of an image provided by an embodiment of the application;
图5为本申请实施例提供的另一种图像的示意图;FIG. 5 is a schematic diagram of another image provided by an embodiment of the application;
图6为本申请实施例提供的头肩区域的示意图;Figure 6 is a schematic diagram of the head and shoulders area provided by an embodiment of the application;
图7为本申请另一实施例提供的手持云台的控制方法的流程图;FIG. 7 is a flowchart of a method for controlling a handheld PTZ according to another embodiment of the application;
图8为本申请实施例提供的一种扩大区域的示意图;FIG. 8 is a schematic diagram of an expanded area provided by an embodiment of the application;
图9为本申请实施例提供的另一种扩大区域的示意图;FIG. 9 is a schematic diagram of another expanded area provided by an embodiment of the application;
图10为本申请实施例提供的又一种扩大区域的示意图;FIG. 10 is a schematic diagram of another expanded area provided by an embodiment of the application;
图11为本申请另一实施例提供的手持云台的控制方法的流程图;11 is a flowchart of a method for controlling a handheld PTZ according to another embodiment of the application;
图12为本申请实施例提供的一种对扩大区域进行裁剪处理以及调整大小的示意图;FIG. 12 is a schematic diagram of cropping and resizing an enlarged area according to an embodiment of the application;
图13为本申请实施例提供的一种对扩大区域进行裁剪处理以及调整大小的流程图;FIG. 13 is a flowchart of cropping and resizing an enlarged area according to an embodiment of the application;
图14为本申请另一实施例提供的手持云台的控制方法的流程图;FIG. 14 is a flowchart of a method for controlling a handheld PTZ according to another embodiment of the application;
图15为本申请实施例提供的一种扩大区域的示意图;FIG. 15 is a schematic diagram of an expanded area provided by an embodiment of the application;
图16为本申请另一实施例提供的手持云台的控制方法的流程图;FIG. 16 is a flowchart of a method for controlling a handheld PTZ according to another embodiment of the application;
图17为本申请实施例提供的一种扩大区域的示意图;FIG. 17 is a schematic diagram of an expanded area provided by an embodiment of the application;
图18为本申请另一实施例提供的手持云台的控制方法的流程图;FIG. 18 is a flowchart of a method for controlling a handheld PTZ according to another embodiment of the application;
图19为本申请实施例提供的手持云台的控制装置的结构图;Figure 19 is a structural diagram of a handheld pan/tilt control device provided by an embodiment of the application;
图20为本申请实施例提供的手持云台的控制装置的结构图。Fig. 20 is a structural diagram of a handheld pan/tilt control device provided by an embodiment of the application.
附图标记:Reference signs:
11:基座;    12:云台;     13:拍摄设备;11: Base; 12: PTZ; 13: Camera equipment;
40:图像;      50:图像;     51:对象;40: image; 50: image; 51: object;
52:对象;           61:头肩区域;       62:头肩区域;52: object; 61: head and shoulders area; 62: head and shoulders area;
81:扩大区域;    82:扩大区域;     83:特定的单手手势;81: Expand the area; 82: Expand the area; 83: Specific one-handed gestures;
91:头肩区域61对应的预设大小的扩大区域;91: an enlarged area of a preset size corresponding to the head and shoulders area 61;
92:头肩区域62对应的预设大小的扩大区域;92: an enlarged area of a preset size corresponding to the head and shoulders area 62;
190:控制装置;     191:存储器;          192:处理器;190: control device; 191: memory; 192: processor;
200:控制装置;     201:存储器;          202:处理器。200: control device; 201: memory; 202: processor.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
需要说明的是,当组件被称为“固定于”另一个组件,它可以直接在另一个组件上或者也可以存在居中的组件。当一个组件被认为是“连接”另一个组件,它可以是直接连接到另一个组件或者可能同时存在居中组件。It should be noted that when a component is said to be "fixed to" another component, it can be directly on the other component or a central component may also exist. When a component is considered to be "connected" to another component, it can be directly connected to another component or there may be a centered component at the same time.
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中在本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请。本文所使用的术语“及/或”包括一个或多个相关的所列项目的任意的和所有的组合。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field of this application. The terms used in the description of the application herein are only for the purpose of describing specific embodiments, and are not intended to limit the application. The term "and/or" as used herein includes any and all combinations of one or more related listed items.
下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Hereinafter, some embodiments of the present application will be described in detail with reference to the drawings. In the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.
本申请实施例提供一种手持云台的控制方法。所述手持云台上搭载有拍摄设备。图1为本申请实施例提供的一种手持云台的示意图。如图1所示,手持云台具体可以包括基座11和云台12,云台12上承载有拍摄设备13。其中,拍摄设备13具体可以是相机、摄像机、或具有拍摄功能的智能终端,例如手机等设备。基座11具体可以是手持云台的手持杆,用户 可以手握手持杆进行拍摄,例如,拍摄远处的风景或自拍。本申请实施例所述的方法可适用于用户将手持云台放置在离自己不远的地方进行拍摄,例如,自拍。下面结合具体的实施例对该方法进行介绍。The embodiment of the application provides a method for controlling a handheld PTZ. The handheld PTZ is equipped with photographing equipment. Figure 1 is a schematic diagram of a handheld pan/tilt provided by an embodiment of the application. As shown in FIG. 1, the handheld pan/tilt may specifically include a base 11 and a pan/tilt 12, and the pan/tilt 12 carries a photographing device 13. Among them, the shooting device 13 may specifically be a camera, a video camera, or a smart terminal with a shooting function, such as a device such as a mobile phone. The base 11 may specifically be a handheld pole that holds a pan/tilt, and the user can hold the pole with hands to take pictures, for example, to take pictures of distant scenery or selfies. The method described in the embodiment of the present application may be suitable for the user to place the hand-held pan/tilt at a place not far away from him to take pictures, for example, self-portraits. The method will be introduced below in conjunction with specific embodiments.
图2为本申请实施例提供的手持云台的控制方法的流程图。如图2所示,本实施例中的方法,可以包括:Fig. 2 is a flowchart of a method for controlling a handheld pan/tilt provided by an embodiment of the application. As shown in Figure 2, the method in this embodiment may include:
S201、获取所述拍摄设备采集到的图像。S201. Acquire an image collected by the shooting device.
在本实施例中,用户可通过手势和手持云台进行交互,例如,用户可通过手势控制手持云台进行跟随、拍照、录像等。如图3所示,用户摆出特定姿势,该特定姿势可以是特定的手部姿势和/或特定的身体姿势,手持云台上的拍摄设备采集该用户的图像,该图像可以是照片或视频。手持云台内的控制装置与该拍摄设备通信连接,该控制装置通过与该拍摄设备之间的通信连接获取该拍摄设备采集的图像。In this embodiment, the user can interact with the handheld pan/tilt through gestures. For example, the user may control the handheld pan/tilt through gestures to follow, take photos, and record videos. As shown in Figure 3, the user poses a specific posture, the specific posture can be a specific hand posture and/or a specific body posture, the camera on the handheld camera captures an image of the user, the image can be a photo or a video . The control device in the handheld PTZ is in communication connection with the shooting device, and the control device obtains the image collected by the shooting device through the communication connection with the shooting device.
S202、检测所述图像中的特定姿势。S202: Detect a specific posture in the image.
具体的,该控制装置可具有图像处理的功能,当该控制装置获取到该拍摄设备采集的图像后,通过图像处理检测该图像中的特定姿势。Specifically, the control device may have an image processing function. After the control device acquires the image collected by the photographing device, it detects a specific posture in the image through image processing.
S203、根据所述特定姿势确定所述图像中的跟随对象。S203: Determine a follow object in the image according to the specific posture.
进一步,该控制装置可根据该特定姿势确定该图像中的跟随对象,该跟随对象可以是发出该特定姿势的用户本人,如图4所示,40表示拍摄设备采集到的图像,该控制装置检测到该图像中的特定的手部姿势,确定与该特定的手部姿势匹配的对象为跟随对象,也就是发出该特定的手部姿势的用户。Further, the control device can determine the following object in the image according to the specific posture. The following object can be the user who issued the specific posture. As shown in FIG. 4, 40 represents an image captured by the shooting device, and the control device detects To the specific hand posture in the image, it is determined that the object matching the specific hand posture is the follower object, that is, the user who issued the specific hand posture.
在其他实施例中,该跟随对象也有可能是发出该特定姿势的用户周围的其他对象。如图5所示,50表示拍摄设备采集到的图像,该控制装置检测到该图像中的特定的手部姿势,确定距离该手部姿势最近的对象为跟随对象,如图5所示,对象51是发出该手部姿势的用户,对象52是距离该手部姿势最近的对象,因此,对象52是该图像中的跟随对象。In other embodiments, the following object may also be other objects around the user making the specific gesture. As shown in Figure 5, 50 represents an image captured by a shooting device. The control device detects a specific hand gesture in the image and determines that the object closest to the hand gesture is the follower object. As shown in Figure 5, the object 51 is the user who issued the hand gesture, and the object 52 is the closest object to the hand gesture. Therefore, the object 52 is the following object in the image.
S204、控制所述手持云台对所述跟随对象进行跟随,并在跟随的过程中控制所述拍摄设备对所述跟随对象进行拍摄。S204. Control the handheld pan/tilt to follow the following object, and control the photographing device to photograph the following object during the following process.
此外,该控制装置还具有控制手持云台以及控制拍摄设备的功能。具 体的,当该控制装置确定出该图像中的跟随对象后,控制该手持云台对该跟随对象进行跟随,并在跟随的过程中控制该拍摄设备对该跟随对象进行拍摄。或者,在其他实施例中,该控制装置也可以先控制手持云台对该跟随对象进行跟随,再控制该拍摄设备对该跟随对象进行拍摄。In addition, the control device also has the functions of controlling the handheld PTZ and controlling the shooting equipment. Specifically, when the control device determines the following object in the image, it controls the handheld pan/tilt to follow the following object, and controls the photographing device to photograph the following object during the following process. Alternatively, in other embodiments, the control device may first control the handheld pan/tilt to follow the following object, and then control the photographing device to photograph the following object.
作为一种可能的方式,所述控制所述手持云台对所述跟随对象进行跟随,包括:控制所述手持云台对所述跟随对象进行跟随,使得所述跟随对象位于所述拍摄设备的拍摄画面中的预设位置。As a possible way, the controlling the handheld pan/tilt to follow the following object includes: controlling the handheld pan/tilt to follow the following object so that the following object is located on the camera The preset position in the shooting screen.
如图4所示,跟随对象并不在画面的中心位置,此时,控制装置可以控制该手持云台对该跟随对象进行跟随,使得该跟随对象位于该拍摄设备的拍摄画面的中心。可以理解的是,将跟随对象位于拍摄画面的中心只是一种跟随的效果,在其他实施例中,还可以控制该手持云台对该跟随对象进行跟随,使得该跟随对象位于拍摄画面的其他位置。As shown in FIG. 4, the following object is not in the center of the frame. At this time, the control device can control the handheld pan/tilt to follow the following object so that the following object is located in the center of the shooting frame of the shooting device. It is understandable that positioning the following object in the center of the shooting frame is only a follow-up effect. In other embodiments, the handheld pan/tilt can also be controlled to follow the following object so that the following object is located in other positions of the shooting frame. .
作为另一种可能的方式,所述控制所述手持云台对所述跟随对象进行跟随,包括:控制所述手持云台对所述跟随对象在一方向上进行预设旋转角度的跟随。As another possible manner, the controlling the handheld pan/tilt to follow the following object includes: controlling the handheld pan/tilt to follow the following object in a direction with a preset rotation angle.
如图3所示,该控制装置可以控制该手持云台的偏航角,使得该手持云台在偏航方向上旋转,并对跟随对象进行预设旋转角度的跟随,例如,对该跟随对象进行180度旋转跟随或360度旋转跟随。此时,跟随对象可以在拍摄画面的预设位置,也可以不在拍摄画面的预设位置。As shown in Figure 3, the control device can control the yaw angle of the handheld gimbal so that the handheld gimbal rotates in the yaw direction, and follows the following object at a preset rotation angle, for example, the following object Perform 180-degree rotating follow or 360-degree rotating follow. At this time, the following object may be at the preset position of the shooting screen or not at the preset position of the shooting screen.
作为一种可能的实现方式,所述在跟随的过程中控制所述拍摄设备对所述跟随对象进行拍摄,包括:在跟随的过程中控制所述拍摄设备以所述跟随对象的位置为中心对所述跟随对象进行拍摄。As a possible implementation, the controlling the photographing device to photograph the following object during the following process includes: controlling the photographing device to focus on the position of the following object during the following process. The following object is photographed.
在手持云台对跟随对象进行跟随的过程中,该控制装置控制该拍摄设备以该跟随对象的位置为中心对该跟随对象进行拍摄,例如,单次拍照、录像或全景拍摄。例如,在手持云台对跟随对象进行跟随的过程中,该控制装置控制该拍摄设备以该跟随对象的位置为全景中心完成180度或者3*3全景拍摄。During the process of the handheld pan/tilt following the following object, the control device controls the photographing device to take the following object with the position of the following object as the center, for example, single-shot photographing, video recording or panoramic shooting. For example, in the process of the handheld pan-tilt to follow the following object, the control device controls the shooting device to take the position of the following object as the panoramic center to complete 180-degree or 3*3 panoramic shooting.
在另一些实施例中,所述方法还包括:根据所述特定姿势,控制所述拍摄设备在预设时长后对所述跟随对象进行所述拍摄。In other embodiments, the method further includes: according to the specific posture, controlling the photographing device to photograph the following object after a preset period of time.
例如,用户发出的特定姿势,还可以控制拍摄设备对跟随对象进行延 迟拍摄。例如,当该控制装置检测到图像中的特定姿势时,在预设时长后,例如,3秒后对该跟随对象进行如上所述的拍摄,例如,单次拍照、录像或全景拍摄。For example, the user's specific gestures can also control the shooting device to delay shooting the following objects. For example, when the control device detects a specific posture in the image, after a preset period of time, for example, 3 seconds later, the following object is photographed as described above, for example, a single photograph, a video or a panoramic photograph.
本实施例通过检测手持云台上的拍摄设备采集到的图像中的特定姿势,并根据该特定姿势确定该图像中的跟随对象,进一步控制手持云台对该跟随对象进行跟随,并在跟随的过程中控制该拍摄设备对该跟随对象进行拍摄,使得用户相距手持云台有一定距离时,用户可通过特定姿势控制手持云台进行跟随并拍摄,以便拍摄出构图较好的照片或视频,提高了用户体验。In this embodiment, by detecting a specific posture in an image collected by a photographing device on a handheld pan/tilt, and determining a follower object in the image according to the specific posture, the handheld gimbal is further controlled to follow the follower object, and is following During the process, the camera is controlled to shoot the following object, so that when the user is at a certain distance from the handheld pan/tilt, the user can control the handheld pan/tilt through a specific posture to follow and shoot, so as to take a better composition photo or video, and improve Improve the user experience.
本申请实施例提供一种手持云台的控制方法。在上述实施例的基础上,作为一种可能的方式,所述根据所述特定姿势确定所述图像中的跟随对象,包括:检测所述图像中的至少一个特定身体区域;确定所述至少一个特定身体区域中与发出所述特定姿势的目标对象匹配的特定身体区域中的对象为跟随对象。The embodiment of the application provides a method for controlling a handheld PTZ. On the basis of the foregoing embodiment, as a possible way, the determining a follower object in the image according to the specific posture includes: detecting at least one specific body region in the image; determining the at least one An object in the specific body area that matches the target object issuing the specific posture in the specific body area is the follower object.
如图6所示,50表示拍摄设备采集到的图像,当手持云台的控制装置获取到该图像时,检测该图像中的至少一个特定身体区域,该特定身体区域具体可以是头肩区域,如图6所示的头肩区域61和头肩区域62。其中,头肩区域61中包括对象51,不包括特定姿势,头肩区域62中包括对象52和特定姿势,进一步,检测该特定姿势与对象51和对象52中的哪个对象匹配,例如,检测结果是该特定姿势与对象51匹配,则对象51为发出该特定姿势的目标对象,与该目标对象匹配的头肩区域为头肩区域61,因此可以将头肩区域61中的对象作为跟随对象,也就是说,发出该特定姿势的目标对象为跟随对象。As shown in Fig. 6, 50 represents an image collected by a photographing device. When the control device of the handheld pan/tilt head acquires the image, at least one specific body area in the image is detected. The specific body area may specifically be a head and shoulder area. The head and shoulders area 61 and the head and shoulders area 62 are shown in FIG. 6. Wherein, the head and shoulders area 61 includes the object 51 but does not include the specific posture, and the head and shoulders area 62 includes the object 52 and the specific posture. Further, it is detected which of the object 51 and the object 52 the specific posture matches, for example, the detection result If the specific posture matches the object 51, the object 51 is the target object that issued the specific posture, and the head and shoulders area matching the target object is the head and shoulders area 61. Therefore, the object in the head and shoulders area 61 can be used as the follow object. In other words, the target object issuing the specific gesture is the following object.
作为另一种可能的方式,所述根据所述特定姿势确定所述图像中的跟随对象,包括:检测所述图像中的至少一个特定身体区域;确定所述至少一个特定身体区域中与发出所述特定姿势的目标对象的距离满足第一预设条件的特定身体区域中的对象为跟随对象。As another possible manner, the determining the follower object in the image according to the specific posture includes: detecting at least one specific body region in the image; The object in the specific body region where the distance of the target object in the specific posture meets the first preset condition is the follow object.
如图6所示,50表示拍摄设备采集到的图像,当手持云台的控制装置获取到该图像时,检测该图像中的至少一个特定身体区域,该特定身体区 域具体可以是头肩区域,如图6所示的头肩区域61和头肩区域62。其中,头肩区域61中包括对象51,不包括特定姿势,头肩区域62中包括对象52和特定姿势,进一步,检测该特定姿势与对象51和对象52中的哪个对象匹配,例如,检测结果是该特定姿势与对象51匹配,则对象51为发出该特定姿势的目标对象。进一步,确定该图像中距离该目标对象满足第一预设条件的头肩区域,该第一预设条件可以是距离该目标对象最近的头肩区域,如图6所示,头肩区域62是距离该目标对象最近的头肩区域,此时,可以将头肩区域62中的对象52作为跟随对象。As shown in Fig. 6, 50 represents an image collected by a photographing device. When the control device of the handheld pan/tilt head acquires the image, at least one specific body area in the image is detected. The specific body area may specifically be a head and shoulder area. The head and shoulders area 61 and the head and shoulders area 62 are shown in FIG. 6. Wherein, the head and shoulders area 61 includes the object 51 but does not include the specific posture, and the head and shoulders area 62 includes the object 52 and the specific posture. Further, it is detected which of the object 51 and the object 52 the specific posture matches, for example, the detection result If the specific posture matches the object 51, then the object 51 is the target object issuing the specific posture. Further, it is determined in the image that the head and shoulders area meeting the first preset condition from the target object is determined. The first preset condition may be the head and shoulders area closest to the target object. As shown in FIG. 6, the head and shoulders area 62 is The head and shoulders area closest to the target object, at this time, the object 52 in the head and shoulders area 62 can be used as the follow object.
可以理解的是,本实施例中的特定身体区域并不限于头肩区域,例如,还可以是上半身区域、手部区域、整个躯体区域等。It can be understood that the specific body area in this embodiment is not limited to the head and shoulders area. For example, it may also be the upper body area, the hand area, the entire body area, and the like.
本实施例通过检测所述图像中的至少一个特定身体区域,确定所述至少一个特定身体区域中与发出所述特定姿势的目标对象匹配的特定身体区域中的对象为跟随对象,或者确定所述至少一个特定身体区域中与发出所述特定姿势的目标对象的距离满足第一预设条件的特定身体区域中的对象为跟随对象,提高了检测跟随对象的灵活性。In this embodiment, by detecting at least one specific body area in the image, it is determined that the object in the specific body area matching the target object issuing the specific posture in the at least one specific body area is a follower object, or the The object in the specific body area whose distance from the target object issuing the specific posture in at least one specific body area satisfies the first preset condition is the follower object, which improves the flexibility of detecting the follower object.
本申请实施例提供一种手持云台的控制方法。图7为本申请另一实施例提供的手持云台的控制方法的流程图。在上述实施例的基础上,所述方法还包括:确定所述图像中发出所述特定姿势的目标对象;其中,所述目标对象发出的特定姿势用于指示所述手持云台对所述跟随对象执行所述跟随的跟随控制指令,和/或,用于指示所述拍摄设备对所述跟随对象执行所述拍摄的拍摄控制指令。The embodiment of the application provides a method for controlling a handheld PTZ. FIG. 7 is a flowchart of a method for controlling a handheld pan/tilt head provided by another embodiment of the application. On the basis of the above-mentioned embodiment, the method further includes: determining a target object that emits the specific posture in the image; wherein the specific posture issued by the target object is used to instruct the handheld platform to follow the The object executes the following control instruction for following, and/or is used to instruct the shooting device to execute the shooting control instruction for the following object.
如图6所示,当控制装置获取到拍摄设备采集的图像50时,该控制装置还需要确定出该图像50中发出特定姿势的目标对象。如图6所示,对象51是发出特定姿势的目标对象,该目标对象发出的特定姿势可以控制手持云台对跟随对象执行如上所述的几种跟随所对应的跟随控制指令,和/或该特定姿势还可以控制该拍摄设备对跟随对象执行如上所述的几种拍摄所对应的拍摄控制指令。通过上述实施例可知,发出特定姿势的目标对象可能是跟随对象,也可能不是跟随对象。As shown in FIG. 6, when the control device acquires the image 50 collected by the shooting device, the control device also needs to determine the target object in the image 50 that emits a specific posture. As shown in FIG. 6, the object 51 is a target object that issues a specific posture, and the specific posture issued by the target object can control the handheld pan-tilt to execute the following control instructions corresponding to the following objects, and/or the The specific posture can also control the shooting device to execute the shooting control instructions corresponding to the above-mentioned shooting on the following object. It can be seen from the above embodiment that the target object issuing the specific posture may be a follower object, or it may not be a follower object.
具体的,所述确定所述图像中发出所述特定姿势的目标对象,包括如 图7所示的如下步骤:Specifically, the determining the target object in the image that emits the specific posture includes the following steps as shown in FIG. 7:
S701、检测所述图像中的至少一个特定身体区域。S701. Detect at least one specific body area in the image.
如图8所示,当该控制装置获取到拍摄设备采集的图像50时,检测该图像50中的至少一个特定身体区域,例如,头肩区域61和头肩区域62。As shown in FIG. 8, when the control device acquires the image 50 collected by the photographing device, it detects at least one specific body area in the image 50, for example, the head and shoulders area 61 and the head and shoulders area 62.
S702、确定所述至少一个特定身体区域中的每个所述特定身体区域在所述图像中的扩大区域。S702. Determine an enlarged area of each of the at least one specific body area in the image.
进一步,确定头肩区域61和头肩区域62分别在该图像中的扩大区域,例如,在头肩区域的基础上乘以固定比例系数得到该头肩区域的扩大区域,如图8所示,81表示头肩区域61在该图像中的扩大区域,82表示头肩区域62在该图像中的扩大区域。在本实施例中,之所以需要确定头肩区域在该图像中的扩大区域,是为了确保该扩大区域中包括手部。Further, determine the enlarged areas of the head and shoulders area 61 and the head and shoulders area 62 in the image, for example, multiply the head and shoulders area by a fixed scale factor to obtain the enlarged area of the head and shoulders area, as shown in Figure 8, 81 It represents the enlarged area of the head and shoulders area 61 in the image, and 82 represents the enlarged area of the head and shoulders area 62 in the image. In this embodiment, the reason why it is necessary to determine the enlarged area of the head and shoulders area in the image is to ensure that the enlarged area includes the hand.
S703、根据每个所述特定身体区域在所述图像中的扩大区域,确定发出所述特定姿势的目标对象。S703. Determine a target object issuing the specific posture according to the enlarged area of each specific body region in the image.
例如,根据扩大区域81和扩大区域82可确定出该图像中发出特定姿势的目标对象。For example, according to the enlarged area 81 and the enlarged area 82, the target object that emits a specific posture in the image can be determined.
可选的,所述根据每个所述特定身体区域在所述图像中的扩大区域,确定发出所述特定姿势的目标对象,包括:检测每个所述特定身体区域在所述图像中的扩大区域中是否存在所述特定姿势;若所述特定身体区域在所述图像中的扩大区域中存在所述特定姿势,则确定所述特定身体区域中的对象为所述目标对象。Optionally, the determining the target object issuing the specific posture according to the enlarged area of each of the specific body regions in the image includes: detecting the enlargement of each of the specific body regions in the image Whether the specific posture exists in the area; if the specific posture exists in the enlarged area of the specific body area in the image, it is determined that the object in the specific body area is the target object.
例如,分别检测扩大区域81和扩大区域82中是否包括特定姿势,若扩大区域81和扩大区域82中的某一个包括特定姿势,例如,扩大区域81中包括特定姿势,则确定头肩区域61中的对象51为发出该特定姿势的目标对象。For example, it is detected whether a specific posture is included in the enlarged area 81 and the enlarged area 82 respectively. If one of the enlarged area 81 and the enlarged area 82 includes a specific posture, for example, the enlarged area 81 includes a specific posture, it is determined that the head and shoulders area 61 is The object 51 of is the target object issuing the specific gesture.
在一种可能的情况中,所述特定姿势包括特定的单手手势,所述特定的单手手势的发出位置是任意的;相应的,所述若所述特定身体区域在所述图像中的扩大区域中存在所述特定姿势,则确定所述特定身体区域中的对象为所述目标对象,包括:若所述特定身体区域在所述图像中的扩大区域中存在所述特定的单手手势,且所述特定的单手手势与所述特定身体区域中的身体匹配,则确定所述特定身体区域中的对象为所述目标对象。In a possible situation, the specific posture includes a specific one-handed gesture, and the position of the specific one-handed gesture is arbitrary; correspondingly, if the specific body area is in the image If the specific posture exists in the enlarged area, determining that the object in the specific body area is the target object includes: if the specific body area has the specific one-hand gesture in the enlarged area in the image , And the specific one-hand gesture matches the body in the specific body area, then it is determined that the object in the specific body area is the target object.
如图8所示,该特定姿势包括特定的单手手势83,该特定的单手手势83可以是任意的单手手势,例如,不限于手掌、剪刀手、单手比心、握拳等。此外,该单手手势的位置可以是任意的,如此,在确定出扩大区域81中包括特定的单手手势83的基础上,还需要进一步确定特定的单手手势83是否与该头肩区域61中的身体匹配,若特定的单手手势83与该头肩区域61中的身体匹配,则确定头肩区域61中的对象51为发出该单手手势的目标对象。可选的,所述目标对象为所述跟随对象。As shown in FIG. 8, the specific posture includes a specific one-hand gesture 83, and the specific one-hand gesture 83 may be any one-hand gesture, for example, not limited to palm, scissor hand, one-handed comparison, and fist. In addition, the position of the one-handed gesture can be arbitrary. Therefore, after determining that the enlarged area 81 includes the specific one-handed gesture 83, it is necessary to further determine whether the specific one-handed gesture 83 corresponds to the head and shoulders area 61. If the specific one-hand gesture 83 matches the body in the head-and-shoulders area 61, the object 51 in the head-and-shoulders area 61 is determined to be the target object of the one-hand gesture. Optionally, the target object is the follow object.
另外,若所述特定身体区域在所述图像中的扩大区域中存在所述特定的单手手势,且所述特定的单手手势与所述特定身体区域中的身体不匹配,则确定所述特定身体区域中的对象为所述跟随对象,以及确定与所述特定的单手手势匹配的身体对应的特定身体区域中的对象为所述目标对象。In addition, if the specific one-handed gesture exists in the enlarged area of the image in the specific body area, and the specific one-handed gesture does not match the body in the specific body area, it is determined that the The object in the specific body area is the follower object, and the object in the specific body area corresponding to the body matching the specific one-hand gesture is determined to be the target object.
如图9所示,若扩大区域82中包括特定的单手手势,且该特定的单手手势与头肩区域62中的身体不匹配,则进一步确定与该特定的单手手势匹配的身体为头肩区域61中的身体,因此,可以确定头肩区域62中的对象52为跟随对象,头肩区域61中的对象51为发出该特定的单手手势的目标对象。As shown in FIG. 9, if the enlarged area 82 includes a specific one-handed gesture, and the specific one-handed gesture does not match the body in the head and shoulders area 62, it is further determined that the body that matches the specific one-handed gesture is The body in the head and shoulders area 61, therefore, it can be determined that the object 52 in the head and shoulders area 62 is the follower object, and the object 51 in the head and shoulders area 61 is the target object for issuing the specific one-handed gesture.
此外,所述方法还包括:若多个所述特定身体区域在所述图像中的扩大区域中存在所述特定姿势,则确定多个所述特定身体区域中满足第二预设条件的特定身体区域中的对象为所述目标对象。In addition, the method further includes: if a plurality of the specific body regions have the specific posture in the enlarged area in the image, determining a specific body that satisfies a second preset condition among the plurality of specific body regions The object in the area is the target object.
如图10所示,扩大区域81和扩大区域82中分别包括特定的姿势,例如,特定的单手手势,则需要从头肩区域61和头肩区域62中确定出一个满足第二预设条件的头肩区域,并将该满足第二预设条件的头肩区域中的对象作为目标对象。As shown in FIG. 10, the enlarged area 81 and the enlarged area 82 respectively include specific postures. For example, for a specific one-hand gesture, it is necessary to determine one of the head and shoulders area 61 and the head and shoulders area 62 that meets the second preset condition. The head and shoulders area, and the object in the head and shoulders area meeting the second preset condition is taken as the target object.
可选的,所述第二预设条件包括与所述图像的中心的距离小于第一预设阈值和/或在所述图像中的画面占比大于第二预设阈值;其中,所述画面占比是根据所述特定身体区域或所述特定身体区域在所述图像中的扩大区域的大小确定的。Optionally, the second preset condition includes that the distance from the center of the image is less than a first preset threshold and/or the proportion of frames in the image is greater than a second preset threshold; wherein, the frame The proportion is determined according to the size of the specific body area or the enlarged area of the specific body area in the image.
例如,分别计算头肩区域61与图像的中心的距离,以及头肩区域62与图像的中心的距离,其中,头肩区域61与图像的中心的距离具体可以是头肩区域61的中心与图像的中心的距离,头肩区域62与图像的中心的 距离具体可以是头肩区域62的中心与图像的中心的距离。和/或,根据头肩区域61或扩大区域81的大小确定头肩区域61在图像中的画面占比,根据头肩区域62或扩大区域82的大小确定头肩区域62在图像中的画面占比。例如,从头肩区域61和头肩区域62中确定出与图像的中心的距离小于第一预设阈值和/或在图像中的画面占比大于第二预设阈值的头肩区域中的对象作为目标对象。例如,头肩区域61与图像的中心的距离小于第一预设阈值,且头肩区域61在图像中的画面占比大于第二预设阈值,则确定头肩区域61中的对象为目标对象。For example, the distance between the head and shoulders area 61 and the center of the image and the distance between the head and shoulders area 62 and the center of the image are calculated separately. The distance between the head and shoulders area 61 and the center of the image may specifically be the center of the head and shoulders area 61 and the image. The distance between the center of the head and shoulders area 62 and the center of the image may specifically be the distance between the center of the head and shoulders area 62 and the center of the image. And/or, determine the proportion of the head and shoulders area 61 in the image according to the size of the head and shoulders area 61 or the enlarged area 81, and determine the proportion of the head and shoulders area 62 in the image according to the size of the head and shoulders area 62 or the enlarged area 82 ratio. For example, it is determined from the head and shoulders area 61 and the head and shoulders area 62 that the object in the head and shoulders area whose distance from the center of the image is less than the first preset threshold and/or the frame ratio in the image is greater than the second preset threshold is taken as target. For example, if the distance between the head and shoulders area 61 and the center of the image is less than the first preset threshold, and the proportion of the head and shoulders area 61 in the image is greater than the second preset threshold, it is determined that the object in the head and shoulders area 61 is the target object .
本实施例通过检测图像中的至少一个特定身体区域,确定该至少一个特定身体区域中的每个该特定身体区域在该图像中的扩大区域,确保扩大区域中包括手部,进一步,根据每个该特定身体区域在该图像中的扩大区域,确定发出该特定姿势该的目标对象,提高了对特定姿势的检测精度。另外,当该特定姿势包括特定的单手手势,且该特定的单手手势的发出位置是任意的时,在该特定身体区域对应的扩大区域中存在该特定的单手手势的基础上,进一步对特定的单手手势与该特定身体区域中的身体进行匹配,以确保该特定的单手手势是该特定身体区域中的对象发出的,进一步提高了特定的单手手势的检测精度。In this embodiment, by detecting at least one specific body area in the image, the enlarged area of each specific body area in the at least one specific body area is determined in the image to ensure that the enlarged area includes the hand. Further, according to each The enlarged area of the specific body area in the image determines the target object that issued the specific posture, which improves the detection accuracy of the specific posture. In addition, when the specific posture includes a specific one-hand gesture, and the position of the specific one-hand gesture is arbitrary, based on the presence of the specific one-hand gesture in the enlarged area corresponding to the specific body area, further Matching the specific one-hand gesture with the body in the specific body area ensures that the specific one-hand gesture is made by an object in the specific body area, which further improves the detection accuracy of the specific one-hand gesture.
本申请实施例提供一种手持云台的控制方法。图11为本申请另一实施例提供的手持云台的控制方法的流程图。如图11所示,在上述实施例的基础上,所述检测每个所述特定身体区域在所述图像中的扩大区域中是否存在所述特定姿势,包括:The embodiment of the application provides a method for controlling a handheld PTZ. FIG. 11 is a flowchart of a method for controlling a handheld pan/tilt head according to another embodiment of the application. As shown in FIG. 11, on the basis of the foregoing embodiment, the detecting whether each of the specific body regions has the specific posture in the enlarged area in the image includes:
S1101、将每个所述特定身体区域在所述图像中的扩大区域的大小调整为预设大小,得到每个所述特定身体区域对应的所述预设大小的扩大区域,所述预设大小满足检测模型的输入图像的大小。S1101: Adjust the size of the enlarged area of each specific body area in the image to a preset size to obtain the enlarged area of the preset size corresponding to each specific body area, and the preset size The size of the input image that meets the detection model.
如图12所示,该控制装置确定出头肩区域61在该图像中的扩大区域81和头肩区域62在该图像中的扩大区域82之后,将扩大区域81和扩大区域82分别调整为预设大小,得到预设大小的扩大区域81和预设大小的扩大区域82,该预设大小具体可以是检测模型的输入图像的大小。也就是说,检测模型的输入图像的大小可以是固定的,该检测模型可用于检测特 定姿势,例如,特定的手部姿势和/或特定的身体姿势。其中,检测模块可以为诸如神经网络模型。As shown in FIG. 12, the control device determines the enlarged area 81 of the head and shoulder area 61 in the image and the enlarged area 82 of the head and shoulder area 62 in the image, and adjusts the enlarged area 81 and the enlarged area 82 to preset Size to obtain an enlarged area 81 of a preset size and an enlarged area 82 of a preset size. The preset size may specifically be the size of the input image of the detection model. That is, the size of the input image of the detection model can be fixed, and the detection model can be used to detect a specific posture, for example, a specific hand posture and/or a specific body posture. Among them, the detection module can be a neural network model, for example.
可选的,所述将每个所述特定身体区域在所述图像中的扩大区域的大小调整为预设大小,包括:在所述图像中对每个所述特定身体区域在所述图像中的扩大区域进行裁剪处理,得到每个所述扩大区域对应的裁剪区域;将每个所述扩大区域对应的裁剪区域的大小调整为所述预设大小。Optionally, the adjusting the size of the enlarged area of each specific body area in the image to a preset size includes: setting each specific body area in the image in the image Performing cropping processing on the expanded area of each of the expanded areas to obtain a cropped area corresponding to each of the expanded areas; adjusting the size of the cropped area corresponding to each of the expanded areas to the preset size.
以扩大区域81为例,如图12所示,将扩大区域81在该图像中进行裁剪处理,得到该扩大区域81对应的裁剪区域,进一步,将该扩大区域81对应的裁剪区域的大小调整为预设大小,91表示头肩区域61对应的预设大小的扩大区域。同理,将扩大区域82对应的裁剪区域的大小调整为预设大小,92表示头肩区域62对应的预设大小的扩大区域。Taking the expanded area 81 as an example, as shown in FIG. 12, the expanded area 81 is cropped in the image to obtain the cropped area corresponding to the expanded area 81, and further, the size of the cropped area corresponding to the expanded area 81 is adjusted to The preset size, 91 represents the enlarged area of the preset size corresponding to the head and shoulders area 61. In the same way, the size of the cropping area corresponding to the enlarged area 82 is adjusted to a preset size, and 92 represents the enlarged area of the preset size corresponding to the head and shoulders area 62.
可选的,所述扩大区域对应的裁剪区域的大小与所述扩大区域的大小相同。如图12所示,由于该扩大区域81对应的裁剪区域在该图像内,因此,该扩大区域81对应的裁剪区域的大小与该扩大区域81的大小相同。Optionally, the size of the cropping area corresponding to the enlarged area is the same as the size of the enlarged area. As shown in FIG. 12, since the cropped area corresponding to the enlarged area 81 is in the image, the size of the cropped area corresponding to the enlarged area 81 is the same as the size of the enlarged area 81.
可选的,所述扩大区域对应的裁剪区域中的部分区域在所述图像之外。如图12所示,由于头肩区域62在图像的边缘附近,在确定该头肩区域62在图像中的扩大区域时,该头肩区域62对应的扩大区域82可能会超出该图像的范围,也就是说,需要在头肩区域62的上边和右边填充一部分像素以构成该头肩区域62对应的扩大区域82。其中,填充的部分像素如图10所示的阴影部分。因此,该扩大区域82对应的裁剪区域中的部分区域,例如填充的部分像素在该图像之外。Optionally, a part of the cropped area corresponding to the enlarged area is outside the image. As shown in FIG. 12, since the head and shoulders area 62 is near the edge of the image, when determining the expanded area of the head and shoulders area 62 in the image, the expanded area 82 corresponding to the head and shoulders area 62 may exceed the range of the image. In other words, it is necessary to fill a part of pixels on the upper and right sides of the head and shoulders area 62 to form the enlarged area 82 corresponding to the head and shoulders area 62. Among them, the filled part of the pixels is shown as the shaded part in Figure 10. Therefore, a part of the cropped area corresponding to the enlarged area 82, for example, a part of the filled pixels is outside the image.
S1102、将每个所述特定身体区域对应的所述预设大小的扩大区域输入到所述检测模型中,通过所述检测模型检测每个所述特定身体区域对应的所述预设大小的扩大区域中是否存在所述特定姿势。S1102: Input the expansion area of the preset size corresponding to each specific body area into the detection model, and detect the expansion of the preset size corresponding to each specific body area through the detection model Whether the specific posture exists in the area.
例如,将头肩区域61对应的预设大小的扩大区域91和头肩区域62对应的预设大小的扩大区域92分别输入到检测模型中,通过该检测模型检测头肩区域61对应的预设大小的扩大区域91中是否存在特定姿势,以及检测头肩区域62对应的预设大小的扩大区域92中是否存在特定姿势。当该特定姿势为特定的手部姿势时,该检测模型具体可以是手势检测模型。其中,特定的手部姿势可以是特定的单手姿势,也可以是特定的双手姿势, 例如,特定的双手手势可以是双手比框(如在胸前比出四边形的框)的手势。当该特定姿势为特定的身体姿势时,该检测模型具体可以是身体姿势检测模型,其中,特定的身体姿势,可以为例如双手在脸前比框(如四边形框)时的前手臂姿势。For example, the expanded area 91 of the preset size corresponding to the head and shoulders area 61 and the expanded area 92 of the preset size corresponding to the head and shoulders area 62 are respectively input into the detection model, and the preset corresponding to the head and shoulders area 61 is detected by the detection model. Whether there is a specific posture in the enlarged area 91 of a large size, and whether there is a specific posture in the enlarged area 92 of a preset size corresponding to the head and shoulders area 62 is detected. When the specific posture is a specific hand posture, the detection model may specifically be a gesture detection model. The specific hand posture may be a specific one-hand posture or a specific two-hand posture. For example, the specific two-hand gesture may be a two-hands frame (for example, a quadrilateral frame on the chest). When the specific posture is a specific body posture, the detection model may specifically be a body posture detection model, where the specific body posture may be, for example, a forearm posture when the hands are in front of the face compared to a frame (such as a quadrilateral frame).
如图13所示,从拍摄设备获取图像,并图像进行头肩检测,得到该图像中的至少一个头肩区域,确定每个头肩区域在该图像中的扩大区域,进一步,对每个扩大区域进行裁剪处理,调整裁剪区域的大小为预设大小,并将预设大小的扩大区域输入到检测模型。As shown in Figure 13, an image is acquired from a shooting device, and the image is subjected to head-and-shoulders detection to obtain at least one head-and-shoulders area in the image, and determine the enlarged area of each head-and-shoulder area in the image. Further, for each enlarged area Perform cropping processing, adjust the size of the cropped area to a preset size, and input the expanded area of the preset size into the detection model.
本实施例通过将每个所述特定身体区域在所述图像中的扩大区域的大小调整为预设大小,得到每个所述特定身体区域对应的所述预设大小的扩大区域,将每个所述特定身体区域对应的所述预设大小的扩大区域输入到所述检测模型中,通过所述检测模型检测每个所述特定身体区域对应的所述预设大小的扩大区域中是否存在所述特定姿势,提高了对特定姿势的检测精度。In this embodiment, by adjusting the size of the enlarged area of each specific body area in the image to a preset size, the enlarged area of the preset size corresponding to each specific body area is obtained, and each The enlarged area of the preset size corresponding to the specific body area is input into the detection model, and the detection model is used to detect whether there is any expansion area of the preset size corresponding to each specific body area. The specific posture is described to improve the detection accuracy of the specific posture.
本申请实施例提供一种手持云台的控制方法。图14为本申请另一实施例提供的手持云台的控制方法的流程图。如图14所示,在上述实施例的基础上,所述特定姿势包括特定的手部姿势,所述特定身体区域包括头肩区域,如图15所示,图像50中包括特定的手部姿势,该手部姿势在两肩之间。所述确定所述至少一个特定身体区域中的每个所述特定身体区域在所述图像中的扩大区域,包括:The embodiment of the application provides a method for controlling a handheld PTZ. FIG. 14 is a flowchart of a method for controlling a handheld PTZ according to another embodiment of the application. As shown in FIG. 14, on the basis of the above embodiment, the specific posture includes a specific hand posture, and the specific body area includes a head and shoulder area. As shown in FIG. 15, the image 50 includes a specific hand posture. , The hand position is between the shoulders. The determining the enlarged area of each of the at least one specific body area in the image includes:
S1401、根据所述至少一个特定身体区域中的每个所述特定身体区域中的肩部宽度,确定每个所述特定身体区域在所述图像中的扩大区域的宽度。S1401, according to the width of the shoulder in each of the at least one specific body area, determine the width of the enlarged area of each specific body area in the image.
如图15所示,图像50中包括一个头肩区域61,在确定该头肩区域61在该图像中的扩大区域时,可先确定该头肩区域61中的肩部宽度,例如,肩部宽度记为w,进一步,根据该肩部宽度w,确定该头肩区域61在该图像中的扩大区域的宽度。As shown in Figure 15, the image 50 includes a head and shoulders area 61. When determining the enlarged area of the head and shoulders area 61 in the image, the shoulder width in the head and shoulders area 61 can be determined first, for example, the shoulders The width is denoted as w, and further, according to the shoulder width w, the width of the enlarged area of the head and shoulder area 61 in the image is determined.
可选的,所述根据所述至少一个特定身体区域中的每个所述特定身体区域中的肩部宽度,确定每个所述特定身体区域在所述图像中的扩大区域 的宽度,包括:根据所述至少一个特定身体区域中的每个所述特定身体区域中的肩部宽度以及所述肩部宽度的扩大倍数,确定每个所述特定身体区域在所述图像中的扩大区域的宽度。Optionally, the determining the width of the enlarged area of each specific body region in the image according to the shoulder width in each of the at least one specific body region includes: Determine the width of the enlarged area of each specific body area in the image according to the width of the shoulder in each specific body area in the at least one specific body area and the expansion multiple of the width of the shoulder .
例如,肩部宽度w的扩大倍数为3倍,因此,根据肩部宽度w和肩部宽度w的扩大倍数,确定该头肩区域61在该图像中的扩大区域的宽度,该扩大区域的宽度记为W。例如,扩大区域的宽度可以是头肩区域61的宽度的3倍。For example, the expansion factor of the shoulder width w is 3 times. Therefore, according to the expansion factor of the shoulder width w and the shoulder width w, the width of the enlarged area of the head and shoulder area 61 in the image is determined, and the width of the enlarged area Denoted as W. For example, the width of the enlarged area may be 3 times the width of the head and shoulders area 61.
S1402、根据每个所述特定身体区域在所述图像中的扩大区域的宽度,确定每个所述特定身体区域在所述图像中的扩大区域的高度。S1402, according to the width of the enlarged area of each specific body area in the image, determine the height of the enlarged area of each specific body area in the image.
进一步,根据该头肩区域61在该图像中的扩大区域的宽度W,确定该头肩区域61在该图像中的扩大区域的高度H。Further, according to the width W of the enlarged area of the head and shoulders area 61 in the image, the height H of the enlarged area of the head and shoulders area 61 in the image is determined.
所述根据每个所述特定身体区域在所述图像中的扩大区域的宽度,确定每个所述特定身体区域在所述图像中的扩大区域的高度,包括:根据每个所述特定身体区域在所述图像中的扩大区域的宽度、以及每个所述特定身体区域在所述图像中的扩大区域的宽度与高度之间的比值,确定每个所述特定身体区域在所述图像中的扩大区域的高度。The determining the height of the expanded area of each specific body area in the image according to the width of the expanded area of each specific body area in the image includes: according to each specific body area The width of the enlarged area in the image and the ratio between the width and the height of the enlarged area of each specific body area in the image determine how much each specific body area is in the image Increase the height of the area.
例如,根据头肩区域61在该图像中的扩大区域的宽度W、以及头肩区域61在该图像中的扩大区域的宽度W与高度H之间的比值,确定头肩区域61在该图像中的扩大区域的高度H。For example, based on the ratio between the width W of the enlarged area of the head and shoulders area 61 in the image and the ratio between the width W and the height H of the enlarged area of the head and shoulders area 61 in the image, it is determined that the head and shoulders area 61 is in the image The height of the enlarged area H.
S1403、根据所述宽度、所述高度确定每个所述特定身体区域在所述图像中的扩大区域。S1403. Determine an enlarged area of each specific body area in the image according to the width and the height.
根据宽度W和高度H,确定该头肩区域61在该图像中的扩大区域,如图15所示的扩大区域81。此外,在其他实施例中,在确定头肩区域61在该图像中的扩大区域的过程中,还可以保持头肩中心点在头肩区域61和扩大区域中的位置不变。Based on the width W and the height H, the enlarged area of the head and shoulders area 61 in the image is determined, such as the enlarged area 81 shown in FIG. 15. In addition, in other embodiments, in the process of determining the enlarged area of the head and shoulders area 61 in the image, the position of the head and shoulders center point in the head and shoulders area 61 and the enlarged area may also be kept unchanged.
本实施例根据该至少一个特定身体区域中的每个该特定身体区域中的肩部宽度,确定每个该特定身体区域在该图像中的扩大区域的宽度,根据每个该特定身体区域在该图像中的扩大区域的宽度,确定每个该特定身体区域在该图像中的扩大区域的高度,根据该宽度、该高度确定每个该特定身体区域在该图像中的扩大区域,实现了确定扩大区域的一种方式。In this embodiment, the width of the enlarged area of each specific body area in the image is determined according to the width of the shoulder in each specific body area in the at least one specific body area, and the width of each specific body area in the image is determined according to the Determine the width of the enlarged area in the image, determine the height of the enlarged area of each specific body area in the image, and determine the enlarged area of each specific body area in the image according to the width and the height, and realize the definite expansion A way of region.
本申请实施例提供一种手持云台的控制方法。图16为本申请另一实施例提供的手持云台的控制方法的流程图。如图16所示,在上述实施例的基础上,所述特定姿势包括特定的身体姿势,所述特定身体区域包括头肩区域,如图17所示,图像50中包括特定的身体姿势。The embodiment of the application provides a method for controlling a handheld PTZ. FIG. 16 is a flowchart of a method for controlling a handheld PTZ according to another embodiment of the application. As shown in FIG. 16, based on the foregoing embodiment, the specific posture includes a specific body posture, and the specific body area includes a head and shoulder area. As shown in FIG. 17, the image 50 includes a specific body posture.
所述确定所述至少一个特定身体区域中的每个所述特定身体区域在所述图像中的扩大区域,包括:The determining the enlarged area of each of the at least one specific body area in the image includes:
S1601、根据所述至少一个特定身体区域中的每个所述特定身体区域中的头肩高度,确定每个所述特定身体区域在所述图像中的扩大区域的高度。S1601, according to the height of the head and shoulders in each of the at least one specific body area, determine the height of the enlarged area of each specific body area in the image.
如图17所示,图像50中包括一个头肩区域61,在确定该头肩区域61在该图像中的扩大区域时,可先确定该头肩区域61中的头肩高度,例如,头肩高度记为h。进一步,根据该头肩高度h,确定该头肩区域61在该图像中的扩大区域的高度。As shown in FIG. 17, the image 50 includes a head and shoulders area 61. When determining the enlarged area of the head and shoulders area 61 in the image, the head and shoulders height in the head and shoulders area 61 can be determined first, for example, head and shoulders. The height is recorded as h. Further, according to the head and shoulder height h, the height of the enlarged area of the head and shoulder area 61 in the image is determined.
可选的,所述根据所述至少一个特定身体区域中的每个所述特定身体区域中的头肩高度,确定每个所述特定身体区域在所述图像中的扩大区域的高度,包括:根据所述至少一个特定身体区域中的每个所述特定身体区域中的头肩高度以及所述头肩高度的扩大倍数,确定每个所述特定身体区域在所述图像中的扩大区域的高度。Optionally, the determining the height of the enlarged area of each specific body region in the image according to the height of the head and shoulders in each of the at least one specific body region includes: Determine the height of the enlarged area of each specific body area in the image according to the height of the head and shoulders in each specific body area in the at least one specific body area and the magnification factor of the head and shoulders height .
例如,头肩高度h的扩大倍数为4倍,因此,根据头肩高度h和头肩高度h的扩大倍数,确定头肩区域61在该图像中的扩大区域的高度,该扩大区域的高度记为H。例如,该扩大区域的高度可以是头肩区域61的高度的4倍。For example, the magnification factor of the head and shoulder height h is 4 times. Therefore, according to the magnification factor of the head and shoulder height h and the head and shoulder height h, the height of the enlarged area of the head and shoulder area 61 in the image is determined, and the height of the enlarged area is recorded For H. For example, the height of the enlarged area may be 4 times the height of the head and shoulders area 61.
S1602、根据每个所述特定身体区域在所述图像中的扩大区域的高度,确定每个所述特定身体区域在所述图像中的扩大区域的宽度。S1602, according to the height of the enlarged area of each specific body area in the image, determine the width of the enlarged area of each specific body area in the image.
进一步,根据该头肩区域61在该图像中的扩大区域的高度H,确定该头肩区域61在该图像中的扩大区域的宽度W。Further, according to the height H of the enlarged area of the head and shoulders area 61 in the image, the width W of the enlarged area of the head and shoulders area 61 in the image is determined.
可选的,所述根据每个所述特定身体区域在所述图像中的扩大区域的高度,确定每个所述特定身体区域在所述图像中的扩大区域的宽度,包括:根据每个所述特定身体区域在所述图像中的扩大区域的高度、以及每个所 述特定身体区域在所述图像中的扩大区域的高度与宽度之间的比值,确定每个所述特定身体区域在所述图像中的扩大区域的宽度。Optionally, the determining the width of the expanded area of each specific body area in the image according to the height of the expanded area of each specific body area in the image includes: The height of the enlarged area of the specific body area in the image, and the ratio between the height and the width of the enlarged area of each specific body area in the image, determine whether each specific body area is in the The width of the enlarged area in the image.
例如,根据头肩区域61在该图像中的扩大区域的高度H、以及头肩区域61在该图像中的扩大区域的高度H与宽度W之间的比值,确定该头肩区域61在该图像中的扩大区域的宽度W。For example, according to the height H of the enlarged area of the head and shoulders area 61 in the image, and the ratio between the height H and the width W of the enlarged area of the head and shoulders area 61 in the image, it is determined that the head and shoulders area 61 is in the image. The width W of the enlarged area in.
S1603、根据所述宽度、所述高度确定每个所述特定身体区域在所述图像中的扩大区域。S1603. Determine an enlarged area of each specific body area in the image according to the width and the height.
根据宽度W和高度H,确定该头肩区域61在该图像中的扩大区域,如图17所示的扩大区域81。可选的,如图17所示的扩大区域81中可包括目标对象的四肢。如图15所示的扩大区域81中可包括目标对象的手掌。也就是说,检测特定的身体姿势所需的扩大区域可以比检测特定的手部姿势所需的扩大区域大。According to the width W and the height H, the enlarged area of the head and shoulders area 61 in the image is determined, as shown in the enlarged area 81 in FIG. 17. Optionally, the enlarged area 81 as shown in FIG. 17 may include limbs of the target object. The expanded area 81 as shown in FIG. 15 may include the palm of the target object. That is, the enlarged area required to detect a specific body posture may be larger than the enlarged area required to detect a specific hand posture.
本实施例根据该至少一个特定身体区域中的每个该特定身体区域中的头肩高度,确定每个该特定身体区域在该图像中的扩大区域的高度,根据每个该特定身体区域在该图像中的扩大区域的高度,确定每个该特定身体区域在该图像中的扩大区域的宽度,根据该宽度、该高度确定每个该特定身体区域在该图像中的扩大区域,实现了确定扩大区域的另一种方式,提高了确定扩大区域的灵活性。In this embodiment, the height of the enlarged area of each specific body area in the image is determined according to the height of the head and shoulders in each of the at least one specific body area, and the height of each specific body area in the image The height of the enlarged area in the image determines the width of the enlarged area of each specific body area in the image, and determines the enlarged area of each specific body area in the image according to the width and the height to realize the definite expansion Another way of regionalization improves the flexibility of determining the expansion region.
本申请实施例提供一种手持云台的控制方法。所述手持云台上搭载有拍摄设备。图18为本申请另一实施例提供的手持云台的控制方法的流程图。如图18所示,所述手持云台的控制方法,包括:The embodiment of the application provides a method for controlling a handheld PTZ. The handheld PTZ is equipped with photographing equipment. FIG. 18 is a flowchart of a method for controlling a handheld PTZ according to another embodiment of the application. As shown in FIG. 18, the control method of the handheld PTZ includes:
S1801、获取所述拍摄设备采集到的图像。S1801: Acquire an image collected by the photographing device.
S1801的实现方式和具体原理与如上所述的S201一致,此处不再赘述。The implementation mode and specific principles of S1801 are consistent with the above-mentioned S201, and will not be repeated here.
S1802、检测所述图像中的特定姿势。S1802. Detect a specific posture in the image.
检测该图像中的特定姿势的实现方式和具体原理具体如上述实施例所述,此处不再赘述。The implementation manner and specific principle of detecting the specific posture in the image are specifically as described in the foregoing embodiment, and will not be repeated here.
S1803、根据所述特定姿势控制所述手持云台和/或所述拍摄设备的参数。S1803. Control the parameters of the handheld PTZ and/or the photographing device according to the specific posture.
在本实施例中,当手持云台中的控制装置确定出图像中的特定姿势时, 还可根据该特定姿势控制手持云台和/或所述拍摄设备的参数。In this embodiment, when the control device in the handheld pan/tilt head determines a specific posture in the image, it can also control the parameters of the handheld pan/tilt head and/or the shooting device according to the specific posture.
可选的,所述手持云台的参数包括如下至少一种:所述手持云台的姿态、旋转速度、旋转方向。Optionally, the parameters of the handheld PTZ include at least one of the following: the posture, rotation speed, and rotation direction of the handheld PTZ.
可选的,所述拍摄设备的参数包括如下至少一种:所述拍摄设备的快门参数、所述拍摄设备的镜头焦距、所述拍摄设备的跟焦参数。Optionally, the parameters of the shooting device include at least one of the following: a shutter parameter of the shooting device, a lens focal length of the shooting device, and a follow focus parameter of the shooting device.
可以理解,手持云台的参数或拍摄设备的参数除了上述说明的内容,在实际应用中,还可以包括其它参数,如针对拍摄设备,还可以包括白平衡参数,此处不做具体限定。It can be understood that in addition to the above description, the parameters of the handheld pan/tilt head or the parameters of the photographing device may also include other parameters in practical applications. For example, for the photographing device, the parameters may also include white balance parameters, which are not specifically limited here.
本实施例通过检测手持云台上的拍摄设备采集到的图像中的特定姿势,进一步,根据该特定姿势控制手持云台和/或所述拍摄设备的参数,使得用户相距手持云台有一定距离时,用户不需要重新拿回手持云台进行参数设置,设置完之后再将手持云台放到相距用户一定距离的地方,用户只需要通过特定姿势即可控制手持云台和/或所述拍摄设备的参数,提高了用户体验。This embodiment detects a specific posture in the image collected by the camera on the handheld camera, and further controls the parameters of the camera and/or the camera according to the specific posture, so that the user is at a certain distance from the camera. The user does not need to take back the handheld pan/tilt for parameter setting. After the setting is complete, place the handheld pan/tilt at a certain distance from the user. The user only needs to control the handheld pan/tilt and/or the shooting through a specific posture. The parameters of the device improve the user experience.
本申请实施例提供一种手持云台的控制方法。所述手持云台上搭载有拍摄设备。在上述实施例的基础上,作为一种可能的实现方式,所述检测所述图像中的特定姿势,包括:根据所述图像的整体区域,检测所述图像中的特定姿势。The embodiment of the application provides a method for controlling a handheld PTZ. The handheld PTZ is equipped with photographing equipment. On the basis of the foregoing embodiment, as a possible implementation, the detecting the specific posture in the image includes: detecting the specific posture in the image according to the overall area of the image.
当目标对象在图像中的画面占比较大时,该目标对象发出的特定姿势在图像中的画面占比也会相对较大,此时,可根据该图像的整体区域,检测该图像中的特定姿势。When the target object takes up a relatively large frame in the image, the specific posture issued by the target object will also occupy a relatively large frame in the image. At this time, the specific posture in the image can be detected according to the overall area of the image. posture.
可选的,所述根据所述图像的整体区域,检测所述图像中的特定姿势,包括:当所述拍摄设备相对于拍摄对象的距离小于或等于预设距离时,根据所述图像的整体区域,检测所述图像中的特定姿势。Optionally, the detecting a specific posture in the image according to the overall area of the image includes: when the distance of the shooting device relative to the shooting object is less than or equal to a preset distance, according to the overall image Area, to detect a specific posture in the image.
例如,当该拍摄设备相对于拍摄对象的距离小于或等于预设距离时,说明该拍摄设备离拍摄对象较近,此时,拍摄对象在拍摄画面中的占比较大,因此,可根据该图像的整体区域,检测该图像中的特定姿势,该拍摄对象具体可以是上述实施例中的目标对象。For example, when the distance of the shooting device relative to the shooting object is less than or equal to the preset distance, it means that the shooting device is closer to the shooting object. At this time, the shooting object occupies a larger proportion in the shooting screen. To detect a specific posture in the image, the shooting object may specifically be the target object in the foregoing embodiment.
可选的,所述根据所述图像的整体区域,检测所述图像中的特定姿势, 包括:当所述拍摄设备采用前置摄像头采集所述图像时,根据所述图像的整体区域,检测所述图像中的特定姿势。Optionally, the detecting a specific posture in the image according to the overall area of the image includes: when the photographing device uses a front camera to collect the image, detecting the entire area according to the image Describe the specific posture in the image.
当该拍摄设备是智能手机时,如果该智能手机当前开启的是前置摄像头,且用户本人发出特定姿势,则说明用户本人为目标对象,该用户正在进行自拍。此时,用户在该前置摄像头采集的图像中的占比较大,因此,可根据该图像的整体区域,检测该图像中的特定姿势。When the shooting device is a smart phone, if the front camera is currently turned on by the smart phone, and the user himself makes a specific gesture, it means that the user himself is the target object and the user is taking a selfie. At this time, the user accounts for a relatively large portion of the image collected by the front camera. Therefore, the specific posture in the image can be detected according to the overall area of the image.
作为另一种可能的实现方式,所述检测所述图像中的特定姿势,包括:根据所述图像的部分区域,检测所述图像中的特定姿势。As another possible implementation manner, the detecting the specific posture in the image includes: detecting the specific posture in the image according to a partial area of the image.
当目标对象在图像中的画面占比较小时,该目标对象发出的特定姿势在图像中的画面占比也会相对较小,此时,需要提取该图像中的部分区域,例如,头肩区域、手部区域、上半身区域、整个躯体区域等。进一步,对该部分区域进行如上所述的裁剪处理、调整大小到预设大小后输入到检测模型,由检测模型判断预设大小的部分区域中是否存在特定姿势。When the target object has a relatively small frame in the image, the specific posture issued by the target object will also occupy a relatively small frame in the image. At this time, it is necessary to extract some areas of the image, such as the head and shoulders area, Hand area, upper body area, entire body area, etc. Further, the partial area is subjected to the above-mentioned cropping process, resized to a preset size, and then input to the detection model, and the detection model determines whether there is a specific posture in the partial area of the preset size.
可选的,所述根据所述图像的部分区域,检测所述图像中的特定姿势,包括:当所述拍摄设备相对于拍摄对象的距离大于预设距离时,根据所述图像的部分区域,检测所述图像中的特定姿势。Optionally, the detecting a specific posture in the image according to a partial area of the image includes: when the distance of the photographing device relative to the shooting object is greater than a preset distance, according to the partial area of the image, Detect specific gestures in the image.
例如,当该拍摄设备相对于拍摄对象的距离大于预设距离时,说明该拍摄设备离拍摄对象较远,此时,拍摄对象在拍摄画面中的占比较小,为了能够精确的检测出该图像中的特定姿势,需要根据该图像的部分区域,检测该图像中的特定姿势,该拍摄对象具体可以是上述实施例中的目标对象。For example, when the distance between the shooting device and the shooting object is greater than the preset distance, it means that the shooting device is far away from the shooting object. At this time, the shooting object occupies a relatively small proportion in the shooting frame. In order to accurately detect the image For the specific posture in the image, the specific posture in the image needs to be detected according to a partial area of the image, and the shooting object may specifically be the target object in the foregoing embodiment.
可选的,所述根据所述图像的部分区域,检测所述图像中的特定姿势,包括:当所述拍摄设备采用后置摄像头采集所述图像时,根据所述图像的部分区域,检测所述图像中的特定姿势。Optionally, the detecting a specific posture in the image according to a partial area of the image includes: when the photographing device uses a rear camera to capture the image, detecting all positions according to the partial area of the image Describe the specific posture in the image.
当该拍摄设备是智能手机时,如果该智能手机当前开启的是后置摄像头,说明该智能手机正在拍摄远处的景物,此时,目标对象在该后置摄像头采集的图像中的占比较小,因此,需要根据该图像的部分区域,检测该图像中的特定姿势。When the shooting device is a smart phone, if the smart phone is currently turning on the rear camera, it means that the smart phone is shooting a distant scene. At this time, the target object accounts for a relatively small proportion of the images collected by the rear camera. Therefore, it is necessary to detect the specific posture in the image according to the partial area of the image.
可选的,所述图像的部分区域包括所述图像中的至少一个特定身体区域;所述根据所述图像的部分区域,检测所述图像中的特定姿势,包括: 确定所述至少一个特定身体区域中的每个所述特定身体区域在所述图像中的扩大区域;根据每个所述特定身体区域在所述图像中的扩大区域,检测所述图像中的特定姿势。Optionally, the partial area of the image includes at least one specific body area in the image; the detecting the specific posture in the image according to the partial area of the image includes: determining the at least one specific body An enlarged area of each of the specific body regions in the image; and detecting a specific posture in the image according to the enlarged area of each of the specific body regions in the image.
例如,该图像的部分区域包括该图像中的至少一个特定身体区域,该特定身体区域具体可以是如上所述的头肩区域、手部区域、上半身区域、整个躯体区域等。以头肩区域为例,此时,根据所述图像中的至少一个头肩区域,检测所述图像中的特定姿势时,具体可确定该至少一个头肩区域中每个头肩区域在所述图像中的扩大区域,确定的过程和方法如上实施例所述,此处不再赘述。进一步,根据每个头肩区域在所述图像中的扩大区域,检测所述图像中的特定姿势。For example, the partial area of the image includes at least one specific body area in the image, and the specific body area may specifically be the head and shoulders area, the hand area, the upper body area, the entire body area, etc. as described above. Take the head and shoulders area as an example. At this time, according to at least one head and shoulders area in the image, when detecting a specific posture in the image, it can be specifically determined that each head and shoulders area in the at least one head and shoulders area is in the image. The process and method of determining the enlarged area in the above embodiments are as described in the above embodiment, and will not be repeated here. Further, according to the enlarged area of each head and shoulder area in the image, a specific posture in the image is detected.
可选的,所述根据每个所述特定身体区域在所述图像中的扩大区域,检测所述图像中的特定姿势,包括:将每个所述特定身体区域在所述图像中的扩大区域的大小调整为预设大小,得到每个所述特定身体区域对应的所述预设大小的扩大区域,所述预设大小满足检测模型的输入图像的大小;将每个所述特定身体区域对应的所述预设大小的扩大区域输入到所述检测模型中,通过所述检测模型检测每个所述特定身体区域对应的所述预设大小的扩大区域中的所述特定姿势。Optionally, the detecting the specific posture in the image according to the enlarged area of each of the specific body regions in the image includes: arranging the enlarged area of each specific body region in the image Adjust the size of the to a preset size to obtain an enlarged area of the preset size corresponding to each of the specific body regions, where the preset size meets the size of the input image of the detection model; and each specific body region corresponds to The expanded area of the preset size is input into the detection model, and the specific posture in the expanded area of the preset size corresponding to each specific body area is detected by the detection model.
例如,根据每个头肩区域在所述图像中的扩大区域,检测所述图像中的特定姿势时,可以将每个头肩区域在所述图像中的扩大区域调整为预设大小,该预设大小为检测模型的输入图像需要满足的大小,进一步,将每个预设大小的扩大区域输入到检测模型中,通过检测模型检测每个头肩区域对应的预设大小的扩大区域中是否存在特定姿势。For example, according to the enlarged area of each head and shoulder area in the image, when detecting a specific posture in the image, the enlarged area of each head and shoulder area in the image may be adjusted to a preset size. In order to detect the size that the input image of the model needs to meet, further, input each expansion area of a preset size into the detection model, and detect whether there is a specific posture in the expansion area of the preset size corresponding to each head and shoulder area through the detection model.
可选的,所述将每个所述特定身体区域在所述图像中的扩大区域的大小调整为预设大小,包括:在所述图像中对每个所述特定身体区域在所述图像中的扩大区域进行裁剪处理,得到每个所述扩大区域对应的裁剪区域;将每个所述扩大区域对应的裁剪区域的大小调整为所述预设大小。Optionally, the adjusting the size of the enlarged area of each specific body area in the image to a preset size includes: setting each specific body area in the image in the image Performing cropping processing on the expanded area of each of the expanded areas to obtain a cropped area corresponding to each of the expanded areas; adjusting the size of the cropped area corresponding to each of the expanded areas to the preset size.
例如,在将每个头肩区域在所述图像中的扩大区域调整为预设大小时,可以将每个头肩区域在所述图像中的扩大区域从该图像中裁剪出来,进一步,将裁剪出来的区域的大小调整为预设大小,具体的裁剪过程和大小调整过程如上述实施例所述,此处不再赘述。For example, when the expanded area of each head and shoulders area in the image is adjusted to a preset size, the expanded area of each head and shoulders area in the image can be cropped out of the image, and further, the cropped The size of the region is adjusted to a preset size, and the specific cropping process and size adjustment process are as described in the foregoing embodiment, and will not be repeated here.
本实施例当目标对象在图像中的画面占比较大时,根据该图像的整体区域,检测该图像中的特定姿势;当目标对象在图像中的画面占比较小时,根据所述图像的部分区域,检测所述图像中的特定姿势,实现了在不同场景下,采用与该场景相适应的图像区域,检测该图像中的特定姿势,从而提高了检测特定姿势的灵活性。In this embodiment, when the target object occupies a relatively large frame in the image, the specific posture in the image is detected according to the overall area of the image; when the target object occupies a relatively small frame in the image, according to the partial area of the image Detecting the specific posture in the image realizes that in different scenes, the image area adapted to the scene is used to detect the specific posture in the image, thereby improving the flexibility of detecting the specific posture.
本申请实施例提供一种手持云台的控制装置。所述手持云台上搭载有拍摄设备。图19为本申请实施例提供的手持云台的控制装置的结构图,如图19所示,该控制装置190包括:存储器191和处理器192;存储器191用于存储程序代码;处理器192,调用所述程序代码,当程序代码被执行时,用于执行以下操作:获取所述拍摄设备采集到的图像;检测所述图像中的特定姿势;根据所述特定姿势确定所述图像中的跟随对象;控制所述手持云台对所述跟随对象进行跟随,并在跟随的过程中控制所述拍摄设备对所述跟随对象进行拍摄。The embodiment of the present application provides a control device for a handheld PTZ. The handheld PTZ is equipped with photographing equipment. FIG. 19 is a structural diagram of a control device for a handheld pan/tilt head provided by an embodiment of the application. As shown in FIG. 19, the control device 190 includes: a memory 191 and a processor 192; the memory 191 is used to store program codes; the processor 192, The program code is called, and when the program code is executed, it is used to perform the following operations: acquire the image collected by the photographing device; detect a specific posture in the image; determine the following in the image according to the specific posture Object; controlling the handheld pan/tilt to follow the following object, and controlling the photographing device to photograph the following object during the following process.
可选的,处理器192根据所述特定姿势确定所述图像中的跟随对象时,具体用于:检测所述图像中的至少一个特定身体区域;确定所述至少一个特定身体区域中与发出所述特定姿势的目标对象匹配的特定身体区域中的对象为跟随对象。Optionally, when the processor 192 determines the follower object in the image according to the specific posture, it is specifically configured to: detect at least one specific body region in the image; determine whether the target is in the at least one specific body region. The object in the specific body region matched by the target object in the specific posture is the following object.
可选的,处理器192根据所述特定姿势确定所述图像中的跟随对象时,具体用于:检测所述图像中的至少一个特定身体区域;确定所述至少一个特定身体区域中与发出所述特定姿势的目标对象的距离满足第一预设条件的特定身体区域中的对象为跟随对象。Optionally, when the processor 192 determines the follower object in the image according to the specific posture, it is specifically configured to: detect at least one specific body region in the image; determine whether the target is in the at least one specific body region. The object in the specific body region where the distance of the target object in the specific posture meets the first preset condition is the follow object.
可选的,处理器192控制所述手持云台对所述跟随对象进行跟随时,具体用于:控制所述手持云台对所述跟随对象进行跟随,使得所述跟随对象位于所述拍摄设备的拍摄画面中的预设位置。可选的,处理器192控制所述手持云台对所述跟随对象进行跟随时,具体用于:控制所述手持云台对所述跟随对象在一方向上进行预设旋转角度的跟随。Optionally, when the processor 192 controls the handheld PTZ to follow the following object, it is specifically configured to: control the handheld PTZ to follow the follow object so that the follow object is located on the photographing device The preset position in the shooting screen. Optionally, when the processor 192 controls the handheld pan/tilt to follow the following object, it is specifically configured to: control the handheld pan/tilt to follow the following object in a direction with a preset rotation angle.
可选的,处理器192在跟随的过程中控制所述拍摄设备对所述跟随对象进行拍摄时,具体用于:在跟随的过程中控制所述拍摄设备以所述跟随对象的位置为中心对所述跟随对象进行拍摄。Optionally, when the processor 192 controls the photographing device to photograph the following object during the following process, it is specifically configured to: control the photographing device to focus on the position of the following object during the following process. The following object is photographed.
可选的,处理器192还用于:根据所述特定姿势,控制所述拍摄设备在预设时长后对所述跟随对象进行所述拍摄。Optionally, the processor 192 is further configured to: according to the specific posture, control the photographing device to photograph the following object after a preset period of time.
可选的,处理器192还用于:确定所述图像中发出所述特定姿势的目标对象;其中,所述目标对象发出的特定姿势用于指示所述手持云台对所述跟随对象执行所述跟随的跟随控制指令,和/或,用于指示所述拍摄设备对所述跟随对象执行所述拍摄的拍摄控制指令。Optionally, the processor 192 is further configured to: determine a target object in the image that emits the specific posture; wherein the specific posture issued by the target object is used to instruct the handheld pan/tilt to perform the following object The following control instruction for following, and/or, is used to instruct the photographing device to execute the photographing control instruction for photographing the following object.
可选的,处理器192确定所述图像中发出所述特定姿势的目标对象时,具体用于:检测所述图像中的至少一个特定身体区域;确定所述至少一个特定身体区域中的每个所述特定身体区域在所述图像中的扩大区域;根据每个所述特定身体区域在所述图像中的扩大区域,确定发出所述特定姿势的目标对象。Optionally, when the processor 192 determines the target object emitting the specific posture in the image, it is specifically configured to: detect at least one specific body region in the image; determine each of the at least one specific body region An enlarged area of the specific body area in the image; and a target object issuing the specific posture is determined according to the enlarged area of each specific body area in the image.
可选的,处理器192根据每个所述特定身体区域在所述图像中的扩大区域,确定发出所述特定姿势的目标对象时,具体用于:检测每个所述特定身体区域在所述图像中的扩大区域中是否存在所述特定姿势;若所述特定身体区域在所述图像中的扩大区域中存在所述特定姿势,则确定所述特定身体区域中的对象为所述目标对象。Optionally, when the processor 192 determines the target object issuing the specific posture according to the enlarged area of each specific body area in the image, it is specifically configured to: detect that each specific body area is in the Whether the specific posture exists in the enlarged area in the image; if the specific body area has the specific posture in the enlarged area in the image, determining that the object in the specific body area is the target object.
可选的,所述特定姿势包括特定的单手手势,所述特定的单手手势的发出位置是任意的;若所述特定身体区域在所述图像中的扩大区域中存在所述特定的单手手势,且所述特定的单手手势与所述特定身体区域中的身体匹配,则处理器192确定所述特定身体区域中的对象为所述目标对象。Optionally, the specific posture includes a specific one-handed gesture, and the position of the specific one-handed gesture is arbitrary; if the specific body area exists in the enlarged area in the image, the specific single-handed gesture A hand gesture, and the specific one-hand gesture matches the body in the specific body area, the processor 192 determines that the object in the specific body area is the target object.
可选的,所述目标对象为所述跟随对象。Optionally, the target object is the follow object.
可选的,处理器192还用于:若所述特定身体区域在所述图像中的扩大区域中存在所述特定的单手手势,且所述特定的单手手势与所述特定身体区域中的身体不匹配,则确定所述特定身体区域中的对象为所述跟随对象,以及确定与所述特定的单手手势匹配的身体对应的特定身体区域中的对象为所述目标对象。Optionally, the processor 192 is further configured to: if the specific one-handed gesture exists in the enlarged area of the image, and the specific one-handed gesture and the specific body area If the body does not match, it is determined that the object in the specific body area is the follow object, and the object in the specific body area corresponding to the body matched by the specific one-hand gesture is determined as the target object.
可选的,处理器192还用于:若多个所述特定身体区域在所述图像中的扩大区域中存在所述特定姿势,则确定多个所述特定身体区域中满足第二预设条件的特定身体区域中的对象为所述目标对象。Optionally, the processor 192 is further configured to: if the specific posture exists in the enlarged area of the plurality of specific body regions in the image, determine that a second preset condition is satisfied among the plurality of specific body regions The object in the specific body area of is the target object.
可选的,所述第二预设条件包括与所述图像的中心的距离小于第一预 设阈值和/或在所述图像中的画面占比大于第二预设阈值;其中,所述画面占比是根据所述特定身体区域或所述特定身体区域在所述图像中的扩大区域的大小确定的。Optionally, the second preset condition includes that the distance from the center of the image is less than a first preset threshold and/or the proportion of frames in the image is greater than a second preset threshold; wherein, the frame The proportion is determined according to the size of the specific body area or the enlarged area of the specific body area in the image.
可选的,处理器192检测每个所述特定身体区域在所述图像中的扩大区域中是否存在所述特定姿势时,具体用于:将每个所述特定身体区域在所述图像中的扩大区域的大小调整为预设大小,得到每个所述特定身体区域对应的所述预设大小的扩大区域,所述预设大小满足检测模型的输入图像的大小;将每个所述特定身体区域对应的所述预设大小的扩大区域输入到所述检测模型中,通过所述检测模型检测每个所述特定身体区域对应的所述预设大小的扩大区域中是否存在所述特定姿势。Optionally, when the processor 192 detects whether each specific body area has the specific posture in the enlarged area in the image, it is specifically configured to: place each specific body area in the image. The size of the expanded area is adjusted to a preset size to obtain the expanded area of the preset size corresponding to each specific body area, and the preset size meets the size of the input image of the detection model; The expanded area of the preset size corresponding to the area is input into the detection model, and the detection model is used to detect whether the specific posture exists in the expanded area of the preset size corresponding to each specific body area.
可选的,处理器192将每个所述特定身体区域在所述图像中的扩大区域的大小调整为预设大小时,具体用于:在所述图像中对每个所述特定身体区域在所述图像中的扩大区域进行裁剪处理,得到每个所述扩大区域对应的裁剪区域;将每个所述扩大区域对应的裁剪区域的大小调整为所述预设大小。Optionally, when the processor 192 adjusts the size of the enlarged area of each specific body area in the image to a preset size, it is specifically configured to: The expanded area in the image is cropped to obtain a cropped area corresponding to each expanded area; the size of the cropped area corresponding to each expanded area is adjusted to the preset size.
可选的,所述扩大区域对应的裁剪区域的大小与所述扩大区域的大小相同。Optionally, the size of the cropping area corresponding to the enlarged area is the same as the size of the enlarged area.
可选的,所述扩大区域对应的裁剪区域中的部分区域在所述图像之外。Optionally, a part of the cropped area corresponding to the enlarged area is outside the image.
可选的,所述特定姿势包括特定的手部姿势,所述特定身体区域包括头肩区域,处理器192确定所述至少一个特定身体区域中的每个所述特定身体区域在所述图像中的扩大区域时,具体用于:根据所述至少一个特定身体区域中的每个所述特定身体区域中的肩部宽度,确定每个所述特定身体区域在所述图像中的扩大区域的宽度;根据每个所述特定身体区域在所述图像中的扩大区域的宽度,确定每个所述特定身体区域在所述图像中的扩大区域的高度;根据所述宽度、所述高度确定每个所述特定身体区域在所述图像中的扩大区域。Optionally, the specific posture includes a specific hand posture, the specific body area includes a head and shoulders area, and the processor 192 determines that each of the at least one specific body area is in the image When the enlarged area of the at least one specific body area is specifically used to: determine the width of the enlarged area of each specific body area in the image according to the width of the shoulder in each of the at least one specific body area According to the width of the enlarged area of each specific body area in the image, determine the height of the enlarged area of each specific body area in the image; determine each according to the width and the height The enlarged area of the specific body area in the image.
可选的,处理器192根据所述至少一个特定身体区域中的每个所述特定身体区域中的肩部宽度,确定每个所述特定身体区域在所述图像中的扩大区域的宽度时,具体用于:根据所述至少一个特定身体区域中的每个所述特定身体区域中的肩部宽度以及所述肩部宽度的扩大倍数,确定每个所 述特定身体区域在所述图像中的扩大区域的宽度。Optionally, when the processor 192 determines the width of the enlarged area of each specific body area in the image according to the shoulder width in each of the at least one specific body area, It is specifically used to determine the position of each specific body area in the image according to the width of the shoulder in each specific body area in the at least one specific body area and the expansion factor of the shoulder width. Expand the width of the area.
可选的,处理器192根据每个所述特定身体区域在所述图像中的扩大区域的宽度,确定每个所述特定身体区域在所述图像中的扩大区域的高度时,具体用于:根据每个所述特定身体区域在所述图像中的扩大区域的宽度、以及每个所述特定身体区域在所述图像中的扩大区域的宽度与高度之间的比值,确定每个所述特定身体区域在所述图像中的扩大区域的高度。Optionally, when the processor 192 determines the height of the expanded area of each specific body area in the image according to the width of the expanded area of each specific body area in the image, it is specifically configured to: According to the width of the enlarged area of each specific body area in the image, and the ratio between the width and height of the enlarged area of each specific body area in the image, each specific The height of the enlarged area of the body area in the image.
可选的,所述特定姿势包括特定的身体姿势,所述特定身体区域包括头肩区域,处理器192确定所述至少一个特定身体区域中的每个所述特定身体区域在所述图像中的扩大区域时,具体用于:根据所述至少一个特定身体区域中的每个所述特定身体区域中的头肩高度,确定每个所述特定身体区域在所述图像中的扩大区域的高度;根据每个所述特定身体区域在所述图像中的扩大区域的高度,确定每个所述特定身体区域在所述图像中的扩大区域的宽度;根据所述宽度、所述高度确定每个所述特定身体区域在所述图像中的扩大区域。Optionally, the specific posture includes a specific body posture, the specific body area includes a head and shoulders area, and the processor 192 determines that each of the at least one specific body area is in the image When the area is enlarged, it is specifically used to: determine the height of the enlarged area of each specific body area in the image according to the height of the head and shoulders in each of the at least one specific body area; According to the height of the enlarged area of each specific body area in the image, determine the width of the enlarged area of each specific body area in the image; determine each specific body area according to the width and height The enlarged area of the specific body area in the image.
可选的,处理器192根据所述至少一个特定身体区域中的每个所述特定身体区域中的头肩高度,确定每个所述特定身体区域在所述图像中的扩大区域的高度时,具体用于:根据所述至少一个特定身体区域中的每个所述特定身体区域中的头肩高度以及所述头肩高度的扩大倍数,确定每个所述特定身体区域在所述图像中的扩大区域的高度。Optionally, when the processor 192 determines the height of the enlarged area of each specific body area in the image according to the height of the head and shoulders in each of the at least one specific body area, It is specifically used to determine the height of each specific body area in the image according to the head and shoulder height of each specific body area in the at least one specific body area and the magnification factor of the head and shoulder height Increase the height of the area.
可选的,处理器192根据每个所述特定身体区域在所述图像中的扩大区域的高度,确定每个所述特定身体区域在所述图像中的扩大区域的宽度时,具体用于:根据每个所述特定身体区域在所述图像中的扩大区域的高度、以及每个所述特定身体区域在所述图像中的扩大区域的高度与宽度之间的比值,确定每个所述特定身体区域在所述图像中的扩大区域的宽度。Optionally, when the processor 192 determines the width of the expanded area of each specific body area in the image according to the height of the expanded area of each specific body area in the image, it is specifically configured to: According to the height of the enlarged area of each specific body area in the image and the ratio between the height and the width of the enlarged area of each specific body area in the image, each specific body area is determined The width of the enlarged area of the body area in the image.
本申请实施例提供的控制装置的具体原理和实现方式均与上述实施例类似,此处不再赘述。The specific principles and implementation manners of the control device provided in the embodiments of the present application are similar to the foregoing embodiments, and will not be repeated here.
本申请实施例提供一种手持云台的控制装置。所述手持云台上搭载有拍摄设备。图20为本申请实施例提供的手持云台的控制装置的结构图,如图20所示,该控制装置200包括:存储器201和处理器202;存储器 201用于存储程序代码;处理器202,调用所述程序代码,当程序代码被执行时,用于执行以下操作:获取所述拍摄设备采集到的图像;检测所述图像中的特定姿势;根据所述特定姿势控制所述手持云台和/或所述拍摄设备的参数。The embodiment of the present application provides a control device for a handheld PTZ. The handheld PTZ is equipped with photographing equipment. FIG. 20 is a structural diagram of a control device for a handheld platform provided by an embodiment of the application. As shown in FIG. 20, the control device 200 includes: a memory 201 and a processor 202; the memory 201 is used to store program codes; and the processor 202, The program code is called, and when the program code is executed, it is used to perform the following operations: acquire the image collected by the photographing device; detect a specific posture in the image; control the handheld PTZ and the handheld platform according to the specific posture /Or the parameters of the shooting device.
可选的,所述手持云台的参数包括如下至少一种:所述手持云台的姿态、旋转速度、旋转方向。Optionally, the parameters of the handheld PTZ include at least one of the following: the posture, rotation speed, and rotation direction of the handheld PTZ.
可选的,所述拍摄设备的参数包括如下至少一种:所述拍摄设备的快门参数、所述拍摄设备的镜头焦距、所述拍摄设备的跟焦参数。Optionally, the parameters of the shooting device include at least one of the following: a shutter parameter of the shooting device, a lens focal length of the shooting device, and a follow focus parameter of the shooting device.
可选的,处理器202检测所述图像中的特定姿势时,具体用于:根据所述图像的整体区域,检测所述图像中的特定姿势。Optionally, when the processor 202 detects the specific posture in the image, it is specifically configured to: detect the specific posture in the image according to the overall area of the image.
可选的,处理器202根据所述图像的整体区域,检测所述图像中的特定姿势时,具体用于:当所述拍摄设备相对于拍摄对象的距离小于或等于预设距离时,根据所述图像的整体区域,检测所述图像中的特定姿势。Optionally, when the processor 202 detects a specific posture in the image according to the overall area of the image, it is specifically configured to: when the distance of the shooting device relative to the shooting object is less than or equal to a preset distance, The entire area of the image is used to detect a specific posture in the image.
可选的,处理器202根据所述图像的整体区域,检测所述图像中的特定姿势时,具体用于:当所述拍摄设备采用前置摄像头采集所述图像时,根据所述图像的整体区域,检测所述图像中的特定姿势。Optionally, when the processor 202 detects a specific posture in the image according to the overall area of the image, it is specifically configured to: when the photographing device uses a front camera to collect the image, according to the overall image Area, to detect a specific posture in the image.
可选的,处理器202检测所述图像中的特定姿势时,具体用于:根据所述图像的部分区域,检测所述图像中的特定姿势。Optionally, when the processor 202 detects the specific posture in the image, it is specifically configured to: detect the specific posture in the image according to a partial area of the image.
可选的,处理器202根据所述图像的部分区域,检测所述图像中的特定姿势时,具体用于:当所述拍摄设备相对于拍摄对象的距离大于预设距离时,根据所述图像的部分区域,检测所述图像中的特定姿势。Optionally, when the processor 202 detects a specific posture in the image according to a partial area of the image, it is specifically configured to: when the distance between the shooting device and the shooting object is greater than a preset distance, according to the image Part of the area to detect a specific posture in the image.
可选的,处理器202根据所述图像的部分区域,检测所述图像中的特定姿势时,具体用于:当所述拍摄设备采用后置摄像头采集所述图像时,根据所述图像的部分区域,检测所述图像中的特定姿势。Optionally, when the processor 202 detects a specific posture in the image according to a partial area of the image, it is specifically configured to: when the shooting device uses a rear camera to capture the image, according to the partial area of the image Area, to detect a specific posture in the image.
可选的,所述图像的部分区域包括所述图像中的至少一个特定身体区域;处理器202根据所述图像的部分区域,检测所述图像中的特定姿势时,具体用于:确定所述至少一个特定身体区域中的每个所述特定身体区域在所述图像中的扩大区域;根据每个所述特定身体区域在所述图像中的扩大区域,检测所述图像中的特定姿势。Optionally, the partial area of the image includes at least one specific body area in the image; when the processor 202 detects the specific posture in the image according to the partial area of the image, it is specifically configured to: determine the An enlarged area of each of the specific body areas in the image in at least one specific body area; and detecting a specific posture in the image according to the enlarged area of each of the specific body areas in the image.
可选的,处理器202根据每个所述特定身体区域在所述图像中的扩大 区域,检测所述图像中的特定姿势时,具体用于:将每个所述特定身体区域在所述图像中的扩大区域的大小调整为预设大小,得到每个所述特定身体区域对应的所述预设大小的扩大区域,所述预设大小满足检测模型的输入图像的大小;将每个所述特定身体区域对应的所述预设大小的扩大区域输入到所述检测模型中,通过所述检测模型检测每个所述特定身体区域对应的所述预设大小的扩大区域中的所述特定姿势。Optionally, when the processor 202 detects a specific posture in the image according to the enlarged area of each specific body area in the image, it is specifically configured to: place each specific body area in the image Adjust the size of the enlarged area in, to a preset size, to obtain the enlarged area of the preset size corresponding to each specific body area, and the preset size meets the size of the input image of the detection model; The enlarged area of the preset size corresponding to a specific body area is input into the detection model, and the specific posture in the enlarged area of the preset size corresponding to each specific body area is detected by the detection model .
可选的,处理器202将每个所述特定身体区域在所述图像中的扩大区域的大小调整为预设大小时,具体用于:在所述图像中对每个所述特定身体区域在所述图像中的扩大区域进行裁剪处理,得到每个所述扩大区域对应的裁剪区域;将每个所述扩大区域对应的裁剪区域的大小调整为所述预设大小。Optionally, when the processor 202 adjusts the size of the enlarged area of each specific body area in the image to a preset size, it is specifically configured to: The expanded area in the image is cropped to obtain a cropped area corresponding to each expanded area; the size of the cropped area corresponding to each expanded area is adjusted to the preset size.
本申请实施例提供的控制装置的具体原理和实现方式均与上述实施例类似,此处不再赘述。The specific principles and implementation manners of the control device provided in the embodiments of the present application are similar to the foregoing embodiments, and will not be repeated here.
本发明实施例提供一种手持云台。该手持云台包括:云台、基座和如上述实施例所述的控制装置,其中,所述云台用于承载拍摄装置,所述云台和所述基座连接,所述控制装置所执行的手持云台的控制方法的具体原理和实现方式均与上述实施例一致,此处不再赘述。The embodiment of the present invention provides a handheld PTZ. The handheld pan/tilt includes: a pan/tilt, a base, and the control device as described in the above embodiment, wherein the pan/tilt is used to carry a photographing device, the pan/tilt is connected to the base, and the control device The specific principles and implementation manners of the executed control method of the handheld pan/tilt head are consistent with the foregoing embodiment, and will not be repeated here.
另外,本实施例还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行以实现上述实施例所述的手持云台的控制方法。In addition, this embodiment also provides a computer-readable storage medium on which a computer program is stored, and the computer program is executed by a processor to implement the method for controlling the handheld pan/tilt head described in the foregoing embodiment.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device and method may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or It can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个检测单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple detection units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, the functional units in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者检测设备等)或处理器(processor)执行本申请各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The above-mentioned software functional unit is stored in a storage medium and includes several instructions to make a computer device (which may be a personal computer, a server, or a detection device, etc.) or a processor execute the method described in the various embodiments of this application. Part of the steps. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .
本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of the description, only the division of the above-mentioned functional modules is used as an example. In practical applications, the above-mentioned functions can be allocated by different functional modules as required, namely, the device The internal structure is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not repeated here.
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the application, not to limit them; although the application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: It is still possible to modify the technical solutions described in the foregoing embodiments, or equivalently replace some or all of the technical features; these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the application range.

Claims (76)

  1. 一种手持云台的控制方法,其特征在于,所述手持云台上搭载有拍摄设备,所述方法包括:A method for controlling a handheld PTZ, characterized in that a photographing device is mounted on the handheld PTZ, and the method includes:
    获取所述拍摄设备采集到的图像;Acquiring an image collected by the photographing device;
    检测所述图像中的特定姿势;Detecting a specific posture in the image;
    根据所述特定姿势确定所述图像中的跟随对象;Determining the following object in the image according to the specific posture;
    控制所述手持云台对所述跟随对象进行跟随,并在跟随的过程中控制所述拍摄设备对所述跟随对象进行拍摄。Control the handheld pan/tilt to follow the following object, and control the photographing device to photograph the following object during the following process.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述特定姿势确定所述图像中的跟随对象,包括:The method according to claim 1, wherein the determining a follower object in the image according to the specific posture comprises:
    检测所述图像中的至少一个特定身体区域;Detecting at least one specific body area in the image;
    确定所述至少一个特定身体区域中与发出所述特定姿势的目标对象匹配的特定身体区域中的对象为跟随对象。It is determined that an object in the specific body area matching the target object issuing the specific posture in the at least one specific body area is a follow object.
  3. 根据权利要求1所述的方法,其特征在于,所述根据所述特定姿势确定所述图像中的跟随对象,包括:The method according to claim 1, wherein the determining a follower object in the image according to the specific posture comprises:
    检测所述图像中的至少一个特定身体区域;Detecting at least one specific body area in the image;
    确定所述至少一个特定身体区域中与发出所述特定姿势的目标对象的距离满足第一预设条件的特定身体区域中的对象为跟随对象。It is determined that an object in the specific body area whose distance from the target object issuing the specific posture satisfies a first preset condition in the at least one specific body area is a follower object.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述控制所述手持云台对所述跟随对象进行跟随,包括:The method according to any one of claims 1 to 3, wherein the controlling the handheld pan/tilt to follow the following object comprises:
    控制所述手持云台对所述跟随对象进行跟随,使得所述跟随对象位于所述拍摄设备的拍摄画面中的预设位置。Control the handheld pan/tilt to follow the following object, so that the following object is located at a preset position in the shooting frame of the shooting device.
  5. 根据权利要求1-3任一项所述的方法,其特征在于,所述控制所述手持云台对所述跟随对象进行跟随,包括:The method according to any one of claims 1 to 3, wherein the controlling the handheld pan/tilt to follow the following object comprises:
    控制所述手持云台对所述跟随对象在一方向上进行预设旋转角度的跟随。Control the handheld pan/tilt to follow the following object in a direction with a preset rotation angle.
  6. 根据权利要求4或5所述的方法,其特征在于,所述在跟随的过程中控制所述拍摄设备对所述跟随对象进行拍摄,包括:The method according to claim 4 or 5, wherein the controlling the photographing device to photograph the following object during the following process comprises:
    在跟随的过程中控制所述拍摄设备以所述跟随对象的位置为中心对所述跟随对象进行拍摄。During the following process, the photographing device is controlled to photograph the following object with the position of the following object as the center.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-6, wherein the method further comprises:
    根据所述特定姿势,控制所述拍摄设备在预设时长后对所述跟随对象进行所述拍摄。According to the specific posture, control the photographing device to photograph the following object after a preset period of time.
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-7, wherein the method further comprises:
    确定所述图像中发出所述特定姿势的目标对象;Determining the target object emitting the specific posture in the image;
    其中,所述目标对象发出的特定姿势用于指示所述手持云台对所述跟随对象执行所述跟随的跟随控制指令,和/或,用于指示所述拍摄设备对所述跟随对象执行所述拍摄的拍摄控制指令。Wherein, the specific posture issued by the target object is used to instruct the handheld pan/tilt to execute the following control instruction for the following object, and/or to instruct the photographing device to perform the following control instruction on the following object Describe shooting control commands for shooting.
  9. 根据权利要求8所述的方法,其特征在于,所述确定所述图像中发出所述特定姿势的目标对象,包括:The method according to claim 8, wherein the determining the target object in the image that emits the specific posture comprises:
    检测所述图像中的至少一个特定身体区域;Detecting at least one specific body area in the image;
    确定所述至少一个特定身体区域中的每个所述特定身体区域在所述图像中的扩大区域;Determining an enlarged area of each of the at least one specific body area in the image;
    根据每个所述特定身体区域在所述图像中的扩大区域,确定发出所述特定姿势的目标对象。According to the enlarged area of each specific body area in the image, the target object issuing the specific posture is determined.
  10. 根据权利要求9所述的方法,其特征在于,所述根据每个所述特定身体区域在所述图像中的扩大区域,确定发出所述特定姿势的目标对象,包括:The method according to claim 9, wherein the determining the target object issuing the specific posture according to the enlarged area of each specific body area in the image comprises:
    检测每个所述特定身体区域在所述图像中的扩大区域中是否存在所述特定姿势;Detecting whether each of the specific body regions has the specific posture in the enlarged area in the image;
    若所述特定身体区域在所述图像中的扩大区域中存在所述特定姿势,则确定所述特定身体区域中的对象为所述目标对象。If the specific body area has the specific posture in the enlarged area in the image, it is determined that the object in the specific body area is the target object.
  11. 根据权利要求10所述的方法,其特征在于,所述特定姿势包括特定的单手手势,所述特定的单手手势的发出位置是任意的;The method according to claim 10, wherein the specific posture comprises a specific one-handed gesture, and the issuing position of the specific one-handed gesture is arbitrary;
    所述若所述特定身体区域在所述图像中的扩大区域中存在所述特定姿势,则确定所述特定身体区域中的对象为所述目标对象,包括:The determining that the object in the specific body area is the target object if the specific posture exists in the enlarged area in the image of the specific body area includes:
    若所述特定身体区域在所述图像中的扩大区域中存在所述特定的单手手势,且所述特定的单手手势与所述特定身体区域中的身体匹配,则确 定所述特定身体区域中的对象为所述目标对象。If the specific one-handed gesture exists in the enlarged area of the image for the specific body area, and the specific one-handed gesture matches the body in the specific body area, then the specific body area is determined The object in is the target object.
  12. 根据权利要求11所述的方法,其特征在于,所述目标对象为所述跟随对象。The method according to claim 11, wherein the target object is the following object.
  13. 根据权利要求11所述的方法,其特征在于,所述方法还包括:The method of claim 11, wherein the method further comprises:
    若所述特定身体区域在所述图像中的扩大区域中存在所述特定的单手手势,且所述特定的单手手势与所述特定身体区域中的身体不匹配,则确定所述特定身体区域中的对象为所述跟随对象,以及确定与所述特定的单手手势匹配的身体对应的特定身体区域中的对象为所述目标对象。If the specific one-handed gesture exists in the enlarged area of the image for the specific body area, and the specific one-handed gesture does not match the body in the specific body area, determine the specific body The object in the area is the follow object, and it is determined that the object in the specific body area corresponding to the body matching the specific one-hand gesture is the target object.
  14. 根据权利要求10所述的方法,其特征在于,所述方法还包括:The method according to claim 10, wherein the method further comprises:
    若多个所述特定身体区域在所述图像中的扩大区域中存在所述特定姿势,则确定多个所述特定身体区域中满足第二预设条件的特定身体区域中的对象为所述目标对象。If a plurality of the specific body regions have the specific posture in the enlarged area in the image, determine an object in the specific body region that satisfies a second preset condition among the plurality of specific body regions as the target Object.
  15. 根据权利要求14所述的方法,其特征在于,所述第二预设条件包括与所述图像的中心的距离小于第一预设阈值和/或在所述图像中的画面占比大于第二预设阈值;The method according to claim 14, wherein the second preset condition comprises that the distance from the center of the image is less than a first preset threshold and/or the frame ratio in the image is greater than the second Preset threshold;
    其中,所述画面占比是根据所述特定身体区域或所述特定身体区域在所述图像中的扩大区域的大小确定的。Wherein, the frame ratio is determined according to the size of the specific body area or the enlarged area of the specific body area in the image.
  16. 根据权利要求10-15任一项所述的方法,其特征在于,所述检测每个所述特定身体区域在所述图像中的扩大区域中是否存在所述特定姿势,包括:The method according to any one of claims 10-15, wherein the detecting whether each of the specific body regions has the specific posture in the enlarged area in the image comprises:
    将每个所述特定身体区域在所述图像中的扩大区域的大小调整为预设大小,得到每个所述特定身体区域对应的所述预设大小的扩大区域,所述预设大小满足检测模型的输入图像的大小;The size of the enlarged area of each specific body area in the image is adjusted to a preset size to obtain the enlarged area of the preset size corresponding to each specific body area, and the preset size satisfies the detection The size of the input image of the model;
    将每个所述特定身体区域对应的所述预设大小的扩大区域输入到所述检测模型中,通过所述检测模型检测每个所述特定身体区域对应的所述预设大小的扩大区域中是否存在所述特定姿势。The enlarged area of the preset size corresponding to each specific body area is input into the detection model, and the enlarged area of the preset size corresponding to each specific body area is detected by the detection model Whether the specific posture exists.
  17. 根据权利要求16所述的方法,其特征在于,所述将每个所述特定身体区域在所述图像中的扩大区域的大小调整为预设大小,包括:The method according to claim 16, wherein the adjusting the size of the enlarged area of each specific body area in the image to a preset size comprises:
    在所述图像中对每个所述特定身体区域在所述图像中的扩大区域进行裁剪处理,得到每个所述扩大区域对应的裁剪区域;Performing cropping processing on the enlarged region of each specific body region in the image in the image, to obtain a cropped region corresponding to each of the enlarged regions;
    将每个所述扩大区域对应的裁剪区域的大小调整为所述预设大小。Adjusting the size of the cropping area corresponding to each of the enlarged areas to the preset size.
  18. 根据权利要求17所述的方法,其特征在于,所述扩大区域对应的裁剪区域的大小与所述扩大区域的大小相同。The method according to claim 17, wherein the size of the cropped area corresponding to the enlarged area is the same as the size of the enlarged area.
  19. 根据权利要求17所述的方法,其特征在于,所述扩大区域对应的裁剪区域中的部分区域在所述图像之外。The method according to claim 17, wherein a part of the cropped area corresponding to the enlarged area is outside the image.
  20. 根据权利要求10所述的方法,其特征在于,所述特定姿势包括特定的手部姿势,所述特定身体区域包括头肩区域,所述确定所述至少一个特定身体区域中的每个所述特定身体区域在所述图像中的扩大区域,包括:The method according to claim 10, wherein the specific posture includes a specific hand posture, the specific body area includes a head and shoulders area, and the determining each of the at least one specific body area The enlarged area of a specific body area in the image includes:
    根据所述至少一个特定身体区域中的每个所述特定身体区域中的肩部宽度,确定每个所述特定身体区域在所述图像中的扩大区域的宽度;Determining the width of the enlarged area of each specific body area in the image according to the width of the shoulder in each of the at least one specific body area;
    根据每个所述特定身体区域在所述图像中的扩大区域的宽度,确定每个所述特定身体区域在所述图像中的扩大区域的高度;Determining the height of the enlarged area of each specific body area in the image according to the width of the enlarged area of each specific body area in the image;
    根据所述宽度、所述高度确定每个所述特定身体区域在所述图像中的扩大区域。The enlarged area of each specific body area in the image is determined according to the width and the height.
  21. 根据权利要求20所述的方法,其特征在于,所述根据所述至少一个特定身体区域中的每个所述特定身体区域中的肩部宽度,确定每个所述特定身体区域在所述图像中的扩大区域的宽度,包括:22. The method according to claim 20, wherein the determining that each of the specific body regions is in the image according to the shoulder width in each of the at least one specific body region The width of the enlarged area in includes:
    根据所述至少一个特定身体区域中的每个所述特定身体区域中的肩部宽度以及所述肩部宽度的扩大倍数,确定每个所述特定身体区域在所述图像中的扩大区域的宽度。Determine the width of the enlarged area of each specific body area in the image according to the width of the shoulder in each specific body area in the at least one specific body area and the expansion multiple of the width of the shoulder .
  22. 根据权利要求20或21所述的方法,其特征在于,所述根据每个所述特定身体区域在所述图像中的扩大区域的宽度,确定每个所述特定身体区域在所述图像中的扩大区域的高度,包括:The method according to claim 20 or 21, characterized in that, according to the width of the enlarged area of each of the specific body regions in the image, determine the width of each specific body region in the image Increase the height of the area, including:
    根据每个所述特定身体区域在所述图像中的扩大区域的宽度、以及每个所述特定身体区域在所述图像中的扩大区域的宽度与高度之间的比值,确定每个所述特定身体区域在所述图像中的扩大区域的高度。According to the width of the enlarged area of each specific body area in the image, and the ratio between the width and height of the enlarged area of each specific body area in the image, each specific The height of the enlarged area of the body area in the image.
  23. 根据权利要求10所述的方法,其特征在于,所述特定姿势包括特定的身体姿势,所述特定身体区域包括头肩区域,所述确定所述至少一个特定身体区域中的每个所述特定身体区域在所述图像中的扩大区域,包 括:The method according to claim 10, wherein the specific posture includes a specific body posture, the specific body area includes a head and shoulder area, and the determining each of the at least one specific body area The enlarged area of the body area in the image includes:
    根据所述至少一个特定身体区域中的每个所述特定身体区域中的头肩高度,确定每个所述特定身体区域在所述图像中的扩大区域的高度;Determining the height of the enlarged area of each specific body area in the image according to the height of the head and shoulders in each of the at least one specific body area;
    根据每个所述特定身体区域在所述图像中的扩大区域的高度,确定每个所述特定身体区域在所述图像中的扩大区域的宽度;Determining the width of the enlarged area of each specific body area in the image according to the height of the enlarged area of each specific body area in the image;
    根据所述宽度、所述高度确定每个所述特定身体区域在所述图像中的扩大区域。The enlarged area of each specific body area in the image is determined according to the width and the height.
  24. 根据权利要求23所述的方法,其特征在于,所述根据所述至少一个特定身体区域中的每个所述特定身体区域中的头肩高度,确定每个所述特定身体区域在所述图像中的扩大区域的高度,包括:23. The method according to claim 23, wherein the at least one specific body area is determined to be in the image according to the head and shoulder height of each of the specific body areas. The height of the expanded area in, including:
    根据所述至少一个特定身体区域中的每个所述特定身体区域中的头肩高度以及所述头肩高度的扩大倍数,确定每个所述特定身体区域在所述图像中的扩大区域的高度。Determine the height of the enlarged area of each specific body area in the image according to the height of the head and shoulders in each specific body area in the at least one specific body area and the magnification factor of the head and shoulders height .
  25. 根据权利要求23或24所述的方法,其特征在于,所述根据每个所述特定身体区域在所述图像中的扩大区域的高度,确定每个所述特定身体区域在所述图像中的扩大区域的宽度,包括:The method according to claim 23 or 24, wherein the determination of the height of each specific body area in the image according to the height of the enlarged area of each specific body area in the image Expand the width of the area, including:
    根据每个所述特定身体区域在所述图像中的扩大区域的高度、以及每个所述特定身体区域在所述图像中的扩大区域的高度与宽度之间的比值,确定每个所述特定身体区域在所述图像中的扩大区域的宽度。According to the height of the enlarged area of each specific body area in the image and the ratio between the height and the width of the enlarged area of each specific body area in the image, each specific body area is determined The width of the enlarged area of the body area in the image.
  26. 一种手持云台的控制方法,其特征在于,所述手持云台上搭载有拍摄设备,所述方法包括:A method for controlling a handheld PTZ, characterized in that a photographing device is mounted on the handheld PTZ, and the method includes:
    获取所述拍摄设备采集到的图像;Acquiring an image collected by the photographing device;
    检测所述图像中的特定姿势;Detecting a specific posture in the image;
    根据所述特定姿势控制所述手持云台和/或所述拍摄设备的参数。Controlling the parameters of the handheld pan/tilt and/or the photographing device according to the specific posture.
  27. 根据权利要求26所述的方法,其特征在于,所述手持云台的参数包括如下至少一种:The method according to claim 26, wherein the parameters of the handheld PTZ include at least one of the following:
    所述手持云台的姿态、旋转速度、旋转方向。The posture, rotation speed, and rotation direction of the handheld PTZ.
  28. 根据权利要求26所述的方法,其特征在于,所述拍摄设备的参数包括如下至少一种:The method according to claim 26, wherein the parameters of the photographing device include at least one of the following:
    所述拍摄设备的快门参数、所述拍摄设备的镜头焦距、所述拍摄设备 的跟焦参数。The shutter parameters of the shooting device, the lens focal length of the shooting device, and the follow focus parameters of the shooting device.
  29. 根据权利要求26-28任一项所述的方法,其特征在于,所述检测所述图像中的特定姿势,包括:The method according to any one of claims 26-28, wherein the detecting a specific posture in the image comprises:
    根据所述图像的整体区域,检测所述图像中的特定姿势。According to the overall area of the image, a specific posture in the image is detected.
  30. 根据权利要求29所述的方法,其特征在于,所述根据所述图像的整体区域,检测所述图像中的特定姿势,包括:The method of claim 29, wherein the detecting a specific posture in the image according to the overall area of the image comprises:
    当所述拍摄设备相对于拍摄对象的距离小于或等于预设距离时,根据所述图像的整体区域,检测所述图像中的特定姿势。When the distance of the shooting device relative to the shooting object is less than or equal to the preset distance, the specific posture in the image is detected according to the overall area of the image.
  31. 根据权利要求29所述的方法,其特征在于,所述根据所述图像的整体区域,检测所述图像中的特定姿势,包括:The method of claim 29, wherein the detecting a specific posture in the image according to the overall area of the image comprises:
    当所述拍摄设备采用前置摄像头采集所述图像时,根据所述图像的整体区域,检测所述图像中的特定姿势。When the photographing device uses a front camera to capture the image, it detects a specific posture in the image according to the overall area of the image.
  32. 根据权利要求26-28任一项所述的方法,其特征在于,所述检测所述图像中的特定姿势,包括:The method according to any one of claims 26-28, wherein the detecting a specific posture in the image comprises:
    根据所述图像的部分区域,检测所述图像中的特定姿势。According to a partial area of the image, a specific posture in the image is detected.
  33. 根据权利要求32所述的方法,其特征在于,所述根据所述图像的部分区域,检测所述图像中的特定姿势,包括:The method according to claim 32, wherein the detecting a specific posture in the image according to a partial area of the image comprises:
    当所述拍摄设备相对于拍摄对象的距离大于预设距离时,根据所述图像的部分区域,检测所述图像中的特定姿势。When the distance of the photographing device relative to the photographing object is greater than a preset distance, detecting a specific posture in the image according to a partial area of the image.
  34. 根据权利要求32所述的方法,其特征在于,所述根据所述图像的部分区域,检测所述图像中的特定姿势,包括:The method according to claim 32, wherein the detecting a specific posture in the image according to a partial area of the image comprises:
    当所述拍摄设备采用后置摄像头采集所述图像时,根据所述图像的部分区域,检测所述图像中的特定姿势。When the photographing device uses a rear camera to capture the image, it detects a specific posture in the image according to a partial area of the image.
  35. 根据权利要求33或34所述的方法,其特征在于,所述图像的部分区域包括所述图像中的至少一个特定身体区域;The method according to claim 33 or 34, wherein the partial area of the image includes at least one specific body area in the image;
    所述根据所述图像的部分区域,检测所述图像中的特定姿势,包括:The detecting a specific posture in the image according to a partial area of the image includes:
    确定所述至少一个特定身体区域中的每个所述特定身体区域在所述图像中的扩大区域;Determining an enlarged area of each of the at least one specific body area in the image;
    根据每个所述特定身体区域在所述图像中的扩大区域,检测所述图像中的特定姿势。According to the enlarged area of each of the specific body regions in the image, a specific posture in the image is detected.
  36. 根据权利要求35所述的方法,其特征在于,所述根据每个所述特定身体区域在所述图像中的扩大区域,检测所述图像中的特定姿势,包括:The method according to claim 35, wherein the detecting a specific posture in the image according to the enlarged area of each specific body region in the image comprises:
    将每个所述特定身体区域在所述图像中的扩大区域的大小调整为预设大小,得到每个所述特定身体区域对应的所述预设大小的扩大区域,所述预设大小满足检测模型的输入图像的大小;The size of the enlarged area of each specific body area in the image is adjusted to a preset size to obtain the enlarged area of the preset size corresponding to each specific body area, and the preset size satisfies the detection The size of the input image of the model;
    将每个所述特定身体区域对应的所述预设大小的扩大区域输入到所述检测模型中,通过所述检测模型检测每个所述特定身体区域对应的所述预设大小的扩大区域中的所述特定姿势。The enlarged area of the preset size corresponding to each specific body area is input into the detection model, and the enlarged area of the preset size corresponding to each specific body area is detected by the detection model Of the specific posture.
  37. 根据权利要求36所述的方法,其特征在于,所述将每个所述特定身体区域在所述图像中的扩大区域的大小调整为预设大小,包括:The method according to claim 36, wherein the adjusting the size of the enlarged area of each of the specific body regions in the image to a preset size comprises:
    在所述图像中对每个所述特定身体区域在所述图像中的扩大区域进行裁剪处理,得到每个所述扩大区域对应的裁剪区域;Performing cropping processing on the enlarged region of each specific body region in the image in the image, to obtain a cropped region corresponding to each of the enlarged regions;
    将每个所述扩大区域对应的裁剪区域的大小调整为所述预设大小。Adjusting the size of the cropping area corresponding to each of the enlarged areas to the preset size.
  38. 一种手持云台的控制装置,其特征在于,所述手持云台上搭载有拍摄设备,所述控制装置包括:存储器和处理器;A control device for a handheld pan/tilt head, characterized in that a photographing device is mounted on the handheld pan/tilt head, and the control device includes a memory and a processor;
    所述存储器用于存储程序代码;The memory is used to store program codes;
    所述处理器,调用所述程序代码,当程序代码被执行时,用于执行以下操作:The processor calls the program code, and when the program code is executed, is used to perform the following operations:
    获取所述拍摄设备采集到的图像;Acquiring an image collected by the photographing device;
    检测所述图像中的特定姿势;Detecting a specific posture in the image;
    根据所述特定姿势确定所述图像中的跟随对象;Determining the following object in the image according to the specific posture;
    控制所述手持云台对所述跟随对象进行跟随,并在跟随的过程中控制所述拍摄设备对所述跟随对象进行拍摄。Control the handheld pan/tilt to follow the following object, and control the photographing device to photograph the following object during the following process.
  39. 根据权利要求38所述的控制装置,其特征在于,所述处理器根据所述特定姿势确定所述图像中的跟随对象时,具体用于:The control device according to claim 38, wherein when the processor determines the following object in the image according to the specific posture, it is specifically configured to:
    检测所述图像中的至少一个特定身体区域;Detecting at least one specific body area in the image;
    确定所述至少一个特定身体区域中与发出所述特定姿势的目标对象匹配的特定身体区域中的对象为跟随对象。It is determined that an object in the specific body area matching the target object issuing the specific posture in the at least one specific body area is a follow object.
  40. 根据权利要求38所述的控制装置,其特征在于,所述处理器根 据所述特定姿势确定所述图像中的跟随对象时,具体用于:The control device according to claim 38, wherein when the processor determines the following object in the image according to the specific posture, it is specifically configured to:
    检测所述图像中的至少一个特定身体区域;Detecting at least one specific body area in the image;
    确定所述至少一个特定身体区域中与发出所述特定姿势的目标对象的距离满足第一预设条件的特定身体区域中的对象为跟随对象。It is determined that an object in the specific body area whose distance from the target object issuing the specific posture satisfies a first preset condition in the at least one specific body area is a follower object.
  41. 根据权利要求38-40任一项所述的控制装置,其特征在于,所述处理器控制所述手持云台对所述跟随对象进行跟随时,具体用于:The control device according to any one of claims 38-40, wherein when the processor controls the handheld pan/tilt to follow the following object, it is specifically configured to:
    控制所述手持云台对所述跟随对象进行跟随,使得所述跟随对象位于所述拍摄设备的拍摄画面中的预设位置。Control the handheld pan/tilt to follow the following object, so that the following object is located at a preset position in the shooting frame of the shooting device.
  42. 根据权利要求38-40任一项所述的控制装置,其特征在于,所述处理器控制所述手持云台对所述跟随对象进行跟随时,具体用于:The control device according to any one of claims 38-40, wherein when the processor controls the handheld pan/tilt to follow the following object, it is specifically configured to:
    控制所述手持云台对所述跟随对象在一方向上进行预设旋转角度的跟随。Control the handheld pan/tilt to follow the following object in a direction with a preset rotation angle.
  43. 根据权利要求41或42所述的控制装置,其特征在于,所述处理器在跟随的过程中控制所述拍摄设备对所述跟随对象进行拍摄时,具体用于:The control device according to claim 41 or 42, wherein when the processor controls the photographing device to photograph the following object during the following process, it is specifically configured to:
    在跟随的过程中控制所述拍摄设备以所述跟随对象的位置为中心对所述跟随对象进行拍摄。During the following process, the photographing device is controlled to photograph the following object with the position of the following object as the center.
  44. 根据权利要求38-43任一项所述的控制装置,其特征在于,所述处理器还用于:The control device according to any one of claims 38-43, wherein the processor is further configured to:
    根据所述特定姿势,控制所述拍摄设备在预设时长后对所述跟随对象进行所述拍摄。According to the specific posture, control the photographing device to photograph the following object after a preset period of time.
  45. 根据权利要求38-44任一项所述的控制装置,其特征在于,所述处理器还用于:The control device according to any one of claims 38-44, wherein the processor is further configured to:
    确定所述图像中发出所述特定姿势的目标对象;Determining the target object emitting the specific posture in the image;
    其中,所述目标对象发出的特定姿势用于指示所述手持云台对所述跟随对象执行所述跟随的跟随控制指令,和/或,用于指示所述拍摄设备对所述跟随对象执行所述拍摄的拍摄控制指令。Wherein, the specific posture issued by the target object is used to instruct the handheld pan/tilt to execute the following control instruction for the following object, and/or to instruct the photographing device to perform the following control instruction on the following object Describe shooting control commands for shooting.
  46. 根据权利要求45所述的控制装置,其特征在于,所述处理器确定所述图像中发出所述特定姿势的目标对象时,具体用于:The control device according to claim 45, wherein when the processor determines the target object emitting the specific posture in the image, it is specifically configured to:
    检测所述图像中的至少一个特定身体区域;Detecting at least one specific body area in the image;
    确定所述至少一个特定身体区域中的每个所述特定身体区域在所述图像中的扩大区域;Determining an enlarged area of each of the at least one specific body area in the image;
    根据每个所述特定身体区域在所述图像中的扩大区域,确定发出所述特定姿势的目标对象。According to the enlarged area of each specific body area in the image, the target object issuing the specific posture is determined.
  47. 根据权利要求46所述的控制装置,其特征在于,所述处理器根据每个所述特定身体区域在所述图像中的扩大区域,确定发出所述特定姿势的目标对象时,具体用于:The control device according to claim 46, wherein the processor is specifically configured to: when determining the target object issuing the specific posture according to the enlarged area of each specific body area in the image:
    检测每个所述特定身体区域在所述图像中的扩大区域中是否存在所述特定姿势;Detecting whether each of the specific body regions has the specific posture in the enlarged area in the image;
    若所述特定身体区域在所述图像中的扩大区域中存在所述特定姿势,则确定所述特定身体区域中的对象为所述目标对象。If the specific body area has the specific posture in the enlarged area in the image, it is determined that the object in the specific body area is the target object.
  48. 根据权利要求47所述的控制装置,其特征在于,所述特定姿势包括特定的单手手势,所述特定的单手手势的发出位置是任意的;The control device according to claim 47, wherein the specific posture comprises a specific one-handed gesture, and the issuing position of the specific one-handed gesture is arbitrary;
    若所述特定身体区域在所述图像中的扩大区域中存在所述特定的单手手势,且所述特定的单手手势与所述特定身体区域中的身体匹配,则所述处理器确定所述特定身体区域中的对象为所述目标对象。If the specific one-handed gesture exists in the enlarged area of the image in the specific body area, and the specific one-handed gesture matches the body in the specific body area, the processor determines The object in the specific body area is the target object.
  49. 根据权利要求48所述的控制装置,其特征在于,所述目标对象为所述跟随对象。The control device according to claim 48, wherein the target object is the following object.
  50. 根据权利要求48所述的控制装置,其特征在于,所述处理器还用于:The control device according to claim 48, wherein the processor is further configured to:
    若所述特定身体区域在所述图像中的扩大区域中存在所述特定的单手手势,且所述特定的单手手势与所述特定身体区域中的身体不匹配,则确定所述特定身体区域中的对象为所述跟随对象,以及确定与所述特定的单手手势匹配的身体对应的特定身体区域中的对象为所述目标对象。If the specific one-handed gesture exists in the enlarged area of the image for the specific body area, and the specific one-handed gesture does not match the body in the specific body area, determine the specific body The object in the area is the follow object, and it is determined that the object in the specific body area corresponding to the body matching the specific one-hand gesture is the target object.
  51. 根据权利要求47所述的控制装置,其特征在于,所述处理器还用于:The control device according to claim 47, wherein the processor is further configured to:
    若多个所述特定身体区域在所述图像中的扩大区域中存在所述特定姿势,则确定多个所述特定身体区域中满足第二预设条件的特定身体区域中的对象为所述目标对象。If a plurality of the specific body regions have the specific posture in the enlarged area in the image, determine an object in the specific body region that satisfies a second preset condition among the plurality of specific body regions as the target Object.
  52. 根据权利要求51所述的控制装置,其特征在于,所述第二预设 条件包括与所述图像的中心的距离小于第一预设阈值和/或在所述图像中的画面占比大于第二预设阈值;The control device according to claim 51, wherein the second preset condition comprises that the distance from the center of the image is less than a first preset threshold and/or the proportion of the screen in the image is greater than the first preset threshold. 2. The preset threshold;
    其中,所述画面占比是根据所述特定身体区域或所述特定身体区域在所述图像中的扩大区域的大小确定的。Wherein, the frame ratio is determined according to the size of the specific body area or the enlarged area of the specific body area in the image.
  53. 根据权利要求47-52任一项所述的控制装置,其特征在于,所述处理器检测每个所述特定身体区域在所述图像中的扩大区域中是否存在所述特定姿势时,具体用于:The control device according to any one of claims 47-52, wherein the processor detects whether each of the specific body regions has the specific posture in the enlarged area of the image, specifically using in:
    将每个所述特定身体区域在所述图像中的扩大区域的大小调整为预设大小,得到每个所述特定身体区域对应的所述预设大小的扩大区域,所述预设大小满足检测模型的输入图像的大小;The size of the enlarged area of each specific body area in the image is adjusted to a preset size to obtain the enlarged area of the preset size corresponding to each specific body area, and the preset size satisfies the detection The size of the input image of the model;
    将每个所述特定身体区域对应的所述预设大小的扩大区域输入到所述检测模型中,通过所述检测模型检测每个所述特定身体区域对应的所述预设大小的扩大区域中是否存在所述特定姿势。The enlarged area of the preset size corresponding to each specific body area is input into the detection model, and the enlarged area of the preset size corresponding to each specific body area is detected by the detection model Whether the specific posture exists.
  54. 根据权利要求53所述的控制装置,其特征在于,所述处理器将每个所述特定身体区域在所述图像中的扩大区域的大小调整为预设大小时,具体用于:The control device according to claim 53, wherein when the processor adjusts the size of the enlarged area of each specific body area in the image to a preset size, it is specifically configured to:
    在所述图像中对每个所述特定身体区域在所述图像中的扩大区域进行裁剪处理,得到每个所述扩大区域对应的裁剪区域;Performing cropping processing on the enlarged region of each specific body region in the image in the image, to obtain a cropped region corresponding to each of the enlarged regions;
    将每个所述扩大区域对应的裁剪区域的大小调整为所述预设大小。Adjusting the size of the cropping area corresponding to each of the enlarged areas to the preset size.
  55. 根据权利要求54所述的控制装置,其特征在于,所述扩大区域对应的裁剪区域的大小与所述扩大区域的大小相同。The control device according to claim 54, wherein the size of the cropped area corresponding to the enlarged area is the same as the size of the enlarged area.
  56. 根据权利要求54所述的控制装置,其特征在于,所述扩大区域对应的裁剪区域中的部分区域在所述图像之外。The control device according to claim 54, wherein a part of the cropped area corresponding to the enlarged area is outside the image.
  57. 根据权利要求47所述的控制装置,其特征在于,所述特定姿势包括特定的手部姿势,所述特定身体区域包括头肩区域,所述处理器确定所述至少一个特定身体区域中的每个所述特定身体区域在所述图像中的扩大区域时,具体用于:The control device according to claim 47, wherein the specific posture includes a specific hand posture, the specific body area includes a head and shoulders area, and the processor determines each of the at least one specific body area. When the specific body area is an enlarged area in the image, it is specifically used for:
    根据所述至少一个特定身体区域中的每个所述特定身体区域中的肩部宽度,确定每个所述特定身体区域在所述图像中的扩大区域的宽度;Determining the width of the enlarged area of each specific body area in the image according to the width of the shoulder in each of the at least one specific body area;
    根据每个所述特定身体区域在所述图像中的扩大区域的宽度,确定每 个所述特定身体区域在所述图像中的扩大区域的高度;Determining the height of the enlarged area of each specific body area in the image according to the width of the enlarged area of each specific body area in the image;
    根据所述宽度、所述高度确定每个所述特定身体区域在所述图像中的扩大区域。The enlarged area of each specific body area in the image is determined according to the width and the height.
  58. 根据权利要求57所述的控制装置,其特征在于,所述处理器根据所述至少一个特定身体区域中的每个所述特定身体区域中的肩部宽度,确定每个所述特定身体区域在所述图像中的扩大区域的宽度时,具体用于:The control device according to claim 57, wherein the processor determines that each of the at least one specific body area is in each of the specific body areas according to the shoulder width in each of the specific body areas. The width of the enlarged area in the image is specifically used for:
    根据所述至少一个特定身体区域中的每个所述特定身体区域中的肩部宽度以及所述肩部宽度的扩大倍数,确定每个所述特定身体区域在所述图像中的扩大区域的宽度。Determine the width of the enlarged area of each specific body area in the image according to the width of the shoulder in each specific body area in the at least one specific body area and the expansion multiple of the width of the shoulder .
  59. 根据权利要求57或58所述的控制装置,其特征在于,所述处理器根据每个所述特定身体区域在所述图像中的扩大区域的宽度,确定每个所述特定身体区域在所述图像中的扩大区域的高度时,具体用于:The control device according to claim 57 or 58, wherein the processor determines that each specific body area is in the image according to the width of the enlarged area of each specific body area in the image. The height of the enlarged area in the image is specifically used for:
    根据每个所述特定身体区域在所述图像中的扩大区域的宽度、以及每个所述特定身体区域在所述图像中的扩大区域的宽度与高度之间的比值,确定每个所述特定身体区域在所述图像中的扩大区域的高度。According to the width of the enlarged area of each specific body area in the image, and the ratio between the width and height of the enlarged area of each specific body area in the image, each specific body area is determined The height of the enlarged area of the body area in the image.
  60. 根据权利要求47所述的控制装置,其特征在于,所述特定姿势包括特定的身体姿势,所述特定身体区域包括头肩区域,所述处理器确定所述至少一个特定身体区域中的每个所述特定身体区域在所述图像中的扩大区域时,具体用于:The control device according to claim 47, wherein the specific posture includes a specific body posture, the specific body area includes a head and shoulder area, and the processor determines each of the at least one specific body area When the specific body area is an enlarged area in the image, it is specifically used for:
    根据所述至少一个特定身体区域中的每个所述特定身体区域中的头肩高度,确定每个所述特定身体区域在所述图像中的扩大区域的高度;Determining the height of the enlarged area of each specific body area in the image according to the height of the head and shoulders in each of the at least one specific body area;
    根据每个所述特定身体区域在所述图像中的扩大区域的高度,确定每个所述特定身体区域在所述图像中的扩大区域的宽度;Determine the width of the expanded area of each specific body area in the image according to the height of the expanded area of each specific body area in the image;
    根据所述宽度、所述高度确定每个所述特定身体区域在所述图像中的扩大区域。The enlarged area of each specific body area in the image is determined according to the width and the height.
  61. 根据权利要求60所述的控制装置,其特征在于,所述处理器根据所述至少一个特定身体区域中的每个所述特定身体区域中的头肩高度,确定每个所述特定身体区域在所述图像中的扩大区域的高度时,具体用于:The control device according to claim 60, wherein the processor determines that each of the specific body regions is at the height of the head and shoulders in each of the at least one specific body region. The height of the expanded area in the image is specifically used for:
    根据所述至少一个特定身体区域中的每个所述特定身体区域中的头肩高度以及所述头肩高度的扩大倍数,确定每个所述特定身体区域在所述 图像中的扩大区域的高度。Determine the height of the enlarged area of each specific body area in the image according to the height of the head and shoulders in each specific body area in the at least one specific body area and the expansion multiple of the head and shoulders height .
  62. 根据权利要求60或61所述的控制装置,其特征在于,所述处理器根据每个所述特定身体区域在所述图像中的扩大区域的高度,确定每个所述特定身体区域在所述图像中的扩大区域的宽度时,具体用于:The control device according to claim 60 or 61, wherein the processor determines that each of the specific body areas is in the image according to the height of the enlarged area in the image. When the width of the enlarged area in the image, it is specifically used for:
    根据每个所述特定身体区域在所述图像中的扩大区域的高度、以及每个所述特定身体区域在所述图像中的扩大区域的高度与宽度之间的比值,确定每个所述特定身体区域在所述图像中的扩大区域的宽度。According to the height of the enlarged area of each specific body area in the image and the ratio between the height and the width of the enlarged area of each specific body area in the image, each specific body area is determined The width of the enlarged area of the body area in the image.
  63. 一种手持云台的控制装置,其特征在于,所述手持云台上搭载有拍摄设备,所述控制装置包括:存储器和处理器;A control device for a handheld pan/tilt head, characterized in that a photographing device is mounted on the handheld pan/tilt head, and the control device includes a memory and a processor;
    所述存储器用于存储程序代码;The memory is used to store program codes;
    所述处理器,调用所述程序代码,当程序代码被执行时,用于执行以下操作:The processor calls the program code, and when the program code is executed, is used to perform the following operations:
    获取所述拍摄设备采集到的图像;Acquiring an image collected by the photographing device;
    检测所述图像中的特定姿势;Detecting a specific posture in the image;
    根据所述特定姿势控制所述手持云台和/或所述拍摄设备的参数。Controlling the parameters of the handheld pan/tilt and/or the photographing device according to the specific posture.
  64. 根据权利要求63所述的控制装置,其特征在于,所述手持云台的参数包括如下至少一种:The control device according to claim 63, wherein the parameters of the handheld PTZ include at least one of the following:
    所述手持云台的姿态、旋转速度、旋转方向。The posture, rotation speed, and rotation direction of the handheld PTZ.
  65. 根据权利要求63所述的控制装置,其特征在于,所述拍摄设备的参数包括如下至少一种:The control device according to claim 63, wherein the parameters of the photographing device include at least one of the following:
    所述拍摄设备的快门参数、所述拍摄设备的镜头焦距、所述拍摄设备的跟焦参数。The shutter parameters of the shooting device, the lens focal length of the shooting device, and the follow focus parameters of the shooting device.
  66. 根据权利要求63-65任一项所述的控制装置,其特征在于,所述处理器检测所述图像中的特定姿势时,具体用于:The control device according to any one of claims 63-65, wherein when the processor detects a specific posture in the image, it is specifically configured to:
    根据所述图像的整体区域,检测所述图像中的特定姿势。According to the overall area of the image, a specific posture in the image is detected.
  67. 根据权利要求66所述的控制装置,其特征在于,所述处理器根据所述图像的整体区域,检测所述图像中的特定姿势时,具体用于:The control device according to claim 66, wherein the processor is specifically configured to: when detecting a specific posture in the image according to the overall area of the image:
    当所述拍摄设备相对于拍摄对象的距离小于或等于预设距离时,根据所述图像的整体区域,检测所述图像中的特定姿势。When the distance of the shooting device relative to the shooting object is less than or equal to the preset distance, the specific posture in the image is detected according to the overall area of the image.
  68. 根据权利要求66所述的控制装置,其特征在于,所述处理器根 据所述图像的整体区域,检测所述图像中的特定姿势时,具体用于:The control device according to claim 66, wherein the processor is specifically configured to: when detecting a specific posture in the image based on the overall area of the image:
    当所述拍摄设备采用前置摄像头采集所述图像时,根据所述图像的整体区域,检测所述图像中的特定姿势。When the photographing device uses a front camera to capture the image, it detects a specific posture in the image according to the overall area of the image.
  69. 根据权利要求63-65任一项所述的控制装置,其特征在于,所述处理器检测所述图像中的特定姿势时,具体用于:The control device according to any one of claims 63-65, wherein when the processor detects a specific posture in the image, it is specifically configured to:
    根据所述图像的部分区域,检测所述图像中的特定姿势。According to a partial area of the image, a specific posture in the image is detected.
  70. 根据权利要求69所述的控制装置,其特征在于,所述处理器根据所述图像的部分区域,检测所述图像中的特定姿势时,具体用于:The control device according to claim 69, wherein the processor is specifically configured to: when detecting a specific posture in the image according to a partial area of the image:
    当所述拍摄设备相对于拍摄对象的距离大于预设距离时,根据所述图像的部分区域,检测所述图像中的特定姿势。When the distance of the photographing device relative to the photographing object is greater than a preset distance, detecting a specific posture in the image according to a partial area of the image.
  71. 根据权利要求69所述的控制装置,其特征在于,所述处理器根据所述图像的部分区域,检测所述图像中的特定姿势时,具体用于:The control device according to claim 69, wherein the processor is specifically configured to: when detecting a specific posture in the image according to a partial area of the image:
    当所述拍摄设备采用后置摄像头采集所述图像时,根据所述图像的部分区域,检测所述图像中的特定姿势。When the photographing device uses a rear camera to capture the image, it detects a specific posture in the image according to a partial area of the image.
  72. 根据权利要求70或71所述的控制装置,其特征在于,所述图像的部分区域包括所述图像中的至少一个特定身体区域;The control device according to claim 70 or 71, wherein a partial area of the image includes at least one specific body area in the image;
    所述处理器根据所述图像的部分区域,检测所述图像中的特定姿势时,具体用于:When the processor detects a specific posture in the image according to a partial area of the image, it is specifically configured to:
    确定所述至少一个特定身体区域中的每个所述特定身体区域在所述图像中的扩大区域;Determining an enlarged area of each of the at least one specific body area in the image;
    根据每个所述特定身体区域在所述图像中的扩大区域,检测所述图像中的特定姿势。According to the enlarged area of each of the specific body regions in the image, a specific posture in the image is detected.
  73. 根据权利要求72所述的控制装置,其特征在于,所述处理器根据每个所述特定身体区域在所述图像中的扩大区域,检测所述图像中的特定姿势时,具体用于:The control device according to claim 72, wherein the processor is specifically configured to: when detecting a specific posture in the image according to the enlarged area of each specific body region in the image:
    将每个所述特定身体区域在所述图像中的扩大区域的大小调整为预设大小,得到每个所述特定身体区域对应的所述预设大小的扩大区域,所述预设大小满足检测模型的输入图像的大小;The size of the enlarged area of each specific body area in the image is adjusted to a preset size to obtain the enlarged area of the preset size corresponding to each specific body area, and the preset size satisfies the detection The size of the input image of the model;
    将每个所述特定身体区域对应的所述预设大小的扩大区域输入到所述检测模型中,通过所述检测模型检测每个所述特定身体区域对应的所述 预设大小的扩大区域中的所述特定姿势。Input the enlarged area of the preset size corresponding to each of the specific body regions into the detection model, and detect the enlarged area of the preset size corresponding to each of the specific body regions through the detection model Of the specific posture.
  74. 根据权利要求73所述的控制装置,其特征在于,所述处理器将每个所述特定身体区域在所述图像中的扩大区域的大小调整为预设大小时,具体用于:The control device according to claim 73, wherein when the processor adjusts the size of the enlarged area of each specific body area in the image to a preset size, it is specifically configured to:
    在所述图像中对每个所述特定身体区域在所述图像中的扩大区域进行裁剪处理,得到每个所述扩大区域对应的裁剪区域;Performing cropping processing on the enlarged region of each specific body region in the image in the image, to obtain a cropped region corresponding to each of the enlarged regions;
    将每个所述扩大区域对应的裁剪区域的大小调整为所述预设大小。Adjusting the size of the cropping area corresponding to each of the enlarged areas to the preset size.
  75. 一种手持云台,其特征在于,包括:A handheld pan/tilt, characterized in that it comprises:
    云台,所述云台上承载有拍摄设备;A pan/tilt, on which photographing equipment is carried;
    基座,所述基站与所述云台连接;以及A base, the base station is connected to the pan-tilt; and
    如权利要求38-74任一项所述的控制装置。The control device according to any one of claims 38-74.
  76. 一种计算机可读存储介质,其特征在于,其上存储有计算机程序,所述计算机程序被处理器执行以实现权利要求1-37任一项所述的方法。A computer-readable storage medium, characterized in that a computer program is stored thereon, and the computer program is executed by a processor to implement the method according to any one of claims 1-37.
PCT/CN2019/100446 2019-08-13 2019-08-13 Control method and control apparatus for handheld cradle head, handheld cradle head and storage medium WO2021026782A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201980033454.XA CN112154652A (en) 2019-08-13 2019-08-13 Control method and control device of handheld cloud deck, handheld cloud deck and storage medium
PCT/CN2019/100446 WO2021026782A1 (en) 2019-08-13 2019-08-13 Control method and control apparatus for handheld cradle head, handheld cradle head and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/100446 WO2021026782A1 (en) 2019-08-13 2019-08-13 Control method and control apparatus for handheld cradle head, handheld cradle head and storage medium

Publications (1)

Publication Number Publication Date
WO2021026782A1 true WO2021026782A1 (en) 2021-02-18

Family

ID=73891545

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/100446 WO2021026782A1 (en) 2019-08-13 2019-08-13 Control method and control apparatus for handheld cradle head, handheld cradle head and storage medium

Country Status (2)

Country Link
CN (1) CN112154652A (en)
WO (1) WO2021026782A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157806A (en) * 2021-11-23 2022-03-08 深圳市商汤科技有限公司 Holder control method and device, holder and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118227A (en) * 2012-11-16 2013-05-22 佳都新太科技股份有限公司 Method, device and system of pan tilt zoom (PTZ) control of video camera based on kinect
US8902198B1 (en) * 2012-01-27 2014-12-02 Amazon Technologies, Inc. Feature tracking for device input
CN204347618U (en) * 2015-01-12 2015-05-20 南京信息工程大学 Based on the mobile phone self-shooting bar tripod head controlling device of gesture identification
CN104808799A (en) * 2015-05-20 2015-07-29 成都通甲优博科技有限责任公司 Unmanned aerial vehicle capable of indentifying gesture and identifying method thereof
CN106200919A (en) * 2016-06-27 2016-12-07 广东欧珀移动通信有限公司 The method of controlling rotation of self-shooting bar, device and intelligent terminal
CN106249888A (en) * 2016-07-28 2016-12-21 纳恩博(北京)科技有限公司 A kind of cloud platform control method and device
CN106843489A (en) * 2017-01-24 2017-06-13 腾讯科技(深圳)有限公司 The flight path control method and aircraft of a kind of aircraft
CN109074168A (en) * 2018-01-23 2018-12-21 深圳市大疆创新科技有限公司 Control method, equipment and the unmanned plane of unmanned plane

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683847A (en) * 2015-02-04 2015-06-03 四川长虹电器股份有限公司 Television capable of controlling volume intelligently and method
CN104809744B (en) * 2015-04-29 2017-09-22 小米科技有限责任公司 Image processing method and device
CN105528078B (en) * 2015-12-15 2019-03-22 小米科技有限责任公司 The method and device of controlling electronic devices
CN106339093B (en) * 2016-08-31 2019-12-13 纳恩博(北京)科技有限公司 Cloud deck control method and device
CN108229369B (en) * 2017-12-28 2020-06-02 Oppo广东移动通信有限公司 Image shooting method and device, storage medium and electronic equipment
CN109196438A (en) * 2018-01-23 2019-01-11 深圳市大疆创新科技有限公司 A kind of flight control method, equipment, aircraft, system and storage medium
CN108737714A (en) * 2018-03-21 2018-11-02 北京猎户星空科技有限公司 A kind of photographic method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8902198B1 (en) * 2012-01-27 2014-12-02 Amazon Technologies, Inc. Feature tracking for device input
CN103118227A (en) * 2012-11-16 2013-05-22 佳都新太科技股份有限公司 Method, device and system of pan tilt zoom (PTZ) control of video camera based on kinect
CN204347618U (en) * 2015-01-12 2015-05-20 南京信息工程大学 Based on the mobile phone self-shooting bar tripod head controlling device of gesture identification
CN104808799A (en) * 2015-05-20 2015-07-29 成都通甲优博科技有限责任公司 Unmanned aerial vehicle capable of indentifying gesture and identifying method thereof
CN106200919A (en) * 2016-06-27 2016-12-07 广东欧珀移动通信有限公司 The method of controlling rotation of self-shooting bar, device and intelligent terminal
CN106249888A (en) * 2016-07-28 2016-12-21 纳恩博(北京)科技有限公司 A kind of cloud platform control method and device
CN106843489A (en) * 2017-01-24 2017-06-13 腾讯科技(深圳)有限公司 The flight path control method and aircraft of a kind of aircraft
CN109074168A (en) * 2018-01-23 2018-12-21 深圳市大疆创新科技有限公司 Control method, equipment and the unmanned plane of unmanned plane

Also Published As

Publication number Publication date
CN112154652A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
US11860511B2 (en) Image pickup device and method of tracking subject thereof
CN106331508B (en) Method and device for shooting composition
JP5659305B2 (en) Image generating apparatus and image generating method
JP5659304B2 (en) Image generating apparatus and image generating method
US11570333B2 (en) Image pickup device and electronic system including the same
JP5769813B2 (en) Image generating apparatus and image generating method
JP5865388B2 (en) Image generating apparatus and image generating method
WO2017088678A1 (en) Long-exposure panoramic image shooting apparatus and method
EP2993894B1 (en) Image capturing method and electronic apparatus
CN105120179B (en) A kind of photographic method and device
CN114095662B (en) Shooting guide method and electronic equipment
JPH0380676A (en) Electronic pan focus device
WO2017128750A1 (en) Image collection method and image collection device
WO2020047745A1 (en) Photographing control method, apparatus and device and device and storage medium
CN103402058B (en) A kind of processing method and processing device shooting image
WO2019227333A1 (en) Group photograph photographing method and apparatus
WO2022001806A1 (en) Image transformation method and apparatus
CN109690568A (en) A kind of processing method and mobile device
CN110291777B (en) Image acquisition method, device and machine-readable storage medium
CN111654624B (en) Shooting prompting method and device and electronic equipment
CN104580899B (en) The control method and imaging device of image objects
CN105721788A (en) Multi-camera electronic device and photographing method of multi-camera electronic device
JP2020188448A (en) Imaging apparatus and imaging method
CN113302908B (en) Control method, handheld cradle head, system and computer readable storage medium
WO2021026782A1 (en) Control method and control apparatus for handheld cradle head, handheld cradle head 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: 19941667

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19941667

Country of ref document: EP

Kind code of ref document: A1