WO2023070441A1 - Movable platform positioning method and apparatus - Google Patents

Movable platform positioning method and apparatus Download PDF

Info

Publication number
WO2023070441A1
WO2023070441A1 PCT/CN2021/127050 CN2021127050W WO2023070441A1 WO 2023070441 A1 WO2023070441 A1 WO 2023070441A1 CN 2021127050 W CN2021127050 W CN 2021127050W WO 2023070441 A1 WO2023070441 A1 WO 2023070441A1
Authority
WO
WIPO (PCT)
Prior art keywords
feature point
movable platform
map
feature
image
Prior art date
Application number
PCT/CN2021/127050
Other languages
French (fr)
Chinese (zh)
Inventor
赵峰
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2021/127050 priority Critical patent/WO2023070441A1/en
Priority to CN202180101909.4A priority patent/CN117940739A/en
Publication of WO2023070441A1 publication Critical patent/WO2023070441A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C11/00Photogrammetry or videogrammetry, e.g. stereogrammetry; Photographic surveying
    • G01C11/04Interpretation of pictures
    • G01C11/06Interpretation of pictures by comparison of two or more pictures of the same area
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C11/00Photogrammetry or videogrammetry, e.g. stereogrammetry; Photographic surveying
    • G01C11/04Interpretation of pictures
    • G01C11/06Interpretation of pictures by comparison of two or more pictures of the same area
    • G01C11/12Interpretation of pictures by comparison of two or more pictures of the same area the pictures being supported in the same relative position as when they were taken
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/28Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network with correlation of data from several navigational instruments
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/28Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network with correlation of data from several navigational instruments
    • G01C21/30Map- or contour-matching
    • G01C21/32Structuring or formatting of map data

Abstract

A movable platform positioning method and apparatus, the method comprising: when a movable platform executes a first motion operation in a target area, acquiring images which are taken by a photographing apparatus on the movable platform (S11); establishing an online map of the target area on the basis of the images which are taken by the photographing apparatus at different moments (S12); acquiring an offline map of the target area established when the movable platform has executed a historical motion operation in the target area, wherein the historical motion operation is an operation prior to the first motion operation (S13); and positioning the movable platform on the basis of the image which is taken by the photographing apparatus at the current moment, the online map and the offline map, so as to obtain a first positioning result of the movable platform (S14). By means of the method, when visual repositioning is performed, the online map and the offline map complement each other, so as to cover an operation scenario as much as possible, thereby improving the success rate and accuracy of positioning the movable platform.

Description

可移动平台的定位方法和装置Positioning method and device for a movable platform 技术领域technical field
本申请涉及定位领域,尤其涉及一种可移动平台的定位方法和装置。The present application relates to the field of positioning, and in particular to a positioning method and device for a movable platform.
背景技术Background technique
可移动平台在无外源定位装置(如GPS/RTK等)辅助的情况下,需要靠可移动平台自身的传感器进行定位(如视觉里程计),但随着时间推移,可移动平台的定位精度会逐渐下降,这时候需要对可移动平台进行重定位以减少定位误差。Without the assistance of external positioning devices (such as GPS/RTK, etc.), the mobile platform needs to rely on its own sensors for positioning (such as visual odometer), but as time goes by, the positioning accuracy of the mobile platform It will gradually decline. At this time, it is necessary to reposition the movable platform to reduce the positioning error.
在无外源定位装置(如GPS)辅助的情况下,局部视觉定位技术(如视觉里程计)相对成熟,但是全局的视觉重定位技术只处在实验室研究阶段,目前的重定位技术存在定位精度不高、鲁棒性差等问题。传统的重定位方法一般基于离线地图或者在线地图,离线地图一般从建立到使用有一定的时间间隔,该过程中,环境可能已经发生变化,这使得离线地图不能够实时反映当前环境的变化,尤其是跨越长时间(比如春夏秋冬的时间维度)离线地图的可用性会急速降低,使得重定位成功率逐渐降低;受限于计算力以及实时性的要求,在线地图一般只能建立稀疏点的三维地图,并且稀疏点的位置一般也不够精确,通过该地图进行定位,容易使得重定位误差较大。In the case of no external positioning device (such as GPS) assistance, local visual positioning technology (such as visual odometer) is relatively mature, but the global visual relocalization technology is only in the laboratory research stage, and the current relocalization technology has positioning The accuracy is not high, the robustness is poor and so on. Traditional relocation methods are generally based on offline maps or online maps. Offline maps generally have a certain time interval from establishment to use. During this process, the environment may have changed, which makes offline maps unable to reflect changes in the current environment in real time, especially The availability of offline maps across a long period of time (such as the time dimension of spring, summer, autumn and winter) will decrease rapidly, which will gradually reduce the success rate of relocation; limited by computing power and real-time requirements, online maps can generally only create three-dimensional sparse points The map, and the position of the sparse point is generally not accurate enough, and the positioning through the map is easy to make the relocation error larger.
发明内容Contents of the invention
本申请提供一种可移动平台的定位方法和装置。The present application provides a positioning method and device for a movable platform.
具体地,本申请是通过如下技术方案实现的:Specifically, this application is achieved through the following technical solutions:
第一方面,本申请实施例提供一种可移动平台的定位方法,包括:In the first aspect, the embodiment of the present application provides a positioning method for a mobile platform, including:
当可移动平台在目标区域执行第一运动作业时,获取所述可移动平台上的拍摄装置拍摄的图像;When the movable platform executes the first motion operation in the target area, acquiring an image captured by the photographing device on the movable platform;
根据所述拍摄装置在不同时刻拍摄的图像,建立所述目标区域的在线地图;Establishing an online map of the target area according to the images captured by the photographing device at different times;
获取所述可移动平台在所述目标区域执行历史运动作业时所建立的所述目标区域的离线地图,所述历史运动作业为所述第一运动作业之前的作业;Acquiring an offline map of the target area established when the movable platform executes a historical motion operation in the target area, the historical motion operation is an operation before the first motion operation;
根据所述拍摄装置在当前时刻拍摄的图像、所述在线地图及所述离线地图,对所述可移动平台进行定位,获得所述可移动平台的第一定位结果。The movable platform is positioned according to the image captured by the photographing device at the current moment, the online map and the offline map, and a first positioning result of the movable platform is obtained.
第二方面,本申请实施例提供一种可移动平台的定位装置,所述装置包括:In a second aspect, an embodiment of the present application provides a positioning device for a movable platform, the device comprising:
存储装置,用于存储程序指令;以及a storage device for storing program instructions; and
一个或多个处理器,调用所述存储装置中存储的程序指令,当所述程序指令被执行时,所述一个或多个处理器单独地或共同地被配置成用于实施第一方面所述的方 法。One or more processors, calling the program instructions stored in the storage device, when the program instructions are executed, the one or more processors are individually or jointly configured to implement the first aspect described method.
第三方面,本申请实施例提供一种可移动平台,包括:In a third aspect, the embodiment of the present application provides a mobile platform, including:
机身;和fuselage; and
第二方面所述的定位装置,所述定位装置设于所述机身上。In the positioning device according to the second aspect, the positioning device is arranged on the fuselage.
第四方面,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现第一方面所述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method described in the first aspect is implemented.
根据本申请实施例提供的技术方案,本申请在进行视觉重定位时,不单纯依赖在线地图或者离线地图,而是通过结合在线地图和离线地图对可移动平台进行定位,在线地图和离线地图互相补充,能够尽可能地覆盖作业场景,提高可移动平台定位的成功率;并且,融合在线地图和离线地图的有效信息,提高可移动平台的定位精度。According to the technical solution provided by the embodiment of the application, the application does not rely solely on the online map or the offline map when performing visual relocation, but positions the mobile platform by combining the online map and the offline map. In addition, it can cover the operation scene as much as possible, and improve the success rate of positioning of the mobile platform; and, integrate the effective information of the online map and the offline map, and improve the positioning accuracy of the mobile platform.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings that need to be used in the description of the embodiments.
图1是本申请一实施例中的一种可移动平台的定位方法的流程示意图;FIG. 1 is a schematic flowchart of a positioning method for a mobile platform in an embodiment of the present application;
图2是本申请一实施例中的一种根据拍摄装置在当前时刻拍摄的图像、在线地图及离线地图,对可移动平台进行定位,获得可移动平台的第一定位结果的实现过程示意图;Fig. 2 is a schematic diagram of an implementation process for locating a movable platform and obtaining a first positioning result of the movable platform according to an image captured by a photographing device at a current moment, an online map, and an offline map in an embodiment of the present application;
图3是本申请另一实施例中的一种可移动平台的定位方法的流程示意图;FIG. 3 is a schematic flowchart of a positioning method for a mobile platform in another embodiment of the present application;
图4是本申请一实施例中的一种可移动平台在第一目标区域A和第二目标区域B进行轨迹复演的示意图;Fig. 4 is a schematic diagram of a movable platform performing trajectory repetition in the first target area A and the second target area B in an embodiment of the present application;
图5是本申请一实施例中的一种根据在线地图中与每一当前时刻的图像中的第一特征点相匹配的第二特征点的第二位置信息及离线地图中与每一当前时刻的图像中的第一特征点相匹配的第三特征点的第三位置信息,对可移动平台进行定位,获得可移动平台的第一定位结果的实现过程示意图;Fig. 5 is an embodiment of the application according to the second position information of the second feature point in the online map that matches the first feature point in the image at each current moment and the offline map with each current moment The third position information of the third feature point matched with the first feature point in the image, the movable platform is positioned, and the schematic diagram of the implementation process of obtaining the first positioning result of the movable platform;
图6是本申请一实施例中的一种可移动平台在目标区域移动的示意图;Fig. 6 is a schematic diagram of a movable platform moving in a target area in an embodiment of the present application;
图7是本申请一实施例中的一种可移动平台的定位装置的结构示意图。Fig. 7 is a schematic structural diagram of a positioning device for a movable platform in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
需要说明的是,在不冲突的情况下,下述的实施例及实施方式中的特征可以相互组合。It should be noted that, in the case of no conflict, the features in the following embodiments and implementation manners can be combined with each other.
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/ 或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a、b、或c中的至少一项(个),可以表示:a、b、c,a和b,a和c,b和c,或a和b和c,其中a、b、c可以是单个,也可以是多个。In this application, "at least one" means one or more, and "multiple" means two or more. "And/or" describes the association relationship of associated objects, indicating that there can be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the contextual objects are an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (unit) of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, wherein a, b, c can be single or multiple.
本申请实施例的可移动平台可以包括无人飞行器(如无人机)、机器人、农机等。The mobile platform in this embodiment of the present application may include unmanned aerial vehicles (such as drones), robots, agricultural machinery, and the like.
本申请实施例的定位方法可应用于可移动平台的自主返航、轨迹复演等领域,如无人机自主返航、机器人仓库自动巡检、农业自动化作业等。The positioning method of the embodiment of the present application can be applied to fields such as autonomous return and trajectory replay of movable platforms, such as autonomous return of drones, automatic inspection of robot warehouses, and automatic agricultural operations.
图1是本申请一实施例中的一种可移动平台的定位方法的流程示意图;本申请实施例的定位方法的执行主体可包括可移动平台或者设于可移动平台上的独立控制器或者可移动平台与上述独立控制器的组合。请参见图1,本申请实施例提供的一种可移动平台的定位方法可包括步骤S11~S14。Fig. 1 is a schematic flow chart of a positioning method for a mobile platform in an embodiment of the present application; the execution body of the positioning method in the embodiment of the present application may include a mobile platform or an independent controller provided on the mobile platform or may A combination of a mobile platform and the aforementioned stand-alone controller. Please refer to FIG. 1 , a method for positioning a mobile platform provided in an embodiment of the present application may include steps S11 to S14.
其中,在S11中、当可移动平台在目标区域执行第一运动作业时,获取可移动平台上的拍摄装置拍摄的图像。Wherein, in S11, when the movable platform executes the first motion operation in the target area, an image captured by the photographing device on the movable platform is acquired.
可移动平台可包括单个或多个拍摄装置,其中,当可移动平台包括多个拍摄装置时,多个拍摄装置朝向可移动平台的不同方向,用于获取可移动平台的不同方向上的环境的图像。The movable platform may include single or multiple photographing devices, wherein, when the movable platform includes multiple photographing devices, the multiple photographing devices face different directions of the movable platform, and are used to obtain images of the environment in different directions of the movable platform image.
在S12中、根据拍摄装置在不同时刻拍摄的图像,建立目标区域的在线地图。In S12, an online map of the target area is established according to the images captured by the photographing device at different times.
例如,当可移动平台包括单个拍摄装置时,根据单个拍摄装置在不同时刻拍摄的图像,建立目标区域的一幅在线地图;当可移动平台包括多个拍摄装置时,根据多个拍摄装置在不同时刻拍摄的图像,分别建立目标区域的在线地图,多个拍摄装置对应多幅在线地图。For example, when the movable platform includes a single camera, an online map of the target area is established based on the images captured by the single camera at different times; The images captured at all times are used to establish an online map of the target area, and multiple shooting devices correspond to multiple online maps.
可以对拍摄装置在不同时刻拍摄的图像分别进行特征提取,获得每幅图像中的第一特征点的位置信息和每个第一特征点的特征表达;接着,对连续的多幅图像中的相同特征点进行特征点关联,结合拍摄装置在拍摄每幅图像时的位姿,得到第二特征点的第二位置信息,并结合特征表达,获得在线地图。Feature extraction can be performed on the images captured by the shooting device at different times to obtain the position information of the first feature point in each image and the feature expression of each first feature point; then, the same The feature points are associated with the feature points, combined with the pose of the shooting device when shooting each image, the second position information of the second feature point is obtained, and combined with the feature expression, an online map is obtained.
特征表达可包括颜色和/或纹理;当然,特征表达的内容还可包括其他环境特征表达。The characteristic expression may include color and/or texture; of course, the content of the characteristic expression may also include other environmental characteristic expressions.
需要说明的是,在可移动平台在目标区域执行第一运动作业的过程中,在线地图的建立持续进行。It should be noted that, when the movable platform executes the first movement operation in the target area, the establishment of the online map continues.
其中,特征表达可采用诸如orb/sift/cnn特征等表示,也可采用其他图像特征表 示。特征表达可以采用向量形式,也可采用其他方式。Among them, the feature expression can be represented by such as orb/sift/cnn feature, and can also be represented by other image features. Feature expression can be in vector form or in other ways.
第一位置信息为二维位置信息,第二位置信息为三维位置信息。The first location information is two-dimensional location information, and the second location information is three-dimensional location information.
在S13中、获取可移动平台在目标区域执行历史运动作业时所建立的目标区域的离线地图,历史运动作业为第一运动作业之前的作业。In S13, the offline map of the target area established when the movable platform executes the historical motion operation in the target area is acquired, and the historical motion operation is the operation before the first motion operation.
在某些实施例中,历史运动作业为第一运动作业的前一次作业,这样,历史运动作业与第一运动作业的时间间隔不会太久,防止由于时间间隔太久,目标区域的地理环境变化较大,导致离线地图不能准确地反映执行第一运动作业时的目标区域的特征。In some embodiments, the historical motion operation is the previous operation of the first motion operation. In this way, the time interval between the historical motion operation and the first motion operation will not be too long to prevent the geographical environment of the target area from being affected due to the long time interval. The variation is large, so that the offline map cannot accurately reflect the characteristics of the target area when the first motion operation is performed.
离线地图的建立方式与在线地图的建立方式相类似,离线地图的建立是在可移动平台在目标区域执行历史运动作业的过程中进行的,应当理解地是,在可移动平台在目标区域执行第一运动作业时,离线地图已建立。The way to build the offline map is similar to the way to build the online map. The offline map is built when the movable platform performs historical motion operations in the target area. An offline map has been created during a motion operation.
离线地图可存储于可移动平台的存储装置中,或者外部的存储装置(如可移动平台的遥控终端的存储装置)中。S13中在获取可移动平台在目标区域执行历史运动作业时所建立的目标区域的离线地图时,具体地,从可移动平台的存储装置或者外部的存储装置中获取离线地图。The offline map can be stored in the storage device of the mobile platform, or in an external storage device (such as the storage device of the remote control terminal of the mobile platform). In S13, when acquiring the offline map of the target area established when the mobile platform performs historical motion operations in the target area, specifically, the offline map is acquired from the storage device of the mobile platform or an external storage device.
在S14中、根据拍摄装置在当前时刻拍摄的图像、在线地图及离线地图,对可移动平台进行定位,获得可移动平台的第一定位结果。In S14, the movable platform is positioned according to the image captured by the photographing device at the current moment, the online map and the offline map, and a first positioning result of the movable platform is obtained.
应当理解地是,当前时刻拍摄的图像是在S11中获取的。It should be understood that the image taken at the current moment is acquired in S11.
本申请实施例中,第一定位结果用于指示可移动平台的位姿。In the embodiment of the present application, the first positioning result is used to indicate the pose of the movable platform.
图2是本申请一实施例中的一种根据拍摄装置在当前时刻拍摄的图像、在线地图及离线地图,对可移动平台进行定位,获得可移动平台的第一定位结果的实现过程示意图;如图2所示,一种根据拍摄装置在当前时刻拍摄的图像、在线地图及离线地图,对可移动平台进行定位,获得可移动平台的第一定位结果的实现过程可包括S21~S24。Fig. 2 is a schematic diagram of an implementation process for positioning a movable platform and obtaining a first positioning result of the movable platform according to an image captured by a photographing device at the current moment, an online map, and an offline map in an embodiment of the present application; As shown in FIG. 2 , an implementation process of locating a movable platform and obtaining a first positioning result of the movable platform according to an image captured by a photographing device at the current moment, an online map, and an offline map may include S21-S24.
在S21中,获取当前时刻的图像的第一特征点的第一位置信息、在线地图的第二特征点的第二位置信息及离线地图的第三特征点的第三位置信息;In S21, the first position information of the first feature point of the image at the current moment, the second position information of the second feature point of the online map, and the third position information of the third feature point of the offline map;
其中,第一位置信息为二维位置信息,第二位置信息为三维位置信息,第三位置信息也为三维位置信息。Wherein, the first position information is two-dimensional position information, the second position information is three-dimensional position information, and the third position information is also three-dimensional position information.
本申请实施例中,第一位置信息、第二位置信息及第三位置信息均为真实世界的坐标。In the embodiment of the present application, the first location information, the second location information, and the third location information are all coordinates of the real world.
在S22中,根据第一位置信息和第二位置信息,将当前时刻的图像与在线地图进行重定位,确定在线地图中与第一特征点相匹配的第二特征点;In S22, according to the first position information and the second position information, the image at the current moment is relocated with the online map, and the second feature point matching the first feature point in the online map is determined;
第一特征点与第二特征点相匹配是指第一特征点与第二特征点相关联,第一特征点的第一位置信息和第二特征点的第二位置信息用于指示目标区域的同一位置。The matching of the first feature point with the second feature point means that the first feature point is associated with the second feature point, and the first position information of the first feature point and the second position information of the second feature point are used to indicate the location of the target area. the same location.
S23、根据第一位置信息和第三位置信息,将当前时刻的图像与离线地图进行重定位,确定离线地图中与第一特征点相匹配的第三特征点;S23. According to the first position information and the third position information, relocate the image at the current moment and the offline map, and determine the third feature point matching the first feature point in the offline map;
第一特征点与第三特征点相匹配是指第一特征点与第三特征点相关联,第一特征点的第一位置信息和第三特征点的第三位置信息用于指示目标区域的同一位置。Matching of the first feature point with the third feature point means that the first feature point is associated with the third feature point, and the first position information of the first feature point and the third position information of the third feature point are used to indicate the location of the target area. the same location.
应当理解地是,S22与S23可同步执行,也可先后执行,如先执行S22,再执行S23,或者先执行S23,再执行S22。It should be understood that S22 and S23 may be executed synchronously, or may be executed sequentially, for example, S22 is executed first, and then S23 is executed, or S23 is executed first, and then S22 is executed.
S24、根据在线地图中与第一特征点相匹配的第二特征点的第二位置信息,和,离线地图中与第一特征点相匹配的第三特征点的第三位置信息,对可移动平台进行定位,获得可移动平台的第一定位结果。S24. According to the second position information of the second feature point matching the first feature point in the online map, and the third position information of the third feature point matching the first feature point in the offline map, the movable The platform is positioned, and the first positioning result of the movable platform is obtained.
离线地图和在线地图互相补充,能够尽可能的覆盖作业场景,提高可移动平台定位的成功率;当当前时刻的图像与在离线地图、在线地图同时重定位成功时,可以通过融合定位方式有效提高重定位的精度。The offline map and the online map complement each other, which can cover the operation scene as much as possible and improve the success rate of positioning of the mobile platform; The precision of the relocation.
在实现S24时,可采用不同的融合定位方式,例如,在一些实施例中,根据在线地图中与第一特征点相匹配的第二特征点的第二位置信息,确定可移动平台的第二定位结果;根据离线地图中与第一特征点相匹配的第三特征点的第三位置信息,确定可移动平台的第三定位结果;对第二定位结果和第三定位结果进行融合,确定可移动平台的第一定位结果。When implementing S24, different fusion positioning methods can be used. For example, in some embodiments, the second position information of the movable platform is determined according to the second position information of the second feature point matching the first feature point in the online map. positioning result; according to the third position information of the third feature point matching the first feature point in the offline map, determine the third positioning result of the movable platform; fuse the second positioning result and the third positioning result to determine the The first location result for mobile platforms.
其中,第二定位结果和第三定位结果均用于指示可移动平台的位姿。Wherein, both the second positioning result and the third positioning result are used to indicate the pose of the movable platform.
在某些实施例中,采用ransac pnp算法对在线地图中与第一特征点相匹配的第二特征点的第二位置信息进行处理,获得可移动平台的第二定位结果;当然,也可采用其他算法对在线地图中与第一特征点相匹配的第二特征点的第二位置信息进行处理,获得可移动平台的第二定位结果。In some embodiments, the ransac pnp algorithm is used to process the second position information of the second feature point matching the first feature point in the online map to obtain the second positioning result of the movable platform; of course, it can also be used Other algorithms process the second position information of the second feature point matching the first feature point in the online map to obtain the second positioning result of the movable platform.
在某些实施例中,采用ransac pnp算法对离线地图中与第一特征点相匹配的第三特征点的第三位置信息,获得可移动平台的第三定位结果;当然,也可采用其他算法对离线地图中与第一特征点相匹配的第三特征点的第三位置信息,获得可移动平台的第三定位结果。In some embodiments, the ransac pnp algorithm is used to obtain the third positioning result of the movable platform for the third position information of the third feature point matching the first feature point in the offline map; of course, other algorithms can also be used A third positioning result of the movable platform is obtained for third position information of a third feature point matching the first feature point in the offline map.
可选地,采用ransac pnp算法对在线地图中与第一特征点相匹配的第二特征点的第二位置信息进行处理,获得可移动平台的第二定位结果,并且,采用ransac pnp算法对离线地图中与第一特征点相匹配的第三特征点的第三位置信息,获得可移动平台的第三定位结果。Optionally, the ransac pnp algorithm is used to process the second position information of the second feature point matched with the first feature point in the online map to obtain the second positioning result of the movable platform, and the ransac pnp algorithm is used to process the offline The third position information of the third feature point matching the first feature point in the map is used to obtain the third positioning result of the movable platform.
在对第二定位结果和第三定位结果进行融合,确定可移动平台的第一定位结果 之前,需确定在线图像的第一权重和离线图像的第二权重。在对第二定位结果和第三定位结果进行融合,确定可移动平台的第一定位结果时,具体地,根据第一权重和第二权重,对第二定位结果和第三定位结果进行融合,确定可移动平台的第一定位结果。Before fusing the second positioning result and the third positioning result to determine the first positioning result of the movable platform, it is necessary to determine the first weight of the online image and the second weight of the offline image. When fusing the second positioning result and the third positioning result to determine the first positioning result of the movable platform, specifically, fusing the second positioning result and the third positioning result according to the first weight and the second weight, A first positioning result of the movable platform is determined.
第一定位结果的计算公式如下:The calculation formula of the first positioning result is as follows:
p=w 1p 1+w 2p 2   (1); p=w 1 p 1 +w 2 p 2 (1);
公式(1)中,p为第一定位结果,p 1和p 2分别为第二定位结果、第三定位结果,w 1和w 2分别为第一权重、第二权重。 In the formula (1), p is the first positioning result, p 1 and p 2 are the second positioning result and the third positioning result respectively, w 1 and w 2 are the first weight and the second weight respectively.
第一权重和第二权重的确定方式可包括多种,例如,在某些实施例中,确定在线图像的第一权重和离线图像的第二权重可包括如下步骤:The methods for determining the first weight and the second weight may include various methods. For example, in some embodiments, determining the first weight of an online image and the second weight of an offline image may include the following steps:
(1)、根据在线地图中与第一特征点相匹配的第二特征点的第一数量,确定第一权重;(1), according to the first quantity of the second feature point matching with the first feature point in the online map, determine the first weight;
(2)、根据离线地图中与第一特征点相匹配的第三特征点的第二数量确定第二权重。(2) Determine the second weight according to the second quantity of the third feature points matching the first feature point in the offline map.
其中,步骤(1)和(2)可同步执行,也可先后执行,如先执行(1),再执行(2),或者先执行(2),再执行(1)。Wherein, steps (1) and (2) can be executed synchronously or sequentially, for example, (1) is executed first, and then (2), or (2) is executed first, and then (1) is executed.
本实施例中的第一权重与第一数量正相关,即第一数量越大,第一权重越大;第一数量越小,第一权重越小。相应地,第二权重与第二数量正相关,即第二数量越大,第二权重越大;第二数量越小,第二权重越小。如此设置,实现离线地图和在线地图互相补充,以尽可能的覆盖作业场景,提高可移动平台定位的成功率和定位精度。In this embodiment, the first weight is positively correlated with the first quantity, that is, the larger the first quantity, the greater the first weight; the smaller the first quantity, the smaller the first weight. Correspondingly, the second weight is positively correlated with the second quantity, that is, the larger the second quantity, the greater the second weight; the smaller the second quantity, the smaller the second weight. With such a setting, the offline map and the online map can complement each other, so as to cover the operation scene as much as possible, and improve the success rate and positioning accuracy of the mobile platform positioning.
在某些实施例中,确定在线图像的第一权重和离线图像的第二权重可包括如下步骤:In some embodiments, determining the first weight of the online image and the second weight of the offline image may include the following steps:
(1)、将在线地图中与第一特征点相匹配的第二特征点重投影至当前时刻的图像上,获得第四特征点;(1), reprojecting the second feature point matched with the first feature point in the online map to the image at the current moment to obtain the fourth feature point;
(2)、确定第四特征点与当前时刻的图像上的相应第一特征点的第一像素距离;(2), determine the first pixel distance between the fourth feature point and the corresponding first feature point on the image at the current moment;
(3)、根据第一像素距离,确定第一权重;(3), according to the first pixel distance, determine the first weight;
(4)、将离线地图中与第一特征点相匹配的第三特征点重投影至当前时刻的图像上,获得第五特征点;(4), reprojecting the third feature point matched with the first feature point in the offline map to the image at the current moment to obtain the fifth feature point;
(5)、确定第五特征点与当前时刻的图像上的相应第一特征点的第二像素距离;(5), determining the second pixel distance between the fifth feature point and the corresponding first feature point on the image at the current moment;
(6)、根据第二像素距离,确定第二权重。(6) Determine a second weight according to the second pixel distance.
第一像素距离、第二像素距离可用于表征重投影的误差。The first pixel distance and the second pixel distance can be used to characterize the reprojection error.
本实实施例中的第一权重与第一像素距离负相关,即第一像素距离越大,重投影的误差越大,第一权重越小;第一像素距离越小,重投影的误差越小,第一权重越大。相应地,第二权重与第二像素距离负相关,即第二像素距离越大,重投影的误差越大,第二权重越小;第二像素距离越小,重投影的误差越小,第二权重越大。如此设置,实现离线地图和在线地图互相补充,以尽可能的覆盖作业场景,提高可移动平台定位的成功率和定位精度。In this embodiment, the first weight is negatively correlated with the first pixel distance, that is, the larger the first pixel distance is, the larger the reprojection error is, and the smaller the first weight is; the smaller the first pixel distance is, the larger the reprojection error is. The smaller the value, the greater the first weight. Correspondingly, the second weight is negatively correlated with the second pixel distance, that is, the larger the second pixel distance is, the larger the reprojection error is, and the smaller the second weight is; the smaller the second pixel distance is, the smaller the reprojection error is. The greater the weight of the second. With such a setting, the offline map and the online map can complement each other, so as to cover the operation scene as much as possible, and improve the success rate and positioning accuracy of the mobile platform positioning.
在另一实施例中,实现S24的融合定位方式的过程可包括:根据在线地图中与第一特征点相匹配的第二特征点的第二位置信息及离线地图中与第一特征点相匹配的第三特征点的第三位置信息,形成第一数据组;采用ransac pnp算法对对第一数据组中的位置信息进行处理,获得可移动平台的第一定位结果。该融合方式使用了特征层面的融合,提高了可移动平台定位的成功率和定位精度。In another embodiment, the process of realizing the fusion positioning method of S24 may include: according to the second position information of the second feature point matched with the first feature point in the online map and the second position information of the second feature point matched with the first feature point in the offline map The third position information of the third feature point forms the first data group; the position information in the first data group is processed by ransac pnp algorithm to obtain the first positioning result of the movable platform. This fusion method uses the fusion at the feature level, which improves the success rate and positioning accuracy of the mobile platform positioning.
应当理解地是,第一数据组为在线地图中与第一特征点相匹配的第二特征点的第二位置信息及离线地图中与第一特征点相匹配的第三特征点的第三位置信息的集合。另外,ransac pnp算法也能够替换成其他重定位算法。It should be understood that the first data set is the second position information of the second feature point matching the first feature point in the online map and the third position information of the third feature point matching the first feature point in the offline map collection of information. In addition, the ransac pnp algorithm can also be replaced by other relocation algorithms.
本申请实施例的定位方法在进行视觉重定位时,不单纯依赖在线地图或者离线地图,离线地图精度高但不是实时的,在线地图精度低但是实时可用,本申请通过结合在线地图和离线地图对可移动平台进行定位,在线地图和离线地图互相补充,能够尽可能地覆盖作业场景,提高可移动平台定位的成功率;并且,融合在线地图和离线地图的有效信息,提高可移动平台的定位精度。The positioning method of the embodiment of the present application does not rely solely on online maps or offline maps when performing visual relocation. The offline maps have high precision but are not real-time, and the online maps have low precision but are available in real time. This application combines online maps and offline maps. Mobile platform for positioning, online map and offline map complement each other, can cover the operation scene as much as possible, improve the success rate of mobile platform positioning; and integrate the effective information of online map and offline map to improve the positioning accuracy of mobile platform .
图3是本申请另一实施例中的一种可移动平台的定位方法的流程示意图;参见图3,本申请一实施例中的定位方法还可包括S31~S34。FIG. 3 is a schematic flowchart of a positioning method for a movable platform in another embodiment of the present application; referring to FIG. 3 , the positioning method in an embodiment of the present application may further include S31-S34.
其中,在S31中,获取当前时刻的图像的第一特征点的第一位置信息及离线地图的第三特征点的第三位置信息;Wherein, in S31, the first position information of the first feature point of the image at the current moment and the third position information of the third feature point of the offline map are obtained;
在S32中,根据第一位置信息和第三位置信息,将当前时刻的图像与离线地图进行重定位,确定离线地图中与第一特征点相匹配的第三特征点;In S32, according to the first position information and the third position information, the image at the current moment is relocated with the offline map, and the third feature point matching the first feature point in the offline map is determined;
在S33中,将离线地图中与第一特征点相匹配的第三特征点重投影至当前时刻的图像上,获得第五特征点;In S33, the third feature point matched with the first feature point in the offline map is re-projected onto the image at the current moment to obtain the fifth feature point;
在执行完S33之后,需提取当前时刻的图像中第五特征点的特征表达。After executing S33, it is necessary to extract the feature expression of the fifth feature point in the image at the current moment.
在S34中,根据第五特征点的特征表达,对离线地图中相应第三特征点的特征表达进行更新。In S34, the feature expression corresponding to the third feature point in the offline map is updated according to the feature expression of the fifth feature point.
本申请实施例中的更新可包括增加或删除。Updates in this embodiment of the application may include additions or deletions.
例如,在某些实施例中,当第五特征点的特征表达与离线地图的相应第三特征点的特征表达不一致时,在离线地图中相应的第三特征点的特征表达中增加第五特征点的特征表达。离线地图的更新不是单纯的替换原有特征表达,而是建立多模态的特征表达。离线地图普遍存在不能应对长时变化的问题,比如目前区域春夏秋冬的特征表达完全不同,如目标区域中的某棵树在夏天呈绿色,在秋天呈黄色。本申请中,针对同一场景,当第五特征点的特征表达与离线地图的相应第三特征点的特征表达不一致时,则认为增加了一种模态的特征表达并保存,提高了离线地图的长时可用性与鲁棒性。For example, in some embodiments, when the feature expression of the fifth feature point is inconsistent with the feature expression of the corresponding third feature point in the offline map, the fifth feature is added to the feature expression of the corresponding third feature point in the offline map feature representation of points. The update of the offline map is not simply to replace the original feature expression, but to establish a multi-modal feature expression. Offline maps generally have problems that cannot cope with long-term changes. For example, the characteristics of spring, summer, autumn and winter in the current area are completely different. For example, a tree in the target area is green in summer and yellow in autumn. In this application, for the same scene, when the feature expression of the fifth feature point is inconsistent with the feature expression of the corresponding third feature point of the offline map, it is considered that a feature expression of a modality is added and saved, which improves the performance of the offline map. Long-term availability and robustness.
例如,特征表达通过向量表征,第五特征点的特征表达与离线地图的相应第三特征点的特征表达不一致可包括:第五特征点的特征表达与离线地图的相应第三特征点的特征表达的差值大于预设阈值。即当第五特征点的特征表达与离线地图的相应第三特征点的特征表达的差值大于预设阈值时,认为第五特征点的特征表达与离线地图的相应第三特征点的特征表达不一致。另外,当当第五特征点的特征表达与离线地图的相应第三特征点的特征表达的差值小于或等于预设阈值时,认为第五特征点的特征表达与离线地图的相应第三特征点的特征表达一致。其中,预设阈值的大小可根据需要设定。For example, the feature expression is represented by a vector, and the feature expression of the fifth feature point is inconsistent with the feature expression of the corresponding third feature point of the offline map may include: the feature expression of the fifth feature point and the feature expression of the corresponding third feature point of the offline map The difference is greater than the preset threshold. That is, when the difference between the feature expression of the fifth feature point and the feature expression of the corresponding third feature point of the offline map is greater than the preset threshold, it is considered that the feature expression of the fifth feature point is different from the feature expression of the corresponding third feature point of the offline map Inconsistent. In addition, when the difference between the feature expression of the fifth feature point and the feature expression of the corresponding third feature point of the offline map is less than or equal to the preset threshold, it is considered that the feature expression of the fifth feature point is different from the corresponding third feature point of the offline map The characteristics are consistent. Wherein, the size of the preset threshold can be set as required.
离线地图中的第三特征点的每一特征表达均为最近一次匹配到的相应的第五特征点的相应的特征表达,即离线地图中的第三特征点的每一种模态的特征表达均为最近一次匹配到的相应的第五特征点的相应模态的特征表达,提高了离线地图的长时可用性与鲁棒性。Each feature expression of the third feature point in the offline map is the corresponding feature expression of the corresponding fifth feature point matched last time, that is, the feature expression of each mode of the third feature point in the offline map Both are the feature expressions of the corresponding modes of the corresponding fifth feature point matched last time, which improves the long-term usability and robustness of the offline map.
特征表达可包括颜色和/或纹理;当然,特征表达的内容还可包括其他环境特征表达。The characteristic expression may include color and/or texture; of course, the content of the characteristic expression may also include other environmental characteristic expressions.
在某些实施例中,将第五特征点的特征表达与离线地图中相应第三特征点的特征表达进行匹配;当离线地图中的第三特征点的特征表达未匹配到相应的第五特征点的特征表达的时长大于或等于预设时长时,删除相应的特征表达。也即,当某个模态的特征表达长时间未匹配成功,则认为该处环境已经发生不可逆转的变化(如目标区域的某颗数被砍伐掉),直接删除该模态的特征表达。其中,预设时长的大小可以根据需要设定。In some embodiments, the feature expression of the fifth feature point is matched with the feature expression of the corresponding third feature point in the offline map; when the feature expression of the third feature point in the offline map is not matched to the corresponding fifth feature When the duration of the characteristic expression of the point is greater than or equal to the preset duration, the corresponding characteristic expression is deleted. That is, when the feature expression of a certain modality has not been successfully matched for a long time, it is considered that the environment has undergone irreversible changes (for example, a certain number of trees in the target area has been cut down), and the feature expression of the modality is directly deleted. Wherein, the size of the preset duration can be set as required.
可以对上述定位方法进行测试,例如,参见图3,在没有外部定位源(如GPS/TK等)条件下,第一目标区域A中的环境特征使用波浪线简化表示,第二目标区域B中与第一目标区域A的环境特征相同的位置处的环境特征也使用波浪线简化表示,第二目标区域B中与第一目标区域A的环境特征不同的位置处的环境特征使用直线表示,虚线用于划分不同的局部区域。可移动平台在第一目标区域A中移动并构建了离线地图,接着去第二目标区域B中进行第一次轨迹复演,可发现可移动平台移动在第二目 标区域B中波浪线处能够精准复演,在第二目标区域B中直线处逐渐漂移。第一次轨迹复演之后,可移动平台在第二目标区域B中进行第二次轨迹复演,可发现可移动平台能够精准复演,这说明第一次轨迹复演过程中可移动平台已经更新的离线地图。第二次轨迹复演之后,可移动平台到第一目标区域A中移动,仍然能够进行轨迹复演,这说明离线地图中存储了第一目标区域A和第二目标区域B的两种模态的特征表达。The above positioning method can be tested, for example, see Figure 3, under the condition of no external positioning source (such as GPS/TK, etc.), the environmental features in the first target area A are simplified by wavy lines, and in the second target area B The environmental features at the same position as the environmental features of the first target area A are also simplified by wavy lines, and the environmental features at positions different from the environmental features of the first target area A in the second target area B are represented by straight lines, and the dotted lines Used to divide different local areas. The movable platform moved in the first target area A and built an offline map, and then went to the second target area B for the first trajectory replay. It can be found that the movable platform can move accurately at the wavy line in the second target area B Repeat, gradually drifting in the straight line in the second target area B. After the first trajectory replay, the movable platform performs the second trajectory replay in the second target area B, and it can be found that the movable platform can be accurately replayed, which shows that the movable platform has been replayed during the first trajectory replay. Updated offline maps. After the second trajectory replay, the movable platform moves into the first target area A, and the trajectory replay can still be performed, which means that the offline map stores the two modes of the first target area A and the second target area B. characteristic expression.
本申请实施例还提供一种定位方法,该方法可包括:The embodiment of the present application also provides a positioning method, which may include:
(1)、控制可移动平台依次在第一目标区域执行第一运动作业以及在第二目标区域执行第二运动作业;(1), controlling the movable platform to execute the first motion operation in the first target area and the second motion operation in the second target area in sequence;
其中,第一目标区域的第一局部区域(A1)与第二目标区域的第二局部区域(B1)的为同一位置区域,具有相同的环境特征。第一目标区域的第三局部区域(A2)与第二目标区域第四局部区域(B2)为同一位置区域,具有不同的环境特征。第一局部区域(A1)与第三局部区域(A2)位置相邻设置,第二局部区域(B1)与第四局部区域(B2)位置相邻设置。Wherein, the first partial area (A1) of the first target area and the second partial area (B1) of the second target area are in the same location area and have the same environmental characteristics. The third partial area (A2) of the first target area and the fourth partial area (B2) of the second target area are in the same location area and have different environmental characteristics. The first partial area (A1) is adjacent to the third partial area (A2), and the second partial area (B1) is adjacent to the fourth partial area (B2).
(2)、获取可移动平台在第一目标区域执行第一运动作业的过程中在第一局部区域(A1)第一运动轨迹和在第三局部区域(A2)的第二运动轨迹;(2) Acquiring the first motion trajectory of the movable platform in the first partial area (A1) and the second motion trajectory in the third partial area (A2) during the process of performing the first motion operation in the first target area;
(3)、获取可移动平台在第二目标区域执行第二运动作业过程中在第二局部区域(B2)第三运动轨迹和在第四局部区域(B2)的第四运动轨迹。(3) Obtaining the third motion track in the second partial area (B2) and the fourth motion track in the fourth partial area (B2) when the movable platform performs the second motion operation in the second target area.
第一运动轨迹与第三运动轨迹相同,第二运动轨迹与第四运动轨迹不同。The first motion track is the same as the third motion track, and the second motion track is different from the fourth motion track.
(4)、控制可移动平台在第二目标区域执行第三运动作业,获取可移动平台在第二目标区域执行第三运动作业过程中在第二局部区域(B1)第五运动轨迹和在第四局部区域(B2)的第六运动轨迹;(4) Control the movable platform to perform the third motion operation in the second target area, and obtain the fifth motion trajectory and the fifth motion trajectory in the second partial area (B1) of the movable platform in the second target area during the execution of the third motion operation in the second target area. The sixth motion trajectory of the four local areas (B2);
第三运动轨迹与第五运动轨迹相同,第四运动轨迹与第六运动轨迹相同。The third motion track is the same as the fifth motion track, and the fourth motion track is the same as the sixth motion track.
(5)、控制可移动平台在第一目标区域执行第四运动作业,获取可移动平台在第一目标区域执行第四运动作业过程中在第一局部区域(A1)第七运动轨迹和在第三局部区域(A2)的第八运动轨迹。(5) Control the movable platform to perform the fourth motion operation in the first target area, and obtain the seventh motion track and the second motion track in the first local area (A1) of the movable platform in the process of executing the fourth motion operation in the first target area The eighth motion trajectory of the three local areas (A2).
第一运动轨迹与第七运动轨迹相同,第八运动轨迹与第二运动轨迹相同。The first motion track is the same as the seventh motion track, and the eighth motion track is the same as the second motion track.
因为有离线地图的存在,当可移动平台进入相同的场景,能够生成基本相同的导航轨迹。执行运动作业实时建立的在线地图,若在线地图的特征与之前经历过的相近位置区域的离线地图有部分特征表达不相符,能够转换为离线地图的不同模态的特征表达进行存储。Because of the existence of offline maps, when the movable platform enters the same scene, it can generate basically the same navigation trajectory. The online map created in real time by performing motion operations, if the features of the online map do not match some of the feature expressions of the offline maps of the similar location areas that have been experienced before, it can be converted into feature expressions of different modalities of the offline map for storage.
传统的定位方法基于单个拍摄装置进行,定位成功率及精确度均较低。对于此,本申请实施例中,通过多路拍摄装置的特征点分别进行重定位,可以显著提高重定位 的成功率以及精确度。The traditional positioning method is based on a single shooting device, and the positioning success rate and accuracy are low. For this, in the embodiment of the present application, the success rate and accuracy of relocation can be significantly improved by relocating the feature points of the multi-channel shooting device respectively.
本实施例中的可移动平台包括多个拍摄装置,多个拍摄装置朝向可移动平台的不同方向,用于获取可移动平台的不同方向上的环境的图像。示例性地,可移动平移台可包括设于机身前端的前视拍摄装置、设于机身左侧的左视拍摄装置及设于机身右侧的右视拍摄装置。The movable platform in this embodiment includes a plurality of photographing devices facing different directions of the movable platform for acquiring images of environments in different directions of the movable platform. Exemplarily, the movable translation platform may include a front-view camera device arranged at the front of the fuselage, a left-view camera device arranged at the left side of the fuselage, and a right-view camera device arranged at the right side of the fuselage.
参见图4,S14中根据拍摄装置在当前时刻拍摄的图像、在线地图及离线地图,对可移动平台进行定位,获得可移动平台的第一定位结果的实现过程包括可包括:Referring to Fig. 4, in S14, the movable platform is positioned according to the image captured by the shooting device at the current moment, the online map and the offline map, and the implementation process of obtaining the first positioning result of the movable platform may include:
S51、获取每一拍摄装置分别在当前时刻的图像的第一特征点的第一位置信息;S51. Obtain the first position information of the first feature point of the image of each shooting device at the current moment;
S52、获取在线地图的第二特征点的第二位置信息及离线地图的第三特征点的第三位置信息;S52. Obtain the second position information of the second feature point of the online map and the third position information of the third feature point of the offline map;
需要说明的是,在S52中,对于每一拍摄装置,对应一幅在线地图,每一拍摄装置对应的在线地图是根据该拍摄装置在目标区域执行第一运动作业时,在不同时刻拍摄的图像所建立的。It should be noted that in S52, for each photographing device, there is an online map corresponding to each photographing device. The online map corresponding to each photographing device is based on the images captured at different times when the photographing device performs the first movement operation in the target area. established.
S53、根据第一位置信息和第二位置信息,将每一当前时刻的图像与在线地图分别进行重定位,确定在线地图中与每一当前时刻的图像中的第一特征点相匹配的第二特征点;S53. According to the first position information and the second position information, respectively relocate the image at each current moment and the online map, and determine the second feature point in the online map that matches the first feature point in the image at each current moment. Feature points;
S53具体是根据第一位置信息和第二位置信息,将每一当前时刻的图像与在线地图分别进行重定位,确定相应的在线地图中与每一当前时刻的图像中的第一特征点相匹配的第二特征点,该步骤中,拍摄装置、当前时刻的图像以及在线地图一一对应。S53 specifically, according to the first location information and the second location information, respectively relocate the image at each current moment and the online map, and determine that the corresponding online map matches the first feature point in the image at each current moment In this step, there is a one-to-one correspondence between the shooting device, the image at the current moment and the online map.
S54、根据第一位置信息和第三位置信息,将每一当前时刻的图像与离线地图分别进行重定位,确定离线地图中与每一当前时刻的图像中的第一特征点相匹配的第三特征点;S54. According to the first position information and the third position information, respectively relocate the image at each current moment and the offline map, and determine the third feature point in the offline map that matches the first feature point in the image at each current moment. Feature points;
需要说明的是,在S54中,对于每一拍摄装置,对应一幅在离线地图,每一拍摄装置对应的离线地图是根据该拍摄装置在目标区域执行历史运动作业时,在不同时刻拍摄的图像所建立的。It should be noted that in S54, for each photographing device, there is an offline map corresponding to each photographing device. The offline map corresponding to each photographing device is based on the images captured at different times when the photographing device performs historical motion operations in the target area. established.
S53具体是根据第一位置信息和第三位置信息,将每一当前时刻的图像与离线地图分别进行重定位,确定相应的离线地图中与每一当前时刻的图像中的第一特征点相匹配的第三特征点,该步骤中,拍摄装置、当前时刻的图像以及离线地图一一对应。S53 specifically, according to the first location information and the third location information, respectively relocate the image at each current moment and the offline map, and determine that the corresponding offline map matches the first feature point in the image at each current moment In this step, there is a one-to-one correspondence between the shooting device, the image at the current moment and the offline map.
S55、根据在线地图中与每一当前时刻的图像中的第一特征点相匹配的第二特征点的第二位置信息及离线地图中与每一当前时刻的图像中的第一特征点相匹配的第三特征点的第三位置信息,对可移动平台进行定位,获得可移动平台的第一定位结果。S55, according to the second position information of the second feature point matching the first feature point in the image at each current moment in the online map and the matching with the first feature point in the image at each current moment in the offline map The third position information of the third feature point is used to locate the movable platform, and obtain the first positioning result of the movable platform.
在实现S55时,可采用不同的多拍摄装置融合定位方式,例如,在一些实施例 中,根据在线地图中与每一当前时刻的图像中的第一特征点相匹配的第二特征点的第二位置信息及离线地图中与每一当前时刻的图像中的第一特征点相匹配的第三特征点的第三位置信息,确定每一拍摄装置分别对应的可移动平台的第四定位结果;对多个拍摄装置分别对应的可移动平台的第四定位结果进行融合,获得可移动平台的第一定位结果。即对多拍摄装置中的每一拍摄装置,分别进行重定位,再将多个拍摄装置重定位的结果进行融合,获得可移动平台的第一定位结果。When implementing S55, different multi-photographing device fusion positioning methods can be used. For example, in some embodiments, according to the first feature point of the second feature point in the online map that matches the first feature point in the image at each current moment 2. Position information and the third position information of the third feature point in the offline map that matches the first feature point in the image at each current moment, to determine the fourth positioning result of the movable platform corresponding to each shooting device; The fourth positioning results of the movable platform respectively corresponding to the plurality of photographing devices are fused to obtain the first positioning result of the movable platform. That is, repositioning is performed on each of the multiple photographing devices, and then the repositioning results of the multiple photographing devices are fused to obtain the first positioning result of the movable platform.
其中,第四定位结果用于指示可移动平台的位姿。Wherein, the fourth positioning result is used to indicate the pose of the movable platform.
可以采用ransac pnp算法对每一拍摄装置的在线地图中与该拍摄装置拍摄的当前时刻的图像中的第一特征点相匹配的第二特征点的第二位置信息及该拍摄装置的离线地图中与该拍摄装置拍摄的当前时刻的图像中的第一特征点相匹配的第三特征点的第三位置信息,确定该拍摄装置对应的可移动平台的第四定位结果;当然,ransac pnp算法也可替换成其他重定位算法。The ransac pnp algorithm can be used to analyze the second position information of the second feature point in the online map of each shooting device that matches the first feature point in the image of the current moment captured by the shooting device and the offline map of the shooting device The third position information of the third feature point matched with the first feature point in the image captured by the camera at the current moment determines the fourth positioning result of the movable platform corresponding to the camera; of course, the ransac pnp algorithm also Can be replaced by other relocation algorithms.
在对多个拍摄装置分别对应的可移动平台的第四定位结果进行融合,获得可移动平台的第一定位结果时,具体地,根据预设的多个拍摄装置分别对应的第三权重,对多个拍摄装置分别对应的可移动平台的第四定位结果进行加权平均,获得可移动平台的第一定位结果。When fusing the fourth positioning results of the movable platform corresponding to the plurality of photographing devices to obtain the first positioning result of the movable platform, specifically, according to the preset third weights respectively corresponding to the plurality of photographing devices, the The fourth positioning results of the movable platform respectively corresponding to the plurality of photographing devices are weighted and averaged to obtain the first positioning result of the movable platform.
其中,多个拍摄装置分别对应的第三权重可根据各拍摄装置的重定位误差确定,例如,对于某个拍摄装置,重定位误差越大,该拍摄装置对应的第三权重越小;重定位误差越小,该拍摄装置的第三权重越大。重定位误差可根据特征点匹配的数量和/或重投影的像素距离确定,如上述实施例中相应部分的描述,不再赘述。Wherein, the third weights corresponding to the plurality of photographing devices can be determined according to the relocation error of each photographing device. For example, for a certain photographing device, the greater the relocation error, the smaller the third weight corresponding to the photographing device; The smaller the error, the larger the third weight of the shooting device. The relocation error can be determined according to the number of matching feature points and/or the reprojected pixel distance, as described in the corresponding part of the above embodiment, and will not be repeated here.
在另一实施例中,实现S55的多拍摄装置融合定位方式的过程可包括:根据在线地图中与每一当前时刻的图像中的第一特征点相匹配的第二特征点的第二位置信息及离线地图中与每一当前时刻的图像中的第一特征点相匹配的第三特征点的第三位置信息,形成第二数据组;采用ransac pnp算法或者bundle adjustment算法对第二数据组的位置信息进行处理,获得可移动平台的第一定位结果。该融合方式使用了特征层面的融合进行多方向融合的重定位,而不是简单地每个方向计算出一个重定位结果后再进行融合的方法,本申请实施例的多方向融合的重定位方式能够大大提高可移动平台定位的成功率和定位精度。In another embodiment, the process of implementing the multi-camera fusion positioning method of S55 may include: according to the second position information of the second feature point in the online map that matches the first feature point in the image at each current moment And the third position information of the third feature point in the offline map matched with the first feature point in the image at each current moment to form the second data set; use ransac pnp algorithm or bundle adjustment algorithm to the second data set The location information is processed to obtain the first positioning result of the movable platform. This fusion method uses feature-level fusion for multi-directional fusion relocation, rather than simply calculating a relocation result for each direction and then performing fusion. The multi-directional fusion relocation method of the embodiment of the present application can Greatly improve the success rate and positioning accuracy of the movable platform positioning.
示例性地,参见图6,可移动平台的设置第一传感器10和第二传感器20,第一传感器10和第二传感器20朝向可移动平台的机身的不同方位。For example, referring to FIG. 6 , the movable platform is provided with a first sensor 10 and a second sensor 20 , and the first sensor 10 and the second sensor 20 face different orientations of the fuselage of the movable platform.
本申请实施例还提供一种定位方法,该方法可包括:The embodiment of the present application also provides a positioning method, which may include:
(1)、控制可移动平台在目标区域首次运动作业以获取目标区域的离线地图,并获取首次作业的运动轨迹;(1), control the first movement operation of the movable platform in the target area to obtain the offline map of the target area, and obtain the movement track of the first operation;
(2)、遮挡第一传感器10或者第二传感器20,控制可移动平台在目标区域执行二次运动作业,控制未被遮挡的传感器采集目标区域的图像,基于图像和离线地图定位,获取二次作业的运动轨迹;(2), block the first sensor 10 or the second sensor 20, control the movable platform to perform the secondary motion operation in the target area, control the unblocked sensor to collect the image of the target area, and obtain the secondary motion based on the image and offline map positioning The trajectory of the job;
步骤(2)中可移动平台的重定位很不准确。The relocation of the movable platform in step (2) is very inaccurate.
(3)、控制可移动平台在目标区域执行三次运动作业,控制第一传感器10或者第二传感器20采集目标区域的图像,基于图像和离线地图定位,获取三次作业的运动轨迹;(3), control the movable platform to perform three motion operations in the target area, control the first sensor 10 or the second sensor 20 to collect images of the target area, and obtain the motion trajectory of the three operations based on the image and offline map positioning;
步骤(3)中可移动平台的重定位相对步骤(2)中可移动平台的重定位更准确。The relocation of the movable platform in step (3) is more accurate than the relocation of the movable platform in step (2).
二次作业的运动轨迹与首次作业的运动轨迹的轨迹偏差大于三次作业的运动轨迹与首次作业的运动轨迹的偏差,这说明该可移动平台使用了上述实施例中的多拍摄装置融合重定位方法。The trajectory deviation between the trajectory of the secondary operation and the trajectory of the first operation is greater than the deviation between the trajectory of the three operations and the trajectory of the first operation, which shows that the mobile platform uses the multi-camera device fusion relocation method in the above embodiment .
假设无人机使用下视拍摄装置和前视拍摄装置进行融合定位,在没有外部定位源(如GPS/TK等)条件下,构造前视和下视都比较差的环境。遮住某个拍摄装置,无人机无法通过另外单独一个方向的拍摄装置进行重定位,无法完成精准轨迹复演。只要下视拍摄装置和前视拍摄装置都不遮挡的情况下,才能进行重定位,这就能说明该无人机使用了上述实施例中的多拍摄装置融合重定位方法。Assuming that the UAV uses the downward-looking shooting device and the forward-looking shooting device for fusion positioning, and without an external positioning source (such as GPS/TK, etc.), an environment with poor forward-looking and downward-looking is constructed. Covering a certain shooting device, the UAV cannot be repositioned through another shooting device in a single direction, and cannot complete accurate trajectory replay. As long as the downward-looking camera device and the front-view camera device are not blocked, relocation can be performed, which shows that the UAV uses the multi-camera device fusion relocation method in the above-mentioned embodiment.
对应于上述实施例的可移动平台的定位方法,本申请实施例还提供一种可移动平台的定位装置。请参见图7,本申请实施例的可移动平台的定位装置可以包括存储装置和一个或多个处理器。Corresponding to the positioning method of the movable platform in the foregoing embodiments, an embodiment of the present application further provides a positioning device of the movable platform. Referring to FIG. 7 , the device for positioning a mobile platform according to the embodiment of the present application may include a storage device and one or more processors.
其中,存储装置,用于存储程序指令。所述存储装置存储所述可移动平台的定位方法的可执行指令计算机程序,所述存储装置可以包括至少一种类型的存储介质,存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等等。而且,所述可移动平台的定位装置可以与通过网络连接执行存储器的存储功能的网络存储装置协作。存储器可以是可移动平台的定位装置的内部存储单元,例如可移动平台的定位装置的硬盘或内存。存储器也可以是可移动平台的定位装置的外部存储设备,例如可移动平台的定位装置上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步的,存储器还可以既包括可移动平台的定位装置的内部存储单元也包括外部存储设备。存储器用于存储计算机程序以及设备所需的其他程序和数据。存储器还可以用于暂时地存储已经输出或者将要输出的数据。Wherein, the storage device is used for storing program instructions. The storage device stores an executable instruction computer program of the positioning method of the movable platform, and the storage device may include at least one type of storage medium, and the storage medium includes a flash memory, a hard disk, a multimedia card, a card-type memory (for example, SD or DX memory, etc.), Random Access Memory (RAM), Static Random Access Memory (SRAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Programmable Read Only Memory (PROM ), magnetic storage, magnetic disks, optical disks, etc. Furthermore, the positioning means of the movable platform may cooperate with network storage means performing the storage function of the memory through a network connection. The memory may be an internal storage unit of the positioning device of the movable platform, such as a hard disk or a memory of the positioning device of the movable platform. Memory also can be the external storage device of the positioning device of movable platform, for example the plug-in type hard disk equipped on the positioning device of movable platform, smart memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card , Flash Card (Flash Card) and so on. Further, the storage may also include both an internal storage unit of the positioning device of the movable platform and an external storage device. Memory is used to store computer programs and other programs and data needed by the device. The memory can also be used to temporarily store data that has been output or will be output.
一个或多个处理器,调用存储装置中存储的程序指令,当程序指令被执行时,一个或多个处理器单独地或共同地被配置成用于实施上述实施例中的定位方法。One or more processors call the program instructions stored in the storage device, and when the program instructions are executed, the one or more processors are individually or jointly configured to implement the positioning method in the above embodiments.
本实施例的处理器可以实现如本申请图1或图2或图3或图5所示实施例的定位方法,可参见上述实施例的定位方法对本实施例的定位装置进行说明。The processor of this embodiment can implement the positioning method of the embodiment shown in FIG. 1 or FIG. 2 or FIG. 3 or FIG. 5 of this application. The positioning device of this embodiment can be described with reference to the positioning method of the above embodiment.
所述处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor can be a central processing unit (Central Processing Unit, CPU), and can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), on-site Programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
本申请实施例提供一种可移动平台,该可移动平台可包括机身和上述实施例中的定位装置,定位装置设于机身上。An embodiment of the present application provides a movable platform. The movable platform may include a fuselage and the positioning device in the above embodiment, and the positioning device is arranged on the fuselage.
本申请实施例的可移动平台可以包括无人飞行器(如无人机)、机器人、农机等。The mobile platform in this embodiment of the present application may include unmanned aerial vehicles (such as drones), robots, agricultural machinery, and the like.
此外,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现第一方面所述的方法。In addition, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method described in the first aspect is implemented.
所述计算机可读存储介质可以是前述任一实施例所述的可移动平台的内部存储单元,例如硬盘或内存。所述计算机可读存储介质也可以是可移动平台的外部存储设备,例如所述设备上配备的插接式硬盘、智能存储卡(Smart Media Card,SMC)、SD卡、闪存卡(Flash Card)等。进一步的,所述计算机可读存储介质还可以既包括可移动平台的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序以及所述可移动平台所需的其他程序和数据,还可以用于暂时地存储已经输出或者将要输出的数据。The computer-readable storage medium may be an internal storage unit of the removable platform described in any of the foregoing embodiments, such as a hard disk or a memory. The computer-readable storage medium can also be an external storage device of a removable platform, such as a plug-in hard disk equipped on the device, a smart memory card (Smart Media Card, SMC), an SD card, a flash memory card (Flash Card) wait. Further, the computer-readable storage medium may also include both an internal storage unit of the removable platform and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the removable platform, and can also be used to temporarily store outputted or to-be-exported data.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM), etc.
以上所揭露的仅为本申请部分实施例而已,当然不能以此来限定本申请之权利范围,因此依本申请权利要求所作的等同变化,仍属本申请所涵盖的范围。The above disclosures are only part of the embodiments of the present application, and certainly cannot be used to limit the scope of the present application. Therefore, equivalent changes made according to the claims of the present application still fall within the scope of the present application.

Claims (42)

  1. 一种可移动平台的定位方法,其特征在于,包括:A positioning method for a movable platform, characterized in that it comprises:
    当可移动平台在目标区域执行第一运动作业时,获取所述可移动平台上的拍摄装置拍摄的图像;When the movable platform executes the first motion operation in the target area, acquiring an image captured by the photographing device on the movable platform;
    根据所述拍摄装置在不同时刻拍摄的图像,建立所述目标区域的在线地图;Establishing an online map of the target area according to the images captured by the photographing device at different times;
    获取所述可移动平台在所述目标区域执行历史运动作业时所建立的所述目标区域的离线地图,所述历史运动作业为所述第一运动作业之前的作业;Acquiring an offline map of the target area established when the movable platform executes a historical motion operation in the target area, the historical motion operation is an operation before the first motion operation;
    根据所述拍摄装置在当前时刻拍摄的图像、所述在线地图及所述离线地图,对所述可移动平台进行定位,获得所述可移动平台的第一定位结果。The movable platform is positioned according to the image captured by the photographing device at the current moment, the online map and the offline map, and a first positioning result of the movable platform is obtained.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述拍摄装置在当前时刻拍摄的图像、所述在线地图及所述离线地图,对所述可移动平台进行定位,获得所述可移动平台的第一定位结果,包括:The method according to claim 1, wherein the movable platform is positioned according to the image captured by the photographing device at the current moment, the online map and the offline map, and the movable platform is obtained. The top positioning results for mobile platforms, including:
    获取所述当前时刻的图像的第一特征点的第一位置信息、所述在线地图的第二特征点的第二位置信息及所述离线地图的第三特征点的第三位置信息;Acquiring the first position information of the first feature point of the image at the current moment, the second position information of the second feature point of the online map, and the third position information of the third feature point of the offline map;
    根据所述第一位置信息和所述第二位置信息,将所述当前时刻的图像与所述在线地图进行重定位,确定所述在线地图中与所述第一特征点相匹配的第二特征点;According to the first location information and the second location information, relocate the image at the current moment with the online map, and determine a second feature in the online map that matches the first feature point point;
    根据所述第一位置信息和所述第三位置信息,将所述当前时刻的图像与所述离线地图进行重定位,确定所述离线地图中与所述第一特征点相匹配的第三特征点;According to the first location information and the third location information, relocate the image at the current moment with the offline map, and determine a third feature matching the first feature point in the offline map point;
    根据所述在线地图中与所述第一特征点相匹配的第二特征点的第二位置信息,和,所述离线地图中与所述第一特征点相匹配的第三特征点的第三位置信息,对所述可移动平台进行定位,获得所述可移动平台的第一定位结果。According to the second position information of the second feature point matching the first feature point in the online map, and the third feature point matching the first feature point in the offline map Position information, positioning the movable platform, and obtaining a first positioning result of the movable platform.
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述在线地图中与所述第一特征点相匹配的第二特征点的第二位置信息,和,所述离线地图中与所述第一特征点相匹配的第三特征点的第三位置信息,对所述可移动平台进行定位,获得所述可移动平台的第一定位结果,包括:The method according to claim 2, characterized in that, according to the second position information of the second feature point in the online map that matches the first feature point, and, in the offline map that matches the first feature point, The third position information of the third feature point matching the first feature point is used to locate the movable platform and obtain the first positioning result of the movable platform, including:
    根据所述在线地图中与所述第一特征点相匹配的第二特征点的第二位置信息,确定所述可移动平台的第二定位结果;determining a second positioning result of the movable platform according to second position information of a second feature point matching the first feature point in the online map;
    根据所述离线地图中与所述第一特征点相匹配的第三特征点的第三位置信息,确定所述可移动平台的第三定位结果;determining a third positioning result of the movable platform according to third position information of a third feature point matching the first feature point in the offline map;
    对所述第二定位结果和所述第三定位结果进行融合,确定所述可移动平台的第一定位结果。The second positioning result and the third positioning result are fused to determine the first positioning result of the movable platform.
  4. 根据权利要求3所述的方法,其特征在于,所述对所述第二定位结果和所述第三定位结果进行融合,确定所述可移动平台的第一定位结果之前,还包括:The method according to claim 3, characterized in that before the fusing of the second positioning result and the third positioning result, before determining the first positioning result of the movable platform, further comprising:
    确定所述在线图像的第一权重和所述离线图像的第二权重;determining a first weight for the online image and a second weight for the offline image;
    所述对所述第二定位结果和所述第三定位结果进行融合,确定所述可移动平台的第一定位结果,包括:The fusing the second positioning result and the third positioning result to determine the first positioning result of the movable platform includes:
    根据所述第一权重和所述第二权重,对所述第二定位结果和所述第三定位结果进行融合,确定所述可移动平台的第一定位结果。According to the first weight and the second weight, the second positioning result and the third positioning result are fused to determine a first positioning result of the movable platform.
  5. 根据权利要求4所述的方法,其特征在于,所述确定所述在线图像的第一权重和所述离线图像的第二权重,包括:The method according to claim 4, wherein said determining the first weight of the online image and the second weight of the offline image comprises:
    根据所述在线地图中与所述第一特征点相匹配的第二特征点的第一数量,确定所述第一权重;determining the first weight according to a first number of second feature points matching the first feature point in the online map;
    根据所述离线地图中与所述第一特征点相匹配的第三特征点的第二数量确定所述第二权重。The second weight is determined according to a second number of third feature points matching the first feature point in the offline map.
  6. 根据权利要求5所述的方法,其特征在于,所述第一权重与所述第一数量正相关,所述第二权重与所述第二数量正相关。The method according to claim 5, wherein the first weight is positively correlated with the first quantity, and the second weight is positively correlated with the second quantity.
  7. 根据权利要求4所述的方法,其特征在于,所述确定所述在线图像的第一权重和所述离线图像的第二权重,包括:The method according to claim 4, wherein said determining the first weight of the online image and the second weight of the offline image comprises:
    将所述在线地图中与所述第一特征点相匹配的第二特征点重投影至所述当前时刻的图像上,获得第四特征点;Reprojecting the second feature point matching the first feature point in the online map onto the image at the current moment to obtain a fourth feature point;
    确定所述第四特征点与所述当前时刻的图像上的相应第一特征点的第一像素距离;determining a first pixel distance between the fourth feature point and the corresponding first feature point on the image at the current moment;
    根据所述第一像素距离,确定所述第一权重;determining the first weight according to the first pixel distance;
    将所述离线地图中与所述第一特征点相匹配的第三特征点重投影至所述当前时刻的图像上,获得第五特征点;Reprojecting a third feature point matching the first feature point in the offline map onto the image at the current moment to obtain a fifth feature point;
    确定所述第五特征点与所述当前时刻的图像上的相应第一特征点的第二像素距离;determining a second pixel distance between the fifth feature point and the corresponding first feature point on the image at the current moment;
    根据所述第二像素距离,确定所述第二权重。Determine the second weight according to the second pixel distance.
  8. 根据权利要求7所述的方法,其特征在于,所述第一权重与所述第一像素距离负相关,所述第二权重与所述第二像素距离负相关。The method according to claim 7, wherein the first weight is negatively correlated with the first pixel distance, and the second weight is negatively correlated with the second pixel distance.
  9. 根据权利要求3所述的方法,其特征在于,所述根据所述在线地图中与所述第一特征点相匹配的第二特征点的第二位置信息,确定所述可移动平台的第二定位结果,包括:采用ransac pnp算法对所述在线地图中与所述第一特征点相匹配的第二特征点的第二位置信息进行处理,获得所述可移动平台的第二定位结果;和/或,The method according to claim 3, wherein the second position information of the movable platform is determined according to the second position information of the second feature point matching the first feature point in the online map. The positioning result includes: using the ransac pnp algorithm to process the second position information of the second feature point matching the first feature point in the online map to obtain a second positioning result of the movable platform; and /or,
    所述根据所述离线地图中与所述第一特征点相匹配的第三特征点的第三位置信息,确定所述可移动平台的第三定位结果,包括:采用ransac pnp算法对所述离线地图中与所述第一特征点相匹配的第三特征点的第三位置信息,获得所述可移动平台的第三定位结果。The determining the third positioning result of the movable platform according to the third position information of the third feature point matched with the first feature point in the offline map includes: using ransac pnp algorithm for the offline The third position information of the third feature point in the map that matches the first feature point is used to obtain a third positioning result of the movable platform.
  10. 根据权利要求2所述的方法,其特征在于,所述根据所述在线地图中与所述第一特征点相匹配的第二特征点的第二位置信息及所述离线地图中与所述第一特征点相匹配的第三特征点的第三位置信息,对所述可移动平台进行定位,获得所述可移动平台的第一定位结果,包括:The method according to claim 2, characterized in that, according to the second position information of the second feature point matching the first feature point in the online map and the second feature point matching the first feature point in the offline map The third position information of the third feature point matched with one feature point is used to locate the movable platform and obtain the first positioning result of the movable platform, including:
    根据所述在线地图中与所述第一特征点相匹配的第二特征点的第二位置信息及所述离线地图中与所述第一特征点相匹配的第三特征点的第三位置信息,形成第一数据组;According to the second position information of the second feature point matching the first feature point in the online map and the third position information of the third feature point matching the first feature point in the offline map , forming the first data group;
    采用ransac pnp算法对对所述第一数据组中的位置信息进行处理,获得所述可移动平台的第一定位结果。The position information in the first data group is processed by using the ransac pnp algorithm to obtain a first positioning result of the movable platform.
  11. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    获取所述当前时刻的图像的第一特征点的第一位置信息及所述离线地图的第三特征点的第三位置信息;Acquiring the first position information of the first feature point of the image at the current moment and the third position information of the third feature point of the offline map;
    根据所述第一位置信息和所述第三位置信息,将所述当前时刻的图像与所述离线地图进行重定位,确定所述离线地图中与所述第一特征点相匹配的第三特征点;According to the first location information and the third location information, relocate the image at the current moment with the offline map, and determine a third feature matching the first feature point in the offline map point;
    将所述离线地图中与所述第一特征点相匹配的第三特征点重投影至所述当前时刻的图像上,获得第五特征点;Reprojecting a third feature point matching the first feature point in the offline map onto the image at the current moment to obtain a fifth feature point;
    根据所述第五特征点的特征表达,对所述离线地图中相应第三特征点的特征表达进行更新。The feature expression corresponding to the third feature point in the offline map is updated according to the feature expression of the fifth feature point.
  12. 根据权利要求11所述的方法,其特征在于,所述根据所述第五特征点的特征表达,对所述离线地图中相应的第三特征点的特征表达进行更新,包括:The method according to claim 11, wherein, according to the feature expression of the fifth feature point, updating the feature expression of the corresponding third feature point in the offline map includes:
    当所述第五特征点的特征表达与所述离线地图的相应第三特征点的特征表达不一致时,在所述离线地图中相应的第三特征点的特征表达中增加所述第五特征点的特征表达。When the feature expression of the fifth feature point is inconsistent with the feature expression of the corresponding third feature point in the offline map, adding the fifth feature point to the feature expression of the corresponding third feature point in the offline map characteristic expression.
  13. 根据权利要求12所述的方法,其特征在于,所述特征表达通过向量表征,所述第五特征点的特征表达与所述离线地图的相应第三特征点的特征表达不一致包括:所述第五特征点的特征表达与所述离线地图的相应第三特征点的特征表达的差值大于预设阈值。The method according to claim 12, wherein the feature expression is represented by a vector, and the feature expression of the fifth feature point is inconsistent with the feature expression of the corresponding third feature point of the offline map comprising: the first The difference between the feature expression of the five feature points and the feature expression of the corresponding third feature point of the offline map is greater than a preset threshold.
  14. 根据权利要求12所述的方法,其特征在于,所述离线地图中的第三特征点的每一特征表达均为最近一次匹配到的所述相应的第五特征点的相应的特征表达。The method according to claim 12, wherein each feature expression of the third feature point in the offline map is a corresponding feature expression of the corresponding fifth feature point matched last time.
  15. 根据权利要求11所述的方法,其特征在于,所述特征表达包括颜色和/或纹理。The method of claim 11, wherein the characteristic expression comprises color and/or texture.
  16. 根据权利要求11所述的方法,其特征在于,所述根据所述第五特征点的特征表达,对所述离线地图中相应第三特征点的特征表达进行更新,包括:The method according to claim 11, wherein the updating of the feature expression of the corresponding third feature point in the offline map according to the feature expression of the fifth feature point includes:
    将所述第五特征点的特征表达与所述离线地图中相应第三特征点的特征表达进行匹配;matching the feature expression of the fifth feature point with the feature expression of the corresponding third feature point in the offline map;
    当所述离线地图中的第三特征点的特征表达未匹配到相应的第五特征点的特征表达的时长大于或等于预设时长时,删除相应的特征表达。When the feature expression of the third feature point in the offline map does not match the feature expression of the corresponding fifth feature point for a duration greater than or equal to a preset duration, the corresponding feature expression is deleted.
  17. 根据权利要求1所述的方法,其特征在于,所述可移动平台包括多个拍摄装置,多个拍摄装置朝向所述可移动平台的不同方向,用于获取所述可移动平台的不同方向上的环境的图像;The method according to claim 1, wherein the movable platform includes a plurality of photographing devices, and the plurality of photographing devices are oriented in different directions of the movable platform, and are used to capture images in different directions of the movable platform. images of the environment;
    所述根据所述拍摄装置在当前时刻拍摄的图像、所述在线地图及所述离线地图,对所述可移动平台进行定位,获得所述可移动平台的第一定位结果,包括:The positioning of the movable platform according to the image captured by the shooting device at the current moment, the online map and the offline map, and obtaining the first positioning result of the movable platform includes:
    获取每一拍摄装置分别在当前时刻的图像的第一特征点的第一位置信息;Acquiring the first position information of the first feature point of the image of each shooting device at the current moment;
    获取所述在线地图的第二特征点的第二位置信息及所述离线地图的第三特征点的第三位置信息;Acquiring second position information of a second feature point of the online map and third position information of a third feature point of the offline map;
    根据所述第一位置信息和所述第二位置信息,将每一当前时刻的图像与所述在线地图分别进行重定位,确定所述在线地图中与每一当前时刻的图像中的第一特征点相匹配的第二特征点;According to the first location information and the second location information, relocate the image at each current moment and the online map respectively, and determine the first feature in the online map and the image at each current moment point matching the second feature point;
    根据所述第一位置信息和所述第三位置信息,将每一当前时刻的图像与所述离线地图分别进行重定位,确定所述离线地图中与每一当前时刻的图像中的第一特征点相匹配的第三特征点;According to the first location information and the third location information, relocate the image at each current moment and the offline map respectively, and determine the first feature in the offline map and the image at each current moment point matching the third feature point;
    根据所述在线地图中与每一当前时刻的图像中的第一特征点相匹配的第二特征点的第二位置信息及所述离线地图中与每一当前时刻的图像中的第一特征点相匹配的第三特征点的第三位置信息,对所述可移动平台进行定位,获得所述可移动平台的第一定位结果。According to the second position information of the second feature point matching the first feature point in the image at each current moment in the online map and the first feature point in the image at each current moment in the offline map The third location information of the matched third feature point is used to locate the movable platform, and obtain a first positioning result of the movable platform.
  18. 根据权利要求17所述的方法,其特征在于,所述根据所述在线地图中与每一当前时刻的图像中的第一特征点相匹配的第二特征点的第二位置信息及所述离线地图中与每一当前时刻的图像中的第一特征点相匹配的第三特征点的第三位置信息,对所述可移动平台进行定位,获得所述可移动平台的第一定位结果,包括:The method according to claim 17, characterized in that, according to the second position information of the second feature point in the online map that matches the first feature point in the image at each current moment and the offline The third position information of the third feature point in the map that matches the first feature point in the image at each current moment is used to locate the movable platform and obtain the first positioning result of the movable platform, including :
    根据所述在线地图中与每一当前时刻的图像中的第一特征点相匹配的第二特征点的第二位置信息及所述离线地图中与每一当前时刻的图像中的第一特征点相匹配的第三特征点的第三位置信息,确定每一拍摄装置分别对应的所述可移动平台的第四定位结果;According to the second position information of the second feature point matching the first feature point in the image at each current moment in the online map and the first feature point in the image at each current moment in the offline map Matching the third position information of the third feature point to determine the fourth positioning result of the movable platform corresponding to each shooting device;
    对多个所述拍摄装置分别对应的所述可移动平台的第四定位结果进行融合,获得所述可移动平台的第一定位结果。The fourth positioning results of the movable platform respectively corresponding to the plurality of photographing devices are fused to obtain the first positioning result of the movable platform.
  19. 根据权利要求18所述的方法,其特征在于,所述对多个所述拍摄装置分别对应的所述可移动平台的第四定位结果进行融合,获得所述可移动平台的第一定位结果,包括:The method according to claim 18, characterized in that merging the fourth positioning results of the movable platform respectively corresponding to a plurality of the photographing devices to obtain the first positioning result of the movable platform, include:
    根据预设的多个所述拍摄装置分别对应的第三权重,对多个所述拍摄装置分别对应的所述可移动平台的第四定位结果进行加权平均,获得所述可移动平台的第一定位结果。According to the preset third weights respectively corresponding to the multiple shooting devices, the weighted average is performed on the fourth positioning results of the movable platform respectively corresponding to the multiple shooting devices to obtain the first position of the movable platform. positioning results.
  20. 根据权利要求17所述的方法,其特征在于,所述根据所述在线地图中与每一当前时刻的图像中的第一特征点相匹配的第二特征点的第二位置信息及所述离线地图中与每一当前时刻的图像中的第一特征点相匹配的第三特征点的第三位置信息,对所述可移动平台进行定位,获得所述可移动平台的第一定位结果,包括:The method according to claim 17, characterized in that, according to the second position information of the second feature point in the online map that matches the first feature point in the image at each current moment and the offline The third position information of the third feature point in the map that matches the first feature point in the image at each current moment is used to locate the movable platform and obtain the first positioning result of the movable platform, including :
    根据所述在线地图中与每一当前时刻的图像中的第一特征点相匹配的第二特征点 的第二位置信息及所述离线地图中与每一当前时刻的图像中的第一特征点相匹配的第三特征点的第三位置信息,形成第二数据组;According to the second position information of the second feature point matching the first feature point in the image at each current moment in the online map and the first feature point in the image at each current moment in the offline map matching third position information of the third feature point to form a second data set;
    采用ransac pnp算法或者bundle adjustment算法对所述第二数据组的位置信息进行处理,获得所述可移动平台的第一定位结果。The position information of the second data group is processed by using a ransac pnp algorithm or a bundle adjustment algorithm to obtain a first positioning result of the movable platform.
  21. 一种可移动平台的定位装置,其特征在于,所述装置包括:A positioning device for a movable platform, characterized in that the device comprises:
    存储装置,用于存储程序指令;以及a storage device for storing program instructions; and
    一个或多个处理器,调用所述存储装置中存储的程序指令,当所述程序指令被执行时,所述一个或多个处理器单独地或共同地被配置成用于实施:One or more processors that invoke program instructions stored in the memory device, and when the program instructions are executed, the one or more processors are individually or collectively configured to implement:
    当可移动平台在目标区域执行第一运动作业时,获取所述可移动平台上的拍摄装置拍摄的图像;When the movable platform executes the first motion operation in the target area, acquiring an image captured by the photographing device on the movable platform;
    根据所述拍摄装置在不同时刻拍摄的图像,建立所述目标区域的在线地图;Establishing an online map of the target area according to the images captured by the photographing device at different times;
    获取所述可移动平台在所述目标区域执行历史运动作业时所建立的所述目标区域的离线地图,所述历史运动作业为所述第一运动作业之前的作业;Acquiring an offline map of the target area established when the movable platform executes a historical motion operation in the target area, the historical motion operation is an operation before the first motion operation;
    根据所述拍摄装置在当前时刻拍摄的图像、所述在线地图及所述离线地图,对所述可移动平台进行定位,获得所述可移动平台的第一定位结果。The movable platform is positioned according to the image captured by the photographing device at the current moment, the online map and the offline map, and a first positioning result of the movable platform is obtained.
  22. 根据权利要求21所述的装置,其特征在于,所述一个或多个处理器在根据所述拍摄装置在当前时刻拍摄的图像、所述在线地图及所述离线地图,对所述可移动平台进行定位,获得所述可移动平台的第一定位结果时,单独地或共同地被进一步配置成用于实施:The device according to claim 21, wherein the one or more processors perform an operation on the movable platform according to the image captured by the capturing device at the current moment, the online map, and the offline map. When performing positioning and obtaining the first positioning result of the movable platform, it is further configured to implement individually or jointly:
    获取所述当前时刻的图像的第一特征点的第一位置信息、所述在线地图的第二特征点的第二位置信息及所述离线地图的第三特征点的第三位置信息;Acquiring the first position information of the first feature point of the image at the current moment, the second position information of the second feature point of the online map, and the third position information of the third feature point of the offline map;
    根据所述第一位置信息和所述第二位置信息,将所述当前时刻的图像与所述在线地图进行重定位,确定所述在线地图中与所述第一特征点相匹配的第二特征点;According to the first location information and the second location information, relocate the image at the current moment with the online map, and determine a second feature in the online map that matches the first feature point point;
    根据所述第一位置信息和所述第三位置信息,将所述当前时刻的图像与所述离线地图进行重定位,确定所述离线地图中与所述第一特征点相匹配的第三特征点;According to the first location information and the third location information, relocate the image at the current moment with the offline map, and determine a third feature matching the first feature point in the offline map point;
    根据所述在线地图中与所述第一特征点相匹配的第二特征点的第二位置信息,和,所述离线地图中与所述第一特征点相匹配的第三特征点的第三位置信息,对所述可移动平台进行定位,获得所述可移动平台的第一定位结果。According to the second position information of the second feature point matching the first feature point in the online map, and the third feature point matching the first feature point in the offline map Position information, positioning the movable platform, and obtaining a first positioning result of the movable platform.
  23. 根据权利要求22所述的装置,其特征在于,所述一个或多个处理器在根据所述在线地图中与所述第一特征点相匹配的第二特征点的第二位置信息,和,所述离线地图中与所述第一特征点相匹配的第三特征点的第三位置信息,对所述可移动平台进行定位,获得所述可移动平台的第一定位结果时,单独地或共同地被进一步配置成用于实施:The apparatus according to claim 22, wherein said one or more processors are based on second location information of a second feature point matching said first feature point in said online map, and, The third position information of the third feature point matching the first feature point in the offline map is used to locate the movable platform, and when the first positioning result of the movable platform is obtained, separately or collectively are further configured to implement:
    根据所述在线地图中与所述第一特征点相匹配的第二特征点的第二位置信息,确定所述可移动平台的第二定位结果;determining a second positioning result of the movable platform according to second position information of a second feature point matching the first feature point in the online map;
    根据所述离线地图中与所述第一特征点相匹配的第三特征点的第三位置信息,确 定所述可移动平台的第三定位结果;determining a third positioning result of the movable platform according to third position information of a third feature point matching the first feature point in the offline map;
    对所述第二定位结果和所述第三定位结果进行融合,确定所述可移动平台的第一定位结果。The second positioning result and the third positioning result are fused to determine the first positioning result of the movable platform.
  24. 根据权利要求23所述的装置,其特征在于,所述一个或多个处理器在对所述第二定位结果和所述第三定位结果进行融合,确定所述可移动平台的第一定位结果之前,单独地或共同地还被配置成用于实施:The device according to claim 23, wherein the one or more processors fuse the second positioning result and the third positioning result to determine the first positioning result of the movable platform Previously, individually or collectively, it was also configured to implement:
    确定所述在线图像的第一权重和所述离线图像的第二权重;determining a first weight for the online image and a second weight for the offline image;
    所述一个或多个处理器在对所述第二定位结果和所述第三定位结果进行融合,确定所述可移动平台的第一定位结果时,单独地或共同地被进一步配置成用于实施:When the one or more processors fuse the second positioning result and the third positioning result to determine the first positioning result of the movable platform, they are further configured, individually or jointly, for Implementation:
    根据所述第一权重和所述第二权重,对所述第二定位结果和所述第三定位结果进行融合,确定所述可移动平台的第一定位结果。According to the first weight and the second weight, the second positioning result and the third positioning result are fused to determine a first positioning result of the movable platform.
  25. 根据权利要求24所述的装置,其特征在于,所述一个或多个处理器在确定所述在线图像的第一权重和所述离线图像的第二权重时,单独地或共同地被进一步配置成用于实施:The apparatus of claim 24, wherein the one or more processors are further configured individually or collectively when determining the first weight of the online image and the second weight of the offline image into the implementation:
    根据所述在线地图中与所述第一特征点相匹配的第二特征点的第一数量,确定所述第一权重;determining the first weight according to a first number of second feature points matching the first feature point in the online map;
    根据所述离线地图中与所述第一特征点相匹配的第三特征点的第二数量确定所述第二权重。The second weight is determined according to a second number of third feature points matching the first feature point in the offline map.
  26. 根据权利要求25所述的装置,其特征在于,所述第一权重与所述第一数量正相关,所述第二权重与所述第二数量正相关。The apparatus according to claim 25, wherein the first weight is positively correlated with the first quantity, and the second weight is positively correlated with the second quantity.
  27. 根据权利要求24所述的装置,其特征在于,所述一个或多个处理器在确定所述在线图像的第一权重和所述离线图像的第二权重时,单独地或共同地被进一步配置成用于实施:The apparatus of claim 24, wherein the one or more processors are further configured individually or collectively when determining the first weight of the online image and the second weight of the offline image into the implementation:
    将所述在线地图中与所述第一特征点相匹配的第二特征点重投影至所述当前时刻的图像上,获得第四特征点;Reprojecting the second feature point matching the first feature point in the online map onto the image at the current moment to obtain a fourth feature point;
    确定所述第四特征点与所述当前时刻的图像上的相应第一特征点的第一像素距离;determining a first pixel distance between the fourth feature point and the corresponding first feature point on the image at the current moment;
    根据所述第一像素距离,确定所述第一权重;determining the first weight according to the first pixel distance;
    将所述离线地图中与所述第一特征点相匹配的第三特征点重投影至所述当前时刻的图像上,获得第五特征点;Reprojecting a third feature point matching the first feature point in the offline map onto the image at the current moment to obtain a fifth feature point;
    确定所述第五特征点与所述当前时刻的图像上的相应第一特征点的第二像素距离;determining a second pixel distance between the fifth feature point and the corresponding first feature point on the image at the current moment;
    根据所述第二像素距离,确定所述第二权重。Determine the second weight according to the second pixel distance.
  28. 根据权利要求27所述的装置,其特征在于,所述第一权重与所述第一像素距离负相关,所述第二权重与所述第二像素距离负相关。The apparatus according to claim 27, wherein the first weight is negatively correlated with the first pixel distance, and the second weight is negatively correlated with the second pixel distance.
  29. 根据权利要求23所述的装置,其特征在于,所述一个或多个处理器在根据所 述在线地图中与所述第一特征点相匹配的第二特征点的第二位置信息,确定所述可移动平台的第二定位结果时,单独地或共同地被进一步配置成用于实施:采用ransac pnp算法对所述在线地图中与所述第一特征点相匹配的第二特征点的第二位置信息进行处理,获得所述可移动平台的第二定位结果;和/或,The apparatus according to claim 23, wherein said one or more processors determine said first feature point based on second position information of a second feature point matching said first feature point in said online map. When the second positioning result of the movable platform is used, it is further configured individually or jointly for implementation: using the ransac pnp algorithm for the second feature point matching the first feature point in the online map Processing the second position information to obtain a second positioning result of the movable platform; and/or,
    所述一个或多个处理器在根据所述离线地图中与所述第一特征点相匹配的第三特征点的第三位置信息,确定所述可移动平台的第三定位结果时,单独地或共同地被进一步配置成用于实施:采用ransac pnp算法对所述离线地图中与所述第一特征点相匹配的第三特征点的第三位置信息,获得所述可移动平台的第三定位结果。When the one or more processors determine the third positioning result of the movable platform according to the third position information of the third feature point matching the first feature point in the offline map, independently Or jointly be further configured to implement: using the ransac pnp algorithm to obtain the third position information of the third feature point matching the first feature point in the offline map, and obtain the third position of the movable platform positioning results.
  30. 根据权利要求22所述的装置,其特征在于,所述一个或多个处理器在根据所述在线地图中与所述第一特征点相匹配的第二特征点的第二位置信息及所述离线地图中与所述第一特征点相匹配的第三特征点的第三位置信息,对所述可移动平台进行定位,获得所述可移动平台的第一定位结果时,单独地或共同地被进一步配置成用于实施:The device according to claim 22, wherein said one or more processors are based on the second location information of a second feature point matched with said first feature point in said online map and said The third position information of the third feature point matching the first feature point in the offline map is used to locate the movable platform, and when the first positioning result of the movable platform is obtained, individually or jointly is further configured to implement:
    根据所述在线地图中与所述第一特征点相匹配的第二特征点的第二位置信息及所述离线地图中与所述第一特征点相匹配的第三特征点的第三位置信息,形成第一数据组;According to the second position information of the second feature point matching the first feature point in the online map and the third position information of the third feature point matching the first feature point in the offline map , forming the first data group;
    采用ransac pnp算法对对所述第一数据组中的位置信息进行处理,获得所述可移动平台的第一定位结果。The position information in the first data group is processed by using the ransac pnp algorithm to obtain a first positioning result of the movable platform.
  31. 根据权利要求21所述的装置,其特征在于,所述一个或多个处理器单独地或共同地还被配置成用于实施包括:The apparatus according to claim 21, wherein the one or more processors, individually or collectively, are further configured to implement a process comprising:
    获取所述当前时刻的图像的第一特征点的第一位置信息及所述离线地图的第三特征点的第三位置信息;Acquiring the first position information of the first feature point of the image at the current moment and the third position information of the third feature point of the offline map;
    根据所述第一位置信息和所述第三位置信息,将所述当前时刻的图像与所述离线地图进行重定位,确定所述离线地图中与所述第一特征点相匹配的第三特征点;According to the first location information and the third location information, relocate the image at the current moment with the offline map, and determine a third feature matching the first feature point in the offline map point;
    将所述离线地图中与所述第一特征点相匹配的第三特征点重投影至所述当前时刻的图像上,获得第五特征点;Reprojecting a third feature point matching the first feature point in the offline map onto the image at the current moment to obtain a fifth feature point;
    根据所述第五特征点的特征表达,对所述离线地图中相应第三特征点的特征表达进行更新。The feature expression corresponding to the third feature point in the offline map is updated according to the feature expression of the fifth feature point.
  32. 根据权利要求31所述的装置,其特征在于,所述一个或多个处理器在根据所述第五特征点的特征表达,对所述离线地图中相应的第三特征点的特征表达进行更新时,单独地或共同地被进一步配置成用于实施:The device according to claim 31, wherein the one or more processors update the feature expression of the corresponding third feature point in the offline map according to the feature expression of the fifth feature point , are further configured individually or collectively to implement:
    当所述第五特征点的特征表达与所述离线地图的相应第三特征点的特征表达不一致时,在所述离线地图中相应的第三特征点的特征表达中增加所述第五特征点的特征表达。When the feature expression of the fifth feature point is inconsistent with the feature expression of the corresponding third feature point in the offline map, adding the fifth feature point to the feature expression of the corresponding third feature point in the offline map characteristic expression.
  33. 根据权利要求32所述的装置,其特征在于,所述特征表达通过向量表征,所述第五特征点的特征表达与所述离线地图的相应第三特征点的特征表达不一致包括: 所述第五特征点的特征表达与所述离线地图的相应第三特征点的特征表达的差值大于预设阈值。The device according to claim 32, wherein the feature expression is represented by a vector, and the feature expression of the fifth feature point is inconsistent with the feature expression of the corresponding third feature point of the offline map comprising: the first The difference between the feature expression of the five feature points and the feature expression of the corresponding third feature point of the offline map is greater than a preset threshold.
  34. 根据权利要求32所述的装置,其特征在于,所述离线地图中的第三特征点的每一特征表达均为最近一次匹配到的所述相应的第五特征点的相应的特征表达。The device according to claim 32, wherein each feature expression of the third feature point in the offline map is a corresponding feature expression of the corresponding fifth feature point matched last time.
  35. 根据权利要求31所述的装置,其特征在于,所述特征表达包括颜色和/或纹理。The apparatus of claim 31, wherein the characteristic expression comprises color and/or texture.
  36. 根据权利要求31所述的装置,其特征在于,所述一个或多个处理器在根据所述第五特征点的特征表达,对所述离线地图中相应第三特征点的特征表达进行更新时,单独地或共同地被进一步配置成用于实施:The device according to claim 31, wherein when the one or more processors update the feature expression of the corresponding third feature point in the offline map according to the feature expression of the fifth feature point , individually or collectively are further configured to implement:
    将所述第五特征点的特征表达与所述离线地图中相应第三特征点的特征表达进行匹配;matching the feature expression of the fifth feature point with the feature expression of the corresponding third feature point in the offline map;
    当所述离线地图中的第三特征点的特征表达未匹配到相应的第五特征点的特征表达的时长大于或等于预设时长时,删除相应的特征表达。When the feature expression of the third feature point in the offline map does not match the feature expression of the corresponding fifth feature point for a duration greater than or equal to a preset duration, the corresponding feature expression is deleted.
  37. 根据权利要求21所述的装置,其特征在于,所述可移动平台包括多个拍摄装置,多个拍摄装置朝向所述可移动平台的不同方向,用于获取所述可移动平台的不同方向上的环境的图像;The device according to claim 21, wherein the movable platform includes a plurality of photographing devices, and the plurality of photographing devices are directed towards different directions of the movable platform, and are used to capture images in different directions of the movable platform. images of the environment;
    所述一个或多个处理器在根据所述拍摄装置在当前时刻拍摄的图像、所述在线地图及所述离线地图,对所述可移动平台进行定位,获得所述可移动平台的第一定位结果时,单独地或共同地被进一步配置成用于实施:The one or more processors locate the movable platform according to the image captured by the photographing device at the current moment, the online map and the offline map, and obtain the first positioning of the movable platform The results, individually or collectively, are further configured for implementation:
    获取每一拍摄装置分别在当前时刻的图像的第一特征点的第一位置信息;Acquiring the first position information of the first feature point of the image of each shooting device at the current moment;
    获取所述在线地图的第二特征点的第二位置信息及所述离线地图的第三特征点的第三位置信息;Acquiring second position information of a second feature point of the online map and third position information of a third feature point of the offline map;
    根据所述第一位置信息和所述第二位置信息,将每一当前时刻的图像与所述在线地图分别进行重定位,确定所述在线地图中与每一当前时刻的图像中的第一特征点相匹配的第二特征点;According to the first location information and the second location information, relocate the image at each current moment and the online map respectively, and determine the first feature in the online map and the image at each current moment point matching the second feature point;
    根据所述第一位置信息和所述第三位置信息,将每一当前时刻的图像与所述离线地图分别进行重定位,确定所述离线地图中与每一当前时刻的图像中的第一特征点相匹配的第三特征点;According to the first location information and the third location information, relocate the image at each current moment and the offline map respectively, and determine the first feature in the offline map and the image at each current moment point matching the third feature point;
    根据所述在线地图中与每一当前时刻的图像中的第一特征点相匹配的第二特征点的第二位置信息及所述离线地图中与每一当前时刻的图像中的第一特征点相匹配的第三特征点的第三位置信息,对所述可移动平台进行定位,获得所述可移动平台的第一定位结果。According to the second position information of the second feature point matching the first feature point in the image at each current moment in the online map and the first feature point in the image at each current moment in the offline map The third location information of the matched third feature point is used to locate the movable platform, and obtain a first positioning result of the movable platform.
  38. 根据权利要求37所述的装置,其特征在于,所述一个或多个处理器在根据所述在线地图中与每一当前时刻的图像中的第一特征点相匹配的第二特征点的第二位置信息及所述离线地图中与每一当前时刻的图像中的第一特征点相匹配的第三特征点的第三位置信息,对所述可移动平台进行定位,获得所述可移动平台的第一定位结果时, 单独地或共同地被进一步配置成用于实施:The apparatus according to claim 37, wherein the one or more processors are configured according to the second feature point in the online map that matches the first feature point in the image at each current moment. 2. Location information and third location information of a third feature point in the offline map that matches the first feature point in the image at each current moment, positioning the movable platform, and obtaining the movable platform The first positioning results, individually or collectively, are further configured for implementation:
    根据所述在线地图中与每一当前时刻的图像中的第一特征点相匹配的第二特征点的第二位置信息及所述离线地图中与每一当前时刻的图像中的第一特征点相匹配的第三特征点的第三位置信息,确定每一拍摄装置分别对应的所述可移动平台的第四定位结果;According to the second position information of the second feature point in the online map that matches the first feature point in the image at each current moment and the first feature point in the offline map with the image at each current moment Matching the third position information of the third feature point to determine the fourth positioning result of the movable platform corresponding to each shooting device;
    对多个所述拍摄装置分别对应的所述可移动平台的第四定位结果进行融合,获得所述可移动平台的第一定位结果。The fourth positioning results of the movable platform respectively corresponding to the plurality of photographing devices are fused to obtain the first positioning result of the movable platform.
  39. 根据权利要求38所述的装置,其特征在于,所述一个或多个处理器在对多个所述拍摄装置分别对应的所述可移动平台的第四定位结果进行融合,获得所述可移动平台的第一定位结果时,单独地或共同地被进一步配置成用于实施:The device according to claim 38, wherein the one or more processors fuse the fourth positioning results of the movable platforms respectively corresponding to a plurality of the photographing devices to obtain the movable The platform's first positioning results, individually or collectively, are further configured to implement:
    根据预设的多个所述拍摄装置分别对应的第三权重,对多个所述拍摄装置分别对应的所述可移动平台的第四定位结果进行加权平均,获得所述可移动平台的第一定位结果。According to the preset third weights respectively corresponding to the multiple shooting devices, the weighted average is performed on the fourth positioning results of the movable platform respectively corresponding to the multiple shooting devices to obtain the first position of the movable platform. positioning results.
  40. 根据权利要求37所述的装置,其特征在于,所述一个或多个处理器在根据所述在线地图中与每一当前时刻的图像中的第一特征点相匹配的第二特征点的第二位置信息及所述离线地图中与每一当前时刻的图像中的第一特征点相匹配的第三特征点的第三位置信息,对所述可移动平台进行定位,获得所述可移动平台的第一定位结果时,单独地或共同地被进一步配置成用于实施:The apparatus according to claim 37, wherein the one or more processors are configured according to the second feature point in the online map that matches the first feature point in the image at each current moment. 2. Location information and third location information of a third feature point in the offline map that matches the first feature point in the image at each current moment, positioning the movable platform, and obtaining the movable platform The first location results, individually or collectively, are further configured for implementation:
    根据所述在线地图中与每一当前时刻的图像中的第一特征点相匹配的第二特征点的第二位置信息及所述离线地图中与每一当前时刻的图像中的第一特征点相匹配的第三特征点的第三位置信息,形成第二数据组;According to the second position information of the second feature point matching the first feature point in the image at each current moment in the online map and the first feature point in the image at each current moment in the offline map matching third position information of the third feature point to form a second data set;
    采用ransac pnp算法或者bundle adjustment算法对所述第二数据组的位置信息进行处理,获得所述可移动平台的第一定位结果。The position information of the second data group is processed by using a ransac pnp algorithm or a bundle adjustment algorithm to obtain a first positioning result of the movable platform.
  41. 一种可移动平台,其特征在于,包括:A mobile platform, characterized in that it comprises:
    机身;和fuselage; and
    权利要求21至40任一项所述的定位装置,所述定位装置设于所述机身上。The positioning device according to any one of claims 21 to 40, the positioning device is arranged on the fuselage.
  42. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现权利要求1至20任一项所述的方法。A computer-readable storage medium, on which a computer program is stored, wherein, when the program is executed by a processor, the method according to any one of claims 1 to 20 is realized.
PCT/CN2021/127050 2021-10-28 2021-10-28 Movable platform positioning method and apparatus WO2023070441A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2021/127050 WO2023070441A1 (en) 2021-10-28 2021-10-28 Movable platform positioning method and apparatus
CN202180101909.4A CN117940739A (en) 2021-10-28 2021-10-28 Positioning method and device for movable platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/127050 WO2023070441A1 (en) 2021-10-28 2021-10-28 Movable platform positioning method and apparatus

Publications (1)

Publication Number Publication Date
WO2023070441A1 true WO2023070441A1 (en) 2023-05-04

Family

ID=86160356

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/127050 WO2023070441A1 (en) 2021-10-28 2021-10-28 Movable platform positioning method and apparatus

Country Status (2)

Country Link
CN (1) CN117940739A (en)
WO (1) WO2023070441A1 (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170004345A1 (en) * 2015-07-02 2017-01-05 Topcon Corporation Survey data processing device, survey data processing method, and survey data processing program
WO2017020856A1 (en) * 2015-08-05 2017-02-09 普宙飞行器科技(深圳)有限公司 Photographing device and method using drone to automatically track and photograph moving object
CN108021884A (en) * 2017-12-04 2018-05-11 深圳市沃特沃德股份有限公司 The sweeper power-off continuous of view-based access control model reorientation sweeps method, apparatus and sweeper
CN109084732A (en) * 2018-06-29 2018-12-25 北京旷视科技有限公司 Positioning and air navigation aid, device and processing equipment
CN109544615A (en) * 2018-11-23 2019-03-29 深圳市腾讯信息技术有限公司 Method for relocating, device, terminal and storage medium based on image
CN109648568A (en) * 2019-01-30 2019-04-19 北京镁伽机器人科技有限公司 Robot control method, system and storage medium
CN109822568A (en) * 2019-01-30 2019-05-31 北京镁伽机器人科技有限公司 Robot control method, system and storage medium
CN109887087A (en) * 2019-02-22 2019-06-14 广州小鹏汽车科技有限公司 A kind of SLAM of vehicle builds drawing method and system
CN110457414A (en) * 2019-07-30 2019-11-15 Oppo广东移动通信有限公司 Offline map processing, virtual objects display methods, device, medium and equipment
CN111311756A (en) * 2020-02-11 2020-06-19 Oppo广东移动通信有限公司 Augmented reality AR display method and related device
CN111699453A (en) * 2019-07-01 2020-09-22 深圳市大疆创新科技有限公司 Control method, device and equipment of movable platform and storage medium
US20200342626A1 (en) * 2018-06-19 2020-10-29 Tencent Technology (Shenzhen) Company Limited Camera localization method and apparatus, terminal, and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170004345A1 (en) * 2015-07-02 2017-01-05 Topcon Corporation Survey data processing device, survey data processing method, and survey data processing program
WO2017020856A1 (en) * 2015-08-05 2017-02-09 普宙飞行器科技(深圳)有限公司 Photographing device and method using drone to automatically track and photograph moving object
CN108021884A (en) * 2017-12-04 2018-05-11 深圳市沃特沃德股份有限公司 The sweeper power-off continuous of view-based access control model reorientation sweeps method, apparatus and sweeper
US20200342626A1 (en) * 2018-06-19 2020-10-29 Tencent Technology (Shenzhen) Company Limited Camera localization method and apparatus, terminal, and storage medium
CN109084732A (en) * 2018-06-29 2018-12-25 北京旷视科技有限公司 Positioning and air navigation aid, device and processing equipment
CN109544615A (en) * 2018-11-23 2019-03-29 深圳市腾讯信息技术有限公司 Method for relocating, device, terminal and storage medium based on image
CN109648568A (en) * 2019-01-30 2019-04-19 北京镁伽机器人科技有限公司 Robot control method, system and storage medium
CN109822568A (en) * 2019-01-30 2019-05-31 北京镁伽机器人科技有限公司 Robot control method, system and storage medium
CN109887087A (en) * 2019-02-22 2019-06-14 广州小鹏汽车科技有限公司 A kind of SLAM of vehicle builds drawing method and system
CN111699453A (en) * 2019-07-01 2020-09-22 深圳市大疆创新科技有限公司 Control method, device and equipment of movable platform and storage medium
CN110457414A (en) * 2019-07-30 2019-11-15 Oppo广东移动通信有限公司 Offline map processing, virtual objects display methods, device, medium and equipment
CN111311756A (en) * 2020-02-11 2020-06-19 Oppo广东移动通信有限公司 Augmented reality AR display method and related device

Also Published As

Publication number Publication date
CN117940739A (en) 2024-04-26

Similar Documents

Publication Publication Date Title
CN108986161B (en) Three-dimensional space coordinate estimation method, device, terminal and storage medium
US20210141378A1 (en) Imaging method and device, and unmanned aerial vehicle
WO2019119328A1 (en) Vision-based positioning method and aerial vehicle
US9981742B2 (en) Autonomous navigation method and system, and map modeling method and system
CN108955718B (en) Visual odometer and positioning method thereof, robot and storage medium
WO2020164092A1 (en) Image processing method and apparatus, moveable platform, unmanned aerial vehicle and storage medium
CN110176032B (en) Three-dimensional reconstruction method and device
CN111192331B (en) External parameter calibration method and device for laser radar and camera
CN111337947A (en) Instant mapping and positioning method, device, system and storage medium
US20210232845A1 (en) Information processing apparatus, information processing method, and storage medium
KR102347239B1 (en) Method and system for improving depth information of feature points using camera and lidar
CN109213202B (en) Goods placement method, device, equipment and storage medium based on optical servo
WO2021195939A1 (en) Calibrating method for external parameters of binocular photographing device, movable platform and system
WO2022179094A1 (en) Vehicle-mounted lidar external parameter joint calibration method and system, medium and device
CN111612794A (en) Multi-2D vision-based high-precision three-dimensional pose estimation method and system for parts
WO2021016854A1 (en) Calibration method and device, movable platform, and storage medium
JP2019032218A (en) Location information recording method and device
WO2022156447A1 (en) Localization method and apparatus, and computer apparatus and computer-readable storage medium
WO2020237478A1 (en) Flight planning method and related device
CN113052907B (en) Positioning method of mobile robot in dynamic environment
US20210156710A1 (en) Map processing method, device, and computer-readable storage medium
WO2022088613A1 (en) Robot positioning method and apparatus, device and storage medium
CN113034347A (en) Oblique photographic image processing method, device, processing equipment and storage medium
WO2023070441A1 (en) Movable platform positioning method and apparatus
WO2021051220A1 (en) Point cloud fusion method, device, and system, and storage medium

Legal Events

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

Ref document number: 21961807

Country of ref document: EP

Kind code of ref document: A1