[go: up one dir, main page]

CN114615410B - Natural disaster panoramic helmet and shooting gesture determining method for images of natural disaster panoramic helmet - Google Patents

Natural disaster panoramic helmet and shooting gesture determining method for images of natural disaster panoramic helmet Download PDF

Info

Publication number
CN114615410B
CN114615410B CN202210232180.0A CN202210232180A CN114615410B CN 114615410 B CN114615410 B CN 114615410B CN 202210232180 A CN202210232180 A CN 202210232180A CN 114615410 B CN114615410 B CN 114615410B
Authority
CN
China
Prior art keywords
image
fisheye
helmet
search area
center
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.)
Expired - Fee Related
Application number
CN202210232180.0A
Other languages
Chinese (zh)
Other versions
CN114615410A (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202210232180.0A priority Critical patent/CN114615410B/en
Publication of CN114615410A publication Critical patent/CN114615410A/en
Application granted granted Critical
Publication of CN114615410B publication Critical patent/CN114615410B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/698Control of cameras or camera modules for achieving an enlarged field of view, e.g. panoramic image capture
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Analysis (AREA)

Abstract

本申请涉及拍摄影像的技术领域,尤其是涉及一种自然灾害全景头盔及其影像的拍摄姿态确定方法、计算机存储介质,其包括头盔本体,设置于头盔本体顶部的全景鱼眼摄像头,以及设置于头盔本体内的磁力计和数据处理系统,全景鱼眼摄像头用于不同时刻的鱼眼图像;磁力计,用于获取不同时刻头盔的空间信息,数据处理系统根据获取不同时刻在不同方位上的图像,并在不同时刻的图像上提取相匹配的特征点;并根据不同时刻相匹配的特征点的位置关系获取横滚角和俯仰角;根据横滚角和俯仰角确定拍摄姿态的变化量。本申请具有方便操作人员在特定环境下进行自然资源扫查,同时以固定姿态对自然灾害进行拍摄以进行扫查记录的效果。

Figure 202210232180

The present application relates to the technical field of photographing images, in particular to a natural disaster panoramic helmet and a method for determining the photographing attitude of its images, and a computer storage medium, which includes a helmet body, a panoramic fisheye camera installed on the top of the helmet body, and a The magnetometer and data processing system in the helmet body, the panoramic fisheye camera is used for fisheye images at different times; the magnetometer is used to obtain the spatial information of the helmet at different times, and the data processing system acquires images in different directions at different times , and extract matching feature points on images at different moments; and obtain the roll angle and pitch angle according to the positional relationship of the matched feature points at different moments; determine the variation of shooting attitude according to the roll angle and pitch angle. The application has the effect of facilitating operators to scan natural resources in a specific environment, and at the same time, take pictures of natural disasters in a fixed posture for scanning and recording.

Figure 202210232180

Description

一种自然灾害全景头盔及其影像的拍摄姿态确定方法A natural disaster panoramic helmet and its image shooting attitude determination method

技术领域technical field

本申请涉及拍摄影像的技术领域,尤其是涉及一种自然灾害全景头盔及其影像的拍摄姿态确定方法。The present application relates to the technical field of photographing images, in particular to a natural disaster panoramic helmet and a method for determining the photographing posture of the image thereof.

背景技术Background technique

自然灾害扫查是运用各种测量手段,对自然灾害孕育、发生、发展和致命成害全过程相关因素的动态变化进行的观察、监视,而自然灾害扫查工具指用于监视灾害时间发生前、发生中、发生后目标区域的状态的工具。Natural disaster scanning is the use of various measurement methods to observe and monitor the dynamic changes of factors related to the whole process of natural disaster breeding, occurrence, development and fatal damage. , in-progress, and post-occurrence state of the target area.

相关技术中,对于自然灾害扫查主要采用人工巡查或无人机巡查,人工巡查采用人工携带平板电脑、GPS等设备,定点拍照,这种方法不仅效率低,也容易遗漏巡查点,且对于漏检的地点也难以进行验证;而无人机巡查则需要在无人机上搭载各种传感设备和采集设备,受限于无人机的最大载重的影响,无人机的续航时间短,成本高昂,无法执行长时间、大范围的自然区域的自然灾害普查。另外,有人/无人车载巡查系统也被广泛应用,但是车载系统受限于路况影响,不适用于山区、林地等路况较差的自然区域的自然灾害普查。In related technologies, manual inspections or unmanned aerial vehicle inspections are mainly used for natural disaster scanning. Manual inspections use tablet computers, GPS and other equipment to take photos at fixed points. This method is not only inefficient, but also easy to miss inspection points. It is also difficult to verify the location of the inspection; UAV inspections require various sensing devices and acquisition equipment on the UAV, which is limited by the maximum load of the UAV. Expensive, unable to perform long-term, large-scale natural disaster censuses in natural areas. In addition, manned/unmanned vehicle inspection systems are also widely used, but the vehicle system is limited by road conditions and is not suitable for natural disaster surveys in natural areas with poor road conditions such as mountainous areas and woodlands.

发明内容Contents of the invention

为了方便操作人员在特定环境下进行自然资源扫查,同时以固定姿态对自然灾害进行拍摄以进行扫查记录,本申请提供一种自然灾害全景头盔及其影像的拍摄姿态确定方法。In order to facilitate operators to scan natural resources in a specific environment, and at the same time take photos of natural disasters in a fixed posture for scanning records, this application provides a method for determining the shooting posture of a natural disaster panoramic helmet and its images.

第一方面,本申请提供的一种自然灾害扫查头盔,采用如下的技术方案:In the first aspect, a natural disaster scanning helmet provided by the application adopts the following technical scheme:

一种自然灾害扫查头盔,所述头盔包括:头盔本体,设置于所述头盔本体顶部的全景鱼眼摄像头,以及设置于所述头盔本体内的磁力计和数据处理系统;所述全景鱼眼摄像头和所述磁力计分别与所述数据处理系统电性连接,其中,A natural disaster scanning helmet, the helmet includes: a helmet body, a panoramic fisheye camera arranged on the top of the helmet body, and a magnetometer and a data processing system arranged in the helmet body; the panoramic fisheye The camera and the magnetometer are respectively electrically connected to the data processing system, wherein,

所述全景鱼眼摄像头,用于获取t1时刻的第一鱼眼图像和t2时刻的第二鱼眼图像;The panoramic fisheye camera is used to acquire the first fisheye image at t1 moment and the second fisheye image at t2 moment;

所述磁力计,用于获取t1时刻所述头盔的第一空间信息和t2时刻所述头盔的第二空间信息,其中,所述第一空间信息包括t1时刻所述头盔的方位信息,所述第二空间信息包括t2时刻所述头盔的方位信息;The magnetometer is configured to acquire first spatial information of the helmet at time t1 and second spatial information of the helmet at time t2, wherein the first spatial information includes orientation information of the helmet at time t1, and the The second spatial information includes the orientation information of the helmet at time t2;

所述数据处理系统,用于根据所述第一鱼眼图像获取第一中心图像和第一侧面图像,所述第一中心图像为所述第一鱼眼图像沿预设方位的投影,所述第一侧面图像为所述第一鱼眼图像沿预设方位的正交方向的投影;The data processing system is configured to acquire a first center image and a first side image according to the first fisheye image, the first center image is a projection of the first fisheye image along a preset orientation, the The first side image is the projection of the first fisheye image along the orthogonal direction of the preset orientation;

所述数据处理系统,还用于根据所述第二鱼眼图像获取第二中心图像和第二侧面图像,所述第二中心图像为所述第二鱼眼图像沿预设方位的投影,所述第二侧面图像为所述第二鱼眼图像沿预设方位的正交方向的投影;The data processing system is further configured to acquire a second center image and a second side image according to the second fisheye image, the second center image is a projection of the second fisheye image along a preset orientation, so The second side image is the projection of the second fisheye image along the orthogonal direction of the preset orientation;

所述数据处理系统,还用于在所述第一中心图像和所述第一侧面图像上分别提取至少两个第一特征点;以及在所述第二中心图像和所述第二侧面图像上分别提取与所述至少两个第一特征点各自匹配的至少两个第二特征点;The data processing system is further configured to extract at least two first feature points on the first center image and the first side image respectively; and on the second center image and the second side image extracting at least two second feature points respectively matching the at least two first feature points;

所述数据处理系统,还用于根据所述第一中心图像上的第一特征点和所述第二中心图像上的第二特征点的位置关系获取横滚角;根据所述第一侧面图像上的第一特征点和所述第二侧面图像上的第二特征点的位置关系获取俯仰角;以及根据所述横滚角和俯仰角确定t2时刻相对于t1时刻的拍摄姿态的变化量。The data processing system is further configured to obtain a roll angle according to the positional relationship between the first feature point on the first center image and the second feature point on the second center image; according to the first side image Obtain the pitch angle from the positional relationship between the first feature point on the image and the second feature point on the second side image; and determine the variation of the shooting attitude at time t2 relative to time t1 according to the roll angle and pitch angle.

第二方面,本申请提供的一种自然灾害扫查影像的拍摄姿态确定方法,采用如下的技术方案:In the second aspect, the application provides a method for determining the shooting posture of a natural disaster scanning image, which adopts the following technical solution:

一种自然灾害扫查影像的拍摄姿态确定方法,应用于自然灾害扫查头盔,包括:A method for determining the shooting attitude of natural disaster scanning images, which is applied to natural disaster scanning helmets, including:

获取t1时刻的第一鱼眼图像及相应的第一空间信息,所述第一空间信息包括t1时刻所在的方位信息;Acquiring the first fisheye image and corresponding first spatial information at time t1, where the first spatial information includes the orientation information at time t1;

获取t2时刻的第二鱼眼图像及相应的第二空间信息,所述第二空间信息包括t2时刻所在的方位信息;Obtaining a second fisheye image at time t2 and corresponding second spatial information, where the second spatial information includes orientation information at time t2;

获取第一鱼眼图像相对应的第一中心图像和第一侧面图像,所述第一中心图像为所述第一鱼眼图像沿预设方位上的投影,所述第一侧面图像为所述第一鱼眼图像沿预设方位的正交方向上的投影,所述预设方位和所述预设方位的正交方向皆包含在所述t1时刻所在的方位信息内;Acquire a first center image and a first side image corresponding to the first fisheye image, the first center image is a projection of the first fisheye image along a preset orientation, and the first side image is the The projection of the first fisheye image along the orthogonal direction of the preset orientation, where both the preset orientation and the orthogonal direction of the preset orientation are included in the orientation information at the time t1;

获取第二鱼眼图像相对应的第二中心图像和第二侧面图像,所述第二中心图像为所述第二鱼眼图像沿预设方位上的投影,所述第二侧面图像为所述第二鱼眼图像沿预设方位的正交方向上的投影,所述第一侧面图像和第二侧面图像位于同一方位,所述预设方位和所述预设方位的正交方向皆包含在所述t2时刻所在的方位信息内;Acquire a second center image and a second side image corresponding to the second fisheye image, the second center image is a projection of the second fisheye image along a preset orientation, and the second side image is the The projection of the second fisheye image along the orthogonal direction of the preset orientation, the first side image and the second side image are located in the same orientation, and the preset orientation and the orthogonal direction of the preset orientation are included in the In the azimuth information at the time t2;

在所述第一中心图像和所述第一侧面图像上分别提取至少两个第一特征点,根据所述第一特征点,在所述第二中心图像和所述第二侧面图像上分别提取两个第二特征点,所述第一特征点与所述第二特征点相互各自匹配;At least two first feature points are respectively extracted on the first center image and the first side image, and according to the first feature points, are respectively extracted on the second center image and the second side image Two second feature points, the first feature point and the second feature point are respectively matched with each other;

根据所述第一中心图像上的第一特征点和所述第二中心图像上的第二特征点的位置关系获取横滚角;obtaining a roll angle according to a positional relationship between a first feature point on the first center image and a second feature point on the second center image;

根据所述第一侧面图像上的第一特征点和所述第二侧面图像上的第二特征点的位置关系获取俯仰角;Acquiring a pitch angle according to the positional relationship between the first feature point on the first side image and the second feature point on the second side image;

根据所述横滚角和俯仰角确定t2时刻相对于t1时刻的拍摄姿态的变化量。According to the roll angle and the pitch angle, the change amount of the shooting attitude at the time t2 relative to the time t1 is determined.

在其中的一些实施例中,所述预设方位由所述磁力计确定,且所述预设方位在任意时间内皆保持同一方位。In some of the embodiments, the preset orientation is determined by the magnetometer, and the preset orientation remains the same orientation at any time.

在其中的一些实施例中,在所述第二中心图像和所述第二侧面图像上分别提取两个第二特征点,包括:In some of these embodiments, extracting two second feature points respectively on the second center image and the second side image includes:

以所述第一特征点为中心获取第一搜索区域,每个所述第一特征点皆对应有一个所述第一搜索区域;Obtaining a first search area centered on the first feature point, each of the first feature points corresponds to a first search area;

在所述第二中心图像和所述第二侧面图像上获取第二搜索区域,所述第二搜索区域与所述第一搜索区域相对应设置;Obtaining a second search area on the second center image and the second side image, the second search area is set corresponding to the first search area;

在所述第二搜索区域内获取与第一搜索区域内的第一特征点相对应的第二特征点。A second feature point corresponding to the first feature point in the first search area is acquired in the second search area.

在其中的一些实施例中,在所述第二搜索区域内获取与第一搜索区域内的第一特征点相对应的第二特征点,还包括以下步骤:In some of these embodiments, obtaining the second feature points corresponding to the first feature points in the first search area in the second search area also includes the following steps:

当所述第二搜索区域内无法获取与所述第一搜索区域内的第一特征点相对应的第二特征点时,增大所述第一搜索区域的搜索区域大小,相应的,增大所述第二搜索区域的搜索区域大小。When the second feature point corresponding to the first feature point in the first search area cannot be obtained in the second search area, increase the search area size of the first search area, and increase the The search area size of the second search area.

在其中的一些实施例中,根据所述第一中心图像上的第一特征点和所述第二中心图像上的第二特征点的位置关系获取横滚角,包括以下步骤:In some of these embodiments, obtaining the roll angle according to the positional relationship between the first feature point on the first center image and the second feature point on the second center image includes the following steps:

将所述第一特征点与相对应的第二特征点连接得到横滚特征线;connecting the first feature point with the corresponding second feature point to obtain a roll feature line;

计算所述横滚特征线与水平方位的夹角的绝对值,得到所述横滚角的绝对值,取所述横滚特征线沿纵轴右滚为正。Calculate the absolute value of the included angle between the roll characteristic line and the horizontal azimuth to obtain the absolute value of the roll angle, and take the roll characteristic line to roll right along the vertical axis as positive.

在其中的一些实施例中,根据所述第一侧面图像上的第一特征点和所述第二侧面图像上的第二特征点的位置关系获取俯仰角,包括以下步骤:In some of these embodiments, obtaining the pitch angle according to the positional relationship between the first feature point on the first side image and the second feature point on the second side image may include the following steps:

将所述第一特征点与相对应的第二特征点进行连接得到俯仰特征线;connecting the first feature point with the corresponding second feature point to obtain a pitch feature line;

计算所述俯仰特征线与水平方位的夹角的绝对值,得到所述俯仰角的绝对值,取沿竖直向上的方位为正。Calculate the absolute value of the included angle between the pitch feature line and the horizontal azimuth to obtain the absolute value of the pitch angle, and take the vertically upward azimuth as positive.

第三方面,本申请提供的一种计算机可读存储介质,采用如下的技术方案:In the third aspect, a computer-readable storage medium provided by the present application adopts the following technical solution:

一种计算机可读存储介质,存储有能够被处理器加载并执行上述任意一种自然灾害扫查影像的拍摄姿态确定方法。A computer-readable storage medium stores a method for determining the shooting attitude of any one of the above natural disaster scanning images that can be loaded by a processor and executed.

通过本申请实施例提供的一种自然灾害全景头盔及其影像的拍摄姿态确定方法,在进行自然灾害扫查过程中,遇到一些巡查车无法通过的地点,有受限于为人及的最大载重和电量原因无法使用无人机时,需要人工巡查,操作人员通过佩戴自然灾害全景头盔进行探索,减少了原本需要手持拍摄装备而导致的行动不便,且全景头盔上的全景鱼眼摄像头自动对自然灾害进行拍摄扫查,同时通过对自然灾害扫查过程中拍摄的影像的拍摄姿态确定方法调整拍摄姿态,对预定时间段内拍摄的全景图像进行空间变换,得到预设固定姿态的全景图像,一定程度上提高了自然灾害扫查的工作效果。Through the method for determining the shooting posture of a natural disaster panoramic helmet and its image provided by the embodiment of the present application, during the natural disaster scanning process, some patrol vehicles cannot pass through, and there is a maximum load that is limited by people. When unmanned aerial vehicles cannot be used due to power and battery problems, manual inspection is required. The operator wears a natural disaster panoramic helmet to explore, which reduces the inconvenience caused by the original need for handheld shooting equipment, and the panoramic fisheye camera on the panoramic helmet automatically monitors the natural disasters. Disasters are photographed and scanned, and at the same time, the shooting posture is adjusted by the method of determining the shooting posture of the images taken during the natural disaster scanning process, and the panoramic images taken within a predetermined time period are spatially transformed to obtain a panoramic image with a preset fixed posture. To a certain extent, the work effect of natural disaster scanning has been improved.

附图说明Description of drawings

图1是本申请实施例中自然灾害扫查影像的拍摄姿态确定方法的整体步骤示意图;Fig. 1 is a schematic diagram of the overall steps of the method for determining the shooting posture of the natural disaster scanning image in the embodiment of the present application;

图2是在第二中心图像和第二侧面图像上分别提取两个第二特征点的步骤示意图;Fig. 2 is a schematic diagram of the steps of extracting two second feature points respectively on the second center image and the second side image;

图3是获取横滚角的步骤示意图;Fig. 3 is a schematic diagram of the steps of obtaining the roll angle;

图4时获取俯仰角的步骤示意图。Figure 4 is a schematic diagram of the steps for obtaining the pitch angle.

具体实施方式Detailed ways

为更清楚地理解本申请的目的、技术方案和优点,下面结合附图和实施例,对本申请进行了描述和说明。然而,本领域的普通技术人员应该明白,可以在没有这些细节的情况下实施本申请。在一些情形下,为了避免不必要的描述使本申请的各方面变得晦涩难懂,对已经在较高的层次上描述了众所周知的方法、过程、系统、组件和/或电路将不作过多赘述。对于本领域的普通技术人员来说,显然可以对本申请所公开的实施例作出各种改变,并且在不偏离本申请的原则和范围的情况下,本申请中所定义的普遍原则可以适用于其他实施例和应用场景。因此,本申请不限于所示的实施例,而是符合与本申请所要求保护的范围一致的最广泛范围。In order to understand the purpose, technical solution and advantages of the present application more clearly, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. However, it will be understood by one of ordinary skill in the art that the present application may be practiced without these details. In some instances, well-known methods, procedures, systems, components and/or circuits have been described at a high level without unnecessary description, in order to avoid obscuring aspects of the present application. repeat. It is obvious to those skilled in the art that various changes can be made to the embodiments disclosed in the application, and the general principles defined in the application can be applied to other applications without departing from the principle and scope of the application. Examples and application scenarios. Thus, the application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with what is claimed herein.

除另作定义外,本申请所涉及的技术术语或者科学术语应具有本申请所属技术领域具备一般技能的人所理解的一般含义。本申请所使用的术语仅出于描述特定实施例的目的,而不旨在于对本申请的限制。如本申请所使用的“一”、“一个”、“一种”、“该”、“这些”等类似的词并不表示数量上的限制,它们可以是单数或者复数。在本申请中所涉及的术语“包括”、“包含”、“具有”及其任何变体,其目的是涵盖不排他的包含;例如,包含一系列步骤或模块(单元)的过程、方法和系统、产品或设备并未限定于列出的步骤或模块(单元),而可包括未列出的步骤或模块(单元),或者可包括这些过程、方法、产品或设备固有的其他步骤或模块(单元)。Unless otherwise defined, the technical terms or scientific terms involved in the application shall have the general meanings understood by those skilled in the technical field to which the application belongs. The terminology used in the present application is for the purpose of describing specific embodiments only, and is not intended to limit the present application. As used in this application, "a", "an", "an", "the", "these" and similar words do not denote a limitation on quantity, and they may be singular or plural. The terms "comprising", "comprising", "having" and any variants thereof referred to in this application are intended to cover non-exclusive inclusion; for example, processes, methods and The system, product, or apparatus is not limited to the steps or modules (units) listed, but may include steps or modules (units) that are not listed, or may include other steps or modules that are inherent to the process, method, product, or apparatus (unit).

在本申请中所涉及的“多个”是指两个或两个以上。通常情况下,字符“/”表示前后关联的对象是一种“或”的关系。在本申请中所涉及的术语“第一”、“第二”、“第三”等,只是对相似对象进行区分,并不代表针对对象的特定排序。"Plurality" referred to in this application means two or more. Usually, the character "/" indicates that the objects associated before and after are in an "or" relationship. The terms "first", "second", "third" and the like involved in this application are only for distinguishing similar objects, and do not represent a specific ordering of objects.

本申请所涉及的术语“系统”、“引擎”、“单元”、“模块”和/或“块”是一种用于按级别区分不同级别的不同组件、元件、零件、部件、装配件、或功能的一种方法。这些术语可以被其他能够达到相同目的的表达替换。通常,本申请涉及的“模块”、“单元”或“块”是指硬件或者固件中体现的逻辑或软件指令的集合。本申请描述的“模块”、“单元”或“块”可以作为软件和/或硬件实现,并且在作为软件实现的情形下,他们可以被存储在任何类型的非易失性计算机可读存储介质或存储设备中。The terms "system", "engine", "unit", "module" and/or "block" referred to in this application are used to classify different components, elements, parts, components, assemblies, or a method of function. These terms may be replaced by other expressions that serve the same purpose. Generally, a "module", "unit" or "block" referred to in this application refers to a collection of logic or software instructions embodied in hardware or firmware. The "module", "unit" or "block" described in this application can be implemented as software and/or hardware, and in the case of being implemented as software, they can be stored in any type of non-volatile computer-readable storage medium or storage device.

在一些实施例中,软件模块/单元/块可以被编译并被链接到可执行程序中。将意识到,软件模块可以是可从其他模块/单元/块或从其自身调用的,和/或可以响应于检测到的事件或中断而被调用。配置为在计算设备上执行的软件模块/单元/块可以设置在计算机可读存储介质上,例如光盘、数字视频盘、闪存驱动器、磁盘、或任何其他有形媒体,或作为数字下载(并且可以最初以压缩或可安装的格式存储,该格式需要在执行之前进行安装、解压或解密)。这样的软件代码可以部分地或全部地存储在正在执行的计算设备的存储设备上,并应用在计算设备的操作之中。软件指令可以被嵌入到固件,例如EPROM中。还将意识到,硬件模块/单元/块可以被包括在连接的逻辑组件中,例如门和触发器,和/或可以被包括在可编程单元中,例如可编程门阵列或处理器。本文描述的模块/单元/块或计算设备功能可以被实现为软件模块/单元/块,还可以以硬件或固件来表示。通常,本文描述的模块/单元/块,它们可以与其他模块/单元/块组合,或者尽管它们是物理组织或存储的,但也可以被划分为子模块/子单元/子块。该描述可以适用于系统、引擎或其一部分。In some embodiments, a software module/unit/block may be compiled and linked into an executable program. It will be appreciated that a software module may be callable from other modules/units/blocks or from itself, and/or may be called in response to a detected event or interrupt. A software module/unit/block configured to execute on a computing device may be provided on a computer-readable storage medium such as an optical disc, digital video disc, flash drive, magnetic disk, or any other tangible medium, or as a digital download (and may initially stored in a compressed or installable format that requires installation, decompression, or decryption before execution). Such software codes may be stored in part or in whole on the memory device of the executing computing device and employed in the operation of the computing device. Software instructions may be embedded in firmware, such as EPROM. It will also be appreciated that hardware modules/units/blocks may be included in connected logic components, such as gates and flip-flops, and/or may be included in programmable elements, such as programmable gate arrays or processors. The modules/units/blocks or computing device functions described herein may be implemented as software modules/units/blocks, and may also be represented in hardware or firmware. In general, the modules/units/blocks described herein, they may be combined with other modules/units/blocks, or be divided into sub-modules/subunits/sub-blocks despite their physical organization or storage. The description may apply to a system, an engine, or a portion thereof.

将理解的是,当单元、引擎、模块或块被称为在另一单元、引擎、模块或块“上”、“连接”或“耦合至”另一单元、引擎、模块或块时,其可以直接在其它单元、引擎、模块或块上,与其连接或耦合或与之通信,或者可以存在中间单元、引擎、模块或块,除非上下文另有明确说明。在本申请中,术语“和/或”可包括任何一个或以上相关所列条目或其组合。It will be understood that when a unit, engine, module or block is referred to as being "on", "connected" or "coupled to" another unit, engine, module or block, its Other units, engines, modules or blocks may be directly on, connected or coupled to, or in communication with, other units, engines, modules or blocks, or intervening units, engines, modules or blocks may be present, unless the context clearly dictates otherwise. In this application, the term "and/or" may include any one or the above related listed items or a combination thereof.

以下结合附图1-4对本申请作进一步详细说明。The present application will be described in further detail below in conjunction with accompanying drawings 1-4.

本申请实施例公开一种自然灾害扫查头盔,包括头盔本体、全景鱼眼摄像头、磁力计和数据处理系统。全景鱼眼摄像头、磁力计分别与数据处理系统电连接。The embodiment of the present application discloses a natural disaster scanning helmet, which includes a helmet body, a panoramic fisheye camera, a magnetometer and a data processing system. The panoramic fisheye camera and the magnetometer are respectively electrically connected to the data processing system.

头盔本体可以采用具有一定刚性强度的材质构成,因在自然灾害扫查过程中,如遇到大风或冰雹等恶劣天气,较为坚硬的头盔本体能对操作人员的头部进行一定程度上的保护作用。The helmet body can be made of a material with a certain rigidity, because during the natural disaster scanning process, if encountering severe weather such as strong wind or hail, the relatively hard helmet body can protect the operator's head to a certain extent .

同时,头盔本体的重量也可以做的足够轻便,使得头盔在坚硬的同时有一定的轻便性,如铝合金或碳纤维材质。头盔本体的内部可以固定连接有防护垫,当操作人员长时间佩戴头盔时,防护垫可以在一定程度上减轻头盔对头部的负担。At the same time, the weight of the helmet body can also be made light enough, so that the helmet has a certain degree of lightness while being hard, such as aluminum alloy or carbon fiber material. The inside of the helmet body can be fixedly connected with a protective pad. When the operator wears the helmet for a long time, the protective pad can reduce the burden of the helmet on the head to a certain extent.

全景鱼眼摄像头可以采用市面上常见的鱼眼摄像头即可。The panoramic fisheye camera can be a common fisheye camera on the market.

鱼眼全景摄像头用于获取t1时刻的第一鱼眼图像和t2时刻的第二鱼眼图像。The fisheye panoramic camera is used to acquire a first fisheye image at time t1 and a second fisheye image at time t2.

磁力计也叫地磁、磁感器,可用于测试磁场的强度和方位,定位设备的方位,磁力计的原理与指南针类似,可以测量出当前设备与东南西北四个方位上的夹角。Magnetometer is also called geomagnetism and magnetic sensor. It can be used to test the strength and orientation of the magnetic field and locate the orientation of the device. The principle of the magnetometer is similar to that of a compass. It can measure the angle between the current equipment and the four directions of east, west, north and south.

磁力计用于获取t1时刻头盔的第一空间信息和t2时刻头盔的第二空间信息。其中第一空间信息包括t1时刻头盔的方位信息,第二空间信息包括t2时刻头盔的方位信息。The magnetometer is used to acquire the first spatial information of the helmet at time t1 and the second spatial information of the helmet at time t2. The first spatial information includes the orientation information of the helmet at time t1, and the second spatial information includes the orientation information of the helmet at time t2.

数据处理系统包括存储器和处理器,存储器中存储有计算机程序,处理器被设置为运行计算机程序以执行自然灾害扫查过程中的使用方法。The data processing system includes a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the method used in the natural disaster scanning process.

全景鱼眼摄像头、磁力计分别与数据处理系统电连接。The panoramic fisheye camera and the magnetometer are respectively electrically connected to the data processing system.

数据处理系统用于根据第一鱼眼图像获取第一中心图像和第一侧面图像,第一中心图像为第一鱼眼图像沿预设方位的投影,第一侧面图像为第一鱼眼图像沿预设方位的正交方向上的投影。The data processing system is used to acquire a first center image and a first side image according to the first fisheye image, the first center image is a projection of the first fisheye image along a preset orientation, and the first side image is a projection of the first fisheye image along a Projection in the orthogonal direction of the preset orientation.

数据处理系统还用于根据第二鱼眼图像获取第二中心图像和第二侧面图像,第二中心图像为第二鱼眼图像沿预设方位的投影,第二侧面图像为第二鱼眼图像沿预设方位的正交方向的投影。The data processing system is also used to acquire a second center image and a second side image according to the second fisheye image, the second center image is the projection of the second fisheye image along a preset orientation, and the second side image is the second fisheye image Orthogonal projection along a preset orientation.

数据处理系统还用于在第一中心图像和第一侧面图像上分别提取至少两个第一特征点,以及在第二中心图像和第二侧面图像上分别提取于至少两个第一特征点各自匹配的至少两个第二特征点。The data processing system is also used to extract at least two first feature points on the first center image and the first side image, and extract at least two first feature points on the second center image and the second side image respectively. Match at least two second feature points.

数据处理系统还用于根据第一中心图像上的第一特征点和第二中心图像上的第二特征点的位置关系获取横滚角;并根据第一侧面图像和第二侧面图像上的第二特征点的位置关系获取俯仰角;以及根据横滚角和俯仰角确定t2时刻相对于t1时刻的拍摄姿态的变化量。The data processing system is also used for obtaining the roll angle according to the positional relationship between the first feature point on the first center image and the second feature point on the second center image; and according to the first side image and the second side image on the second side image. The pitch angle is obtained from the positional relationship of the two feature points; and the change amount of the shooting attitude at the time t2 relative to the time t1 is determined according to the roll angle and the pitch angle.

进一步的,还包括设置于头盔本体内部的卫星定位模块,卫星定位模块可以使用GPS定位装置或北斗定位装置,根据实际需要选择即可。Further, it also includes a satellite positioning module arranged inside the helmet body. The satellite positioning module can use a GPS positioning device or a Beidou positioning device, which can be selected according to actual needs.

卫星定位模块用于获取t1和t2时刻头盔的经纬度位置信息,方便后台对头盔进行定位追踪及位置实时获取。The satellite positioning module is used to obtain the longitude and latitude position information of the helmet at time t1 and t2, which is convenient for the background to track the helmet and obtain its position in real time.

进一步的,全景鱼眼摄像头上还搭载了小电池,并外接有可替换的口袋式电池仓。小电池主要起到UPS作用,平时使用口袋式电池仓为头盔供电,当口袋式电池仓电量用尽时,小电池可以保证短时间续航,以便于替换口袋式电池仓而系统不必中断采集。Furthermore, the panoramic fisheye camera is also equipped with a small battery, and is connected with a replaceable pocket battery compartment. The small battery mainly plays the role of UPS. Usually, the pocket battery compartment is used to power the helmet. When the pocket battery compartment is exhausted, the small battery can guarantee short-term battery life, so that the pocket battery compartment can be easily replaced without the system having to interrupt the collection.

全景鱼眼摄像头采集到的图像会按照定位信号嵌入到ArcGIS地图中,并且需要将全景鱼眼摄像头的图像矫正到固定的拍摄姿态。不同于现有技术中采用“加速度传感器+磁力计”获取全景鱼眼摄像头的载体姿态以矫正全景鱼眼摄像头的拍摄姿态,本方案采用正交投影图像的特征点局部匹配的方法获取全景鱼眼摄像头的载体姿态信息。The images collected by the panoramic fisheye camera will be embedded into the ArcGIS map according to the positioning signal, and the image of the panoramic fisheye camera needs to be corrected to a fixed shooting posture. Different from the existing technology that uses "acceleration sensor + magnetometer" to obtain the carrier posture of the panoramic fisheye camera to correct the shooting posture of the panoramic fisheye camera, this solution uses the method of local matching of the feature points of the orthogonal projection image to obtain the panoramic fisheye The carrier pose information of the camera.

如图1所示,本申请实施例还公开了一种自然灾害扫查影像的拍摄姿态确定方法,其应用于上述的自然灾害扫查头盔,包括:As shown in Figure 1, the embodiment of the present application also discloses a method for determining the shooting posture of natural disaster scanning images, which is applied to the above-mentioned natural disaster scanning helmets, including:

S100,获取t1时刻的第一鱼眼图像及相对应的第一空间信息。S100. Acquire a first fisheye image and corresponding first spatial information at time t1.

S200,获取t2时刻的第二鱼眼图像及相对应的第二空间信息。S200. Acquire a second fisheye image and corresponding second spatial information at time t2.

S300,获取第一鱼眼图像相对应的第一中心图像和第一侧面图像。S300. Acquire a first center image and a first side image corresponding to the first fisheye image.

S400,获取第二鱼眼图像相对应的第二中心图像和第二侧面图像。S400. Acquire a second center image and a second side image corresponding to the second fisheye image.

S500,在第一中心图像和第一侧面图像上分别提取至少两个第一特征点,根据第一特征点,在第二中心图像和第二侧面图像上分别提取两个第二特征点,且第一特征点和第二特征点相互各自匹配。S500, respectively extracting at least two first feature points on the first center image and the first side image, respectively extracting two second feature points on the second center image and the second side image according to the first feature points, and The first feature point and the second feature point are individually matched to each other.

S600,根据第一中心图像上的第一特征点和第二中心图像上的第二特征点的位置关系获取横滚角。S600. Obtain a roll angle according to the positional relationship between the first feature point on the first center image and the second feature point on the second center image.

S700,根据第一侧面图像上的第一特征点和第二侧面图像上的第二特征点的位置关系获取俯仰角。S700. Obtain a pitch angle according to the positional relationship between the first feature point on the first side image and the second feature point on the second side image.

S800,根据横滚角和俯仰角确定t2时刻相对于t1时刻的拍摄姿态的变化量。S800. Determine, according to the roll angle and the pitch angle, the change amount of the shooting attitude at the time t2 relative to the time t1.

第一鱼眼图像和第二鱼眼图像皆由全景鱼眼摄像头拍摄而成,在本申请实施例中,默认t2的时间位于t1时间之后,且t1与t2的时间间隔较短。Both the first fisheye image and the second fisheye image are captured by a panoramic fisheye camera. In the embodiment of the present application, the default time t2 is after the time t1, and the time interval between t1 and t2 is relatively short.

第一空间信息包括t1时刻的方位信息和t1时刻的经纬度信息。其中方位信息由磁力计获取,经纬度信息由卫星定位模块获取。相同的,第二空间信息包括t2时刻的方位信息和t2时刻的经纬度信息。The first spatial information includes orientation information at time t1 and latitude and longitude information at time t1. The orientation information is obtained by the magnetometer, and the latitude and longitude information is obtained by the satellite positioning module. Similarly, the second spatial information includes orientation information at time t2 and latitude and longitude information at time t2.

第一中心图像为第一鱼眼图像沿预设方位上的投影,第一侧面图像为第一鱼眼图像沿预设方位的正交方向上的投影。预设方位和预设方位的正交方向皆包含在t1时刻的方位信息内。The first central image is a projection of the first fisheye image along a preset orientation, and the first side image is a projection of the first fisheye image along an orthogonal direction of the preset orientation. Both the preset orientation and the orthogonal direction of the preset orientation are included in the orientation information at time t1.

预设方位通过磁力计获取后人为进行选定,例如可以定义磁北方位为预设方位,第一中心图像则为第一鱼眼图像沿磁北方位上的投影,而第一侧面图像则为第一鱼眼图像沿磁北方位的正交方向,也就是磁西或磁东方位上的投影,且预设方位在任意时间内皆保持同一方位。The preset orientation is manually selected after being obtained by the magnetometer. For example, the magnetic north orientation can be defined as the preset orientation, and the first central image is the projection of the first fisheye image along the magnetic north orientation, while the first side image is is the orthogonal direction of the first fisheye image along the magnetic north azimuth, that is, the projection on the magnetic west or magnetic east azimuth, and the preset azimuth keeps the same azimuth at any time.

相应的,第二中心图像为第二鱼眼图像沿预设方位上的投影,第二侧面图像为第二鱼眼图像沿预设方位的正交方向上的投影。预设方位和预设方位的正交方向皆包含在t2时刻的方位信息内。同时预设方位的选取与上述规则相同,在此不做赘述。Correspondingly, the second center image is the projection of the second fisheye image along the preset orientation, and the second side image is the projection of the second fisheye image along the orthogonal direction of the preset orientation. Both the preset orientation and the orthogonal direction of the preset orientation are included in the orientation information at time t2. At the same time, the selection of the preset orientation is the same as the above-mentioned rules, which will not be repeated here.

其中需要注意的是,第一侧面图像和第二侧面图像的方位是一致的,也就是说,在确定预设方位为磁北方位的情况下,第一侧面图像和第二侧面图像的方位皆为与磁北方位正交的磁西方位或磁东方位。It should be noted that the orientations of the first side image and the second side image are consistent, that is to say, when the preset orientation is determined to be the magnetic north orientation, the orientations of the first side image and the second side image are both Magnetic west or magnetic east, which is perpendicular to magnetic north.

在对鱼眼图像进行投影之前,为了提高投影的有效率,可以先对鱼眼图像进行校正,校正也就是对鱼眼图像去失真。经过校正后,一个鱼眼图像可以转化为若干图像,这种图像从不同视角覆盖了鱼眼图片的视野,一般认为鱼眼图像只发生几何形变,不失真。Before projecting the fisheye image, in order to improve the efficiency of projection, the fisheye image can be corrected first, and the correction is to dedistort the fisheye image. After correction, a fisheye image can be converted into several images, which cover the field of view of the fisheye image from different perspectives. It is generally believed that the fisheye image only undergoes geometric deformation without distortion.

对鱼眼图像的校正本质是图像处理的空间变换(几何变换、几何运算),仅将图像上的点进行复制而不修改。空间变换看成是图像点在图像内移动,即鱼眼图像上的点A(u,v)校正到图像上的点A(x,y)。The essence of the correction of the fisheye image is the spatial transformation of image processing (geometric transformation, geometric operation), only the points on the image are copied without modification. Space transformation is regarded as the image point moving within the image, that is, the point A (u, v) on the fisheye image is corrected to the point A (x, y) on the image.

其中映射方法有向后映射和向前映射。The mapping methods include backward mapping and forward mapping.

向后映射:使用相似填充法,由校正图像的坐标经过映射变换求出相应的鱼眼图像坐标后,将鱼眼图像坐标处的图像分量复制到校正图像坐标处(u,v)T=Backward mapping: using the similar filling method, after the coordinates of the corrected image are mapped and transformed to obtain the corresponding fisheye image coordinates, the image components at the fisheye image coordinates are copied to the corrected image coordinates (u,v)T=

Ff

(x,y),由像素坐标点(校正图像)求亚像素坐标点(鱼眼图像)的图像分量。(x, y), calculate the image component of the sub-pixel coordinate point (fisheye image) from the pixel coordinate point (corrected image).

向前映射:由鱼眼图像坐标,经过映射变换得到校正图像坐标后,将鱼眼图像坐标的图像分量复制到校正图像坐标处,(x,y)T=Forward mapping: After obtaining the corrected image coordinates from the fisheye image coordinates through mapping transformation, copy the image components of the fisheye image coordinates to the corrected image coordinates, (x,y)T=

GG

(u,v),由像素亚像素坐标点求像素坐标点。(u, v), calculate the pixel coordinate point from the pixel sub-pixel coordinate point.

在图像处理中,映射的输入都是像素坐标(整数坐标),输出为亚像素坐标(非整数坐标)。In image processing, the input to the mapping is pixel coordinates (integer coordinates), and the output is sub-pixel coordinates (non-integer coordinates).

在第一中心图像和第一侧面图像上分别提取至少两个第一特征点,需要注意的是,当特征点的数量大于两个时,为了提高准确度,若干特征点相互之间非共线。Extract at least two first feature points on the first central image and the first side image respectively. It should be noted that when the number of feature points is greater than two, in order to improve accuracy, several feature points are not collinear with each other. .

在第二中心图像和第二侧面图像上提取与第一特征点相互匹配的第二特征点。如将第一中心图像上的高塔的塔尖和汽车的车窗一角作为第一特征点,将第一侧面图像上的树木顶端和路灯顶端作为第一特征点,并在t2时刻的第二中心图像上提取经过一段时间拍摄角度变化后的高塔的塔尖和汽车的车窗一角,定义为第二特征点,在第二侧面图像上提取树木顶端和路灯顶端作为第二特征点。A second feature point that matches the first feature point is extracted from the second center image and the second side image. For example, the spire of the tower and the corner of the window of the car on the first central image are used as the first feature point, and the tree tops and street lamp tops on the first side image are used as the first feature point, and at the second moment t2 The spire of the tower and the corner of the window of the car after a period of shooting angle change are extracted from the central image, which are defined as the second feature points, and the tops of trees and street lamps are extracted from the second side image as the second feature points.

其中,对于特征点的特征提取方法可以选用相关技术中常见的SIFT、HOG、SURF、ORB、LBP、HAAP、神经网络学习等方法。Among them, for the feature extraction method of feature points, common methods such as SIFT, HOG, SURF, ORB, LBP, HAAP, and neural network learning in related technologies can be selected.

如图2所示,进一步的,在第二中心图像和第二侧面图像上分别提取两个第二特征点还包括:As shown in Figure 2, further, extracting two second feature points on the second center image and the second side image respectively also includes:

S510,以第一特征点为中心获取第一搜索区域,每个第一特征点皆对应有一个第一搜索区域。S510. Acquire a first search area centered on the first feature point, and each first feature point corresponds to a first search area.

S520,在第二中心图像和第二侧面图像上获取第二搜索区域。S520. Acquire a second search area on the second center image and the second side image.

S530,在第二搜索区域内获取与第一搜索区域内的第一特征点相对应的第二特征点。S530. Acquire second feature points corresponding to the first feature points in the first search area in the second search area.

进一步的,第二搜索区域与第一搜索区域相对设置,换句话说,相对于相同大小的第一中心图像和第二中心图像,以及相同大小的第一侧面图像和第二侧面图像来说,第一搜索区域和第二搜索区域在图像上的位置是相同且可以重合的。Further, the second search area is set opposite to the first search area, in other words, relative to the first center image and the second center image of the same size, and the first side image and the second side image of the same size, The positions of the first search area and the second search area on the image are the same and may overlap.

设置第一搜索区域和第二搜索区域能进一步减少对于第一特征点和第二特征点进行提取时的工作量。假设没有设置第一搜索区域,第一中心图像是1000*1000像素的图像,那么在以第一特征点为中心获取第一搜索区域后,可能第一搜索区域的大小仅为50*50像素的区域,也可能是100*100像素的区域,但这也很大程度上减少了特征点提取时的计算量。Setting the first search area and the second search area can further reduce the workload when extracting the first feature point and the second feature point. Assuming that the first search area is not set and the first central image is an image of 1000*1000 pixels, then after the first search area is obtained centering on the first feature point, the size of the first search area may only be 50*50 pixels The area may also be an area of 100*100 pixels, but this also greatly reduces the amount of calculation when extracting feature points.

当获取第一搜索区域后,因t1和t2之间的时间间隔较短,故第二鱼眼图像相对于第一鱼眼图像的变化量较小,且因第二搜索区域与第一搜索区域相对设置,故在第二中心图像和第二侧面图像上的第二搜索区域内大概率存在特征点与第一特征点是相同的,可能是第一特征点经过平移、旋转、横滚所得的,这些特征点便定义为第二特征点。也可以说,第二特征点就是第一特征点经过一定程度的平移、旋转、横滚所得的。After the first search area is obtained, because the time interval between t1 and t2 is short, the change of the second fisheye image relative to the first fisheye image is small, and because the second search area is different from the first search area Relatively set, so there is a high probability that there are feature points in the second search area on the second center image and the second side image that are the same as the first feature point, which may be obtained by translation, rotation, and roll of the first feature point , these feature points are defined as the second feature points. It can also be said that the second feature point is obtained by a certain degree of translation, rotation, and roll of the first feature point.

进一步的,在第二搜索区域内获取与第一搜索区域内的第一特征点相对应的第二特征点还包括:当第二搜索区域内无法获取与第一搜索时区域内的第一特征点相对应的第二特征点时,增大第一搜索区域的搜索区域大小,相对的,增大第二搜索区域的搜索区域大小。Further, obtaining the second feature point corresponding to the first feature point in the first search area in the second search area also includes: when the first feature point in the second search area cannot be obtained in the second search area. When the point corresponds to the second feature point, increase the size of the search area of the first search area, and correspondingly increase the size of the search area of the second search area.

其中,搜索区域的大小指由多边形围成的封闭空间的大小,封闭空间越大,封闭空间内的像素点数量越多,对于特征点的提取范围就越大。封闭空间的形状可以设置为任意形状,普遍设置为矩形封闭空间。Wherein, the size of the search area refers to the size of a closed space surrounded by polygons. The larger the closed space is, the more the number of pixels in the closed space is, and the larger the extraction range of feature points is. The shape of the closed space can be set to any shape, and it is generally set as a rectangular closed space.

因第二搜索区域的位置和大小与第一搜索区域的位置和大小是相对应的,故当第一搜索区域增大时,相应的,第二搜索区域也会增大。Because the position and size of the second search area correspond to the position and size of the first search area, when the first search area increases, the second search area will also increase accordingly.

当在t1到t2时间段内,移动的范围较大,导致与第一搜索区域相对应的第二搜索区域内提取不到与第一特征点相对应的第二特征点时,便要适当的扩大搜索区域的大小,在增大一定的计算量的前提下,确保在增大的第二搜索区域内可以提取到与第一特征点相对应的第二特征点。When the range of movement is large during the time period from t1 to t2, resulting in that the second feature point corresponding to the first feature point cannot be extracted in the second search area corresponding to the first search area, it is necessary to properly Enlarging the size of the search area ensures that the second feature point corresponding to the first feature point can be extracted within the enlarged second search area on the premise of increasing a certain amount of calculation.

如图3所示,根据第一中心图像上的第一特征点和第二中心图像上的第二特征点的位置关系获取横滚角,包括以下步骤:As shown in Figure 3, the roll angle is obtained according to the positional relationship between the first feature point on the first center image and the second feature point on the second center image, including the following steps:

S610,将第一特征点与其相匹配对应的第二特征点连接以得到横滚特征线。S610. Connect the first feature point with its corresponding second feature point to obtain a roll feature line.

S620,计算横滚特征线与水平方位的夹角的绝对值,得到横滚角的绝对值,取横滚特征线沿纵轴右滚为正。S620. Calculate the absolute value of the included angle between the roll characteristic line and the horizontal orientation to obtain the absolute value of the roll angle, and take the roll characteristic line to roll right along the vertical axis as positive.

连接互相匹配对应的第一特征点和第二特征点,得到横滚特征线,横滚特征线就是特征点在t1时刻和t2时刻的运动轨迹。横滚角为运载体横轴与水平线之间的夹角。而特征点在t1时刻和t2时刻的运动轨迹所代表的横向坐标点移动和竖向坐标点移动所得到的横滚特征线便代表运载体在中心图像上横轴的变化最终形态,故横滚特征线与水平线之间的夹角的绝对值就是横滚角的绝对值。The first feature point and the second feature point corresponding to each other are connected to obtain a roll feature line, and the roll feature line is the movement trajectory of the feature point at time t1 and time t2. The roll angle is the angle between the transverse axis of the vehicle and the horizontal line. The roll characteristic line obtained by the movement of the horizontal coordinate point and the vertical coordinate point represented by the movement trajectory of the feature point at the time t1 and time t2 represents the final shape of the carrier on the horizontal axis of the central image, so the roll The absolute value of the angle between the characteristic line and the horizontal line is the absolute value of the roll angle.

如图4所示,根据第一侧面图像上的第一特征点和第二侧面图像上的第二特征点的位置关系获取俯仰角,包括以下步骤:As shown in Figure 4, according to the first feature point on the first side image and the positional relationship of the second feature point on the second side image, the pitch angle is obtained, including the following steps:

S710,将第一特征点与相对应的第二特征点进行连接得到俯仰特征线。S710. Connect the first feature point with the corresponding second feature point to obtain a pitch feature line.

S720,计算俯仰特征线与水平方位的夹角的绝对值,得到俯仰角的绝对值,取沿竖直向上的方位为正。S720. Calculate the absolute value of the included angle between the pitch feature line and the horizontal azimuth to obtain the absolute value of the pitch angle, and take the vertically upward azimuth as positive.

连接故乡匹配对应的第一特征点和第二特征点,得到俯仰特征线,俯仰特征线就是特征点在t1时刻和t2时刻的运动轨迹。俯仰角为运载体纵轴与水平线之间的夹角。而特征点在t1时刻和t2时刻的运动轨迹所代表的横向坐标点移动和竖向坐标点移动所得到的横滚特征线便代表运载体在侧面图像上纵轴的变化最终形态,故俯仰特征线与水平方位的夹角的绝对值就是俯仰角的绝对值。Connect the first feature point and the second feature point corresponding to the hometown matching to obtain the pitch feature line, and the pitch feature line is the trajectory of the feature point at time t1 and time t2. The pitch angle is the angle between the longitudinal axis of the vehicle and the horizontal. The roll feature line obtained by the movement of the horizontal coordinate point and the vertical coordinate point represented by the movement trajectory of the feature point at time t1 and time t2 represents the final shape of the vertical axis change of the vehicle on the side image, so the pitch feature The absolute value of the angle between the line and the horizontal azimuth is the absolute value of the pitch angle.

根据横滚角和俯仰角的大小便可以得知t2时刻相对于t1时刻的运载体姿态变化量。获得t1时刻至t2时刻全景鱼眼相机的姿态变化之后,即可对t2时刻拍摄的第二鱼眼图像进行空间变换,得到预设固定姿态的全景图像。According to the size of the roll angle and the pitch angle, the attitude change of the vehicle at the time t2 relative to the time t1 can be known. After obtaining the attitude change of the panoramic fisheye camera from time t1 to time t2, the second fisheye image captured at time t2 can be spatially transformed to obtain a panoramic image with a preset fixed attitude.

进一步的,根据经纬度信息和方位信息,将矫正后的全景图像嵌入到地图ArcGIS地图中,构成自然灾害扫查数据。Further, according to the latitude and longitude information and azimuth information, the corrected panoramic image is embedded into the map ArcGIS map to form natural disaster scanning data.

本申请实施例还公开了一种计算机可读存储介质,其存储有能够被处理器加载并执行上述自然灾害扫查影像的拍摄姿态确定方法。The embodiment of the present application also discloses a computer-readable storage medium, which stores the method for determining the shooting posture of the natural disaster scanning image that can be loaded by a processor and executed.

以上均为本申请的较佳实施例,并非依此限制本申请的保护范围,故:凡依本申请的结构、形状、原理所做的等效变化,均应涵盖于本申请的保护范围之内。All of the above are preferred embodiments of the application, and are not intended to limit the protection scope of the application. Therefore, all equivalent changes made according to the structure, shape, and principle of the application should be covered by the protection scope of the application. Inside.

Claims (8)

1. A natural disaster scanning helmet, characterized in that: the helmet comprises: the helmet comprises a helmet body, a panoramic fisheye camera arranged at the top of the helmet body, and a magnetometer and a data processing system arranged in the helmet body; the panoramic fisheye camera and the magnetometer are respectively and electrically connected with the data processing system, wherein,
the panoramic fisheye camera is used for acquiring a first fisheye image at the time t1 and a second fisheye image at the time t 2;
the magnetometer is configured to obtain first spatial information of the helmet at a time t1 and second spatial information of the helmet at a time t2, where the first spatial information includes azimuth information of the helmet at the time t1, and the second spatial information includes azimuth information of the helmet at the time t 2;
the data processing system is used for acquiring a first center image and a first side image according to the first fisheye image, wherein the first center image is the projection of the first fisheye image along a preset azimuth, and the first side image is the projection of the first fisheye image along an orthogonal direction of the preset azimuth;
the data processing system is further configured to obtain a second center image and a second side image according to the second fisheye image, where the second center image is a projection of the second fisheye image along a preset azimuth, and the second side image is a projection of the second fisheye image along an orthogonal direction of the preset azimuth;
the data processing system is further used for respectively extracting at least two first characteristic points on the first center image and the first side image; extracting at least two second feature points respectively matched with the at least two first feature points on the second center image and the second side image;
the data processing system is further used for acquiring a roll angle according to the position relation between the first characteristic point on the first center image and the second characteristic point on the second center image; acquiring a pitch angle according to the position relation between the first characteristic point on the first side image and the second characteristic point on the second side image; and determining the variation of the shooting posture at the moment t2 relative to the moment t1 according to the roll angle and the pitch angle.
2. A method for determining shooting postures of natural disaster scanning images, which is applied to the natural disaster scanning helmet as claimed in claim 1, and is characterized by comprising the following steps:
acquiring a first fisheye image at a time t1 and corresponding first space information, wherein the first space information comprises azimuth information of the time t 1;
acquiring a second fisheye image at the time t2 and corresponding second spatial information, wherein the second spatial information comprises azimuth information of the time t 2;
acquiring a first center image and a first side image corresponding to a first fisheye image, wherein the first center image is a projection of the first fisheye image along a preset direction, the first side image is a projection of the first fisheye image along an orthogonal direction of the preset direction, and the preset direction and the orthogonal direction of the preset direction are both contained in direction information of the moment t 1;
acquiring a second center image and a second side image corresponding to a second fish-eye image, wherein the second center image is a projection of the second fish-eye image along a preset direction, the second side image is a projection of the second fish-eye image along an orthogonal direction of the preset direction, the first side image and the second side image are positioned in the same direction, and the orthogonal directions of the preset direction and the preset direction are both contained in direction information of the t2 moment;
respectively extracting at least two first characteristic points on the first center image and the first side image, respectively extracting two second characteristic points on the second center image and the second side image according to the first characteristic points, wherein the first characteristic points and the second characteristic points are respectively matched with each other;
acquiring a roll angle according to the position relation between the first characteristic point on the first center image and the second characteristic point on the second center image;
acquiring a pitch angle according to the position relation between the first characteristic point on the first side image and the second characteristic point on the second side image;
and determining the variation of the shooting posture at the moment t2 relative to the moment t1 according to the roll angle and the pitch angle.
3. The method for determining the shooting attitude of a natural disaster scanning image according to claim 2, wherein: the preset azimuth is determined by the magnetometer, and the preset azimuth is kept at the same azimuth at any time.
4. The method for determining the shooting attitude of a natural disaster scanning image according to claim 2, wherein: extracting two second feature points on the second center image and the second side image respectively, including:
acquiring a first search area by taking the first characteristic points as the center, wherein each first characteristic point corresponds to one first search area;
acquiring a second search area on the second center image and the second side image, wherein the second search area is arranged corresponding to the first search area;
and acquiring second characteristic points corresponding to the first characteristic points in the first search area in the second search area.
5. The method for determining the shooting attitude of a natural disaster scanning image according to claim 4, wherein: acquiring a second feature point corresponding to the first feature point in the first search area in the second search area, and further comprising the following steps:
and when the second characteristic points corresponding to the first characteristic points in the first search area cannot be acquired in the second search area, increasing the search area size of the first search area, and correspondingly, increasing the search area size of the second search area.
6. The method for determining the shooting attitude of a natural disaster scanning image according to claim 2, wherein: acquiring a roll angle according to the position relation between a first characteristic point on the first center image and a second characteristic point on the second center image, wherein the roll angle comprises the following steps:
connecting the first characteristic points with the corresponding second characteristic points to obtain a roll characteristic line;
and calculating the absolute value of the included angle between the transverse rolling characteristic line and the horizontal direction to obtain the absolute value of the transverse rolling angle, and taking the transverse rolling characteristic line to roll rightwards along the longitudinal axis as positive.
7. The method for determining the shooting attitude of a natural disaster scanning image according to claim 2, wherein: acquiring a pitch angle according to the position relation between a first characteristic point on the first side image and a second characteristic point on the second side image, wherein the pitch angle comprises the following steps:
connecting the first characteristic points with the corresponding second characteristic points to obtain pitching characteristic lines;
and calculating the absolute value of the included angle between the pitching characteristic line and the horizontal direction to obtain the absolute value of the pitching angle, and taking the direction along the vertical direction as positive.
8. A computer-readable storage medium, characterized by: a shooting attitude determination method in which a natural disaster relief image as claimed in any one of claims 2 to 7 can be loaded and executed by a processor is stored.
CN202210232180.0A 2022-03-09 2022-03-09 Natural disaster panoramic helmet and shooting gesture determining method for images of natural disaster panoramic helmet Expired - Fee Related CN114615410B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210232180.0A CN114615410B (en) 2022-03-09 2022-03-09 Natural disaster panoramic helmet and shooting gesture determining method for images of natural disaster panoramic helmet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210232180.0A CN114615410B (en) 2022-03-09 2022-03-09 Natural disaster panoramic helmet and shooting gesture determining method for images of natural disaster panoramic helmet

Publications (2)

Publication Number Publication Date
CN114615410A CN114615410A (en) 2022-06-10
CN114615410B true CN114615410B (en) 2023-05-02

Family

ID=81861875

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210232180.0A Expired - Fee Related CN114615410B (en) 2022-03-09 2022-03-09 Natural disaster panoramic helmet and shooting gesture determining method for images of natural disaster panoramic helmet

Country Status (1)

Country Link
CN (1) CN114615410B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118230A (en) * 2013-02-28 2013-05-22 腾讯科技(深圳)有限公司 Panorama acquisition method, device and system
JP2014062932A (en) * 2012-09-19 2014-04-10 Sharp Corp Attitude control device, operation device, attitude control system, control method, control program, and recording medium
JP2016005263A (en) * 2014-06-19 2016-01-12 Kddi株式会社 Image generation system, terminal, program, and method that generate panoramic image from plurality of photographed images
CN108052058A (en) * 2018-01-31 2018-05-18 广州市建筑科学研究院有限公司 Construction project site safety of the one kind based on " internet+" patrols business flow system of running affairs
CN109362234A (en) * 2016-04-28 2019-02-19 深圳市大疆创新科技有限公司 System and method for obtaining Spherical Panorama Image
CN109660723A (en) * 2018-12-18 2019-04-19 维沃移动通信有限公司 A kind of panorama shooting method and device
CN109766010A (en) * 2019-01-14 2019-05-17 青岛一舍科技有限公司 A kind of unmanned submersible's control method based on head pose control
CN209862435U (en) * 2019-01-30 2019-12-31 陈华 Intelligent video helmet
CN113124883A (en) * 2021-03-01 2021-07-16 浙江国自机器人技术股份有限公司 Off-line punctuation method based on 3D panoramic camera
CN113273172A (en) * 2020-08-12 2021-08-17 深圳市大疆创新科技有限公司 Panorama shooting method, device and system and computer readable storage medium
WO2021180932A2 (en) * 2020-03-13 2021-09-16 Navvis Gmbh Method and device for precisely selecting a spatial coordinate by means of a digital image
CN114004890A (en) * 2021-11-04 2022-02-01 北京房江湖科技有限公司 Attitude determination method and apparatus, electronic device, and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014062932A (en) * 2012-09-19 2014-04-10 Sharp Corp Attitude control device, operation device, attitude control system, control method, control program, and recording medium
CN103118230A (en) * 2013-02-28 2013-05-22 腾讯科技(深圳)有限公司 Panorama acquisition method, device and system
JP2016005263A (en) * 2014-06-19 2016-01-12 Kddi株式会社 Image generation system, terminal, program, and method that generate panoramic image from plurality of photographed images
CN109362234A (en) * 2016-04-28 2019-02-19 深圳市大疆创新科技有限公司 System and method for obtaining Spherical Panorama Image
CN108052058A (en) * 2018-01-31 2018-05-18 广州市建筑科学研究院有限公司 Construction project site safety of the one kind based on " internet+" patrols business flow system of running affairs
CN109660723A (en) * 2018-12-18 2019-04-19 维沃移动通信有限公司 A kind of panorama shooting method and device
CN109766010A (en) * 2019-01-14 2019-05-17 青岛一舍科技有限公司 A kind of unmanned submersible's control method based on head pose control
CN209862435U (en) * 2019-01-30 2019-12-31 陈华 Intelligent video helmet
WO2021180932A2 (en) * 2020-03-13 2021-09-16 Navvis Gmbh Method and device for precisely selecting a spatial coordinate by means of a digital image
CN113273172A (en) * 2020-08-12 2021-08-17 深圳市大疆创新科技有限公司 Panorama shooting method, device and system and computer readable storage medium
WO2022032538A1 (en) * 2020-08-12 2022-02-17 深圳市大疆创新科技有限公司 Panorama photographing method, apparatus and system, and computer-readable storage medium
CN113124883A (en) * 2021-03-01 2021-07-16 浙江国自机器人技术股份有限公司 Off-line punctuation method based on 3D panoramic camera
CN114004890A (en) * 2021-11-04 2022-02-01 北京房江湖科技有限公司 Attitude determination method and apparatus, electronic device, and storage medium

Also Published As

Publication number Publication date
CN114615410A (en) 2022-06-10

Similar Documents

Publication Publication Date Title
CN110580717B (en) A method for generating autonomous inspection routes of unmanned aerial vehicles for power towers
WO2020062434A1 (en) Static calibration method for external parameters of camera
US20230394756A1 (en) Three-dimensional reconstruction method, three-dimensional reconstruction apparatus and storage medium
CN113329182A (en) Image processing method, unmanned aerial vehicle and system
CN115187798A (en) Multi-unmanned aerial vehicle high-precision matching positioning method
CN114549871B (en) A method for matching drone aerial images with satellite images
CN105627991A (en) Real-time panoramic stitching method and system for unmanned aerial vehicle images
CN112734640B (en) Image acquisition device, processing system and panoramic image stitching method for hole drilling and explosion
WO2020198963A1 (en) Data processing method and apparatus related to photographing device, and image processing device
CN115841487B (en) Hidden danger positioning method and terminal along power transmission line
CN113793270A (en) Aerial image geometric correction method based on unmanned aerial vehicle attitude information
CN114004977A (en) Aerial photography data target positioning method and system based on deep learning
CN116718165B (en) Combined imaging system based on unmanned aerial vehicle platform and image enhancement fusion method
JP7220784B2 (en) Survey sampling point planning method, device, control terminal and storage medium
CN105096284A (en) Method, device and system of generating road orthographic projection image
CN112985398A (en) Target positioning method and system
CN116817929A (en) Method and system for simultaneously positioning multiple targets on ground plane by unmanned aerial vehicle
CN114564049B (en) Unmanned aerial vehicle wide area search device and method based on deep learning
CN114615410B (en) Natural disaster panoramic helmet and shooting gesture determining method for images of natural disaster panoramic helmet
CN104318540B (en) The online joining method of aviation image that a kind of utilization CPU is cooperateed with GPU
CN112085751B (en) Cloud layer height estimation method based on cloud image shadow matching algorithm
CN111581322B (en) Method, device and equipment for displaying region of interest in video in map window
CN118465805A (en) A lightweight visual positioning method and device for unmanned aerial vehicle
CN117496114A (en) A target positioning method, system and computer storage medium
CN117036666A (en) Unmanned aerial vehicle low-altitude positioning method based on inter-frame image stitching

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20230502