WO2019205103A1 - Pan-tilt orientation correction method, pan-tilt orientation correction apparatus, pan-tilt, pan-tilt system, and unmanned aerial vehicle - Google Patents

Pan-tilt orientation correction method, pan-tilt orientation correction apparatus, pan-tilt, pan-tilt system, and unmanned aerial vehicle Download PDF

Info

Publication number
WO2019205103A1
WO2019205103A1 PCT/CN2018/084912 CN2018084912W WO2019205103A1 WO 2019205103 A1 WO2019205103 A1 WO 2019205103A1 CN 2018084912 W CN2018084912 W CN 2018084912W WO 2019205103 A1 WO2019205103 A1 WO 2019205103A1
Authority
WO
WIPO (PCT)
Prior art keywords
pan
tilt
posture
image data
gimbal
Prior art date
Application number
PCT/CN2018/084912
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 CN201880013975.4A priority Critical patent/CN110382358A/en
Priority to PCT/CN2018/084912 priority patent/WO2019205103A1/en
Publication of WO2019205103A1 publication Critical patent/WO2019205103A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C11/00Photogrammetry or videogrammetry, e.g. stereogrammetry; Photographic surveying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30244Camera pose

Definitions

  • the embodiment of the invention provides a PTZ attitude correction method, a PTZ attitude correction device, a PTZ, a PTZ system and a UAV, which can correct the attitude error caused by the drift of the PTZ attitude sensor, and can improve the user experience.
  • a PTZ attitude correction method which corrects a posture of a PTZ according to image data acquired by a photographing device mounted on the PTZ, and includes: acquiring the image data a line sub-set of straight lines parallel to each other; calculating an observation posture of the pan/tilt according to the line sub-set; and correcting a current posture of the gimbal according to the observation posture.
  • the pan/tilt head 101 and the photographing device 102 may not be mounted on the drone 100, but may be used separately, such as a handheld pan/tilt or a pan/tilt head (not shown).
  • the present invention does not limit the specific application scenarios of the pan/tilt head 101 and the photographing device 102.
  • straight line subset of straight lines that are parallel to each other is extracted from the set of straight lines, and any algorithm existing or capable of performing similar functions may be used.
  • a line sub-set of vertical lines parallel to each other is extracted from the set of straight lines according to a vertical line feature.
  • step S4001 a linear subset of straight lines parallel to each other in the image data is acquired.
  • it can be implemented in the same manner as step S3001 of the first embodiment, and details are not described herein again.
  • the method for obtaining the vertical line set in the line subset is the same as that in the previous embodiment, and details are not described herein again.
  • the roll direction is calculated only by calculating the angle between the vertical lines in the image.
  • the roll angle allows the current observation pose to be calculated with a low amount of calculation.
  • the third embodiment is different from the second embodiment in that step S5002 is used instead of step S4002 in the second embodiment.
  • step S50021 it is determined that the pan/tilt is in a horizontal state in the pitch direction. In the case where the pan/tilt is in the horizontal state in the pitch direction, the process proceeds to step S50023, and otherwise proceeds to step S50022.
  • the photographing device 102 by introducing the information of the main camera (the photographing device 102), by first prejudge the current pitch direction posture of the gimbal, only the image is calculated by determining that the pan tilt is in the horizontal state in the pitch direction.
  • the angle of the vertical line is calculated as the roll angle in the roll direction.
  • the observation attitude of the pan/tilt is calculated according to the position of the shadow point, so that the current calculation can be calculated with good calculation and calculation accuracy.

Abstract

A pan-tilt orientation correction apparatus and a correction method therefor. An orientation of a pan-tilt (101) is corrected according to image data obtained by a photographing device (102) carried by the pan-tilt (101). The correction apparatus comprises a memory and a processor. The correction method comprises: obtaining a line sub-set of parallel lines in the image data (S3001); calculating an observation orientation of the pan-tilt (101) according to the line sub-set (S3002); and correcting a current orientation of the pan-tilt (101) according to the observation orientation (S3003). The correction apparatus and the correction method are applied to an unmanned aerial vehicle (100) and a pan-tilt system thereof.

Description

云台姿态修正方法、云台姿态修正装置、云台、云台系统和无人机PTZ attitude correction method, pan/tilt attitude correction device, pan/tilt, pan/tilt system and drone 技术领域Technical field
本发明实施例涉及云台领域,尤其涉及一种云台姿态修正方法、云台姿态修正装置、云台、云台系统和无人机。Embodiments of the present invention relate to the field of cloud platforms, and in particular, to a pan-tilt attitude correction method, a pan-tilt attitude correction device, a pan/tilt head, a pan-tilt system, and a drone.
背景技术Background technique
目前,云台常被用作在移动设备如无人机、手持杆上稳定相机等拍摄设备。以常见的三轴云台为例,其可以通过在Yaw轴(偏航轴)、Pitch轴(俯仰轴)和Roll轴(横滚轴)三个轴上所设置的电机来实现三个方向的主动增稳,并且在负载设备(如云台搭载的相机)上设置有姿态传感器以实时获取负载设备的在Yaw、Pitch、Roll方向上的姿态。云台在追求小型化且应用于价格敏感的消费级产品时,往往使用的姿态传感器为MEMS惯性器件。MEMS惯性器件一般由于其本身实现方式,存在着较大的漂移率,会导致感测结果出现漂移量,且该漂移量会随着时间的增加而累积。因此当时间稍长时,姿态传感系统的测量都将会产生漂移量,尤其是roll轴的漂移量,因roll方向上发生偏转将会导致用户感觉画面整体发生旋转,而体现更为明显,影响用户体验。At present, the PTZ is often used as a camera for stabilizing cameras on mobile devices such as drones and handheld poles. Take the common three-axis pan/tilt as an example. It can realize three directions by the motor set on the Yaw axis (yaw axis), Pitch axis (pitch axis) and Roll axis (roller axis). Actively stabilized, and an attitude sensor is provided on a load device (such as a camera mounted on a gimbal) to acquire the attitude of the load device in the Yaw, Pitch, and Roll directions in real time. When PTZ is pursuing miniaturization and is applied to price-sensitive consumer products, the attitude sensor often used is a MEMS inertial device. MEMS inertial devices generally have a large drift rate due to their implementation, which causes the sensing results to drift, and the amount of drift will accumulate over time. Therefore, when the time is a little longer, the measurement of the attitude sensing system will produce a drift amount, especially the drift amount of the roll axis. Since the deflection in the roll direction will cause the user to feel the overall rotation of the screen, the embodiment is more obvious. Affect the user experience.
发明内容Summary of the invention
本发明实施例提供一种云台姿态修正方法、云台姿态修正装置、云台、云台系统和无人机,能够修正云台姿态传感器的漂移造成的姿态误差,可以提高用户体验。The embodiment of the invention provides a PTZ attitude correction method, a PTZ attitude correction device, a PTZ, a PTZ system and a UAV, which can correct the attitude error caused by the drift of the PTZ attitude sensor, and can improve the user experience.
本发明的第一方面,提供一种云台姿态修正方法,根据所述云台搭载的拍摄设备获取的图像数据对云台的姿态进行修正,其特征在于,包括:获取所述图像数据中的相互平行的直线的直线子集合;根据所述直线子集合计算出所述云台的观测姿态;根据所述观测姿态对所述云台的当前姿态 进行修正。According to a first aspect of the present invention, a PTZ attitude correction method is provided, which corrects a posture of a PTZ according to image data acquired by a photographing device mounted on the PTZ, and includes: acquiring the image data a line sub-set of straight lines parallel to each other; calculating an observation posture of the pan/tilt according to the line sub-set; and correcting a current posture of the gimbal according to the observation posture.
本发明的第二方面,提供一种云台姿态修正装置,根据所述云台搭载的拍摄设备获取的图像数据对云台的姿态进行修正,其特征在于,包括:存储器,存储用于控制云台姿态修正装置的指令集;和一个或多个处理器,其被配置成根据所述存储器存储的指令集执行如下处理:获取所述图像数据中的相互平行的直线的直线子集合;根据所述直线子集合计算出所述云台的观测姿态;根据所述观测姿态对所述云台的当前姿态进行修正。According to a second aspect of the present invention, a pan/tilt attitude correction device is provided, which corrects a posture of a gimbal according to image data acquired by a photographing device mounted on the gimbal, and is characterized in that: a memory is stored for controlling the cloud An instruction set of the posture correction device; and one or more processors configured to perform processing of acquiring a line sub-set of mutually parallel straight lines in the image data according to the instruction set stored in the memory; The linear sub-set calculates the observation posture of the pan-tilt; and corrects the current posture of the gimbal according to the observation posture.
本发明的第三方面,提供一种云台,具备上述的云台姿态修正装置。According to a third aspect of the present invention, a cloud platform comprising the above-described pan/tilt attitude correction device is provided.
本发明的第四方面,提供一种云台系统,具有上述的云台和搭载于所述云台的所述拍摄设备。According to a fourth aspect of the present invention, a cloud platform system comprising the above-described pan/tilt head and the photographing device mounted on the pan/tilt head is provided.
本发明的第五方面,提供一种无人机,搭载有上述的云台系统。According to a fifth aspect of the invention, there is provided a drone equipped with the above-described pan/tilt head system.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图进行简单介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are some embodiments of the present invention. One of ordinary skill in the art can also obtain other drawings based on these drawings without paying for inventive labor.
图1是表示本发明实施例提供的云台的应用场景的示例的图。FIG. 1 is a diagram showing an example of an application scenario of a pan/tilt provided by an embodiment of the present invention.
图2是用于对消影点的概念进行说明的图。FIG. 2 is a diagram for explaining the concept of a subtraction point.
图3是表示本发明实施例的云台姿态修正方法的第一实施例的流程图。Fig. 3 is a flow chart showing a first embodiment of a pan/tilt attitude correcting method according to an embodiment of the present invention.
图4是表示本发明实施例的云台姿态修正方法的第二实施例的流程图。Fig. 4 is a flow chart showing a second embodiment of the pan/tilt attitude correcting method according to the embodiment of the present invention.
图5是用于对步骤S4002进行说明的流程图。FIG. 5 is a flowchart for explaining step S4002.
图6是用于说明步骤S4002中的计算的示意图。FIG. 6 is a schematic diagram for explaining the calculation in step S4002.
图7是表示本发明实施例的云台姿态修正方法的第三实施例中的步骤S5002的流程图。Fig. 7 is a flowchart showing a step S5002 in the third embodiment of the pan/tilt attitude correcting method according to the embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly described with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
需要说明的是,当组件被称为“固定于”另一个组件,它可以直接在另一个组件上或者也可以存在居中的组件。当一个组件被认为是“连接”另一个组件,它可以是直接连接到另一个组件或者可能同时存在居中组件。It should be noted that when a component is referred to as being "fixed" to another component, it can be directly on the other component or the component can be present. When a component is considered to "connect" another component, it can be directly connected to another component or possibly a central component.
除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。本文中在本发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本发明。本文所使用的术语“及/或”包括一个或多个相关的所列项目的任意的和所有的组合。All technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs, unless otherwise defined. The terminology used in the description of the present invention is for the purpose of describing particular embodiments and is not intended to limit the invention. The term "and/or" used herein includes any and all combinations of one or more of the associated listed items.
下面结合附图,对本发明的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Some embodiments of the present invention are described in detail below with reference to the accompanying drawings. The features of the embodiments and examples described below can be combined with each other without conflict.
为了便于理解本发明,首先对本发明的主要思路以及方案中涉及的一些背景技术进行说明。In order to facilitate the understanding of the present invention, the main idea of the present invention and some background technologies involved in the solution are first described.
本发明的主要技术思路即是在于利用空间中的平行直线在相机图像(例如云台上设置的主相机所获取的图像)中所成的像来对云台的姿态进行修正。具体来说,通过引入主相机(搭载于云台的拍摄设备,也可以是集成于云台的拍摄设备)信息,使用图像消影点特征获取云台的roll轴和pitch轴角度、或者使用竖直线特征获取云台的roll轴角度,从而引入新的观测姿态信息,与云台本身目前姿态信息(可以是通过云台上设置的IMU数据计算得到的姿态信息)进行融合,以减小云台roll轴和pitch轴的漂移,从而提高云台姿态控制的准确性,提高用户使用体验。在一些实施例中,本发明将利用空间中平行直线在图像画面中所成的像对应的消影点来对云台姿态进行修正;在另一些实施例中,本发明将直接利用空间中平行直线所成的像来对云台姿态进行修正而不经过消影点计算过程;在再另外的一些实施例中,本发明将上述两种修正方式组合使用。The main technical idea of the present invention is to correct the posture of the gimbal by using an image formed by a parallel line in space in a camera image (for example, an image acquired by a main camera provided on a gimbal). Specifically, by introducing information of a main camera (a shooting device mounted on a gimbal, or a shooting device integrated in a gimbal), an image erasing point feature is used to obtain a roll axis and a pitch axis angle of the gimbal, or a vertical The linear feature acquires the roll axis angle of the gimbal, thereby introducing new observation attitude information, and integrating with the current attitude information of the gimbal itself (which may be the posture information calculated by the IMU data set on the gimbal) to reduce the cloud The drift of the roll axis and the pitch axis improves the accuracy of the attitude control of the gimbal and improves the user experience. In some embodiments, the present invention will utilize a shadow point corresponding to the image formed by the parallel lines in the image in the image to correct the pan/tilt pose; in other embodiments, the present invention will directly utilize parallel in space. The image formed by the straight line is used to correct the pan-tilt attitude without going through the elimination point calculation process; in still other embodiments, the present invention combines the above two correction modes.
首先,对本发明实施例提供的云台的应用场景进行说明。First, the application scenario of the pan/tilt provided by the embodiment of the present invention is described.
图1是表示本发明一些实施例提供的云台的应用场景的示例的图。无 人机100例如可以是多轴无人机、固定翼无人机或者垂直起降式的无人机的任何一种,图中以多轴无人机为例进行说明,包括云台101和拍摄设备102。无人机100自主或在未图示的控制终端的控制下飞行,并由无人机100上搭载的拍摄设备102对目标110进行拍摄。云台101与无人机100相连,用于搭载拍摄设备102。这里,为了便于理解,目标110在该图中描绘成例如公路等包含平行的直线的对象,但本发明并非限定于此。FIG. 1 is a diagram showing an example of an application scenario of a pan/tilt provided by some embodiments of the present invention. The drone 100 can be, for example, a multi-axis UAV, a fixed-wing UAV, or a vertical take-off drone. The multi-axis UAV is taken as an example, including the PTZ 101 and Shooting device 102. The drone 100 flies autonomously or under the control of a control terminal (not shown), and the subject 110 is photographed by the photographing device 102 mounted on the drone 100. The pan/tilt 101 is connected to the drone 100 and is used to mount the photographing device 102. Here, for the sake of easy understanding, the object 110 is depicted in the figure as an object including a parallel straight line such as a road, but the present invention is not limited thereto.
在本发明另一些实施例中,云台101和拍摄设备102也可以不搭载于无人机100上,而单独进行使用,例如手持云台或摄影云台(图未示)。本发明对云台101和拍摄设备102的具体应用场景并不作限制。In other embodiments of the present invention, the pan/tilt head 101 and the photographing device 102 may not be mounted on the drone 100, but may be used separately, such as a handheld pan/tilt or a pan/tilt head (not shown). The present invention does not limit the specific application scenarios of the pan/tilt head 101 and the photographing device 102.
可以理解的是,云台101搭载拍摄设备102,可以包括拍摄设备102集成于或可拆卸地连接于云台101上(例如可更换镜头的云台相机)的情况,也可以包括拍摄设备102承载于云台101上并与云台101通信连接(例如手机云台)的情况,此处并不做限制。云台具有多个能够转动的轴,可以在各个方向上转动,从而调整拍摄设备102的拍摄方向。本发明实施例中,云台至少包括俯仰轴和横滚轴,可以使云台在俯仰方向和横滚方向上运动,云台101的观测姿态至少包括云台101的俯仰角度和横滚角度。It can be understood that the pan/tilt head 101 is equipped with the photographing device 102, and may include a case where the photographing device 102 is integrated or detachably connected to the pan/tilt head 101 (for example, a pan-tilt camera with an interchangeable lens), and may also include the photographing device 102. In the case of the Yuntai 101 and the communication connection with the PTZ 101 (for example, a mobile phone PTZ), there is no limitation here. The pan/tilt has a plurality of rotatable shafts that can be rotated in various directions to adjust the photographing direction of the photographing device 102. In the embodiment of the present invention, the pan/tilt head includes at least a pitch axis and a roll axis, and the pan/tilt head can be moved in the pitch direction and the roll direction. The observation posture of the pan/tilt head 101 includes at least the pitch angle and the roll angle of the pan-tilt head 101.
拍摄设备102搭载于云台101,用于对目标进行拍摄。拍摄设备102可以是各种类型的拍摄设备,例如可以拍摄高清图像的相机、拍摄连续视频的摄像机、拍摄红外图像的夜视仪等。The imaging device 102 is mounted on the pan/tilt head 101 for imaging a target. The photographing apparatus 102 may be various types of photographing apparatuses such as a camera that can take a high-definition image, a camera that shoots a continuous video, a night vision that photographs an infrared image, and the like.
以下,以三个实施例为例对本发明的实施例具体进行说明。Hereinafter, embodiments of the present invention will be specifically described by taking three embodiments as examples.
第一实施例First embodiment
以下,对使用图像消影点特征获取云台的roll轴和pitch轴角度的第一实施例进行说明。Hereinafter, a first embodiment in which the roll axis and the pitch axis angle of the pan/tilt are acquired using the image erasing point feature will be described.
图2是用于对消影点的概念进行说明的图。在相机成像的透视投影过程中,三维空间中平行的直线(如相互平行的铁轨、道路边缘、或者建筑物边缘线等)在相机的成像画面中相交于一点,此点即为消影点。图2中标出了2个作为示例的消影点v 1和v 2。在透视投影中,消影点的位置取决于三维空间中平行直线方向与成像平面,因此根据相机与三维空间中平行线的相对位置关系的变化,消影点在成像平面中的位置也会随之改变。 FIG. 2 is a diagram for explaining the concept of a subtraction point. In the perspective projection process of camera imaging, parallel lines in three-dimensional space (such as mutually parallel rails, road edges, or building edge lines, etc.) intersect at a point in the camera's imaging picture, which is the elimination point. Two shading points v 1 and v 2 are taken as an example in FIG. 2 . In perspective projection, the position of the shadow point depends on the direction of the parallel line in the three-dimensional space and the imaging plane. Therefore, according to the change of the relative positional relationship between the camera and the parallel lines in the three-dimensional space, the position of the shadow point in the imaging plane will also follow. Change.
图3是表示本发明实施例的云台姿态修正方法的第一实施例的流程图。第一实施例的云台姿态修正方法,可以通过由云台101中搭载的控制器、拍摄设备102搭载的控制器、无人机100搭载的控制器、或者未图示的控制终端等中的控制器执行其能访问的存储器中存储的描述该方法的程序来实现,从而对云台的姿态进行修正。本发明实施例的云台姿态修正方法,根据所述云台101搭载的拍摄设备102获取的图像数据对云台的姿态进行修正,包括如下步骤:Fig. 3 is a flow chart showing a first embodiment of a pan/tilt attitude correcting method according to an embodiment of the present invention. The pan/tilt attitude correction method of the first embodiment can be implemented by a controller mounted on the pan-tilt head 101, a controller mounted on the imaging device 102, a controller mounted on the drone 100, or a control terminal (not shown). The controller performs a program describing the method stored in a memory that it can access, thereby correcting the attitude of the gimbal. The pan/tilt attitude correction method according to the embodiment of the present invention corrects the posture of the gimbal according to the image data acquired by the imaging device 102 mounted on the pan-tilt 101, and includes the following steps:
在步骤S3001,获取所述图像数据中的相互平行的直线的直线子集合;In step S3001, a linear subset of straight lines parallel to each other in the image data is acquired;
在步骤S3002,根据所述直线子集合计算出所述云台的观测姿态;In step S3002, an observation posture of the pan/tilt is calculated according to the linear subset;
在步骤S3003,根据所述观测姿态对所述云台的当前姿态进行修正。In step S3003, the current posture of the pan/tilt is corrected according to the observed posture.
这里,在步骤S3001中,相互平行的直线指的是在三维空间,或者说被拍摄物体中的相互平行的直线,例如相互平行的铁轨、道路边缘或者建筑物边缘线等。而所述相互平行的直线的直线子集合,这里的直线子集合指的是所述相互平行的直线在成像画面中所对应的直线,即直线子集合是图像数据中的一组直线。获取所述图像数据中的相互平行的直线的直线子集合,可以使用现有或者可以实现类似功能的任何算法。具体地,可以首先获取所述图像数据中的直线集合,之后从所述直线集合中提取出所述相互平行的直线的直线子集合;在从所述直线集合中提取出所述相互平行的直线的直线子集合时,如前所述,由于相互平行的直线在图像中会相交于消影点,因此可以据此特征进行相互平行的直线的筛选,即相交于同一个点的一组直线可以认为是相互平行的直线,具体的计算过程将在后述消影点计算过程中做出进一步阐述。Here, in step S3001, straight lines parallel to each other refer to mutually parallel straight lines in a three-dimensional space, or objects to be photographed, such as rails, road edges, or building edge lines which are parallel to each other. And the linear subset of the mutually parallel straight lines, where the linear subset refers to the straight line corresponding to the mutually parallel straight lines in the imaged image, that is, the linear subset is a set of straight lines in the image data. To obtain a linear subset of mutually parallel straight lines in the image data, any algorithm that is existing or can perform similar functions can be used. Specifically, a set of straight lines in the image data may be first acquired, and then a subset of straight lines of the mutually parallel straight lines may be extracted from the set of straight lines; and the mutually parallel straight lines are extracted from the set of straight lines When the linear sub-sets are as described above, since the mutually parallel straight lines intersect in the image in the image, the parallel lines can be filtered according to the feature, that is, a set of straight lines intersecting at the same point can be It is considered to be parallel lines, and the specific calculation process will be further elaborated in the calculation process of the elimination point described later.
其中,取所述图像数据中的直线集合,可以使用现有或者可以实现类似功能的任何算法。作为一个具体例,通过对所述图像数据进行边缘算子运算来检测被拍摄体的边缘,并对所述边缘进行直线拟合以获取所述图像数据中直线集合,这里的在图像数据处理中的边缘算子,包括且不限于Sobel算子、Roberts算子、Prewitt算子。Wherein, taking a set of straight lines in the image data, any algorithm existing or capable of implementing similar functions may be used. As a specific example, an edge of the subject is detected by performing an edge operator operation on the image data, and a straight line fit is performed on the edge to obtain a line set in the image data, where image data processing is performed. Edge operators include, but are not limited to, Sobel operators, Roberts operators, and Prewitt operators.
而作为对所述边缘进行直线拟合的一个具体例,可以通过霍夫变换对所述边缘进行直线拟合。As a specific example of straight line fitting the edge, the edge can be straight-line fitted by Hough transform.
另外,所述从所述直线集合中提取出相互平行的直线的直线子集合, 可以使用现有或者可以实现类似功能的任何算法。作为一个具体例,根据竖直线特征从所述直线集合中提取出相互平行的竖直直线的直线子集合。In addition, the straight line subset of straight lines that are parallel to each other is extracted from the set of straight lines, and any algorithm existing or capable of performing similar functions may be used. As a specific example, a line sub-set of vertical lines parallel to each other is extracted from the set of straight lines according to a vertical line feature.
这里,作为竖直线特征,可以使用任何能够表明直线为竖直线的几何特征或数学特征。作为一例,所述竖直线特征包括对应于三维空间中的竖直线(如建筑物的竖直边缘等)在图像数据中对应的直线的斜率和方向;具体地,当对图像数据进行处理,拟合出边缘直线,并计算得到该边缘直线的斜率、方向且与预设斜率、方向相差在一定阈值或预设阈值内的时候,认为该边缘直线是竖直线;也即竖直线特征包括一定的或预设的直线斜率、方向的范围。需要说明的是,这里认为该边缘直线是竖直线,并不代表该边缘直线对应的三维空间中的边缘是竖直的。例如,可以将阈值设定在图像数据上偏离竖直方向20°,从而计算过程中认为与竖直方向偏离20°的直线都对应的是竖直线。这里的阈值也可以是其他数值,此处并不作限定,用于排除掉在图像数据中那些认为明显不属于竖直线的直线。Here, as the vertical line feature, any geometric feature or mathematical feature capable of indicating that the straight line is a vertical line can be used. As an example, the vertical line feature includes a slope and a direction corresponding to a straight line in the image data corresponding to a vertical line in a three-dimensional space (such as a vertical edge of a building, etc.); specifically, when image data is processed When the edge line is fitted and the slope and direction of the edge line are calculated and the difference between the preset slope and the direction is within a certain threshold or a preset threshold, the edge line is considered to be a vertical line; that is, a vertical line Features include a certain or preset linear slope and range of directions. It should be noted that the edge line is considered to be a vertical line, and does not mean that the edge in the three-dimensional space corresponding to the edge line is vertical. For example, the threshold value may be set to be 20° from the vertical direction on the image data, so that a straight line which is considered to be offset by 20° from the vertical direction in the calculation process corresponds to a vertical line. The threshold here may also be other values, which are not limited herein, and are used to exclude those lines in the image data that are considered to be clearly not in a vertical line.
在步骤S3002中根据所述直线子集合计算出所述云台的观测姿态,可以使用现有或者可以实现类似功能的任何算法。这里,作为一个具体例,本发明实施例采取的方案是,根据所述直线子集合计算出所述图像数据的消影点的位置,并根据所述消影点的位置计算云台的观测姿态。这里,所述云台的观测姿态,是指云台通过前述的步骤所计算得到的姿态,即通过对主相机拍摄图像进行处理所计算得到的云台的姿态,与云台的当前姿态可以相同,也可以不同。这里的云台的当前姿态,指的是云台通过其本身的IMU等姿态测量传感器所获取数据计算得到的姿态。In step S3002, the observation pose of the pan/tilt is calculated according to the linear subset, and any algorithm existing or capable of implementing similar functions may be used. Here, as a specific example, the solution adopted by the embodiment of the present invention is: calculating a position of a shadow point of the image data according to the line subset, and calculating an observation posture of the cloud platform according to the position of the shadow point . Here, the observation posture of the gimbal refers to a posture calculated by the gimbal through the foregoing steps, that is, a posture of the gimbal calculated by processing the image captured by the main camera, which may be the same as the current posture of the gimbal. , can also be different. The current posture of the gimbal here refers to the attitude calculated by the gimbal through the data acquired by the attitude measuring sensor such as its own IMU.
在步骤S3003中根据所述观测姿态对所述云台的当前姿态进行修正,可以使用现有或者可以实现类似功能的任何修正算法。本发明实施例采取的方案是,根据观测姿态与当前姿态进行姿态融合来对云台的姿态进行修正,具体的姿态融合可以采用卡尔曼滤波算法,但并不作限制。这里,所述云台的当前姿态,是指云台当前通过自身所设有的传感器(如IMU、磁编码计等)所获取的数据进行计算处理得到的姿态,与云台的观测姿态可以相同,也可以不同。In step S3003, the current posture of the pan/tilt is corrected according to the observed posture, and any correction algorithm existing or capable of implementing similar functions may be used. The solution adopted by the embodiment of the present invention is to correct the posture of the gimbal according to the attitude fusion between the observation posture and the current posture. The specific attitude fusion may adopt a Kalman filtering algorithm, but is not limited. Here, the current posture of the gimbal refers to a posture obtained by the PTZ currently calculated by the data acquired by the sensor (such as an IMU, a magnetic code meter, etc.) provided by the gimbal, and the observation posture of the gimbal may be the same as that of the gimbal. , can also be different.
本发明实施例中,通过随机抽样一致算法(Random Sample Concensus, RANSAC算法)计算出所述图像数据的消影点的位置。In the embodiment of the present invention, the position of the erasing point of the image data is calculated by a Random Sample Concensus (RANSAC algorithm).
具体地计算过程可表述如下。Specifically, the calculation process can be expressed as follows.
首先,平面坐标系上任意一条直线可以用直线方程来表示,在本实施例中,对于前述在主相机所拍摄图像中已经拟合出的直线,并通过竖直线特征进行筛选认为是竖直线的一群直线,可以认为其方程为:First, any straight line on the plane coordinate system can be represented by a straight line equation. In the present embodiment, for the aforementioned straight line that has been fitted in the image captured by the main camera, and filtered by the vertical line feature, it is considered to be vertical. A group of straight lines of lines can be considered as follows:
a i*x+b i*y+c i=0,(i=1,2...)              (式1) a i *x+b i *y+c i =0, (i=1, 2...) (Equation 1)
其中,i表示所拟合出来的不同的直线,且a i,b i,c i在前述步骤直线拟合后,可认为已知。 Where i denotes a different straight line that is fitted, and a i , b i , c i are known to be straight after fitting in the aforementioned steps.
本发明实施例中的消影点计算模型,为:The calculation model of the elimination point in the embodiment of the present invention is:
a i*x 0+b i*y 0+c i=0              (式2) a i *x 0 +b i *y 0 +c i =0 (Equation 2)
在图像数据已经拟合出的直线中,提取一群竖直直线的直线子集合。该直线子集合包括一系列竖直线,对应一系列a i,b i,c i。此时则可根据这一系列a i,b i,c i,通过RANSAC算法计算得出x 0,y 0In a straight line in which image data has been fitted, a series of straight line subsets of vertical lines are extracted. The line sub-set includes a series of vertical lines corresponding to a series of a i , b i , c i . At this time, x 0 , y 0 can be calculated by the RANSAC algorithm according to the series a i , b i , c i .
具体的,可以通过消影点反向带入公式,评估误差大小,当误差方差小于一定阈值时,确定(x 0,y 0)为该组平行直线的消影点,并使用式(3)、式(4)、式(5)对云台的观测姿态进行计算,具体来说,对云台在roll方向上的角度即横滚角和pitch方向上的角度即俯仰角进行计算。 Specifically, the inverse error can be introduced into the formula by the subtraction point to estimate the error size. When the error variance is less than a certain threshold, it is determined that (x 0 , y 0 ) is the elimination point of the parallel line of the group, and the equation (3) is used. Equations (4) and (5) calculate the observation attitude of the gimbal. Specifically, the angle of the gimbal in the roll direction, that is, the roll angle and the angle in the pitch direction, that is, the pitch angle are calculated.
在摄影几何中,通常用齐次坐标来表示图像平面上的点,因此此处将消影点向量设为v=(x 0,y 0,1) T,其中(x 0,y 0)为消影点的坐标。 In photographic geometry, the coordinates on the image plane are usually represented by homogeneous coordinates, so the elimination point vector is set to v=(x 0 , y 0 , 1) T , where (x 0 , y 0 ) is The coordinates of the shadow point.
这里,通过式3计算出中间向量R dHere, the intermediate vector R d is calculated by Equation 3.
Figure PCTCN2018084912-appb-000001
Figure PCTCN2018084912-appb-000001
其中,v为前述的消影点向量,K为相机矩阵,可认为是与主相机本身相关的参数,R d为指向消影点的直线方向的单位矢量,是计算的中间向量,以方便后续计算。 Where v is the aforementioned elimination point vector, K is the camera matrix, which can be regarded as the parameter related to the main camera itself, and R d is the unit vector of the linear direction pointing to the elimination point, which is the calculated intermediate vector to facilitate subsequent Calculation.
将计算出的R d代入到如下的式4、式5中,分别计算出在roll方向上的角度即横滚角θ roll和在pitch方向上的角度即俯仰角θ pitchThe calculated R d is substituted into Equations 4 and 5 below, and the angle in the roll direction, that is, the roll angle θ roll and the angle in the pitch direction, that is, the pitch angle θ pitch are calculated.
Figure PCTCN2018084912-appb-000002
Figure PCTCN2018084912-appb-000002
θ pitch=arcsin(-R d3)             (式5) θ pitch =arcsin(-R d3 ) (Equation 5)
其中,R d=(R d1,R d2,R d3,1) T,此处R d也是通过齐次坐标表示,R d1、R d2、R d3表示R d在图像坐标系三个方向上的分量。 Where R d =(R d1 , R d2 , R d3 ,1) T , where R d is also represented by homogeneous coordinates, and R d1 , R d2 , R d3 represent R d in three directions of the image coordinate system. Component.
至此,本实施例即完成了通过主相机图像计算云台俯仰角度和横滚角度的姿态信息的过程。需要注意的是,由于在此过程中,通过竖直线特征对初步边缘拟合的直线进行筛选时,有一个预设阈值;因此由于预设阈值的设定,会导致可能出现筛选出一些在三维空间中并不属于竖直线,但在图像数据中认为其是竖直线的情况,这种情况下通过这些筛选出认为的竖直线进行计算所得到的观测姿态可能出现较大的误差。So far, the present embodiment completes the process of calculating the attitude information of the pan tilt angle and the roll angle by the main camera image. It should be noted that since in this process, the preliminary edge fitting line is screened by the vertical line feature, there is a preset threshold; therefore, due to the setting of the preset threshold, it may result in screening out some The three-dimensional space does not belong to the vertical line, but it is considered to be a vertical line in the image data. In this case, the observation pose obtained by the calculation of the considered vertical line may have a large error. .
因此,在本实施例中,计算得到观测姿态后,会将其与当前姿态进行对比,并计算观测姿态与当前姿态的差值大小,如果二者之间相差在允许的范围内,认为此次观测姿态的计算是有效的,进而将观测姿态与当前姿态进行融合,以对云台的当前姿态进行修正;如果二者之间相差超过了允许的范围,认为此次观测姿态的计算是无效的,进而返回步骤S3001,重新执行一遍本实施例的计算方案。可以理解的是,这里允许的范围是预先设定的,例如二者相差5%以内或其他数值,此处并不作限制。Therefore, in this embodiment, after the observation pose is calculated, it is compared with the current pose, and the difference between the observed pose and the current pose is calculated. If the difference between the two is within the allowable range, it is considered that this time The calculation of the observed pose is effective, and then the observed pose is merged with the current pose to correct the current attitude of the gimbal; if the difference between the two exceeds the allowable range, the calculation of the observed pose is considered invalid. Then, returning to step S3001, the calculation scheme of the present embodiment is re-executed. It can be understood that the range allowed here is preset, for example, the difference between the two is 5% or other values, and is not limited herein.
根据本实施例的方案,通过引入主相机(拍摄设备102)的信息,使用图像消影点特征计算出观测姿态并对云台姿态进行修正,相当于在云台本身姿态测量传感器获取的姿态之外又获取了一个观测姿态,从而能够减小云台roll方向和pitch方向的漂移,提高用户体验。According to the solution of the embodiment, by introducing the information of the main camera (the photographing device 102), the observation posture is calculated using the image erasing point feature and the pan/tilt posture is corrected, which is equivalent to the attitude acquired by the attitude measuring sensor of the gimbal itself. In addition, an observation posture is obtained, which can reduce the drift of the roll direction and the pitch direction of the gimbal and improve the user experience.
第二实施例Second embodiment
以下,对使用竖直线获取云台的roll轴角度的观测姿态信息的第二实施例进行说明。Hereinafter, a second embodiment in which the observation posture information of the roll axis angle of the pan/tilt is acquired using a vertical line will be described.
图4是表示本发明实施例的云台姿态修正方法的第二实施例的流程图。第二实施例的云台姿态修正方法与第一实施例同样,可以由云台101中搭载的控制器、拍摄设备102搭载的控制器、无人机100搭载的控制器、或者未图示的控制终端等中的控制器执行其能访问的存储器中存储的描述该方法的程序来实现,从而对云台的姿态进行修正。本发明实施例的云台姿态修正方法,根据所述云台101搭载的拍摄设备102获取的图像数据 对云台的姿态进行修正,包括如下步骤:Fig. 4 is a flow chart showing a second embodiment of the pan/tilt attitude correcting method according to the embodiment of the present invention. The pan/tilt attitude correction method according to the second embodiment can be a controller mounted on the pan/tilt head 101, a controller mounted on the imaging device 102, a controller mounted on the drone 100, or a not-shown, similar to the first embodiment. The controller in the control terminal or the like executes a program describing the method stored in a memory that it can access, thereby correcting the posture of the gimbal. The pan/tilt attitude correction method according to the embodiment of the present invention corrects the posture of the pan-tilt based on the image data acquired by the photographing device 102 mounted on the pan-tilt 101, and includes the following steps:
在步骤S4001,获取所述图像数据中的相互平行的直线的直线子集合。这里,可以采取与第一实施例的步骤S3001同样的方式实现,在此不再赘述。In step S4001, a linear subset of straight lines parallel to each other in the image data is acquired. Here, it can be implemented in the same manner as step S3001 of the first embodiment, and details are not described herein again.
在步骤S4002,根据所述直线子集合计算出所述云台的观测姿态。具体来说,根据所述竖直直线的直线子集合和所述图像数据的垂直方向计算出所述横滚角。In step S4002, the observation posture of the pan/tilt is calculated based on the linear subset. Specifically, the roll angle is calculated based on a straight line subset of the vertical line and a vertical direction of the image data.
在步骤S4003,根据所述观测姿态对所述云台的当前姿态进行修正。这里,可以采取与第一实施例的步骤S3003同样的方式实现,在此不再赘述。In step S4003, the current posture of the pan/tilt is corrected according to the observed posture. Here, it can be implemented in the same manner as step S3003 of the first embodiment, and details are not described herein again.
即,第二实施例的云台姿态修正方法与第一实施例的区别在于,使用与第一实施例的步骤S3002不同的步骤S4002来计算出所述云台的观测姿态。That is, the pan/tilt attitude correction method of the second embodiment is different from the first embodiment in that the observation posture of the pan/tilt is calculated using step S4002 different from step S3002 of the first embodiment.
具体地,在本实施例中,步骤S4002可以分为三个子步骤S40021~S40023。图5是用于对步骤S4002进行说明的流程图。Specifically, in the embodiment, step S4002 can be divided into three sub-steps S40021 to S40023. FIG. 5 is a flowchart for explaining step S4002.
步骤S40021:确定当前云台在俯仰方向处于水平状态。Step S40021: It is determined that the current pan/tilt is in a horizontal state in the pitch direction.
本步骤中,通过云台的当前姿态来确定云台在俯仰方向处于水平状态。作为一个具体例,可以使用现有或者可以实现类似功能的任何方式,通过云台的当前姿态中的俯仰角度(pitch角度)信息来进行判断。例如,可以从云台101中搭载的控制器、拍摄设备102搭载的控制器、无人机100搭载的控制器、或者未图示的控制终端处获取俯仰方向的伺服角度,当至少满足所述俯仰方向的伺服角度与预定角度的差值小于预定阈值、以及之前规定时间内计算出的俯仰角与预定角度的差值小于预定阈值中的至少一个时,确定云台在俯仰方向处于水平状态。In this step, the pan/tilt is determined to be in a horizontal state in the pitch direction by the current attitude of the gimbal. As a specific example, the judgment may be made by the pitch angle information in the current posture of the gimbal, using any means existing or capable of performing similar functions. For example, the controller mounted on the pan/tilt head 101, the controller mounted on the imaging device 102, the controller mounted on the drone 100, or a control terminal (not shown) can acquire the servo angle in the pitch direction, at least satisfying the above. The pan/tilt is determined to be in a horizontal state in the pitch direction when the difference between the servo angle of the pitch direction and the predetermined angle is less than a predetermined threshold and the difference between the pitch angle calculated by the previous predetermined time and the predetermined angle is less than a predetermined threshold.
具体来说,当云台的当前姿态的pitch角度偏离0°在一定范围内(例如以pitch角度小于等于2°作为预定阈值)时,确定当前云台在俯仰方向处于水平状态。需要理解的是,这里云台在俯仰方向处于水平状态,指的是在pitch俯仰方向上的姿态信息处于水平,从而可以执行下述的计算步骤,并不是实际上水平,例如云台仍有1°的俯仰角度,但仍然认为云台在俯仰方向处于水平状态;同时,这里云台在俯仰方向处于水平状态与 云台横滚(roll)方向上的角度无关,例如云台以1°的俯仰角度,但是以20°的横滚角度(即“歪脖子”)拍摄时,也认为云台在俯仰方向处于水平状态。另外,预定阈值可以是根据使用者的需求自主设定的值,或者结合控制精度等预先设定的值。Specifically, when the pitch angle of the current attitude of the pan/tilt deviates from 0° within a certain range (for example, the pitch angle is less than or equal to 2° as a predetermined threshold), it is determined that the current pan/tilt is in a horizontal state in the pitch direction. It should be understood that the pan/tilt is horizontal in the pitch direction, which means that the attitude information in the pitch direction of the pitch is horizontal, so that the following calculation steps can be performed, which is not actually horizontal, for example, the pan/tilt still has 1 The pitch angle of °, but still think that the gimbal is in the horizontal direction in the pitch direction; at the same time, the pan/tilt is horizontal in the pitch direction regardless of the angle in the roll direction of the gimbal, for example, the pan/tilt is tilted at 1°. Angle, but when shooting at a roll angle of 20° (ie “歪 neck”), the pan/tilt is also considered to be horizontal in the pitch direction. Further, the predetermined threshold may be a value that is set autonomously according to the user's needs, or a value that is set in advance in conjunction with control accuracy or the like.
步骤S40022:获取所述直线子集合中的竖直线集合。Step S40022: Acquire a vertical line set in the line subset.
本步骤中,获取所述直线子集合中的竖直线集合的方法与前一实施例中相同,此处不再赘述。In this step, the method for obtaining the vertical line set in the line subset is the same as that in the previous embodiment, and details are not described herein again.
步骤S40023:根据所述竖直线集合计算出所述云台的观测姿态。Step S40023: Calculate an observation posture of the pan/tilt according to the vertical line set.
本步骤中,可以参考图6,是用于说明步骤S40023中的计算的示意图。其中,实线框表示当前姿态下观测到的图像数据,表示其中存在能提供竖直直线的若干楼宇的情形。这里,设所述图像数据的坐标系中的水平方向为x轴,垂直方向对应y轴。虚线框表示水平姿态下的图像数据的范围。a、b、c分别表示从图像中提取出的各条竖直直线,θ roll表示云台在roll方向上的横滚角。这里,设所述竖直直线的直线子集合在上述的x轴、y轴的平均方向向量分别为
Figure PCTCN2018084912-appb-000003
由于竖直直线实际上是与水平方向垂直的关系,因此竖直直线的直线子集合的方向应当等同于水平姿态下的图像数据的范围(虚线框)的垂直方向。
In this step, reference may be made to FIG. 6, which is a schematic diagram for explaining the calculation in step S40023. Among them, the solid line frame indicates the image data observed in the current posture, indicating that there are several buildings in which a vertical line can be provided. Here, it is assumed that the horizontal direction in the coordinate system of the image data is the x-axis and the vertical direction corresponds to the y-axis. The dashed box indicates the range of image data in the horizontal pose. a, b, and c respectively represent the vertical lines extracted from the image, and θ roll represents the roll angle of the pan/tilt in the roll direction. Here, it is assumed that the average direction vector of the linear sub-set of the vertical straight line on the x-axis and the y-axis is
Figure PCTCN2018084912-appb-000003
Since the vertical straight line is actually a relationship perpendicular to the horizontal direction, the direction of the straight line sub-set of the vertical line should be equal to the vertical direction of the range of the image data (dashed frame) in the horizontal posture.
在步骤S4002中,通过直线斜率为无穷附近的斜率进行快速综合,利用以下的式6算出roll方向的横滚角θ roll。即,roll方向上的横滚角θ roll为: In step S4002, rapid integration is performed by the slope of the linear slope in the vicinity of infinity, and the roll angle θ roll in the roll direction is calculated by the following Expression 6. That is, the roll angle θ roll in the roll direction is:
Figure PCTCN2018084912-appb-000004
Figure PCTCN2018084912-appb-000004
在本实施例中,由于确定云台在俯仰方向处于水平状态,因此图像数据中的竖直线的斜率即代表了云台的roll方向姿态信息,从图6中也可直观地显示出来。本实施例通过对云台pitch角度处于0°附近这一特殊情况,进行不同的计算过程,可以简化观测姿态信息的处理,从而提高云台姿态修正的效率。In the present embodiment, since it is determined that the pan/tilt is in a horizontal state in the pitch direction, the slope of the vertical line in the image data represents the roll direction posture information of the pan/tilt, which can also be visually displayed from FIG. In this embodiment, by performing a different calculation process on the special case where the pan/tilt pitch angle is near 0°, the processing of the observation posture information can be simplified, thereby improving the efficiency of the attitude correction of the gimbal.
根据本实施例的方案,通过引入主相机(拍摄设备102)的信息,在云台俯仰角度处于0°附近这一特定条件时,仅通过计算图像中竖直线的夹角计算出roll方向的横滚角,能够以较低的计算量计算出当前的观测姿态。According to the solution of the present embodiment, by introducing the information of the main camera (the photographing device 102), when the pan-tilt tilt angle is in the vicinity of 0°, the roll direction is calculated only by calculating the angle between the vertical lines in the image. The roll angle allows the current observation pose to be calculated with a low amount of calculation.
第三实施例Third embodiment
以下,对组合使用例如图像消影点特征获取云台的roll轴和pitch轴角度、和使用竖直线特征获取云台的roll轴角度的第三实施例进行说明。Hereinafter, a third embodiment in which the roll axis and the pitch axis angle of the pan/tilt head are acquired using, for example, the image erasing point feature, and the roll axis angle of the pan/tilt head is acquired using the vertical line feature will be described.
第三实施例与第二实施例的区别点在于,使用步骤S5002来替代第二实施例中的步骤S4002。The third embodiment is different from the second embodiment in that step S5002 is used instead of step S4002 in the second embodiment.
图7是表示用来对步骤S5002进行具体说明的流程图。步骤S5002,包括如下步骤:FIG. 7 is a flow chart showing a detailed description of step S5002. Step S5002 includes the following steps:
在步骤S50021,确定云台在俯仰方向处于水平状态。在云台在俯仰方向处于水平状态的情况下,进入步骤S50023,否则进入步骤S50022。In step S50021, it is determined that the pan/tilt is in a horizontal state in the pitch direction. In the case where the pan/tilt is in the horizontal state in the pitch direction, the process proceeds to step S50023, and otherwise proceeds to step S50022.
在步骤S50022,根据消影点的位置计算云台的观测姿态。这里,可以采取与第一实施例中的步骤S3002中同样的方法,即根据直线子集合计算出所述图像数据的消影点的位置,并根据所述消影点的位置计算云台的观测姿态,在此不再赘述。In step S50022, the observation posture of the gimbal is calculated based on the position of the erasing point. Here, the same method as in the step S3002 in the first embodiment may be adopted, that is, the position of the erasing point of the image data is calculated according to the linear subset, and the observation of the gimbal is calculated according to the position of the erasing point. Gesture, no longer repeat here.
在步骤S50023,根据所述竖直直线的直线子集合和所述图像数据的垂直方向计算出所述横滚方向的横滚角。这里,可以采取与第二实施例中的步骤S4002中同样的方法,即根据所述竖直直线的直线子集合和所述图像数据的垂直方向计算出所述横滚方向的横滚角,在此不再赘述。In step S50023, the roll angle in the roll direction is calculated from the straight line subset of the vertical line and the vertical direction of the image data. Here, the same method as in the step S4002 in the second embodiment may be adopted, that is, the roll angle of the roll direction is calculated from the straight line subset of the vertical line and the vertical direction of the image data, This will not be repeated here.
这里,在步骤S50021中,可以通过使用与上述的步骤S40021同样的方式确定当前云台在俯仰方向处于水平状态。Here, in step S50021, it is determined that the current pan/tilt is in a horizontal state in the pitch direction by using the same manner as step S40021 described above.
另外,虽然以在步骤S50022采取与第一实施例中的步骤S3002中同样的方法为例进行了说明,但本实施例也并不限定于此。也可使用其他能够得到云台的包括roll方向的横滚角和pitch方向的俯仰角的观测姿态的方法来替代。In addition, although the same method as that in step S3002 in the first embodiment is taken as an example in step S50022, the present embodiment is not limited thereto. Other methods of obtaining the observation posture of the pan/tilt including the roll direction of the roll direction and the pitch angle of the pitch direction may be used instead.
根据本实施例的方案,通过引入主相机(拍摄设备102)的信息,通过首先对云台当前的俯仰方向姿态进行预判,在确定云台在俯仰方向处于水平状态的情况下仅通过计算图像中竖直线的夹角计算出roll方向的横滚角,否则例如根据所述消影点的位置计算云台的观测姿态,从而能够在良好地兼顾计算量与计算精度的情况下计算出当前的观测姿态。According to the solution of the present embodiment, by introducing the information of the main camera (the photographing device 102), by first prejudge the current pitch direction posture of the gimbal, only the image is calculated by determining that the pan tilt is in the horizontal state in the pitch direction. The angle of the vertical line is calculated as the roll angle in the roll direction. Otherwise, for example, the observation attitude of the pan/tilt is calculated according to the position of the shadow point, so that the current calculation can be calculated with good calculation and calculation accuracy. Observed posture.
上述例举的云台姿态修正方法中虽然近提到了俯仰方向和横滚方向, 但并不限定于此,云台也可以是能让搭载的所述拍摄设备在俯仰方向、横滚方向和偏航方向上自由转动。Although the pitch direction and the roll direction are similarly mentioned in the above-described pan/tilt attitude correction method, the present invention is not limited thereto, and the pan/tilt head may be capable of supporting the photographing apparatus in the pitch direction, the roll direction, and the offset direction. Freely rotate in the direction of navigation.
另外,上述的各个实施例的方案中,在获取所述图像数据中的相互平行的直线的直线子集合时,也可以是在所述直线子集合中的直线少于规定数量时,获取新的图像数据并重新进行直线子集合的提取。In addition, in the solution of each of the above embodiments, when acquiring a linear subset of mutually parallel straight lines in the image data, a new one may be acquired when the straight line in the linear subset is less than a predetermined number. Image data and re-extraction of the line sub-collection.
再有,上述的各个实施例的方案中,可以按照时间序列不断地获取图像数据,从而持续计算云台的观测姿态。Further, in the solution of each of the above embodiments, the image data can be continuously acquired in time series, thereby continuously calculating the observation posture of the pan/tilt.
另外,虽然以无人机为例对本发明进行了说明,但搭载云台的装置并不限定于此,也可以是手持载具、汽车、可穿戴设备等任何能够搭载云台的装置。Further, although the present invention has been described by taking an unmanned aerial vehicle as an example, the apparatus for mounting the pan/tilt is not limited thereto, and any device capable of carrying a pan/tilt, such as a hand-held vehicle, an automobile, or a wearable device, may be used.
在本发明所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。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, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的部分步 骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium. The above software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods of the various embodiments of the present invention. Part of the steps. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .
本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of each functional module described above is exemplified. In practical applications, the above function assignment can be completed by different functional modules as needed, that is, the device is installed. The internal structure is divided into different functional modules to perform all or part of the functions described above. For the specific working process of the device described above, refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims (39)

  1. 一种云台姿态修正方法,根据所述云台搭载的拍摄设备获取的图像数据对云台的姿态进行修正,其特征在于,包括:A pan/tilt attitude correction method, which corrects a posture of a gimbal according to image data acquired by a photographing device mounted on the gimbal, and is characterized by comprising:
    获取所述图像数据中的相互平行的直线的直线子集合;Obtaining a subset of lines of mutually parallel lines in the image data;
    根据所述直线子集合计算出所述云台的观测姿态;Calculating an observation posture of the pan/tilt according to the linear subset;
    根据所述观测姿态对所述云台的当前姿态进行修正。Correcting the current posture of the gimbal according to the observation posture.
  2. 根据权利要求1所述的云台姿态修正方法,其特征在于,所述获取所述图像数据中的相互平行的直线的直线子集合,包括:The pan/tilt attitude correction method according to claim 1, wherein the acquiring a subset of straight lines of mutually parallel straight lines in the image data comprises:
    获取所述图像数据中的直线集合;Obtaining a set of straight lines in the image data;
    从所述直线集合中提取出所述相互平行的直线的直线子集合。A linear subset of the mutually parallel straight lines is extracted from the set of straight lines.
  3. 根据权利要求2所述的云台姿态修正方法,其特征在于,所述获取图像数据中的直线集合,包括:The pan/tilt attitude correction method according to claim 2, wherein the acquiring a set of straight lines in the image data comprises:
    通过对所述图像数据进行边缘算子运算来检测被拍摄体的边缘,并对所述边缘进行直线拟合以获取所述图像数据中直线集合。An edge of the subject is detected by performing an edge operator operation on the image data, and the edge is straight-line fitted to acquire a line set in the image data.
  4. 根据权利要求3所述的云台姿态修正方法,其特征在于,对所述边缘进行直线拟合,包括:The pan/tilt attitude correction method according to claim 3, wherein the straight line fitting of the edge comprises:
    通过霍夫变换对所述边缘进行直线拟合。The edges are fitted by a Hough transform.
  5. 根据权利要求2所述的云台姿态修正方法,其特征在于,所述从所述直线集合中提取出相互平行的直线的直线子集合,包括:The pan/tilt attitude correction method according to claim 2, wherein the extracting a line sub-set of mutually parallel straight lines from the set of straight lines comprises:
    根据竖直线特征从所述直线集合中提取出相互平行的竖直线的直线子集合。A line subset of vertical lines parallel to each other is extracted from the set of straight lines according to a vertical line feature.
  6. 根据权利要求1所述的云台姿态修正方法,其特征在于,所述从所述直线集合中提取出相互平行的直线的直线子集合,包括:The pan/tilt attitude correction method according to claim 1, wherein the extracting a line sub-set of mutually parallel straight lines from the set of straight lines comprises:
    根据竖直线特征从所述直线集合中提取出相互平行的竖直线的直线子集合。A line subset of vertical lines parallel to each other is extracted from the set of straight lines according to a vertical line feature.
  7. 根据权利要求5或6所述的云台姿态修正方法,其特征在于,The pan/tilt attitude correction method according to claim 5 or 6, wherein
    所述竖直线特征包括斜率和方向。The vertical line features include a slope and a direction.
  8. 根据权利要求7所述的云台姿态修正方法,其特征在于,The pan/tilt attitude correction method according to claim 7, wherein
    所述云台包括俯仰轴和横滚轴,使所述云台在俯仰方向和横滚方向上 运动,The pan/tilt includes a pitch axis and a roll axis to move the pan/tilt in a pitch direction and a roll direction,
    所述云台的观测姿态包括所述俯仰方向的俯仰角和所述横滚方向的横滚角。The observation posture of the pan/tilt includes a pitch angle of the pitch direction and a roll angle of the roll direction.
  9. 根据权利要求8所述的云台姿态修正方法,其特征在于,所述计算云台的观测姿态,包括:The pan/tilt posture correction method according to claim 8, wherein the calculating the observation posture of the gimbal comprises:
    确定云台在俯仰方向处于水平状态;Determining that the gimbal is in a horizontal state in the pitch direction;
    根据所述竖直线的直线子集合和所述图像数据的垂直方向计算出所述横滚角。The roll angle is calculated from a straight line subset of the vertical line and a vertical direction of the image data.
  10. 根据权利要求9所述的云台姿态修正方法,其特征在于,所述确定云台在俯仰方向处于水平状态,包括:The pan/tilt attitude correction method according to claim 9, wherein the determining that the gimbal is in a horizontal state in the pitch direction comprises:
    获取所述当前姿态的俯仰角,Obtaining a pitch angle of the current pose,
    当所述当前姿态的俯仰角偏离0°在预定阈值内时,确定当前云台在俯仰方向处于水平状态。When the pitch angle of the current posture deviates from 0° within a predetermined threshold, it is determined that the current pan/tilt is in a horizontal state in the pitch direction.
  11. 根据权利要求1所述的云台姿态修正方法,其特征在于,所述根据所述直线子集合计算出所述云台的观测姿态,包括:The pan/tilt posture correction method according to claim 1, wherein the calculating the observation posture of the pan/tilt according to the linear subset comprises:
    根据所述直线子集合计算出所述图像数据的消影点的位置;Calculating a position of a shadow point of the image data according to the linear subset;
    根据所述消影点的位置计算所述观测姿态。The observed attitude is calculated based on the position of the shadow point.
  12. 根据权利要求11所述的云台姿态修正方法,其特征在于,根据所述直线子集合计算出所述图像数据的消影点的位置,包括:The pan-tilt attitude correction method according to claim 11, wherein calculating the position of the image-shadowing point of the image data according to the linear subset comprises:
    通过RANSAC算法计算出所述图像数据的消影点的向量。A vector of the image point of the image data is calculated by the RANSAC algorithm.
  13. 根据权利要求1所述的云台姿态修正方法,其特征在于,The pan/tilt attitude correction method according to claim 1, wherein
    按照时间序列获取图像数据,持续计算所述观测姿态。The image data is acquired in time series, and the observed posture is continuously calculated.
  14. 根据权利要求1所述的云台姿态修正方法,其特征在于,The pan/tilt attitude correction method according to claim 1, wherein
    在所述直线子集合中的直线少于规定数量时,获取新的图像数据并重新进行直线子集合的提取。When the straight line in the linear subset is less than the prescribed number, new image data is acquired and the extraction of the linear subset is performed again.
  15. 根据权利要求1所述的云台姿态修正方法,其特征在于,所述根据所述观测姿态对所述云台的当前姿态进行修正,包括:The pan/tilt posture correction method according to claim 1, wherein the correcting the current posture of the pan/tilt according to the observation posture comprises:
    对所述观测姿态与所述当前姿态进行姿态融合来对云台的姿态进行修正。The posture of the observation posture is merged with the current posture to correct the posture of the gimbal.
  16. 根据权利要求15所述的云台姿态修正方法,其特征在于,The pan/tilt attitude correction method according to claim 15, wherein
    计算出的所述观测姿态与所述当前姿态的差值,Calculating the difference between the observed pose and the current pose,
    若所述观测姿态与所述当前姿态的差值不超过允许的范围,对所述观测姿态与所述当前姿态进行姿态融合来对云台的姿态进行修正;或If the difference between the observed posture and the current posture does not exceed the allowable range, the observed posture and the current posture are merged to correct the posture of the gimbal; or
    若所述观测姿态与所述当前姿态的差值超过允许的范围,重新获取所述图像数据中的相互平行的直线的直线子集合,并根据所述直线子集合计算出所述云台的观测姿态。If the difference between the observed posture and the current posture exceeds an allowable range, reacquiring a linear subset of mutually parallel straight lines in the image data, and calculating the observation of the gimbal according to the linear subset attitude.
  17. 根据权利要求1所述的云台姿态修正方法,其特征在于,The pan/tilt attitude correction method according to claim 1, wherein
    所述云台能让搭载的所述拍摄设备在俯仰方向、横滚方向和偏航方向上自由转动。The pan/tilt can freely rotate the mounted photographing device in the pitch direction, the roll direction, and the yaw direction.
  18. 根据权利要求1所述的云台姿态修正方法,其特征在于,The pan/tilt attitude correction method according to claim 1, wherein
    所述云台的当前姿态,是由云台的姿态测量传感器所获取数据计算得到的姿态。The current posture of the gimbal is a posture calculated by the data acquired by the attitude measuring sensor of the gimbal.
  19. 一种云台姿态修正装置,根据所述云台搭载的拍摄设备获取的图像数据对云台的姿态进行修正,其特征在于,包括:A pan/tilt attitude correction device that corrects a posture of a gimbal according to image data acquired by a photographing device mounted on the gimbal, and is characterized by comprising:
    存储器,存储用于控制云台姿态修正装置的指令集;和a memory that stores an instruction set for controlling the pan/tilt attitude correction device; and
    一个或多个处理器,其被配置成根据所述存储器存储的指令集执行如下处理:One or more processors configured to perform the following processing in accordance with the set of instructions stored by the memory:
    获取所述图像数据中的相互平行的直线的直线子集合;Obtaining a subset of lines of mutually parallel lines in the image data;
    根据所述直线子集合计算出所述云台的观测姿态;Calculating an observation posture of the pan/tilt according to the linear subset;
    根据所述观测姿态对所述云台的当前姿态进行修正。Correcting the current posture of the gimbal according to the observation posture.
  20. 根据权利要求19所述的云台姿态修正装置,其特征在于,所述获取所述图像数据中的相互平行的直线的直线子集合,包括:The pan/tilt attitude correction device according to claim 19, wherein the acquiring a subset of straight lines of mutually parallel straight lines in the image data comprises:
    获取所述图像数据中的直线集合;Obtaining a set of straight lines in the image data;
    从所述直线集合中提取出所述相互平行的直线的直线子集合。A linear subset of the mutually parallel straight lines is extracted from the set of straight lines.
  21. 根据权利要求20所述的云台姿态修正装置,其特征在于,所述获取图像数据中的直线集合,包括:The pan/tilt attitude correction device according to claim 20, wherein the acquiring a set of straight lines in the image data comprises:
    通过对所述图像数据进行边缘算子运算来检测被拍摄体的边缘,并对所述边缘进行直线拟合以获取所述图像数据中直线集合。An edge of the subject is detected by performing an edge operator operation on the image data, and the edge is straight-line fitted to acquire a line set in the image data.
  22. 根据权利要求21所述的云台姿态修正装置,其特征在于,对所述边缘进行直线拟合,包括:The pan/tilt posture correction device according to claim 21, wherein the straight line fitting of the edge comprises:
    通过霍夫变换对所述边缘进行直线拟合。The edges are fitted by a Hough transform.
  23. 根据权利要求20所述的云台姿态修正装置,其特征在于,所述从所述直线集合中提取出相互平行的直线的直线子集合,包括:The pan/tilt attitude correction device according to claim 20, wherein the extracting a line subset of straight lines that are parallel to each other from the set of straight lines comprises:
    根据竖直线特征从所述直线集合中提取出相互平行的竖直线的直线子集合。A line subset of vertical lines parallel to each other is extracted from the set of straight lines according to a vertical line feature.
  24. 根据权利要求20所述的云台姿态修正装置,其特征在于,所述从所述直线集合中提取出相互平行的直线的直线子集合,包括:The pan/tilt attitude correction device according to claim 20, wherein the extracting a line subset of straight lines that are parallel to each other from the set of straight lines comprises:
    根据竖直线特征从所述直线集合中提取出相互平行的竖直线的直线子集合。A line subset of vertical lines parallel to each other is extracted from the set of straight lines according to a vertical line feature.
  25. 根据权利要求23或24所述的云台姿态修正装置,其特征在于,A pan/tilt posture correcting device according to claim 23 or 24, wherein
    所述竖直线特征包括斜率和方向。The vertical line features include a slope and a direction.
  26. 根据权利要求25所述的云台姿态修正装置,其特征在于,The pan/tilt posture correcting device according to claim 25, characterized in that
    所述云台包括俯仰轴和横滚轴,使所述云台在俯仰方向和横滚方向上运动,The pan/tilt head includes a pitch axis and a roll axis to move the pan/tilt head in a pitch direction and a roll direction,
    所述云台的观测姿态包括所述俯仰方向的俯仰角和所述横滚方向的横滚角。The observation posture of the pan/tilt includes a pitch angle of the pitch direction and a roll angle of the roll direction.
  27. 根据权利要求22所述的云台姿态修正装置,其特征在于,所述计算云台的观测姿态,包括:The pan/tilt posture correction device according to claim 22, wherein the calculating the observation posture of the gimbal comprises:
    确定云台在俯仰方向处于水平状态;Determining that the gimbal is in a horizontal state in the pitch direction;
    根据所述竖直线的直线子集合和所述图像数据的垂直方向计算出所述横滚角。The roll angle is calculated from a straight line subset of the vertical line and a vertical direction of the image data.
  28. 根据权利要求27所述的云台姿态修正装置,其特征在于,所述确定云台在俯仰方向处于水平状态,包括:The pan/tilt attitude correction device according to claim 27, wherein the determining that the gimbal is in a horizontal state in the pitch direction comprises:
    获取所述当前姿态的俯仰角,Obtaining a pitch angle of the current pose,
    当所述当前姿态的俯仰角偏离0°在预定阈值内时,确定当前云台在俯仰方向处于水平状态。When the pitch angle of the current posture deviates from 0° within a predetermined threshold, it is determined that the current pan/tilt is in a horizontal state in the pitch direction.
  29. 根据权利要求19所述的云台姿态修正装置,其特征在于,所述根据所述直线子集合计算出所述云台的观测姿态,包括:The pan/tilt posture correction device according to claim 19, wherein the calculating the observation posture of the pan/tilt according to the linear subset comprises:
    根据所述直线子集合计算出所述图像数据的消影点的位置;Calculating a position of a shadow point of the image data according to the linear subset;
    根据所述消影点的位置计算云台的观测姿态。The observation attitude of the gimbal is calculated according to the position of the elimination point.
  30. 根据权利要求29所述的云台姿态修正装置,其特征在于,根据所述直线子集合计算出所述图像数据的消影点的位置,包括:The pan/tilt attitude correction device according to claim 29, wherein calculating the position of the image-shadowing point of the image data according to the linear subset comprises:
    通过RANSAC算法计算出所述图像数据的消影点的向量。A vector of the image point of the image data is calculated by the RANSAC algorithm.
  31. 根据权利要求19所述的云台姿态修正装置,其特征在于,The pan/tilt posture correcting device according to claim 19, wherein
    按照时间序列获取图像数据,持续计算云台的观测姿态。The image data is acquired in time series, and the observation posture of the gimbal is continuously calculated.
  32. 根据权利要求19所述的云台姿态修正装置,其特征在于,The pan/tilt posture correcting device according to claim 19, wherein
    在所述直线子集合中的直线少于规定数量时,获取新的图像数据并重新进行直线子集合的提取。When the straight line in the linear subset is less than the prescribed number, new image data is acquired and the extraction of the linear subset is performed again.
  33. 根据权利要求19所述的云台姿态修正装置,其特征在于,所述根据所述观测姿态对所述云台的当前姿态进行修正,包括:The pan/tilt posture correction device according to claim 19, wherein the correcting the current posture of the pan/tilt according to the observation posture comprises:
    根据观测姿态与当前姿态进行姿态融合来对云台的姿态进行修正。The posture of the gimbal is corrected by performing posture fusion based on the observed posture and the current posture.
  34. 根据权利要求33所述的云台姿态修正装置,其特征在于,The pan/tilt posture correcting device according to claim 33, wherein
    计算出的所述观测姿态与所述当前姿态的差值,Calculating the difference between the observed pose and the current pose,
    若所述观测姿态与所述当前姿态的差值不超过允许的范围,对所述观测姿态与所述当前姿态进行姿态融合来对云台的姿态进行修正;或If the difference between the observed posture and the current posture does not exceed the allowable range, the observed posture and the current posture are merged to correct the posture of the gimbal; or
    若所述观测姿态与所述当前姿态的差值超过允许的范围,重新获取所述图像数据中的相互平行的直线的直线子集合,并根据所述直线子集合计算出所述云台的观测姿态。If the difference between the observed posture and the current posture exceeds an allowable range, reacquiring a linear subset of mutually parallel straight lines in the image data, and calculating the observation of the gimbal according to the linear subset attitude.
  35. 根据权利要求19所述的云台姿态修正装置,其特征在于,The pan/tilt posture correcting device according to claim 19, wherein
    所述云台能让搭载的所述拍摄设备在俯仰轴、横滚轴和偏航轴上自由转动。The pan/tilt can freely rotate the mounted photographing device on the pitch axis, the roll axis, and the yaw axis.
  36. 根据权利要求19所述的云台姿态修正装置,其特征在于,The pan/tilt posture correcting device according to claim 19, wherein
    所述云台的当前姿态,是由云台的姿态测量传感器所获取数据计算得到的姿态。The current posture of the gimbal is a posture calculated by the data acquired by the attitude measuring sensor of the gimbal.
  37. 一种云台,其特征在于,所述云台包括权利要求19-36任一项所述的云台姿态修正装置,所述云台还至少包括俯仰轴和横滚轴。A pan/tilt head, characterized in that the pan/tilt head comprises the pan/tilt attitude correction device according to any one of claims 19 to 36, and the pan/tilt head further comprises at least a pitch axis and a roll axis.
  38. 一种云台系统,其特征在于,所述云台系统包括权利要求37所述的云台,以及搭载于所述云台的所述拍摄设备。A pan/tilt system, comprising: the pan/tilt head according to claim 37; and the photographing device mounted on the pan/tilt head.
  39. 一种无人机,其特征在于,所述无人机搭载有权利要求38所述的云台系统。A drone, characterized in that the drone is equipped with the pan/tilt head system according to claim 38.
PCT/CN2018/084912 2018-04-27 2018-04-27 Pan-tilt orientation correction method, pan-tilt orientation correction apparatus, pan-tilt, pan-tilt system, and unmanned aerial vehicle WO2019205103A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880013975.4A CN110382358A (en) 2018-04-27 2018-04-27 Holder attitude rectification method, holder attitude rectification device, holder, clouds terrace system and unmanned plane
PCT/CN2018/084912 WO2019205103A1 (en) 2018-04-27 2018-04-27 Pan-tilt orientation correction method, pan-tilt orientation correction apparatus, pan-tilt, pan-tilt system, and unmanned aerial vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/084912 WO2019205103A1 (en) 2018-04-27 2018-04-27 Pan-tilt orientation correction method, pan-tilt orientation correction apparatus, pan-tilt, pan-tilt system, and unmanned aerial vehicle

Publications (1)

Publication Number Publication Date
WO2019205103A1 true WO2019205103A1 (en) 2019-10-31

Family

ID=68248560

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/084912 WO2019205103A1 (en) 2018-04-27 2018-04-27 Pan-tilt orientation correction method, pan-tilt orientation correction apparatus, pan-tilt, pan-tilt system, and unmanned aerial vehicle

Country Status (2)

Country Link
CN (1) CN110382358A (en)
WO (1) WO2019205103A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111272148B (en) * 2020-01-20 2021-08-31 江苏方天电力技术有限公司 Unmanned aerial vehicle autonomous inspection self-adaptive imaging quality optimization method for power transmission line
CN112067253A (en) * 2020-06-03 2020-12-11 翔升(上海)电子技术有限公司 Camera calibration method based on machine vision
CN113838097B (en) * 2021-09-29 2024-01-09 成都新潮传媒集团有限公司 Camera lens angle deviation detection method, device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101038163A (en) * 2007-02-07 2007-09-19 北京航空航天大学 Single-vision measuring method of space three-dimensional attitude of variable-focus video camera
JP2008276436A (en) * 2007-04-27 2008-11-13 Univ Of Miyazaki Method and unit for deciding edge line and ridge by image processing
CN102914294A (en) * 2012-09-10 2013-02-06 中国南方电网有限责任公司超高压输电公司天生桥局 System and method for measuring unmanned aerial vehicle electrical line patrol on basis of images
CN106384382A (en) * 2016-09-05 2017-02-08 山东省科学院海洋仪器仪表研究所 Three-dimensional reconstruction system and method based on binocular stereoscopic vision
CN106683097A (en) * 2017-03-03 2017-05-17 广东工业大学 Unmanned aerial vehicle positioning method and system
CN107192375A (en) * 2017-04-28 2017-09-22 北京航空航天大学 A kind of unmanned plane multiple image adaptive location bearing calibration based on posture of taking photo by plane

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2514779B2 (en) * 1993-09-08 1996-07-10 住友電気工業株式会社 Camera posture parameter calculation method
JP3005682B1 (en) * 1999-01-11 2000-01-31 科学技術庁航空宇宙技術研究所長 Method and apparatus for determining position / posture using runway image
FR2874300B1 (en) * 2004-08-11 2006-11-24 Renault Sas AUTOMATIC CALIBRATION METHOD OF A STEREOVISION SYSTEM
JP4986883B2 (en) * 2008-02-27 2012-07-25 三菱電機株式会社 Orientation device, orientation method and orientation program
JP6354425B2 (en) * 2014-07-30 2018-07-11 株式会社デンソー In-vehicle camera mounting attitude detection method and apparatus
WO2018023492A1 (en) * 2016-08-03 2018-02-08 深圳市大疆灵眸科技有限公司 Mount control method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101038163A (en) * 2007-02-07 2007-09-19 北京航空航天大学 Single-vision measuring method of space three-dimensional attitude of variable-focus video camera
JP2008276436A (en) * 2007-04-27 2008-11-13 Univ Of Miyazaki Method and unit for deciding edge line and ridge by image processing
CN102914294A (en) * 2012-09-10 2013-02-06 中国南方电网有限责任公司超高压输电公司天生桥局 System and method for measuring unmanned aerial vehicle electrical line patrol on basis of images
CN106384382A (en) * 2016-09-05 2017-02-08 山东省科学院海洋仪器仪表研究所 Three-dimensional reconstruction system and method based on binocular stereoscopic vision
CN106683097A (en) * 2017-03-03 2017-05-17 广东工业大学 Unmanned aerial vehicle positioning method and system
CN107192375A (en) * 2017-04-28 2017-09-22 北京航空航天大学 A kind of unmanned plane multiple image adaptive location bearing calibration based on posture of taking photo by plane

Also Published As

Publication number Publication date
CN110382358A (en) 2019-10-25

Similar Documents

Publication Publication Date Title
US10871258B2 (en) Method and system for controlling gimbal
US10157477B2 (en) Robust head pose estimation with a depth camera
CN108323190B (en) Obstacle avoidance method and device and unmanned aerial vehicle
WO2020014909A1 (en) Photographing method and device and unmanned aerial vehicle
US10755438B2 (en) Robust head pose estimation with a depth camera
WO2019183845A1 (en) Pan-tilt device control method, apparatus and system, computer storage medium and unmanned aerial vehicle
CN106873619B (en) Processing method of flight path of unmanned aerial vehicle
CN108574825B (en) Method and device for adjusting pan-tilt camera
CN111213002B (en) Cloud deck control method, equipment, cloud deck, system and storage medium
WO2019227441A1 (en) Video control method and device of movable platform
CN107113376A (en) A kind of image processing method, device and video camera
WO2019205103A1 (en) Pan-tilt orientation correction method, pan-tilt orientation correction apparatus, pan-tilt, pan-tilt system, and unmanned aerial vehicle
WO2021212445A1 (en) Photographic method, movable platform, control device and storage medium
WO2021081707A1 (en) Data processing method and apparatus, movable platform and computer-readable storage medium
WO2019183789A1 (en) Method and apparatus for controlling unmanned aerial vehicle, and unmanned aerial vehicle
CN110337668B (en) Image stability augmentation method and device
WO2019023914A1 (en) Image processing method, unmanned aerial vehicle, ground console, and image processing system thereof
WO2020038720A1 (en) Apparatus, method and computer program for detecting the form of a deformable object
CN109949381B (en) Image processing method and device, image processing chip, camera shooting assembly and aircraft
WO2020257999A1 (en) Method, apparatus and platform for image processing, and storage medium
CN111247389B (en) Data processing method and device for shooting equipment and image processing equipment
WO2020135447A1 (en) Target distance estimation method and device, and unmanned aerial vehicle
WO2020019175A1 (en) Image processing method and apparatus, and photographing device and unmanned aerial vehicle
CN112640419B (en) Following method, movable platform, device and storage medium
WO2021056411A1 (en) Air route adjustment method, ground end device, unmanned aerial vehicle, system, 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: 18917026

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: 18917026

Country of ref document: EP

Kind code of ref document: A1