[go: up one dir, main page]

CN111766902B - Control method for realizing video pan-tilt steering based on longitude and latitude coordinates - Google Patents

Control method for realizing video pan-tilt steering based on longitude and latitude coordinates Download PDF

Info

Publication number
CN111766902B
CN111766902B CN202010589647.8A CN202010589647A CN111766902B CN 111766902 B CN111766902 B CN 111766902B CN 202010589647 A CN202010589647 A CN 202010589647A CN 111766902 B CN111766902 B CN 111766902B
Authority
CN
China
Prior art keywords
angle
target
distance
origin
target object
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010589647.8A
Other languages
Chinese (zh)
Other versions
CN111766902A (en
Inventor
徐丽红
吴胜
郑宇�
肖颂勇
俞炜平
姚钟武
黄咏
王乘恩
陈亮
林楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Fujian Electric Power Co Ltd
Putian Power Supply Co of State Grid Fujian Electric Power Co Ltd
Original Assignee
State Grid Fujian Electric Power Co Ltd
Putian Power Supply Co of State Grid Fujian Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Fujian Electric Power Co Ltd, Putian Power Supply Co of State Grid Fujian Electric Power Co Ltd filed Critical State Grid Fujian Electric Power Co Ltd
Priority to CN202010589647.8A priority Critical patent/CN111766902B/en
Publication of CN111766902A publication Critical patent/CN111766902A/en
Application granted granted Critical
Publication of CN111766902B publication Critical patent/CN111766902B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D3/00Control of position or direction
    • G05D3/12Control of position or direction using feedback

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Radar Systems Or Details Thereof (AREA)

Abstract

The invention relates to a control method for realizing the steering of a video cloud deck based on longitude and latitude coordinates, wherein a system acquires the longitude and latitude coordinates of a target object in real time, and executes the conversion of the longitude and latitude coordinates and the synchronous calculation of a steering angle of video equipment, and the system transmits the calculated azimuth angle to a video cloud deck control steering data interface in real time to realize the accurate steering of a video lens, thereby realizing the real-time video observation and the following positioning shooting of the target object by the system. The invention is suitable for real-time tracking observation of objects travelling on water surface and road surface, can measure and calculate the distance of the target object in real time, can realize measures such as accurate strong light irradiation, acoustic wave directional driving and the like on the target object by carrying different directional observation equipment on the holder, and has wide application prospect.

Description

基于经纬度坐标实现视频云台转向的控制方法Control method of video pan/tilt steering based on latitude and longitude coordinates

技术领域technical field

本发明涉及海缆通道智能化监控领域,具体涉及一种基于经纬度坐标实现视频云台转向的控制方法。The invention relates to the field of intelligent monitoring of submarine cable channels, in particular to a control method for realizing video pan/tilt steering based on longitude and latitude coordinates.

背景技术Background technique

在电力行业海底电缆防外力破坏监控领域,目前应用较为普遍的技术手段是采用船舶定位系统(AIS)和视频设备对海缆所在水面区域可疑目标进行监控,具体过程是监控系统通过AIS设备监测到可疑目标(主要是船舶)大致方位,再通过人工手动调整带云台的视频设备转向该目标方位,从而实现对该可疑目标物的视频监测。该方式虽可以达到对可疑目标物的视频监视目的,但智能化程度和实效性不高,且无法实现目标位置点测距,由于海缆通道区域环境复杂,手动调整视频对准的操作干扰性较大,能够在第一时间发现和处置海缆通道区域的外破风险极为关键,如果目标位置定位不准确导致应急措施处置不当,将会造成海缆外破事故和供电中断,造成社会经济财产损失。因此如果能够通过智能化技术手段来实现视频自动精确转向和视频取证,并同时计算出可疑目标物的参考距离,将有效提高海缆现场可疑目标发现率和及时率,为进一步为海缆的状态判断、事故预防和应急处置提供了有利条件,从而有助于海缆运维智能化水平的提高。In the field of anti-external force damage monitoring of submarine cables in the power industry, the most commonly used technical means is to use ship positioning system (AIS) and video equipment to monitor suspicious targets in the water surface area where the submarine cable is located. The approximate orientation of the suspicious target (mainly ships), and then manually adjust the video device with the gimbal to turn to the target orientation, so as to realize the video monitoring of the suspicious target. Although this method can achieve the purpose of video surveillance of suspicious targets, the degree of intelligence and effectiveness is not high, and it cannot achieve target location point ranging. Due to the complex environment of the submarine cable channel area, the operation of manually adjusting video alignment is disturbing. It is very important to be able to detect and deal with the risk of external breakage in the submarine cable channel area at the first time. If the target location is inaccurate and the emergency measures are improperly handled, it will cause the submarine cable breakout accident and power supply interruption, and cause social and economic property. loss. Therefore, if the automatic and precise video steering and video forensics can be realized through intelligent technical means, and the reference distance of suspicious targets can be calculated at the same time, the detection rate and timely rate of suspicious targets on the submarine cable site will be effectively improved, and the status of submarine cables will be further improved. Judgment, accident prevention and emergency response provide favorable conditions, thereby contributing to the improvement of the intelligent level of submarine cable operation and maintenance.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明的目的在于提供一种基于经纬度坐标实现视频云台转向的控制方法,通过系统自动计算实现视频设备的自动精确转向和测距,能够给运维抢修人员降低视频操作的复杂度,提高应急处置效率。In view of this, the purpose of the present invention is to provide a control method for realizing video pan/tilt steering based on latitude and longitude coordinates, which can realize automatic precise steering and ranging of video equipment through automatic calculation of the system, which can reduce the complexity of video operations for operation and maintenance personnel. to improve the efficiency of emergency response.

为实现上述目的,本发明采用如下技术方案:To achieve the above object, the present invention adopts the following technical solutions:

一种基于经纬度坐标实现视频云台转向的控制方法,包括以下步骤:A control method for realizing video pan/tilt steering based on longitude and latitude coordinates, comprising the following steps:

步骤S1:获取带云台的光电设备的经纬度坐标和海拔高度,并构建初始坐标系,将该经纬度和作为其原点坐标(x,y,z);Step S1: obtain the latitude and longitude coordinates and the altitude of the photoelectric device with the PTZ, and build an initial coordinate system, and use the latitude and longitude sum as its origin coordinates (x, y, z);

步骤S2:获取带云台的光电设备的初始水平角度和垂直角度,把云台的水平起始角设为0度角,其边长与水平坐标系的X轴正方向重合;把云台的垂直起始角设为0度角,其边长与垂直坐标系的X轴方向重合;所述光电设备的初始角与系统中的预设起始角度之差即为偏差角α;Step S2: Obtain the initial horizontal angle and vertical angle of the photoelectric device with the gimbal, set the horizontal starting angle of the gimbal as an angle of 0 degrees, and its side length coincides with the positive direction of the X-axis of the horizontal coordinate system; The vertical starting angle is set as an angle of 0 degrees, and its side length coincides with the X-axis direction of the vertical coordinate system; the difference between the initial angle of the optoelectronic device and the preset starting angle in the system is the deviation angle α;

步骤S3:获取目标物相关数据,并计算目标物与光电设备之间的水平距离和转向角度;Step S3: obtain the relevant data of the target, and calculate the horizontal distance and the steering angle between the target and the photoelectric device;

步骤S4:通过调用光电设备的数据控制接口,并根据目标物与光电设备之间的水平距离和转向角度,控制光电设备对目标物体的精确转向;Step S4: by calling the data control interface of the optoelectronic device, and according to the horizontal distance and the steering angle between the target object and the optoelectronic device, the precise steering of the optoelectronic device to the target object is controlled;

步骤S5:当完成转向控制后,将当前光电设备云台的转向角度重新设置为光电设备的初始角,并同时记录初始角与起始角度之差的偏差角。Step S5: After completing the steering control, reset the current steering angle of the photoelectric device pan/tilt to the initial angle of the photoelectric device, and simultaneously record the deviation angle of the difference between the initial angle and the initial angle.

进一步的,所述步骤S3具体为:通过海事雷达和船舶定位设备接收获得目标物经纬度坐标值(LonA,LatA)、地球的平均半径R、每个纬度之间距离lWD、应用场景位于赤道以北、东半球。Further, the step S3 is specifically as follows: the latitude and longitude coordinate values (LonA, LatA) of the target object, the average radius R of the earth, the distance 1WD between each latitude, and the application scene are located at the equator and are obtained by receiving the maritime radar and the ship positioning device. Northern and Eastern Hemispheres.

进一步的,所述目标物与光电设备之间的水平距离计算,具体如下:Further, the calculation of the horizontal distance between the target and the optoelectronic device is as follows:

1)判断目标物坐标象限:根据目标物经纬度(LonA,LatA)与原点经纬度(LonO,LatO)来计算目标物所在坐标象限:1) Determine the coordinate quadrant of the target object: Calculate the coordinate quadrant of the target object according to the longitude and latitude of the target object (LonA, LatA) and the longitude and latitude of the origin (LonO, LatO):

位于坐标第1象限条件:LonA-LonO>0且LatA-LatO>0;In the first quadrant of coordinates: LonA-LonO>0 and LatA-LatO>0;

位于坐标第2象限条件:LonA-LonO<0且LatA-LatO>0;In the second quadrant of coordinates: LonA-LonO<0 and LatA-LatO>0;

位于坐标第3象限条件:LonA-LonO<0且LatA-LatO<0;In the 3rd quadrant of coordinates: LonA-LonO<0 and LatA-LatO<0;

位于坐标第4象限条件:LonA-LonO>0且LatA-LatO<0;In the fourth quadrant of coordinates: LonA-LonO>0 and LatA-LatO<0;

2)计算目标物与原点直线距离:2) Calculate the straight-line distance between the target and the origin:

计算目标物与原点之间水平直线距离lAOCalculate the horizontal straight-line distance l AO between the target and the origin:

首先计算两者之间的南北间距和东西间距,First calculate the north-south distance and east-west distance between the two,

南北间距:lW‘D’=|LatA-LatO|*lWDNorth-South distance: l W'D' =|LatA-LatO|*l WD ,

东西间距:lJ‘D’=|LonA-LonO|*COS|LatA-LatO|*lWDEast-west distance: l J'D' = |LonA-LonO|*COS|LatA-LatO|*l WD ,

在水平坐标系上,目标物与原点之间直线距离lAO,与lW‘D’、lJ‘D’构成一个直角三角形,其中,lAO为斜边,lJ‘D’为邻边,lW‘D’为对边,则lAO的长度可通过勾股定理计算得出,即In the horizontal coordinate system, the straight-line distance l AO between the target and the origin forms a right triangle with l W'D' and l J'D' , where l AO is the hypotenuse and l J'D' is the adjacent side , l W'D' is the opposite side, then the length of l AO can be calculated by the Pythagorean theorem, namely

Figure BDA0002554958960000031
Figure BDA0002554958960000031

进一步的,所述转向角度包括水平转向角度和垂直角度。Further, the steering angle includes a horizontal steering angle and a vertical angle.

进一步的,所述目标物与光电设备之间的水平转向角度计算,具体为:Further, the calculation of the horizontal steering angle between the target and the optoelectronic device is specifically:

根据目标物所在水平直角坐标象限,以及目标物与原点距离,目标物与原点在水平直角坐标系上与X轴正方向构成的角度为:According to the horizontal rectangular coordinate quadrant of the target object and the distance between the target object and the origin, the angle formed by the target object and the origin on the horizontal rectangular coordinate system and the positive direction of the X axis is:

目标物在第1象限,与原点角度为:θ=arctg(lW‘D’/lj‘D’)+0×π;The target is in the first quadrant, and the angle with the origin is: θ=arctg(l W'D' /l j'D' )+0×π;

目标物在第2象限,与原点角度为:

Figure BDA0002554958960000041
The target is in the second quadrant, and the angle to the origin is:
Figure BDA0002554958960000041

目标物在第3象限,与原点角度为:

Figure BDA0002554958960000042
The target is in the third quadrant, and the angle to the origin is:
Figure BDA0002554958960000042

目标物在第4象限,与原点角度为:

Figure BDA0002554958960000043
The target is in the 4th quadrant, and the angle to the origin is:
Figure BDA0002554958960000043

进一步的,所述目标物与光电设备之间的垂直转向角度计算具体为:Further, the calculation of the vertical steering angle between the target and the optoelectronic device is as follows:

(1)判断目标物坐标象限:(1) Judging the quadrant of the coordinates of the target object:

(2)获取目标物与原点的直线距离和垂直距离,光电设备的海拔安装高度即为目标物与原点的垂直距离hAO,两者之间的直线距离为lAO;:(2) Obtain the straight-line distance and the vertical distance between the target and the origin, the installation height of the photoelectric device above sea level is the vertical distance h AO between the target and the origin, and the straight-line distance between the two is l AO ;

(3)根据目标物与原点的直线距离和垂直距离,计算目标物与原点垂直角度。(3) Calculate the vertical angle between the target and the origin according to the straight-line distance and the vertical distance between the target and the origin.

本发明与现有技术相比具有以下有益效果:Compared with the prior art, the present invention has the following beneficial effects:

本发明通过系统自动计算实现视频设备的自动精确转向和测距,能够给运维抢修人员降低视频操作的复杂度,提高应急处置效率。The invention realizes automatic and precise steering and ranging of video equipment through automatic calculation of the system, which can reduce the complexity of video operation for operation and maintenance personnel and improve the efficiency of emergency response.

附图说明Description of drawings

图1是本发明光电设备精确转向处理流程图;Fig. 1 is the accurate steering process flow chart of photoelectric equipment of the present invention;

图2是本发明一实施例中光电设备主要部件示意图;FIG. 2 is a schematic diagram of the main components of an optoelectronic device in an embodiment of the present invention;

图3是本发明一实施例中水平直角坐标系中的视频水平转向场景模型;Fig. 3 is the video horizontal steering scene model in the horizontal Cartesian coordinate system in one embodiment of the present invention;

图4是本发明一实施例中垂直直角坐标系中的视频垂直转向场景模型;4 is a video vertical steering scene model in a vertical rectangular coordinate system in an embodiment of the present invention;

图5是本发明一实施例中光电设备水平转向定位过程示意图;FIG. 5 is a schematic diagram of a horizontal steering positioning process of an optoelectronic device in an embodiment of the present invention;

图6是本发明一实施例中光电设备垂直转向定位过程示意图。FIG. 6 is a schematic diagram of a vertical steering positioning process of an optoelectronic device in an embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图及实施例对本发明做进一步说明。The present invention will be further described below with reference to the accompanying drawings and embodiments.

请参照图1,本发明提供一种基于经纬度坐标实现视频云台转向的控制方法,包括以下步骤:Please refer to FIG. 1 , the present invention provides a control method for realizing video pan/tilt steering based on latitude and longitude coordinates, comprising the following steps:

步骤S1:获取带云台的光电设备的经纬度坐标和海拔高度,并构建初始坐标系,将该经纬度和作为其原点坐标(x,y,z);Step S1: obtain the latitude and longitude coordinates and the altitude of the photoelectric device with the PTZ, and build an initial coordinate system, and use the latitude and longitude sum as its origin coordinates (x, y, z);

如图3所示,在本实施例中,任何被监控物体的绝对经纬度坐标均被转换成相对为该原点的坐标位置(x’,y’)。该水平坐标系建立目的是为了计算目标物离原点距离,以及光电设备从初始位向目标位置水平转动的角度。As shown in Fig. 3, in this embodiment, the absolute longitude and latitude coordinates of any monitored object are converted into coordinate positions (x', y') relative to the origin. The purpose of establishing the horizontal coordinate system is to calculate the distance of the target from the origin and the horizontal rotation angle of the optoelectronic device from the initial position to the target position.

如图4所示,在实施例中,任何被监控物体均被认为位于水平面(高度:0米),通过目标物与光电设备的水平距离和光电设备已知的海拔对地距离,可计算得到光电设备向目标物转动的垂直角度。As shown in Figure 4, in the embodiment, any monitored object is considered to be located on the horizontal plane (height: 0 meters), and the horizontal distance between the target and the optoelectronic device and the known altitude-to-ground distance of the optoelectronic device can be calculated. The vertical angle at which the optoelectronic device rotates toward the target.

步骤S2:获取带云台的光电设备的初始水平角度和垂直角度,把云台的水平起始角设为0度角,其边长与水平坐标系的X轴正方向重合;把云台的垂直起始角设为0度角,其边长与垂直坐标系的X轴方向重合;所述光电设备的初始角与系统中的预设起始角度之差即为偏差角α;如图3和图4所示,图中假定了视频设备的初始角度均在直角坐标系中的第1象限Step S2: Obtain the initial horizontal angle and vertical angle of the photoelectric device with the gimbal, set the horizontal starting angle of the gimbal as an angle of 0 degrees, and its side length coincides with the positive direction of the X-axis of the horizontal coordinate system; The vertical starting angle is set to 0 degree angle, and its side length coincides with the X-axis direction of the vertical coordinate system; the difference between the initial angle of the optoelectronic device and the preset starting angle in the system is the deviation angle α; as shown in Figure 3 As shown in Figure 4, it is assumed that the initial angles of the video equipment are in the first quadrant in the Cartesian coordinate system

步骤S3:获取目标物相关数据,并计算目标物与光电设备之间的水平距离和转向角度;Step S3: obtain the relevant data of the target, and calculate the horizontal distance and the steering angle between the target and the photoelectric device;

在本实施例中,通过从海事雷达和船舶定位设备接收获得目标物经纬度坐标值(LonA,LatA);应用场景位于赤道以北(北纬)、东半球(东经)。In this embodiment, the latitude and longitude coordinate values (LonA, LatA) of the target object are obtained by receiving from maritime radar and ship positioning equipment; the application scenario is located north of the equator (north latitude) and eastern hemisphere (east longitude).

水平距离和水平转向角度计算过程:Horizontal distance and horizontal steering angle calculation process:

1)判断目标物坐标象限:根据目标物经纬度(LonA,LatA)与原点经纬度(LonO,LatO)来计算目标物所在坐标象限:1) Determine the coordinate quadrant of the target object: Calculate the coordinate quadrant of the target object according to the longitude and latitude of the target object (LonA, LatA) and the longitude and latitude of the origin (LonO, LatO):

位于坐标第1象限条件:LonA-LonO>0且LatA-LatO>0In the first quadrant of coordinates: LonA-LonO>0 and LatA-LatO>0

位于坐标第2象限条件:LonA-LonO<0且LatA-LatO>0In the 2nd quadrant of coordinates condition: LonA-LonO<0 and LatA-LatO>0

位于坐标第3象限条件:LonA-LonO<0且LatA-LatO<0In the 3rd quadrant of coordinates: LonA-LonO<0 and LatA-LatO<0

位于坐标第4象限条件:LonA-LonO>0且LatA-LatO<0In the 4th quadrant of coordinates: LonA-LonO>0 and LatA-LatO<0

如图5所示,这里假设目标物在第2象限。As shown in Figure 5, it is assumed that the target is in the second quadrant.

2)计算目标物与原点直线距离:2) Calculate the straight-line distance between the target and the origin:

计算目标物与原点之间水平直线距离lAO,需先计算两者之间的南北间距和东西间距,南北间距计算方法:lW‘D’=|LatA-LatO|*lWD,东西间距计算方法:lJ‘D’=|LonA-LonO|*COS|LatA-LatO|*lWD,此时在系统的水平坐标系上,目标物与原点之间直线距离lAO,与lW‘D’、lJ‘D’构成一个直角三角形,其中,lAO为斜边,lJ‘D’为邻边,lW‘D’为对边,则lAO的长度可通过勾股定理计算得出,即

Figure BDA0002554958960000061
To calculate the horizontal straight-line distance l AO between the target and the origin , it is necessary to first calculate the north-south distance and the east-west distance between them. Method: l J'D' = |LonA-LonO|*COS|LatA-LatO|*l WD , at this time in the horizontal coordinate system of the system, the linear distance between the target and the origin l AO , and l W'D ' , l J'D' form a right triangle, where l AO is the hypotenuse, l J'D' is the adjacent side, and l W'D' is the opposite side, then the length of l AO can be calculated by the Pythagorean theorem out, that is
Figure BDA0002554958960000061

3)计算目标物与原点水平角度:3) Calculate the horizontal angle between the target and the origin:

已知目标物所在水平直角坐标象限,以及目标物与原点距离,则目标物与原点在水平直角坐标系上与X轴正方向构成的角度计算方式为:Knowing the horizontal rectangular coordinate quadrant of the target object and the distance between the target object and the origin, the calculation method of the angle formed by the target object and the origin on the horizontal rectangular coordinate system and the positive direction of the X axis is:

目标物在第1象限,与原点角度为:θ=arctg(lW‘D’/lJ‘D’)+0×π。The target is in the first quadrant, and the angle with the origin is: θ=arctg(l W'D' /l J'D' )+0×π.

目标物在第2象限,与原点角度为:

Figure BDA0002554958960000071
The target is in the second quadrant, and the angle to the origin is:
Figure BDA0002554958960000071

目标物在第3象限,与原点角度为:

Figure BDA0002554958960000072
The target is in the third quadrant, and the angle to the origin is:
Figure BDA0002554958960000072

目标物在第4象限,与原点角度为:

Figure BDA0002554958960000073
The target is in the 4th quadrant, and the angle to the origin is:
Figure BDA0002554958960000073

如图5所示,因假设目标物在第2象限,取目标物的角度为As shown in Figure 5, since the target is assumed to be in the second quadrant, the angle of the target is taken as

Figure BDA0002554958960000074
Figure BDA0002554958960000074

优选的,本实施例中还需要考虑光电设备的水平偏差角(α)同目标物与原点夹角(θ)之间的关系,以及光电设备水平转向的选择,使得光电设备能够用最短路径转向到指定角度:Preferably, in this embodiment, it is also necessary to consider the relationship between the horizontal deviation angle (α) of the optoelectronic device and the angle (θ) between the target and the origin, as well as the selection of the horizontal steering of the optoelectronic device, so that the optoelectronic device can be turned with the shortest path. To the specified angle:

如果θ-α>0且≤180,则光电设备的水平偏转角度为|θ-α|(从右往左转向,即逆时针方向);If θ-α>0 and ≤180, the horizontal deflection angle of the optoelectronic device is |θ-α| (turning from right to left, that is, counterclockwise);

如果θ-α<0,则光电设备的水平偏转角度为-|θ-α|(从左往右转向,即顺时针方向);If θ-α<0, the horizontal deflection angle of the optoelectronic device is -|θ-α| (turning from left to right, that is, clockwise);

如果θ-α>180,则光电设备的水平偏转角度为-|360-θ+α|(从左往右转向,即顺时针方向)。If θ-α>180, the horizontal deflection angle of the optoelectronic device is -|360-θ+α| (turning from left to right, ie clockwise).

在图5中,视频云台将从其初始位沿逆时针方向转动到θ-α角度。In Figure 5, the video pan/tilt will rotate counterclockwise from its initial position to an angle of θ-α.

2.垂直角度计算过程:2. Vertical angle calculation process:

1)判断目标物坐标象限:1) Determine the coordinate quadrant of the target object:

由于光电设备安装在水平面以上,被监控目标物位于水平面,因此,目标物在系统内建的垂直直角坐标系上一定位于第3或第4象限,另由于视频云台在垂直转向上的最大角度范围是90角度和-90角度之间,因此目标物在任何情况下均位于垂直直角坐标系中的第4象限,如图6。Since the optoelectronic equipment is installed above the horizontal plane and the monitored target is on the horizontal plane, the target must be located in the 3rd or 4th quadrant on the vertical rectangular coordinate system built in the system. In addition, due to the maximum angle of the video head in vertical steering The range is between 90 degrees and -90 degrees, so the target is in any case in the 4th quadrant in the vertical Cartesian coordinate system, as shown in Figure 6.

2)计算目标物与原点的直线距离和垂直距离:2) Calculate the straight-line distance and vertical distance between the target and the origin:

由于目标物位于水平面,则光电设备的海拔安装高度即为目标物与原点的垂直距离(记作:hAO),两者之间的直线距离已在计算水平转向角度时已计算得出,即:lAOSince the target is on the horizontal plane, the installation height of the photoelectric device above sea level is the vertical distance between the target and the origin (denoted as: h AO ), and the straight-line distance between the two has been calculated when calculating the horizontal steering angle, that is, : lAO .

3)计算目标物与原点垂直角度:3) Calculate the vertical angle between the target and the origin:

由于光电设备与目标物与的水平距离lAO已计算得出,与目标物的垂直高度hAO已知,则目标物与原点在垂直直角坐标系上与X轴正方向构成的角度计算方式为:Since the horizontal distance l AO between the optoelectronic device and the target has been calculated, and the vertical height h AO of the target is known, the calculation method of the angle formed by the target and the origin on the vertical rectangular coordinate system and the positive direction of the X axis is as follows: :

Figure BDA0002554958960000081
Figure BDA0002554958960000081

因视频设备的实际最大垂直转向角度范围为180,且实际目标位置均位于垂直直角坐标系上的第4象限,因此视频设备的垂直偏转角度θ取:-|90-arcos(hAO/lAO)|。Because the actual maximum vertical steering angle range of the video equipment is 180, and the actual target position is located in the fourth quadrant of the vertical rectangular coordinate system, the vertical deflection angle θ of the video equipment is taken as: -|90-arcos(h AO /l AO )|.

优选的,本实施例还考虑了光电设备的垂直偏差角(α)同目标物与原点夹角(θ)之间的关系,光电设备的垂直偏转角度为:Preferably, this embodiment also considers the relationship between the vertical deviation angle (α) of the optoelectronic device and the angle (θ) between the target and the origin, and the vertical deflection angle of the optoelectronic device is:

如果θ-α>0且≤90,则光电设备的垂直偏转角度为|θ-α|(云台从下往上转向,在垂直坐标系上表现为逆时针方向);If θ-α>0 and ≤90, the vertical deflection angle of the optoelectronic device is |θ-α| (the gimbal turns from bottom to top, which is counterclockwise in the vertical coordinate system);

如果θ-α<0且≥-90,则光电设备的垂直偏转角度为-|θ+α|(云台从上往下转向,在垂直坐标系上表现为顺时针方向);If θ-α<0 and ≥-90, the vertical deflection angle of the optoelectronic device is -|θ+α| (the gimbal turns from top to bottom, which is clockwise in the vertical coordinate system);

在图6中,视频云台将从其初始位沿顺时针方向转动到θ+α角度。In Figure 6, the video head will rotate clockwise from its initial position to an angle of θ+α.

步骤S4:通过调用光电设备的数据控制接口,并根据目标物与光电设备之间的水平距离和转向角度,控制光电设备对目标物体的精确转向;Step S4: by calling the data control interface of the optoelectronic device, and according to the horizontal distance and the steering angle between the target object and the optoelectronic device, the precise steering of the optoelectronic device to the target object is controlled;

步骤S5:当完成转向控制后,将当前光电设备云台的转向角度重新设置为光电设备的初始角,并同时记录初始角与起始角度之差的偏差角。Step S5: After completing the steering control, reset the current steering angle of the photoelectric device pan/tilt to the initial angle of the photoelectric device, and simultaneously record the deviation angle of the difference between the initial angle and the initial angle.

优选的,参考图2,本实施例中带云台的光电设备包括云台和设置于云台上的光敏单元、激光镜头、热成像镜头、可见光镜头。Preferably, referring to FIG. 2 , the optoelectronic device with a gimbal in this embodiment includes a gimbal, a photosensitive unit, a laser lens, a thermal imaging lens, and a visible light lens disposed on the gimbal.

以上所述仅为本发明的较佳实施例,凡依本发明申请专利范围所做的均等变化与修饰,皆应属本发明的涵盖范围。The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the scope of the patent application of the present invention shall fall within the scope of the present invention.

Claims (6)

1.一种基于经纬度坐标实现视频云台转向的控制方法,其特征在于,包括以下步骤:1. a control method based on latitude and longitude coordinates to realize video pan-tilt steering, is characterized in that, comprises the following steps: 步骤S1:获取带云台的光电设备的经纬度坐标和海拔高度,并构建初始坐标系,将该经纬度和海拔高度作为其原点坐标(x,y,z);Step S1: obtain the latitude and longitude coordinates and the altitude of the photoelectric device with the PTZ, and build an initial coordinate system, and use this longitude and latitude and altitude as its origin coordinates (x, y, z); 步骤S2:获取带云台的光电设备的初始水平角度和垂直角度,把云台的水平起始角设为0度角,其边长与水平坐标系的X轴正方向重合;把云台的垂直起始角设为0度角,其边长与垂直坐标系的X轴方向重合;所述光电设备的初始角与系统中的预设起始角度之差即为偏差角α;Step S2: Obtain the initial horizontal angle and vertical angle of the photoelectric device with the gimbal, set the horizontal starting angle of the gimbal as an angle of 0 degrees, and its side length coincides with the positive direction of the X-axis of the horizontal coordinate system; The vertical starting angle is set as an angle of 0 degrees, and its side length coincides with the X-axis direction of the vertical coordinate system; the difference between the initial angle of the optoelectronic device and the preset starting angle in the system is the deviation angle α; 步骤S3:获取目标物相关数据,并计算目标物与光电设备之间的水平距离和转向角度;Step S3: obtain the relevant data of the target, and calculate the horizontal distance and the steering angle between the target and the photoelectric device; 步骤S4:通过调用光电设备的数据控制接口,并根据目标物与光电设备之间的水平距离和转向角度,控制光电设备对目标物体的精确转向;Step S4: by calling the data control interface of the optoelectronic device, and according to the horizontal distance and the steering angle between the target object and the optoelectronic device, the precise steering of the optoelectronic device to the target object is controlled; 步骤S5:当完成转向控制后,将当前光电设备云台的转向角度重新设置为光电设备的初始角,并同时记录初始角与起始角度之差的偏差角。Step S5: After completing the steering control, reset the current steering angle of the photoelectric device pan/tilt to the initial angle of the photoelectric device, and simultaneously record the deviation angle of the difference between the initial angle and the initial angle. 2.根据权利要求1所述的基于经纬度坐标实现视频云台转向的控制方法,其特征在于,所述步骤S3具体为:通过海事雷达和船舶定位设备接收获得目标物经纬度坐标值(LonA,LatA)、地球的平均半径R、每个纬度之间距离lWD2. the control method that realizes video pan-tilt steering based on latitude and longitude coordinates according to claim 1, it is characterized in that, described step S3 is specifically: by maritime radar and ship positioning equipment, receive and obtain target object longitude and latitude coordinate values (LonA, LatA ), the mean radius R of the earth, the distance l WD between each latitude. 3.根据权利要求1所述的基于经纬度坐标实现视频云台转向的控制方法,其特征在于,所述目标物与光电设备之间的水平距离计算,具体如下:3. the control method that realizes video pan-tilt steering based on longitude and latitude coordinates according to claim 1, is characterized in that, the horizontal distance calculation between described target object and photoelectric equipment, is specifically as follows: 1)判断目标物坐标象限:根据目标物经纬度(LonA,LatA)与原点经纬度(LonO,LatO)来计算目标物所在坐标象限:1) Determine the coordinate quadrant of the target object: Calculate the coordinate quadrant of the target object according to the longitude and latitude of the target object (LonA, LatA) and the longitude and latitude of the origin (LonO, LatO): 位于坐标第1象限条件:LonA-LonO>0且LatA-LatO>0;In the first quadrant of coordinates: LonA-LonO>0 and LatA-LatO>0; 位于坐标第2象限条件:LonA-LonO<0且LatA-LatO>0;In the second quadrant of coordinates: LonA-LonO<0 and LatA-LatO>0; 位于坐标第3象限条件:LonA-LonO<0且LatA-LatO<0;In the third quadrant of coordinates: LonA-LonO<0 and LatA-LatO<0; 位于坐标第4象限条件:LonA-LonO>0且LatA-LatO<0;In the fourth quadrant of coordinates: LonA-LonO>0 and LatA-LatO<0; 2)计算目标物与原点直线距离:2) Calculate the straight-line distance between the target and the origin: 计算目标物与原点之间水平直线距离lAOCalculate the horizontal straight-line distance l AO between the target and the origin: 首先计算两者之间的南北间距和东西间距,First calculate the north-south distance and east-west distance between the two, 南北间距:lW‘D’=|LatA-LatO|*lWDNorth-South distance: l W'D' =|LatA-LatO|*l WD , 东西间距:lJ‘D’=|LonA-LonO|*COS|LatA-LatO|*lWDEast-west distance: l J'D' = |LonA-LonO|*COS|LatA-LatO|*l WD , 其中,lWD为每个纬度之间距离,在水平坐标系上,目标物与原点之间直线距离lAO,与lW‘D’、lJ‘D’构成一个直角三角形,其中,lAO为斜边,lJ‘D’为邻边,lW‘D’为对边,则lAO的长度可通过勾股定理计算得出,即
Figure FDA0003769823660000021
Among them, l WD is the distance between each latitude, in the horizontal coordinate system, the straight line distance l AO between the target and the origin, and l W'D' , l J'D' form a right triangle, where l AO is the hypotenuse, l J'D' is the adjacent side, and l W'D' is the opposite side, then the length of l AO can be calculated by the Pythagorean theorem, namely
Figure FDA0003769823660000021
4.根据权利要求1所述的基于经纬度坐标实现视频云台转向的控制方法,其特征在于,所述转向角度包括水平转向角度和垂直角度。4 . The control method for realizing video pan/tilt steering based on latitude and longitude coordinates according to claim 1 , wherein the steering angle includes a horizontal steering angle and a vertical angle. 5 . 5.根据权利要求4所述的基于经纬度坐标实现视频云台转向的控制方法,其特征在于,所述目标物与光电设备之间的水平转向角度计算,具体为:5. the control method that realizes video pan-tilt steering based on longitude and latitude coordinates according to claim 4, is characterized in that, the horizontal steering angle calculation between described target object and photoelectric equipment, is specially: 根据目标物所在水平直角坐标象限,以及目标物与原点距离,目标物与原点在水平直角坐标系上与X轴正方向构成的角度为:According to the horizontal rectangular coordinate quadrant of the target object and the distance between the target object and the origin, the angle formed by the target object and the origin on the horizontal rectangular coordinate system and the positive direction of the X axis is: 目标物在第1象限,与原点角度为:θ=arctg(lW‘D’/lJ‘D’)+0×π;The target is in the first quadrant, and the angle with the origin is: θ=arctg(l W'D' /l J'D' )+0×π; 目标物在第2象限,与原点角度为:
Figure FDA0003769823660000031
The target is in the second quadrant, and the angle to the origin is:
Figure FDA0003769823660000031
目标物在第3象限,与原点角度为:
Figure FDA0003769823660000032
The target is in the third quadrant, and the angle to the origin is:
Figure FDA0003769823660000032
目标物在第4象限,与原点角度为:
Figure FDA0003769823660000033
The target is in the 4th quadrant, and the angle to the origin is:
Figure FDA0003769823660000033
其中lW‘D’为南北间距,lJ‘D’为东西间距。where l W'D' is the north-south distance, and l J'D' is the east-west distance.
6.根据权利要求4所述的基于经纬度坐标实现视频云台转向的控制方法,其特征在于,所述目标物与光电设备之间的垂直转向角度计算具体为:6. the control method that realizes video pan-tilt steering based on latitude and longitude coordinates according to claim 4, is characterized in that, the vertical steering angle calculation between described target object and photoelectric equipment is specifically: (1)判断目标物坐标象限:(1) Judging the quadrant of the coordinates of the target object: (2)获取目标物与原点的直线距离和垂直距离,光电设备的海拔安装高度即为目标物与原点的垂直距离hAO,两者之间的直线距离为lAO(2) Obtain the straight-line distance and the vertical distance between the target and the origin, the installation height above sea level of the photoelectric device is the vertical distance h AO between the target and the origin, and the straight-line distance between the two is l AO ; (3)根据目标物与原点的直线距离和垂直距离,计算目标物与原点垂直角度。(3) Calculate the vertical angle between the target and the origin according to the straight-line distance and the vertical distance between the target and the origin.
CN202010589647.8A 2020-06-24 2020-06-24 Control method for realizing video pan-tilt steering based on longitude and latitude coordinates Active CN111766902B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010589647.8A CN111766902B (en) 2020-06-24 2020-06-24 Control method for realizing video pan-tilt steering based on longitude and latitude coordinates

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010589647.8A CN111766902B (en) 2020-06-24 2020-06-24 Control method for realizing video pan-tilt steering based on longitude and latitude coordinates

Publications (2)

Publication Number Publication Date
CN111766902A CN111766902A (en) 2020-10-13
CN111766902B true CN111766902B (en) 2022-10-04

Family

ID=72721812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010589647.8A Active CN111766902B (en) 2020-06-24 2020-06-24 Control method for realizing video pan-tilt steering based on longitude and latitude coordinates

Country Status (1)

Country Link
CN (1) CN111766902B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112034894A (en) * 2020-08-25 2020-12-04 国网福建省电力有限公司莆田供电公司 Control method for realizing video pan-tilt steering by utilizing longitude and latitude coordinates
EP4465112A1 (en) * 2022-05-26 2024-11-20 Beijing Xiaomi Mobile Software Co., Ltd. Anti-snooping prompt method and apparatus, and electronic device and storage medium

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5166789A (en) * 1989-08-25 1992-11-24 Space Island Products & Services, Inc. Geographical surveying using cameras in combination with flight computers to obtain images with overlaid geographical coordinates
CN100531373C (en) * 2007-06-05 2009-08-19 西安理工大学 Video frequency motion target close-up trace monitoring method based on double-camera head linkage structure
CN102263933B (en) * 2010-05-25 2013-04-10 浙江宇视科技有限公司 Implement method and device for intelligent monitor
CN102665044A (en) * 2012-04-01 2012-09-12 杭州天视智能系统有限公司 Camera remote control method, device thereof and system thereof
CN102917171B (en) * 2012-10-22 2015-11-18 中国南方电网有限责任公司超高压输电公司广州局 Based on the small target auto-orientation method of pixel
CN103034247B (en) * 2012-12-04 2015-09-02 浙江天地人科技有限公司 The control method of long distance control system and control device
CN104184995A (en) * 2014-08-26 2014-12-03 天津市亚安科技股份有限公司 Method and system for achieving real-time linkage monitoring of networking video monitoring system
CN104320587A (en) * 2014-11-12 2015-01-28 南京汉图信息技术有限公司 Method for automatically obtaining shooting range of outdoor pan-tilt camera
CN104776844A (en) * 2015-04-02 2015-07-15 重庆市海普软件产业有限公司 Fire point locating method for forest fire prevention
WO2017096625A1 (en) * 2015-12-11 2017-06-15 深圳市轻生活科技有限公司 Video interaction control method and device
CN106888361A (en) * 2015-12-11 2017-06-23 深圳市轻生活科技有限公司 Video interactive control method and device
CN107247458A (en) * 2017-05-24 2017-10-13 中国电子科技集团公司第二十八研究所 UAV Video image object alignment system, localization method and cloud platform control method
CN109218668A (en) * 2018-09-10 2019-01-15 天津市亚安科技有限公司 A kind of intelligent console height linked system and method based on longitude and latitude control

Also Published As

Publication number Publication date
CN111766902A (en) 2020-10-13

Similar Documents

Publication Publication Date Title
CN108965809B (en) Radar-guided video linkage monitoring system and control method
CN107462213B (en) Iron tower inclination angle automatic measurement method based on machine vision system
CN110006407A (en) Proximity Photogrammetry Method Based on Rotor UAV
CN104061865B (en) A navigation ship altitude measurement system and its measurement method
CN105120242B (en) A kind of panoramic camera and high-speed ball-forming machine intelligent linkage method and device
CN111766902B (en) Control method for realizing video pan-tilt steering based on longitude and latitude coordinates
CN104320587A (en) Method for automatically obtaining shooting range of outdoor pan-tilt camera
CN104506821B (en) A kind of ferry man overboard&#39;s quick positioning system measured based on digital picture
CN102902884A (en) PTZ (pan/tilt/zoom) camera automatic positioning and angle calculating method
CN109975759B (en) Underwater unmanned aerial vehicle positioning method and device based on three-color laser
CN112799422A (en) A UAV flight control method and device for power inspection
CN104330075B (en) Rasterizing polar coordinate system object localization method
CN103148832A (en) Detection method of installation inclination angle of video camera
CN110376593B (en) Target sensing method and device based on laser radar
CN112230257A (en) Positioning monitoring method based on PTZ camera
CN109255820A (en) A kind of actively perceive apparatus and method based on unmanned boat
CN117762157A (en) Autonomous interception method of aerial drones based on ground camera network
CN117347991A (en) An optoelectronic target tracking system method based on the fusion of radar and AIS
CN111163263B (en) Method for realizing camera target linkage tracking by adopting position projection mode
CN112034894A (en) Control method for realizing video pan-tilt steering by utilizing longitude and latitude coordinates
CN112541951A (en) Monitoring system and monitoring method for preventing ship from hooking off cross-sea overhead power line
CN115830140A (en) Method, system, medium, equipment and terminal for offshore short-range photoelectric monitoring
CN116099143A (en) A Precise Fire Extinguishing Method Using Three-Dimensional Space Positioning
CN112203058B (en) Navigation tower monitoring method and device, computer readable medium and electronic equipment
CN104378552B (en) Towards the optimal sensing angle control method of video satellite video camera of continuous monitoring task

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant