WO2022078512A1 - Map establishment method and apparatus, and self-moving device and storage medium - Google Patents

Map establishment method and apparatus, and self-moving device and storage medium Download PDF

Info

Publication number
WO2022078512A1
WO2022078512A1 PCT/CN2021/124196 CN2021124196W WO2022078512A1 WO 2022078512 A1 WO2022078512 A1 WO 2022078512A1 CN 2021124196 W CN2021124196 W CN 2021124196W WO 2022078512 A1 WO2022078512 A1 WO 2022078512A1
Authority
WO
WIPO (PCT)
Prior art keywords
coordinate system
coordinate
map
image
self
Prior art date
Application number
PCT/CN2021/124196
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 北京猎户星空科技有限公司
Publication of WO2022078512A1 publication Critical patent/WO2022078512A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/05Geographic models
    • 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/005Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 with correlation of navigation data from several sources, e.g. map or contour matching
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/88Lidar systems specially adapted for specific applications
    • G01S17/89Lidar systems specially adapted for specific applications for mapping or imaging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Remote Sensing (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Automation & Control Theory (AREA)
  • Electromagnetism (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Graphics (AREA)
  • Navigation (AREA)
  • Instructional Devices (AREA)

Abstract

Provided are a map establishment method and apparatus, and a self-moving device and a storage medium, which relate to the field of automatic navigation. The method comprises: acquiring an image collected by a self-moving device during the moving process, and a device pose of the self-moving device in a map coordinate system during image collection; decoding an encoded portion in a position identifier according to a coordinate system portion in the position identifier in the image, so as to obtain a target code; according to the target code, performing querying to obtain a standard coordinate position of the encoded portion in a standard coordinate system in which the position identifier is located; according to the standard coordinate position and a reference coordinate position, determining a coordinate conversion relationship between the standard coordinate system and a coordinate system of the self-moving device during image collection; and according to the coordinate conversion relationship and the device pose of the self-moving device in the map coordinate system, marking a predicted pose of the position identifier in the map coordinate system. Therefore, the effectiveness of an established map can be ensured, such that the position of a self-moving device can be effectively located, thereby improving the applicability thereof.

Description

建立地图的方法、装置、自移动设备和存储介质Method, device, self-moving device and storage medium for building a map
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本公开要求北京猎户星空科技有限公司于2020年10月16日提交的、发明名称为“建立地图的方法、装置、自移动设备和存储介质”的、中国专利申请号“202011106961.2”的优先权。This disclosure claims the priority of the Chinese patent application number "202011106961.2", filed by Beijing Orion Star Technology Co., Ltd. on October 16, 2020, with the invention titled "Method, Apparatus, Self-Moving Device and Storage Medium for Establishing a Map".
技术领域technical field
本公开涉及自动导航技术领域,尤其涉及一种建立地图的方法、装置、自移动设备和存储介质。The present disclosure relates to the technical field of automatic navigation, and in particular, to a method, an apparatus, a self-moving device and a storage medium for establishing a map.
背景技术Background technique
随着人工智能技术的不断发展,人工智能产品,比如自移动设备不断普及。当控制自移动设备移动时,首先需要对自移动设备进行定位,即识别自移动设备在所处空间内的位置,之后才能对该自移动设备进行导航。With the continuous development of artificial intelligence technology, artificial intelligence products, such as self-mobile devices, continue to be popularized. When controlling the self-mobile device to move, it is necessary to locate the self-mobile device first, that is, to identify the position of the self-mobile device in the space, and then the self-mobile device can be navigated.
相关技术中,采用地图导航方式,确定自移动设备在室内空间中所处的位置。具体地,预先建立地图,通过在自移动设备上搭载激光雷达,在自移动设备移动的过程中,采用激光雷达扫描周围环境,获取激光点云图,根据激光雷达采集的点云图,以及采集该点云图时自移动设备所处的位置建立地图。进而在导航定位时,可将激光雷达实时采集的点云图与预先建立的地图进行匹配的方式,来确定自移动设备在地图中的实时位置,从而实现对自移动设备进行定位。In the related art, a map navigation method is used to determine the position of the self-mobile device in the indoor space. Specifically, a map is pre-established, and the self-mobile device is equipped with a laser radar. During the movement of the self-mobile device, the laser radar is used to scan the surrounding environment to obtain a laser point cloud image, and the point cloud image collected according to the laser radar is collected. The cloud map is created from the location of the mobile device. Furthermore, during navigation and positioning, the real-time position of the self-mobile device in the map can be determined by matching the point cloud image collected by the lidar in real time with the pre-established map, so as to realize the positioning of the self-mobile device.
发明内容SUMMARY OF THE INVENTION
本公开提出一种建立地图的方法、装置、自移动设备和存储介质,以实现根据位置标识来建立地图,即使自移动设备所处空间内的陈设位置发生变化,或者人员移动干扰激光雷达扫描周围环境,建立的地图也不会失效,从而可以有效定位自移动设备的位置,提升该方法的适用性,用于解决相关技术中通过在自移动设备移动的过程中,采用激光雷达扫描周围环境,获取激光点云图,根据激光雷达采集的点云图,以及采集该点云图时自移动设备所处的位置建立地图的方式,存在无法适用于室内环境经常发生变化的场景的技术问题。The present disclosure proposes a method, device, self-moving device and storage medium for establishing a map, so as to realize the establishment of a map according to a location identifier, even if the display position in the space where the self-moving device is located changes, or the movement of personnel interferes with the scanning of the surrounding by the lidar environment, the established map will not fail, so that the position of the self-mobile device can be effectively located, and the applicability of the method can be improved. It is used to solve the problem in the related art by using the lidar to scan the surrounding environment during the movement of the self-mobile device. Obtaining a laser point cloud image, based on the point cloud image collected by lidar, and the method of building a map from the location of the mobile device when collecting the point cloud image has the technical problem that it cannot be applied to scenes where the indoor environment frequently changes.
本公开第一方面实施例提出了一种建立地图的方法,包括:The embodiment of the first aspect of the present disclosure provides a method for establishing a map, including:
获取自移动设备在移动过程中采集的图像,以及采集所述图像时所述自移动设备在地图坐标系中的设备位姿;其中,所述图像中展示有位置标识;Obtaining an image collected from a mobile device during the movement process, and the device pose of the self-mobile device in the map coordinate system when the image is collected; wherein, the image displays a position identifier;
根据所述位置标识中的坐标系部分,对所述位置标识中的编码部分解码得到目标编码;According to the coordinate system part in the position identification, decode the coding part in the position identification to obtain the target code;
根据所述目标编码,查询得到所述编码部分在所述位置标识所在的标准坐标系中的标准坐标位置;According to the target code, query to obtain the standard coordinate position of the code part in the standard coordinate system where the position identifier is located;
根据所述标准坐标位置和参考坐标位置,确定所述标准坐标系与采集所述图像时所述自移动设备的坐标系之间的坐标变换关系;其中,所述参考坐标位置,是所述编码部分在所述坐标系部分确定的候选坐标系中的坐标位置;According to the standard coordinate position and the reference coordinate position, determine the coordinate transformation relationship between the standard coordinate system and the coordinate system of the self-mobile device when the image is captured; wherein, the reference coordinate position is the code the coordinate position of the part in the candidate coordinate system determined by the coordinate system part;
根据所述坐标变换关系,和所述自移动设备在地图坐标系中的设备位姿,在所述地图坐标系中标注所述位置标识的预测位姿。According to the coordinate transformation relationship and the device pose of the self-moving device in the map coordinate system, the predicted pose of the location identifier is marked in the map coordinate system.
在本公开实施例的第一种可能的实现方式中,展示有同一所述位置标识的所述图像为至少两帧,采集各帧图像时所述自移动设备在地图坐标系中具有对应的设备位姿;In a first possible implementation manner of the embodiment of the present disclosure, the images showing the same location identifier are at least two frames, and the self-mobile device has a corresponding device in the map coordinate system when collecting images of each frame pose;
其中,所述根据所述坐标变换关系,和所述自移动设备在地图坐标系中的设备位姿, 在所述地图坐标系中标注所述位置标识的预测位姿,包括:Wherein, according to the coordinate transformation relationship and the device pose of the self-mobile device in the map coordinate system, marking the predicted pose of the location identifier in the map coordinate system includes:
根据所述标准坐标系与采集各帧所述图像时所述自移动设备的坐标系之间的坐标变换关系,以及根据采集各帧图像时所述自移动设备在地图坐标系中的设备位姿,在所述地图坐标系中确定各帧所述图像对应的所述位置标识的观测位姿;According to the coordinate transformation relationship between the standard coordinate system and the coordinate system of the self-mobile device when each frame of the image is collected, and according to the device pose of the self-mobile device in the map coordinate system when each frame of image is collected , in the map coordinate system, determine the observation pose of the position marker corresponding to each frame of the image;
融合各帧所述图像对应的观测位姿,得到所述预测位姿;Fusing the observed poses corresponding to the images in each frame to obtain the predicted poses;
在所述地图坐标系中标注所述位置标识的所述预测位姿。The predicted pose of the location marker is marked in the map coordinate system.
在本公开实施例的第二种可能的实现方式中,所述预测位姿与各所述观测位姿之间的观测差异之和最小化。In a second possible implementation manner of the embodiment of the present disclosure, the sum of the observed differences between the predicted pose and each of the observed poses is minimized.
在本公开实施例的第三种可能的实现方式中,各帧所述图像中均展示有至少两个所述位置标识;In a third possible implementation manner of the embodiment of the present disclosure, at least two of the position identifiers are displayed in each frame of the image;
其中,所述融合各帧所述图像对应的观测位姿,得到所述预测位姿,包括:Wherein, the fusion of the observed poses corresponding to the images of each frame to obtain the predicted poses includes:
根据同一帧所述图像对应的每一所述位置标识的观测位姿,确定相对观测位姿;Determine the relative observation pose according to the observed pose of each of the position markers corresponding to the same frame of the image;
根据各帧所述图像对应的相对观测位姿,确定所述至少两个所述位置标识的预测位姿;其中,所述至少两个位置标识的预测位姿之间的相对位姿与各帧所述图像对应的相对观测位姿之间的观测差异之和最小化。Determine the predicted poses of the at least two position markers according to the relative observed poses corresponding to the images of each frame; wherein, the relative poses between the predicted poses of the at least two position markers are the same as each frame. The sum of the observed differences between the relative observed poses corresponding to the images is minimized.
在本公开实施例的第四种可能的实现方式中,所述观测差异是根据所述预测位姿与各所述观测位姿之间的误差距离确定的。In a fourth possible implementation manner of the embodiment of the present disclosure, the observed difference is determined according to an error distance between the predicted pose and each of the observed poses.
在本公开实施例的第五种可能的实现方式中,所述根据所述位置标识中的坐标系部分,对所述位置标识中的编码部分解码得到目标编码,包括:In a fifth possible implementation manner of the embodiment of the present disclosure, according to the coordinate system part in the location identifier, decoding the encoding part in the location identifier to obtain the target code includes:
根据所述位置标识中的坐标系部分,确定候选坐标系;Determine a candidate coordinate system according to the coordinate system part in the position identification;
根据所述位置标识中的编码部分在所述候选坐标系中的参考坐标位置,解码得到所述目标编码。The target code is obtained by decoding according to the reference coordinate position of the coding part in the position identification in the candidate coordinate system.
在本公开实施例的第六种可能的实现方式中,所述编码部分包括多个第一标记点;所述根据所述位置标识中的编码部分在所述候选坐标系中的参考坐标位置,解码得到所述目标编码,包括:In a sixth possible implementation manner of the embodiment of the present disclosure, the coding part includes a plurality of first marking points; the reference coordinate position in the candidate coordinate system according to the coding part in the position identification, Decoding to obtain the target code, including:
将所述候选坐标系,与所述标准坐标系进行坐标系变换,得到所述候选坐标系与所述标准坐标系之间的仿射变换矩阵;performing coordinate system transformation between the candidate coordinate system and the standard coordinate system to obtain an affine transformation matrix between the candidate coordinate system and the standard coordinate system;
采用所述仿射变换矩阵,将各所述第一标记点在所述候选坐标系中的坐标位置变换至所述标准坐标系下,以得到各所述第一标记点在所述标准坐标系中的坐标位置;Using the affine transformation matrix, transform the coordinate positions of the first marker points in the candidate coordinate system to the standard coordinate system, so as to obtain the standard coordinate system of the first marker points. The coordinate position in ;
根据各所述第一标记点在所述标准坐标系中的坐标位置,确定对应的目标编码。According to the coordinate position of each first marker point in the standard coordinate system, the corresponding target code is determined.
在本公开实施例的第七种可能的实现方式中,所述坐标系部分包括至少五个第二标记点;In a seventh possible implementation manner of the embodiment of the present disclosure, the coordinate system part includes at least five second marking points;
其中,所述根据所述位置标识中的坐标系部分,确定候选坐标系,包括:Wherein, determining the candidate coordinate system according to the coordinate system part in the position identification includes:
在所述图像中,连接共线的至少三个所述第二标记点,得到两条连线;In the image, connecting at least three of the second marking points that are collinear to obtain two connecting lines;
将处于所述两条连线交点的第二标记点,确定为所述候选坐标系的原点,将所述两条连线,确定为所述候选坐标系的坐标轴;其中,所述坐标轴的方向,是根据处于所述坐标轴上的所述第二标记点与所述原点的距离确定的。Determining the second marked point at the intersection of the two connecting lines as the origin of the candidate coordinate system, and determining the two connecting lines as the coordinate axis of the candidate coordinate system; wherein, the coordinate axis The direction of , is determined according to the distance between the second marker point on the coordinate axis and the origin.
在本公开实施例的第八种可能的实现方式中,所述坐标系部分包括非对称图案;In an eighth possible implementation manner of the embodiment of the present disclosure, the coordinate system part includes an asymmetric pattern;
其中,所述根据所述位置标识中的坐标系部分,确定候选坐标系,包括:Wherein, determining the candidate coordinate system according to the coordinate system part in the position identification includes:
根据所述非对称图案中的设定参考线,确定所述候选坐标系的坐标轴;其中,所述坐标轴的方向,是根据所述非对称图案中设定局部图案所在位置确定的;Determine the coordinate axis of the candidate coordinate system according to the set reference line in the asymmetric pattern; wherein, the direction of the coordinate axis is determined according to the location of the set local pattern in the asymmetric pattern;
和/或,根据所述非对称图案中设定关键点所在位置,确定所述候选坐标系中设定的坐标点。And/or, according to the position of the set key point in the asymmetric pattern, the set coordinate point in the candidate coordinate system is determined.
本公开实施例的建立地图的方法,通过获取自移动设备在移动过程中采集的图像,以及采集图像时自移动设备在地图坐标系中的设备位姿;根据图像中的位置标识中的坐标系部分,对位置标识中的编码部分解码得到目标编码;根据目标编码,查询得到编码部分在 位置标识所在的标准坐标系中的标准坐标位置;根据标准坐标位置和参考坐标位置,确定标准坐标系与采集图像时自移动设备的坐标系之间的坐标变换关系;其中,参考坐标位置,是编码部分在坐标系部分确定的候选坐标系中的坐标位置;根据坐标变换关系,和自移动设备在地图坐标系中的设备位姿,在地图坐标系中标注位置标识的预测位姿。本公开中,根据位置标识来建立地图,即使自移动设备所处空间内的陈设位置发生变化,或者人员移动干扰激光雷达扫描周围环境,建立的地图也不会失效,从而可以有效定位自移动设备的位置,即该方法不易受到周围环境的干扰,可以提升该方法的适用性。The method for building a map according to the embodiment of the present disclosure obtains the images collected from the mobile device during the moving process, and the device pose of the self-mobile device in the map coordinate system when the image is collected; part, decode the coding part in the position mark to obtain the target code; according to the target code, query to obtain the standard coordinate position of the coding part in the standard coordinate system where the position mark is located; according to the standard coordinate position and the reference coordinate position, determine the standard coordinate system and the standard coordinate position The coordinate transformation relationship between the coordinate systems of the self-mobile device when the image is collected; wherein, the reference coordinate position is the coordinate position of the coding part in the candidate coordinate system determined by the coordinate system part; The device pose in the coordinate system, and the predicted pose of the location marker is marked in the map coordinate system. In the present disclosure, the map is established according to the location identification, even if the display position in the space where the mobile device is located changes, or the movement of people interferes with the lidar scanning the surrounding environment, the established map will not fail, so that the self-mobile device can be effectively located. location, that is, the method is not easily disturbed by the surrounding environment, which can improve the applicability of the method.
本公开第二方面实施例提出了一种建立地图的装置,包括:The embodiment of the second aspect of the present disclosure provides an apparatus for establishing a map, including:
获取模块,用于获取自移动设备在移动过程中采集的图像,以及采集所述图像时所述自移动设备在地图坐标系中的设备位姿;其中,所述图像中展示有位置标识;an acquisition module, configured to acquire an image collected from the mobile device during the movement process, and the device pose of the self-mobile device in the map coordinate system when the image is collected; wherein, the image displays a position identifier;
解码模块,用于根据所述位置标识中的坐标系部分,对所述位置标识中的编码部分解码得到目标编码;A decoding module, for decoding the coding part in the position identification to obtain the target code according to the coordinate system part in the position identification;
查询模块,用于根据所述目标编码,查询得到所述编码部分在所述位置标识所在的标准坐标系中的标准坐标位置;a query module, configured to query and obtain the standard coordinate position of the coding part in the standard coordinate system where the position marker is located according to the target code;
确定模块,用于根据所述标准坐标位置和参考坐标位置,确定所述标准坐标系与采集所述图像时所述自移动设备的坐标系之间的坐标变换关系;其中,所述参考坐标位置,是所述编码部分在所述坐标系部分确定的候选坐标系中的坐标位置;a determining module, configured to determine the coordinate transformation relationship between the standard coordinate system and the coordinate system of the self-mobile device when the image was collected according to the standard coordinate position and the reference coordinate position; wherein the reference coordinate position , is the coordinate position of the coding part in the candidate coordinate system determined by the coordinate system part;
标注模块,用于根据所述坐标变换关系,和所述自移动设备在地图坐标系中的设备位姿,在所述地图坐标系中标注所述位置标识的预测位姿。A labeling module, configured to label the predicted pose of the location identifier in the map coordinate system according to the coordinate transformation relationship and the device pose of the self-mobile device in the map coordinate system.
在本公开实施例的第一种可能的实现方式中,展示有同一所述位置标识的所述图像为至少两帧,采集各帧图像时所述自移动设备在地图坐标系中具有对应的设备位姿;In a first possible implementation manner of the embodiment of the present disclosure, the images showing the same location identifier are at least two frames, and the self-mobile device has a corresponding device in the map coordinate system when collecting images of each frame pose;
其中,所述标注模块,包括:Wherein, the labeling module includes:
确定单元,用于根据所述标准坐标系与采集各帧所述图像时所述自移动设备的坐标系之间的坐标变换关系,以及根据采集各帧图像时所述自移动设备在地图坐标系中的设备位姿,在所述地图坐标系中确定各帧所述图像对应的所述位置标识的观测位姿;a determining unit, configured to transform the relationship between the standard coordinate system and the coordinate system of the self-moving device when each frame of the image is collected, and according to the coordinate system of the self-moving device when collecting each frame of the image in the map coordinate system The device pose in the map coordinate system is determined in the map coordinate system to determine the observed pose of the position marker corresponding to each frame of the image;
融合单元,用于融合各帧所述图像对应的观测位姿,得到所述预测位姿;a fusion unit, configured to fuse the observed poses corresponding to the images in each frame to obtain the predicted poses;
标注单元,用于在所述地图坐标系中标注所述位置标识的所述预测位姿。A labeling unit, configured to label the predicted pose of the location identifier in the map coordinate system.
在本公开实施例的第二种可能的实现方式中,所述预测位姿与各所述观测位姿之间的观测差异之和最小化。In a second possible implementation manner of the embodiment of the present disclosure, the sum of the observed differences between the predicted pose and each of the observed poses is minimized.
在本公开实施例的第三种可能的实现方式中,各帧所述图像中均展示有至少两个所述位置标识;In a third possible implementation manner of the embodiment of the present disclosure, at least two of the position identifiers are displayed in each frame of the image;
其中,所述融合单元,用于:Wherein, the fusion unit is used for:
根据同一帧所述图像对应的每一所述位置标识的观测位姿,确定相对观测位姿;Determine the relative observation pose according to the observed pose of each of the position markers corresponding to the same frame of the image;
根据各帧所述图像对应的相对观测位姿,确定所述至少两个所述位置标识的预测位姿;其中,所述至少两个位置标识的预测位姿之间的相对位姿与各帧所述图像对应的相对观测位姿之间的观测差异之和最小化。Determine the predicted poses of the at least two position markers according to the relative observed poses corresponding to the images of each frame; wherein, the relative poses between the predicted poses of the at least two position markers are the same as each frame. The sum of the observed differences between the relative observed poses corresponding to the images is minimized.
在本公开实施例的第四种可能的实现方式中,所述观测差异是根据所述预测位姿与各所述观测位姿之间的误差距离确定的。In a fourth possible implementation manner of the embodiment of the present disclosure, the observed difference is determined according to an error distance between the predicted pose and each of the observed poses.
在本公开实施例的第五种可能的实现方式中,所述解码模块,包括:In a fifth possible implementation manner of the embodiment of the present disclosure, the decoding module includes:
处理单元,用于根据所述位置标识中的坐标系部分,确定候选坐标系;a processing unit, configured to determine a candidate coordinate system according to the coordinate system part in the position identification;
解码单元,用于根据所述位置标识中的编码部分在所述候选坐标系中的参考坐标位置,解码得到所述目标编码。and a decoding unit, configured to decode and obtain the target code according to the reference coordinate position of the encoding part in the position identification in the candidate coordinate system.
在本公开实施例的第六种可能的实现方式中,所述编码部分包括多个第一标记点;所述解码单元,用于:In a sixth possible implementation manner of the embodiment of the present disclosure, the encoding part includes a plurality of first marking points; the decoding unit is configured to:
将所述候选坐标系,与所述标准坐标系进行坐标系变换,得到所述候选坐标系与所述标准坐标系之间的仿射变换矩阵;performing coordinate system transformation between the candidate coordinate system and the standard coordinate system to obtain an affine transformation matrix between the candidate coordinate system and the standard coordinate system;
采用所述仿射变换矩阵,将各所述第一标记点在所述候选坐标系中的坐标位置变换至所述标准坐标系下,以得到各所述第一标记点在所述标准坐标系中的坐标位置;Using the affine transformation matrix, transform the coordinate positions of the first marker points in the candidate coordinate system to the standard coordinate system, so as to obtain the standard coordinate system of the first marker points. The coordinate position in ;
根据各所述第一标记点在所述标准坐标系中的坐标位置,确定对应的目标编码。According to the coordinate position of each first marker point in the standard coordinate system, the corresponding target code is determined.
在本公开实施例的第七种可能的实现方式中,所述坐标系部分包括至少五个第二标记点;In a seventh possible implementation manner of the embodiment of the present disclosure, the coordinate system part includes at least five second marking points;
其中,所述处理单元,用于:Wherein, the processing unit is used for:
在所述图像中,连接共线的至少三个所述第二标记点,得到两条连线;In the image, connecting at least three of the second marking points that are collinear to obtain two connecting lines;
将处于所述两条连线交点的第二标记点,确定为所述候选坐标系的原点,将所述两条连线,确定为所述候选坐标系的坐标轴;其中,所述坐标轴的方向,是根据处于所述坐标轴上的所述第二标记点与所述原点的距离确定的。Determining the second marked point at the intersection of the two connecting lines as the origin of the candidate coordinate system, and determining the two connecting lines as the coordinate axis of the candidate coordinate system; wherein, the coordinate axis The direction of , is determined according to the distance between the second marker point on the coordinate axis and the origin.
在本公开实施例的第八种可能的实现方式中,所述坐标系部分包括非对称图案;In an eighth possible implementation manner of the embodiment of the present disclosure, the coordinate system part includes an asymmetric pattern;
其中,所述处理单元,用于:Wherein, the processing unit is used for:
根据所述非对称图案中的设定参考线,确定所述候选坐标系的坐标轴;其中,所述坐标轴的方向,是根据所述非对称图案中设定局部图案所在位置确定的;Determine the coordinate axis of the candidate coordinate system according to the set reference line in the asymmetric pattern; wherein, the direction of the coordinate axis is determined according to the location of the set local pattern in the asymmetric pattern;
和/或,根据所述非对称图案中设定关键点所在位置,确定所述候选坐标系中设定的坐标点。And/or, according to the position of the set key point in the asymmetric pattern, the set coordinate point in the candidate coordinate system is determined.
本公开实施例的建立地图的装置,通过获取自移动设备在移动过程中采集的图像,以及采集图像时自移动设备在地图坐标系中的设备位姿;根据图像中的位置标识中的坐标系部分,对位置标识中的编码部分解码得到目标编码;根据目标编码,查询得到编码部分在位置标识所在的标准坐标系中的标准坐标位置;根据标准坐标位置和参考坐标位置,确定标准坐标系与采集图像时自移动设备的坐标系之间的坐标变换关系;其中,参考坐标位置,是编码部分在坐标系部分确定的候选坐标系中的坐标位置;根据坐标变换关系,和自移动设备在地图坐标系中的设备位姿,在地图坐标系中标注位置标识的预测位姿。本公开中,根据位置标识来建立地图,即使自移动设备所处空间内的陈设位置发生变化,或者人员移动干扰激光雷达扫描周围环境,建立的地图也不会失效,从而可以有效定位自移动设备的位置,提升该装置的适用性。The apparatus for establishing a map according to the embodiment of the present disclosure obtains the images collected from the mobile device during the movement process, and the device pose of the self-mobile device in the map coordinate system when the image is collected; part, decode the coding part in the position mark to obtain the target code; according to the target code, query to obtain the standard coordinate position of the coding part in the standard coordinate system where the position mark is located; according to the standard coordinate position and the reference coordinate position, determine the standard coordinate system and the reference coordinate position. The coordinate transformation relationship between the coordinate systems of the self-mobile device when the image is collected; wherein, the reference coordinate position is the coordinate position of the coding part in the candidate coordinate system determined by the coordinate system part; The device pose in the coordinate system, and the predicted pose of the location marker is marked in the map coordinate system. In the present disclosure, the map is established according to the location identification, even if the display position in the space where the mobile device is located changes, or the movement of people interferes with the lidar scanning the surrounding environment, the established map will not fail, so that the self-mobile device can be effectively located. position to enhance the applicability of the device.
本公开第三方面实施例提出了一种自移动设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时,实现如本公开第一方面实施例提出的建立地图的方法。The embodiment of the third aspect of the present disclosure provides a self-mobile device, including: a memory, a processor, and a computer program stored in the memory and running on the processor, when the processor executes the program, the implementation of the The method for building a map proposed by the embodiments of the first aspect is disclosed.
本公开第四方面实施例提出了一种非临时性计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本公开第一方面实施例提出的建立地图的方法。Embodiments of the fourth aspect of the present disclosure provide a non-transitory computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the method for establishing a map provided by the embodiments of the first aspect of the present disclosure.
本公开第五方面实施例提出了一种计算机程序产品,当所述计算机程序产品中的指令被处理器执行时,实现如本公开第一方面实施例提出的建立地图的方法。Embodiments of the fifth aspect of the present disclosure provide a computer program product. When instructions in the computer program product are executed by a processor, the method for building a map as proposed by the embodiments of the first aspect of the present disclosure is implemented.
本公开附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本公开的实践了解到。Additional aspects and advantages of the present disclosure will be set forth, in part, from the following description, and in part will be apparent from the following description, or may be learned by practice of the present disclosure.
附图说明Description of drawings
为了更清楚地说明本公开实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions in the embodiments of the present disclosure more clearly, the following briefly introduces the accompanying drawings that need to be used in the embodiments. Obviously, the accompanying drawings in the following description are some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1为本申请实施例一所提供的建立地图的方法的流程示意图;1 is a schematic flowchart of a method for establishing a map provided by Embodiment 1 of the present application;
图2为本申请实施例二所提供的建立地图的方法的流程示意图;2 is a schematic flowchart of a method for establishing a map according to Embodiment 2 of the present application;
图3为本申请实施例中的位置标识示意图一;FIG. 3 is a schematic diagram 1 of a position identification in an embodiment of the present application;
图4为本申请实施例中的位置标识示意图二;FIG. 4 is a schematic diagram 2 of the position identification in the embodiment of the application;
图5为本申请实施例三所提供的建立地图的方法的流程示意图;5 is a schematic flowchart of a method for establishing a map provided by Embodiment 3 of the present application;
图6为本申请实施例四所提供的建立地图的方法的流程示意图;6 is a schematic flowchart of a method for establishing a map provided by Embodiment 4 of the present application;
图7为本申请实施例五所提供的建立地图的装置的结构示意图;7 is a schematic structural diagram of an apparatus for establishing a map according to Embodiment 5 of the present application;
图8为本申请实施例六所提供的建立地图的装置的结构示意图。FIG. 8 is a schematic structural diagram of an apparatus for establishing a map according to Embodiment 6 of the present application.
具体实施方式Detailed ways
下面详细描述本公开的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本公开,而不能理解为对本公开的限制。Embodiments of the present disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary, and are intended to explain the present disclosure and should not be construed as a limitation of the present disclosure.
相关技术中,通过在自移动设备上搭载激光雷达,在自移动设备移动的过程中,采用激光雷达扫描周围环境,获取激光点云图,根据激光雷达采集的点云图,以及采集该点云图时自移动设备所处的位置建立地图。进而在导航定位时,可将激光雷达实时采集的点云图与预先建立的地图进行匹配的方式,来确定自移动设备在地图中的实时位置,从而实现对自移动设备进行定位。In the related art, by carrying a laser radar on a self-mobile device, in the process of moving the self-mobile device, the laser radar is used to scan the surrounding environment to obtain a laser point cloud image. The location of the mobile device builds a map. Furthermore, during navigation and positioning, the real-time position of the self-mobile device in the map can be determined by matching the point cloud image collected by the lidar in real time with the pre-established map, so as to realize the positioning of the self-mobile device.
然而上述方式中,无法适用于室内环境经常发生变化的场景。比如,当室内家具等室内陈设位置发生变化时,或者,当人员移动干扰激光雷达扫描周围环境时,预先建立的地图会失效,自移动设备在移动过程中所采集到的激光点云图,与预先建立的地图将无法匹配,从而无法定位自移动设备的位置。However, the above methods cannot be applied to scenarios where the indoor environment frequently changes. For example, when the position of indoor furnishings such as indoor furniture changes, or when the movement of people interferes with lidar scanning the surrounding environment, the pre-established map will become invalid. The created map will not match to locate the location from the mobile device.
针对上述问题,本公开提出一种建立地图的方法、装置、自移动设备和存储介质。In view of the above problems, the present disclosure proposes a method, apparatus, self-moving device and storage medium for establishing a map.
下面参考附图描述本公开实施例的建立地图的方法、装置、自移动设备和存储介质。The method, apparatus, self-moving device, and storage medium for establishing a map according to the embodiments of the present disclosure are described below with reference to the accompanying drawings.
图1为本公开实施例一所提供的建立地图的方法的流程示意图。FIG. 1 is a schematic flowchart of a method for establishing a map according to Embodiment 1 of the present disclosure.
本公开实施例的执行主体可以为本公开提供的建立地图的装置,该建立地图的装置可以被配置在自移动设备中,比如该建立地图的装置可以为自移动设备的本地控制器,从而可以实现由自移动设备执行建立地图的功能;或者,该建立地图的装置也可以被配置在服务器中,比如建立地图的装置可以为与自移动设备通信的云端服务器,从而可以实现由服务器执行建立地图的功能。The executive body of the embodiment of the present disclosure may be the apparatus for establishing a map provided by the present disclosure, and the apparatus for establishing a map may be configured in a self-mobile device. For example, the apparatus for establishing a map may be a local controller of the self-mobile device, so that it can The function of creating a map is implemented by the mobile device; alternatively, the device for creating a map can also be configured in a server, for example, the device for creating a map can be a cloud server that communicates with the self-mobile device, so that the server can create a map. function.
其中,自移动设备可以为智能机器人等具备导航避障功能、可自主移动的设备。Among them, the self-moving device may be a device that has the function of navigation and obstacle avoidance and can move autonomously, such as an intelligent robot.
如图1所示,该建立地图的方法可以包括以下步骤:As shown in Figure 1, the method for establishing a map may include the following steps:
步骤101,获取自移动设备在移动过程中采集的图像,以及采集图像时自移动设备在地图坐标系中的设备位姿;其中,图像中展示有位置标识。 Step 101 , acquiring an image collected from the mobile device during the moving process, and the device pose of the self-mobile device in the map coordinate system when the image was collected; wherein, the image displays a position identifier.
本公开实施例中,地图坐标系即世界坐标系,是指自移动设备或服务器在建立地图时生成的坐标系。例如,当建立地图时,可以以自移动设备启动时所在位置作为地图坐标系的原点位置,自移动设备的前进方向可作为X轴的正方向,与X轴垂直的方向可作为Y轴,与X轴和Y轴垂直的方向可作为Z轴,或者,可将自移动设备的前进方向作为Y轴的正方向,与Y轴垂直的方向可作为X轴,与X轴和Y轴垂直的方向可作为Z轴。即,地图坐标系的原点为自移动设备启动时所在位置,而各坐标轴,以及各坐标轴的方向可预先定义。In this embodiment of the present disclosure, the map coordinate system is the world coordinate system, which refers to a coordinate system generated when a map is created from a mobile device or a server. For example, when creating a map, the position where the mobile device is started can be used as the origin of the map coordinate system, the forward direction of the mobile device can be used as the positive direction of the X axis, the direction perpendicular to the X axis can be used as the Y axis, and the direction perpendicular to the X axis can be used as the Y axis. The direction perpendicular to the X axis and the Y axis can be used as the Z axis, or the forward direction of the self-moving device can be used as the positive direction of the Y axis, the direction perpendicular to the Y axis can be used as the X axis, and the direction perpendicular to the X axis and the Y axis Can be used as Z axis. That is, the origin of the map coordinate system is the position when the mobile device is activated, and each coordinate axis and the direction of each coordinate axis can be predefined.
本公开实施例中,自移动设备上可以设置有图像传感器,在自移动设备移动过程中,可以通过该图像传感器采集图像。其中,采集的图像中展示有位置标识。其中,图像传感器可以为电荷耦合器件(Charge Coupled Device,简称CCD)、互补金属氧化物半导体(Complementary Metal Oxide Semiconductor,简称CMOS)、薄膜晶体管(Thin Film Transistor,简称TFT)等图像传感器。In the embodiment of the present disclosure, an image sensor may be provided on the self-moving device, and during the movement of the self-moving device, an image may be collected through the image sensor. Among them, the collected images are displayed with location identifiers. The image sensor may be an image sensor such as a Charge Coupled Device (CCD for short), a Complementary Metal Oxide Semiconductor (CMOS for short), and a Thin Film Transistor (TFT for short).
本公开实施例中,当建立地图的装置被配置在自移动设备中时,建立地图的装置可直接获取图像传感器采集的图像,而当建立地图的装置被配置在服务器中时,可由自移动设备在接收到图像传感器采集的图像后,将该图像发送至服务器,从而建立地图的装置可以获取该图像。In this embodiment of the present disclosure, when the apparatus for creating a map is configured in a self-mobile device, the apparatus for creating a map can directly acquire an image captured by an image sensor, and when the apparatus for creating a map is configured in a server, the device for creating a map can be configured by the self-mobile device After receiving the image captured by the image sensor, the image is sent to the server, so that the map building apparatus can acquire the image.
本公开实施例中,可以在自移动设备所处的空间内,设置二维的位置标识(或称为路标),比如,可以在室内墙壁或屋顶贴附位置标识。其中,该位置标识上可以展示有坐标系 部分和编码部分,坐标系部分用于确定坐标系,编码部分用于解码得到位置标识对应的编码以及定位观测位置。In this embodiment of the present disclosure, a two-dimensional location marker (or road sign) may be set in the space where the mobile device is located, for example, the location marker may be attached to an indoor wall or roof. Wherein, a coordinate system part and a coding part can be displayed on the position marker, the coordinate system part is used to determine the coordinate system, and the coding part is used to decode the code corresponding to the position marker and locate the observation position.
可以理解的是,位置标识中的坐标系部分和编码部分的形状、大小、颜色等特征是已知的,因此,在本公开实施例的一种可能的实现方式中,当建立地图的装置在获取到图像传感器采集到的图像后,可以基于目标检测算法,识别图像中的坐标系部分和编码部分。It can be understood that the shape, size, color and other characteristics of the coordinate system part and the coding part in the location identification are known. After the image captured by the image sensor is acquired, the coordinate system part and the coding part in the image can be identified based on the target detection algorithm.
例如,可以基于单发多框检测(Single Shot MultiBox Detector,简称SSD)、你只看一眼(You Only Look Once,简称YOLO)、Faster-RCNN等目标检测算法,对图像传感器采集到的图像进行识别,确定坐标系部分和编码部分,本公开对此并不做限制。For example, the images collected by the image sensor can be recognized based on target detection algorithms such as Single Shot MultiBox Detector (SSD), You Only Look Once (YOLO), Faster-RCNN, etc. , determine the coordinate system part and the encoding part, which is not limited in the present disclosure.
在本公开实施例的另一种可能的实现方式中,当建立地图的装置在获取到图像传感器采集到的图像后,可以对图像传感器采集到的图像进行连通域检测以获取多个连通区域,根据每个连通区域的几何特征,确定坐标系部分和编码部分。其中,几何特征,可以为连通区域的尺寸大小、长宽比例、颜色分布等特征信息。In another possible implementation manner of the embodiment of the present disclosure, after acquiring the image collected by the image sensor, the map building apparatus may perform connected domain detection on the image collected by the image sensor to obtain multiple connected areas, According to the geometric features of each connected region, the coordinate system part and the coding part are determined. The geometric feature may be feature information such as the size, aspect ratio, and color distribution of the connected region.
应当理解的是,为了提升识别结果的准确性,以及提升图像的处理效率,还可以先识别得到图像中的位置标识,比如,可以基于感兴趣区域(Region of Interest,简称ROI)提取算法、目标检测算法等,识别得到图像中位置标识所在的区域,而后在位置标识所在的区域,识别坐标系部分和编码部分。It should be understood that, in order to improve the accuracy of the recognition results and improve the processing efficiency of the image, the location identifier in the image can also be identified first. Detection algorithm, etc., identify the area where the position marker is located in the image, and then identify the coordinate system part and the coding part in the area where the position marker is located.
在本公开实施例的又一种可能的实现方式中,当建立地图的装置在获取到图像传感器采集到的图像后,可以对图像传感器采集到的图像进行预处理,比如高斯模糊、二值化、边缘提取等处理,根据预处理后的图像中各像素点的取值,确定坐标系部分和编码部分。或者,还可以直接根据图像传感器采集到的图像中各像素点的取值,确定坐标系部分和编码部分。In another possible implementation manner of the embodiment of the present disclosure, after acquiring the image collected by the image sensor, the map building apparatus may perform preprocessing on the image collected by the image sensor, such as Gaussian blur, binarization , edge extraction and other processing, according to the value of each pixel in the preprocessed image, determine the coordinate system part and the coding part. Alternatively, the coordinate system part and the encoding part can also be determined directly according to the value of each pixel in the image collected by the image sensor.
比如,可以确定图像中像素点的取值超过预设阈值的各像素点,并根据取值超过预设阈值的各像素点,确定连通域,之后可以根据各连通域的几何特征,识别坐标系部分和编码部分。也就是说,可以根据连通域内的亮度情况,来实现对坐标系部分和编码部分进行识别,可以排除形状与坐标系部分和编码部分相似,但亮度不满足条件的连通域,以提升坐标系部分和编码部分检测结果的准确性。For example, each pixel in the image whose value exceeds a preset threshold can be determined, and a connected domain can be determined according to each pixel whose value exceeds the preset threshold, and then the coordinate system can be identified according to the geometric characteristics of each connected domain. section and coding section. That is to say, the identification of the coordinate system part and the coding part can be realized according to the brightness in the connected domain, and the connected domain whose shape is similar to the coordinate system part and the coding part can be excluded, but the brightness does not meet the conditions, so as to improve the coordinate system part and the accuracy of the detection results of the coding part.
本公开实施例中,设备位姿可以包括自移动设备的坐标位置和/或姿态。自移动设备的设备位姿可以通过相关传感器检测得到,例如,可以通过激光雷达、里程计、惯性测量装置(Inertial Measurement Unit,简称IMU)等传感器,测量自移动设备的设备位姿。例如,当自移动设备启动后,可以确定地图坐标系,根据自移动设备的移动方向,以及移动距离,可以确定该自移动设备在地图坐标系中的坐标位置,并且,根据自移动设备在移动过程中每一次的移动方向、移动角度和移动距离,可以确定该自移动设备相对初始启动时的位姿,该位姿即为自移动设备的设备位姿。其中,移动角度可以为移动方向相对IMU标定的参考方向之间的角度。In this embodiment of the present disclosure, the device pose may include a coordinate position and/or a pose of the mobile device. The device pose of a self-moving device can be detected by relevant sensors. For example, the device pose of a self-moving device can be measured by sensors such as lidar, odometer, and Inertial Measurement Unit (IMU). For example, after the self-mobile device is started, the map coordinate system can be determined, and the coordinate position of the self-mobile device in the map coordinate system can be determined according to the moving direction and the moving distance of the self-mobile device, and according to the movement of the self-mobile device. The moving direction, moving angle and moving distance of each time in the process can determine the pose of the self-moving device relative to the initial startup, and the pose is the device pose of the self-moving device. The moving angle may be an angle between the moving direction and the reference direction calibrated by the IMU.
本公开实施例中,当该建立地图的装置被配置于自移动设备中时,自移动设备可以直接获取上述图像以及采集图像时自移动设备在地图坐标系中的设备位姿,而当该建立地图的装置被配置于服务器中时,自移动设备在移动过程中采集图像后,可以将采集的图像,以及采集图像时自移动设备在地图坐标系中的设备位姿,发送至服务器,相应的,服务器可以接收上述图像,以及采集图像时自移动设备在地图坐标系中的设备位姿。In this embodiment of the present disclosure, when the apparatus for establishing a map is configured in a self-moving device, the self-moving device can directly acquire the above-mentioned image and the device pose of the self-moving device in the map coordinate system when the image is captured, and when the self-moving device is established When the map device is configured in the server, after the self-mobile device collects the image during the movement, the collected image and the device pose of the self-mobile device in the map coordinate system when the image is collected can be sent to the server, and the corresponding image is sent to the server. , the server can receive the above image and the device pose of the self-mobile device in the map coordinate system when the image is collected.
步骤102,根据位置标识中的坐标系部分,对位置标识中的编码部分解码得到目标编码。Step 102: Decode the coding part in the position identification according to the coordinate system part in the position identification to obtain the target code.
本公开实施例中,可以根据位置标识中的坐标系部分,建立候选坐标系,根据位置标识中的编码部分在候选坐标系中的坐标位置,本公开中记为参考坐标位置,解码得到目标编码。In the embodiment of the present disclosure, a candidate coordinate system can be established according to the coordinate system part in the location identifier, and the target code can be obtained by decoding according to the coordinate position of the coding part in the location identifier in the candidate coordinate system, which is recorded as the reference coordinate position in this disclosure. .
其中,候选坐标系是二维坐标系,该候选坐标系是在采集的图像上建立的坐标系,例如可以为由图像中的坐标系部分构建的坐标系。其中,候选坐标系中的单位可以为像素, 或者,还可以根据实际需求进行设置,比如,候选坐标系中的单位可设置为设定长度,该设定长度例如可为0.001cm、0.01cm等,本公开对此并不作限制The candidate coordinate system is a two-dimensional coordinate system, and the candidate coordinate system is a coordinate system established on the captured image, for example, a coordinate system constructed from a coordinate system part in the image. Wherein, the unit in the candidate coordinate system may be a pixel, or may also be set according to actual requirements, for example, the unit in the candidate coordinate system may be set as a set length, and the set length may be, for example, 0.001cm, 0.01cm, etc. , this disclosure does not limit this
本公开实施例中,根据坐标系部分在图像中建立得到候选坐标系后,可以确定位置标识中的编码部分在候选坐标系中的参考坐标位置,之后,可以根据位置标识中的编码部分在候选坐标系中的参考坐标位置,解码得到目标编码。In the embodiment of the present disclosure, after the candidate coordinate system is established in the image according to the coordinate system part, the reference coordinate position of the coding part in the location identifier in the candidate coordinate system can be determined, and then, the coding part in the location identifier can be used in the candidate coordinate system. The reference coordinate position in the coordinate system is decoded to obtain the target code.
在本公开实施例的一种可能的实现方式中,编码部分可以包括多个第一标记点,可以确定每个第一标记点在候选坐标系中的坐标位置,根据各第一标记点在候选坐标系中的坐标位置,可以解码得到目标编码。In a possible implementation of the embodiment of the present disclosure, the encoding part may include a plurality of first marking points, and the coordinate position of each first marking point in the candidate coordinate system may be determined, according to the position of each first marking point in the candidate coordinate system The coordinate position in the coordinate system can be decoded to obtain the target code.
可以理解的是,第一标记点中可以包含多个像素点,针对每个第一标记点,该第一标记点在候选坐标系中的坐标位置,可以根据该第一标记点中包含的多个像素点的坐标位置来确定。It can be understood that the first marker point may contain multiple pixel points, and for each first marker point, the coordinate position of the first marker point in the candidate coordinate system may be based on the number of pixels included in the first marker point. The coordinate position of each pixel is determined.
作为一种示例,针对每个第一标记点,可以确定该第一标记点中包含的多个像素点在候选坐标系中的坐标位置,将该第一标记点中包含的多个像素点在候选坐标系中的坐标位置求取均值,来确定该第一标记点在候选坐标系中的坐标位置。As an example, for each first marker point, the coordinate positions of the multiple pixel points included in the first marker point in the candidate coordinate system may be determined, and the multiple pixel points included in the first marker point are located in the candidate coordinate system. The coordinate positions in the candidate coordinate system are averaged to determine the coordinate position of the first marker point in the candidate coordinate system.
作为另一种示例,针对每个第一标记点,可以确定该第一标记点中包含的多个像素点在候选坐标系中的坐标位置,根据该第一标记点中包含的多个像素点在候选坐标系中的坐标位置,对该第一标记点的形状进行数学方程的拟合,根据拟合的数学方程,确定该第一标记点的形心,将形心的坐标位置,作为该第一标记点在候选坐标系中的坐标位置。As another example, for each first marker point, the coordinate positions of multiple pixel points included in the first marker point in the candidate coordinate system may be determined, and according to the multiple pixel points included in the first marker point At the coordinate position in the candidate coordinate system, the shape of the first marked point is fitted with a mathematical equation, and the centroid of the first marked point is determined according to the fitted mathematical equation, and the coordinate position of the centroid is taken as the The coordinate position of the first marker point in the candidate coordinate system.
在本公开实施例的一种可能的实现方式中,当编码部分包括多个第一标记点时,在确定各个第一标记点在候选坐标系中的坐标位置后,可以将各第一标记点映射到标准坐标系中,得到各第一标记点在标准坐标系中的坐标位置,根据各第一标记点在标准坐标系中的坐标位置,确定对应的目标编码。In a possible implementation of the embodiment of the present disclosure, when the encoding part includes a plurality of first marking points, after determining the coordinate position of each first marking point in the candidate coordinate system, each first marking point may be Map to the standard coordinate system to obtain the coordinate position of each first marker point in the standard coordinate system, and determine the corresponding target code according to the coordinate position of each first marker point in the standard coordinate system.
举例而言,第一标记点的个数为3个,3个第一标记点在标准坐标系中的坐标位置分别为(1,1)、(2,2)和(3,3),则目标编码例如可以为112233、11-22-33、11 22 33、1-1-2-2-3-3等。For example, the number of the first marker points is 3, and the coordinate positions of the 3 first marker points in the standard coordinate system are (1, 1), (2, 2) and (3, 3) respectively, then The target code can be, for example, 112233, 11-22-33, 11 22 33, 1-1-2-2-3-3, and so on.
步骤103,根据目标编码,查询得到编码部分在位置标识所在的标准坐标系中的标准坐标位置。 Step 103 , according to the target code, query to obtain the standard coordinate position of the encoded part in the standard coordinate system where the position identifier is located.
本公开实施例中,标准坐标系为位置标识所在的坐标系,标准坐标系是根据自移动设备所处空间内的位置标识上的坐标系部分,在位置标识上预先建立的坐标系。应当理解的是,图像传感器采集到的图像可能存在畸变,候选坐标系可能存在畸变或扭曲,为观测到的坐标系,随着观测位置的改变而改变,坐标轴可能并非为直的。而标准坐标系是与候选坐标系相对应的,未存在畸变的坐标系,即该标准坐标系不随观测位置的改变而改变。In the embodiment of the present disclosure, the standard coordinate system is the coordinate system where the location marker is located, and the standard coordinate system is a coordinate system pre-established on the location marker according to the coordinate system part on the location marker in the space where the mobile device is located. It should be understood that the image collected by the image sensor may be distorted, and the candidate coordinate system may be distorted or distorted. For the observed coordinate system, it changes with the change of the observation position, and the coordinate axis may not be straight. The standard coordinate system corresponds to the candidate coordinate system, and there is no distorted coordinate system, that is, the standard coordinate system does not change with the change of the observation position.
本公开实施例中,由于候选坐标系可能存在畸变,而目标编码是根据编码部分在候选坐标系中的坐标位置确定的,因此,该目标编码可能与实际编码存在偏差。因此,本公开中,为了提升定位结果的准确性,可以根据目标编码,查询得到编码部分在位置标识所在的标准坐标系中的标准坐标位置。In the embodiment of the present disclosure, since the candidate coordinate system may be distorted, and the target encoding is determined according to the coordinate position of the encoding part in the candidate coordinate system, the target encoding may deviate from the actual encoding. Therefore, in the present disclosure, in order to improve the accuracy of the positioning result, the standard coordinate position of the encoded part in the standard coordinate system where the position identifier is located can be obtained by querying according to the target code.
应当理解的是,每个位置标识是已知的,位置标识中的编码部分和坐标系部分也是已知的,在自移动设备所处空间中设置位置标识后,标准坐标系可以确定,编码部分在标准坐标系中的标准坐标位置也是可确定的,例如,当编码部分包括多个第一标记点时,编码部分中的每个第一标记点在标准坐标系中的标准坐标位置是可以计算得到的。因此,本公开中,针对每个位置标识,可以预先计算该位置标识中编码部分在位置标识所在的标准坐标系中的标准坐标位置,并对应存储各位置标识,与该位置标识中编码部分在位置标识所在的标准坐标系中的标准坐标位置。It should be understood that each location identifier is known, and the encoding part and the coordinate system part in the location identifier are also known. After the location identifier is set in the space where the mobile device is located, the standard coordinate system can be determined, and the encoding part can be determined. The standard coordinate position in the standard coordinate system can also be determined. For example, when the encoding part includes a plurality of first marking points, the standard coordinate position of each first marking point in the encoding part in the standard coordinate system can be calculated. owned. Therefore, in the present disclosure, for each location identifier, the standard coordinate position of the encoded part in the location identifier in the standard coordinate system where the location identifier is located can be pre-calculated, and each location identifier is stored correspondingly, which is in the same position as the encoded part in the location identifier. The standard coordinate position in the standard coordinate system in which the location ID is located.
从而本公开中,可以根据目标编码,查询存储的数据,获取与目标编码匹配的标准坐标位置,作为编码部分在位置标识所在的标准坐标系中的标准坐标位置。Therefore, in the present disclosure, the stored data can be queried according to the target code, and the standard coordinate position matching the target code can be obtained as the standard coordinate position of the code part in the standard coordinate system where the position identifier is located.
举例而言,当编码部分包括多个第一标记点,且第一标记点的个数为3个时,假设目 标编码为1-1-2-2-3.1-3.1,可以查询与该目标编码匹配度最高的属于同一位置标识中的三个第一标记点的标准坐标位置,比如为(1,1)、(2,2)和(3,3),则可以将查询得到的标准坐标位置,作为编码部分中三个第一标记点在位置标识所在的标准坐标系中的标准坐标位置。For example, when the coding part includes a plurality of first marking points and the number of the first marking points is 3, assuming that the target code is 1-1-2-2-3.1-3.1, the target code can be queried with the target code The standard coordinate positions of the three first marked points in the same position identification with the highest matching degree, such as (1, 1), (2, 2) and (3, 3), can be queried to obtain the standard coordinate positions , as the standard coordinate positions of the three first marking points in the coding part in the standard coordinate system where the position identifier is located.
步骤104,根据标准坐标位置和参考坐标位置,确定标准坐标系与采集图像时自移动设备的坐标系之间的坐标变换关系;其中,参考坐标位置,是编码部分在坐标系部分确定的候选坐标系中的坐标位置。 Step 104, according to the standard coordinate position and the reference coordinate position, determine the coordinate transformation relationship between the standard coordinate system and the coordinate system of the self-mobile device when the image is collected; wherein, the reference coordinate position is the candidate coordinate determined by the coding part in the coordinate system part coordinate position in the system.
本公开实施例中,自移动设备的坐标系为预先标定的坐标系,比如,该自移动设备的坐标系可以为预先在自移动设备上标定的坐标系,比如该自移动设备的坐标系的原点可以为自移动设备的质心,Y轴竖直向上,X轴水平向右或向左。In this embodiment of the present disclosure, the coordinate system of the self-moving device is a pre-calibrated coordinate system. For example, the coordinate system of the self-moving device may be a coordinate system that is pre-calibrated on the self-moving device, such as the coordinate system of the self-moving device. The origin can be the center of mass of the mobile device, the Y-axis is vertically up, and the X-axis is horizontally right or left.
本公开实施例中,在图像中建立得到候选坐标系后,可以确定位置标识中的编码部分在候选坐标系中的参考坐标位置。例如,当编码部分包括多个第一标记点时,根据步骤102记载的内容,可以确定每个第一标记点在候选坐标系中的坐标位置,将各个第一标记点在候选坐标系中的坐标位置,作为参考坐标位置。In the embodiment of the present disclosure, after the candidate coordinate system is established in the image, the reference coordinate position of the coding part in the position identification in the candidate coordinate system can be determined. For example, when the coding part includes a plurality of first marking points, according to the content recorded in step 102, the coordinate position of each first marking point in the candidate coordinate system can be determined, and the coordinate position of each first marking point in the candidate coordinate system can be determined. Coordinate position, as the reference coordinate position.
本公开实施例中,可以根据编码部分对应的标准坐标位置和参考坐标位置,采用PnP算法确定标准坐标系与采集图像时自移动设备的坐标系之间的坐标变换关系。例如,当编码部分包括多个第一标记点时,可以根据多个标记点对应的标准坐标位置和参考坐标位置,采用PnP算法确定标准坐标系与采集图像时自移动设备的坐标系之间的坐标变换关系。该坐标变换关系可以包括标准坐标系与采集图像时自移动设备的坐标系之间的旋转矩阵R和位移矢量t(或称为平移向量),例如该坐标变换关系可以为由旋转矩阵R和位移矢量t组成的变换矩阵T_t。In the embodiment of the present disclosure, the PnP algorithm can be used to determine the coordinate transformation relationship between the standard coordinate system and the coordinate system of the self-mobile device when the image is captured according to the standard coordinate position and the reference coordinate position corresponding to the encoding part. For example, when the coding part includes a plurality of first marking points, the PnP algorithm can be used to determine the relationship between the standard coordinate system and the coordinate system of the self-mobile device when the image is captured according to the standard coordinate position and the reference coordinate position corresponding to the plurality of marking points. Coordinate transformation relationship. The coordinate transformation relationship may include a rotation matrix R and a displacement vector t (or a translation vector) between the standard coordinate system and the coordinate system of the mobile device when the image is captured. For example, the coordinate transformation relationship may be composed of a rotation matrix R and a displacement The transformation matrix T_t composed of the vector t.
其中,PnP(pespective-n-point)算法可以包括P3P、EPnP、UPnP、DLT(Direct Linear Transform)、优化求解等算法。Among them, the PnP (pespective-n-point) algorithm may include algorithms such as P3P, EPnP, UPnP, DLT (Direct Linear Transform), and optimization solution.
步骤105,根据坐标变换关系,和自移动设备在地图坐标系中的设备位姿,在地图坐标系中标注位置标识的预测位姿。 Step 105 , according to the coordinate transformation relationship and the device pose of the self-mobile device in the map coordinate system, mark the predicted pose of the position marker in the map coordinate system.
本公开实施例中,可以根据标准坐标系与采集图像时自移动设备的坐标系之间的坐标变换关系,和自移动设备在地图坐标系中的设备位姿,确定位置标识在地图坐标系中的预测位姿,并在地图坐标系中标注位置标识的预测位姿。In the embodiment of the present disclosure, the position identifier in the map coordinate system can be determined according to the coordinate transformation relationship between the standard coordinate system and the coordinate system of the self-mobile device when the image is collected, and the device pose of the self-mobile device in the map coordinate system The predicted pose of , and the predicted pose of the location marker is marked in the map coordinate system.
例如,标记位置标识的预测位姿为Target_id_P,自移动设备在地图坐标系中的设备位姿为P,则预测位姿Target_id_P可以为:For example, if the predicted pose of the marker position identifier is Target_id_P, and the device pose of the self-mobile device in the map coordinate system is P, the predicted pose Target_id_P can be:
Figure PCTCN2021124196-appb-000001
Figure PCTCN2021124196-appb-000001
本公开中,在建立地图后,即可根据建立的地图对自移动设备进行导航定位。例如,在定位时,可以获取图像传感器采集的图像;其中,图像中展示有坐标系部分和编码部分;根据坐标系部分,确定候选坐标系;根据编码部分在候选坐标系中的参考坐标位置,解码得到目标编码;根据目标编码,查询得到编码部分在世界坐标系中的坐标位置;根据编码部分在世界坐标系中的坐标位置,以及在图像中的坐标位置,确定搭载图像传感器的自移动设备在世界坐标系下的位姿。In the present disclosure, after the map is established, the self-mobile device can be navigated and positioned according to the established map. For example, during positioning, the image collected by the image sensor can be obtained; wherein, the coordinate system part and the coding part are displayed in the image; according to the coordinate system part, the candidate coordinate system is determined; according to the reference coordinate position of the coding part in the candidate coordinate system, Decode to obtain the target code; according to the target code, query to obtain the coordinate position of the coding part in the world coordinate system; according to the coordinate position of the coding part in the world coordinate system and the coordinate position in the image, determine the self-mobile device equipped with the image sensor The pose in the world coordinate system.
作为一种可能的实现方式,当编码部分包括多个第一标记点时,可以根据编码部分中的各第一标记点在候选坐标系中的坐标位置,解码得到目标编码;根据目标编码,查询得到各第一标记点在世界坐标系中的坐标位置;根据各第一标记点在世界坐标系中的坐标位置,以及在图像中的坐标位置,确定搭载图像传感器的自移动设备在世界坐标系下的位姿。例如,可以根据各第一标记点在世界坐标系中的坐标位置,以及在图像中的坐标位置,采用PnP算法确定搭载图像传感器的自移动设备在世界坐标系下的位姿。As a possible implementation, when the coding part includes multiple first marking points, the target coding can be obtained by decoding according to the coordinate position of each first marking point in the coding part in the candidate coordinate system; according to the target coding, query Obtain the coordinate position of each first marker point in the world coordinate system; according to the coordinate position of each first marker point in the world coordinate system and the coordinate position in the image, determine the self-mobile device equipped with the image sensor in the world coordinate system lower pose. For example, the PnP algorithm can be used to determine the pose of the self-mobile device equipped with the image sensor in the world coordinate system according to the coordinate position of each first marker point in the world coordinate system and the coordinate position in the image.
其中,各第一标记点在图像中的坐标位置,可以为各第一标记点在图像坐标系中的坐标位置,或者,也可以为各第一标记点在像素坐标系中的坐标位置,本公开对此并不作限制。其中,图像坐标系的坐标原点,为图像的中心点,X轴水平向右,Y轴水平向下,单 位是像素。像素坐标系的坐标原点,为图像左上角,X轴水平向右,Y轴水平向下,单位是像素。The coordinate position of each first marker point in the image may be the coordinate position of each first marker point in the image coordinate system, or may also be the coordinate position of each first marker point in the pixel coordinate system. There is no limit to this disclosure. Among them, the coordinate origin of the image coordinate system is the center point of the image, the X axis is horizontal to the right, the Y axis is horizontally downward, and the unit is pixel. The coordinate origin of the pixel coordinate system is the upper left corner of the image, the X axis is horizontal to the right, the Y axis is horizontally downward, and the unit is pixels.
其中,查询的过程可以为:根据目标编码查询建立的地图,得到目标编码所属位置标识在世界坐标系中的位姿,根据位置标识在世界坐标系中的位姿,以及各第一标记点在位置标识所在的标准坐标系中的坐标位置,确定每个第一标记点在世界坐标系中的坐标位置。其中,上述位姿可以包括坐标位置和/或姿态。The query process may be as follows: querying the created map according to the target code, obtaining the pose of the location marker to which the target code belongs in the world coordinate system, according to the pose of the location marker in the world coordinate system, and each first marker point in the world coordinate system The coordinate position in the standard coordinate system where the position identifier is located determines the coordinate position of each first marker point in the world coordinate system. The above-mentioned poses may include coordinate positions and/or poses.
需要说明的是,当由自移动设备建立地图时,自移动设备在建立地图后,可以在本地存储该地图,从而可以依据该地图进行导航定位;或者,当由服务器对自移动设备进行定位时,自移动设备在建立地图后,可以将建立的地图发送至服务器,服务器在接收到地图后,可以在数据库中存储该自移动设备的标识与地图之间的对应关系,从而当由服务器对该自移动设备进行导航定位时,服务器可以根据自移动设备的标识,查询上述对应关系,确定该自移动设备对应的地图,并依据查询到的地图对自移动设备进行导航定位。It should be noted that when the self-mobile device creates a map, the self-mobile device can store the map locally after the map is created, so that navigation and positioning can be performed according to the map; or, when the server locates the self-mobile device , after the self-mobile device establishes the map, it can send the created map to the server, and after the server receives the map, it can store the corresponding relationship between the identification of the self-mobile device and the map in the database, so that when the When navigating and positioning the self-mobile device, the server may query the above correspondence according to the identification of the self-mobile device, determine the map corresponding to the self-mobile device, and perform navigation and positioning on the self-mobile device according to the queried map.
而当由服务器建立地图时,服务器在建立地图后,可以在数据库中存储各自移动设备的标识与地图之间的对应关系。从而当由服务器对自移动设备进行导航定位时,服务器可以根据自移动设备的标识,查询上述对应关系,确定该自移动设备对应的地图,并依据查询到的地图对自移动设备进行导航定位;或者,当由自移动设备对自身进行定位时,可以由服务器根据自移动设备的标识,查询上述对应关系,确定该自移动设备对应的地图,并将对应的地图发送至自移动设备,或者该自移动设备可以主动从服务器侧查询自身对应的地图,从而自移动设备可以依据获取到的地图进行导航定位。When a map is created by the server, after creating the map, the server may store the correspondence between the identifiers of the respective mobile devices and the map in the database. Therefore, when the server performs navigation and positioning on the self-mobile device, the server can query the above-mentioned correspondence according to the identification of the self-mobile device, determine the map corresponding to the self-mobile device, and perform navigation and positioning on the self-mobile device according to the inquired map; Alternatively, when the self-moving device locates itself, the server can query the above-mentioned correspondence according to the identification of the self-moving device, determine the map corresponding to the self-moving device, and send the corresponding map to the self-moving device, or the The self-mobile device can actively query its corresponding map from the server side, so that the self-mobile device can perform navigation and positioning according to the acquired map.
需要说明的是,PnP算法的解可能不止一个,为了提升自移动设备在世界坐标系下的位姿计算结果的准确性,可以在位置标识所在的标准坐标系中设定一个校验点,根据候选坐标系与标准坐标系之间的仿射变换矩阵,确定该校验点在候选坐标系中的坐标位置,使用该校验点在候选坐标系中的坐标位置来对多个解进行校验,以排除错误的位姿。It should be noted that there may be more than one solution of the PnP algorithm. In order to improve the accuracy of the pose calculation results of the self-mobile device in the world coordinate system, a check point can be set in the standard coordinate system where the position marker is located. The affine transformation matrix between the candidate coordinate system and the standard coordinate system, determine the coordinate position of the check point in the candidate coordinate system, and use the coordinate position of the check point in the candidate coordinate system to check multiple solutions , to rule out wrong poses.
需要说明的是,定位和建立地图(即建图)的执行时序可以先后执行,即先执行建图,后执行定位,或者,还可以同时执行建图和定位,本公开上述仅以先执行建图,后执行定位进行示例。It should be noted that the execution sequence of positioning and creating a map (that is, building a map) can be executed sequentially, that is, first executing the mapping, and then executing the positioning, or, it can also execute the mapping and positioning at the same time. Figure, after performing the positioning for an example.
本公开实施例的建立地图的方法,通过获取自移动设备在移动过程中采集的图像,以及采集图像时自移动设备在地图坐标系中的设备位姿;根据图像中的位置标识中的坐标系部分,对位置标识中的编码部分解码得到目标编码;根据目标编码,查询得到编码部分在位置标识所在的标准坐标系中的标准坐标位置;根据标准坐标位置和参考坐标位置,确定标准坐标系与采集图像时自移动设备的坐标系之间的坐标变换关系;其中,参考坐标位置,是编码部分在坐标系部分确定的候选坐标系中的坐标位置;根据坐标变换关系,和自移动设备在地图坐标系中的设备位姿,在地图坐标系中标注位置标识的预测位姿。本公开中,根据位置标识来建立地图,即使自移动设备所处空间内的陈设位置发生变化,或者人员移动干扰激光雷达扫描周围环境,建立的地图也不会失效,从而可以有效定位自移动设备的位置,即该方法不易受到周围环境的干扰,可以提升该方法的适用性。The method for building a map according to the embodiment of the present disclosure obtains the images collected from the mobile device during the moving process, and the device pose of the self-mobile device in the map coordinate system when the image is collected; part, decode the coding part in the position mark to obtain the target code; according to the target code, query to obtain the standard coordinate position of the coding part in the standard coordinate system where the position mark is located; according to the standard coordinate position and the reference coordinate position, determine the standard coordinate system and the standard coordinate position The coordinate transformation relationship between the coordinate systems of the self-mobile device when the image is collected; wherein, the reference coordinate position is the coordinate position of the coding part in the candidate coordinate system determined by the coordinate system part; The device pose in the coordinate system, and the predicted pose of the location marker is marked in the map coordinate system. In the present disclosure, the map is established according to the location identification, even if the display position in the space where the mobile device is located changes, or the movement of people interferes with the lidar scanning the surrounding environment, the established map will not fail, so that the self-mobile device can be effectively located. location, that is, the method is not easily disturbed by the surrounding environment, which can improve the applicability of the method.
需要说明的是,为了便于图像识别,对于位置标识的设计,可以采用高对比设计,例如,位置标识的底色可以为黑色,坐标系部分和编码部分的颜色可以为白色,或者,位置标识的底色可以为白色,坐标系部分和编码部分的颜色可以为黑色,或者,还可以将位置标识设计为高反光的形式,等等,本公开对此并不作限制。其中,坐标系部分和编码部分的颜色可以相同,也可以不同。It should be noted that, in order to facilitate image recognition, a high-contrast design can be used for the design of the position identification. For example, the background color of the position identification can be black, and the color of the coordinate system part and the coding part can be white. The background color can be white, the color of the coordinate system part and the coding part can be black, or the position identification can also be designed in a highly reflective form, etc., which is not limited in the present disclosure. The color of the coordinate system part and the coding part can be the same or different.
在本公开实施例的一种可能的实现方式中,位置标识可能受到照明和光照的影响,当环境亮度较高或者较低时,均影响图像识别结果的准确性,因此,本公开中,为了提升采集的图像中坐标系部分和编码部分识别结果的准确性,从而提升位姿计算结果的准确性,当在自移动设备所处的空间内设置二维的位置标识时,位置标识中的坐标系部分和编码部分所处的位置可以设置红外LED光源,用于向外发射红外光,图像传感器可以为红外相机, 从而可拍摄包含位置标识的图像,可以不受自移动设备所处空间内的环境亮度影响,可以提升识别结果的准确性。此外,红外光的波段可为940纳米,以使用户肉眼不可见,从而避免干扰用户。In a possible implementation of the embodiment of the present disclosure, the location identification may be affected by lighting and illumination, and when the ambient brightness is high or low, the accuracy of the image recognition result will be affected. Therefore, in this disclosure, in order to Improve the accuracy of the recognition results of the coordinate system part and the coding part in the collected images, thereby improving the accuracy of the pose calculation results. When a two-dimensional position mark is set in the space where the mobile device is located, the coordinates in the position mark The position of the system part and the coding part can be provided with an infrared LED light source for emitting infrared light to the outside, and the image sensor can be an infrared camera, so that the image containing the position identification can be taken, which can be free from the influence of the mobile device in the space. The influence of ambient brightness can improve the accuracy of the recognition results. In addition, the wavelength of infrared light can be 940 nanometers, so as to be invisible to the user's naked eye, thereby avoiding disturbing the user.
在本公开实施例的另一种可能的实现方式中,位置标识可设计为高反光的形式,自移动设备可以携带光发射器,用于向外发射光线,发射的光线投射到位置标识进行反光,从而根据位置标识上反射的光线,可以捕捉到位置标识。In another possible implementation of the embodiment of the present disclosure, the location marker may be designed in a highly reflective form, and the self-moving device may carry a light emitter for emitting light outward, and the emitted light is projected onto the location marker for reflection. , so that the location marker can be captured according to the light reflected on the location marker.
例如,光发射器可以包括发光二极管,该发光二极管发射的可以为可见光,或者,也可以为非可见光,比如为红外光。For example, the light emitter may comprise a light emitting diode, and the light emitting diode may emit visible light, or may also be non-visible light, such as infrared light.
作为一种可能的实现方式,当编码部分包括多个第一标记点时,可以将候选坐标系中的第一标记点的坐标位置,映射到位置标识所在的标准坐标系中,得到第一标记点在标准坐标系中的坐标位置,根据各第一标记点在标准坐标系中的坐标位置,确定目标编码。下面结合实施例二,对上述过程进行详细说明。As a possible implementation, when the encoding part includes multiple first markers, the coordinate positions of the first markers in the candidate coordinate system can be mapped to the standard coordinate system where the location identifier is located to obtain the first marker The coordinate position of the point in the standard coordinate system, and the target code is determined according to the coordinate position of each first marker point in the standard coordinate system. The above process will be described in detail below with reference to the second embodiment.
图2为本公开实施例二所提供的建立地图的方法的流程示意图。FIG. 2 is a schematic flowchart of a method for establishing a map according to Embodiment 2 of the present disclosure.
如图2所示,该建立地图的方法可以包括以下步骤:As shown in Figure 2, the method for establishing a map may include the following steps:
步骤201,获取自移动设备在移动过程中采集的图像,以及采集图像时自移动设备在地图坐标系中的设备位姿;其中,图像中展示有位置标识,位置标识包括坐标系部分和编码部分,编码部分包括多个第一标记点。 Step 201, obtain the image collected from the mobile device during the moving process, and the device pose of the self-mobile device in the map coordinate system when the image is collected; wherein, the image is displayed with a position mark, and the position mark includes a coordinate system part and a coding part , the coding part includes a plurality of first marking points.
步骤201的执行过程可以参见上述实施例中步骤101的执行过程,在此不做赘述。For the execution process of step 201, reference may be made to the execution process of step 101 in the foregoing embodiment, and details are not described herein.
步骤202,根据坐标系部分,确定候选坐标系。Step 202: Determine a candidate coordinate system according to the coordinate system part.
在本公开实施例的一种可能的实现方式中,坐标系部分可以包括非对称图像,可以根据非对称图像中的设定参考线,确定候选坐标系的坐标轴;其中,坐标轴的方向,是根据非对称图案中设定局部图案所在位置确定的。In a possible implementation manner of the embodiment of the present disclosure, the coordinate system part may include an asymmetric image, and the coordinate axis of the candidate coordinate system may be determined according to a set reference line in the asymmetric image; wherein, the direction of the coordinate axis, It is determined according to the position of the set local pattern in the asymmetric pattern.
举例而言,非对称图案中可以具有两条连接线,可以分别将这两条连接线作为候选坐标系的X轴和Y轴,X轴和Y轴的方向可以根据非对称图案中设定局部图案所在位置确定,例如,可以将设定局部图案所处的象限,作为第一象限,从而可确定X轴和Y轴的方向。当然,也可以将设定局部图案所处的象限,作为第二象限、第三象限或第四象限,本公开对此并不作限制。For example, the asymmetric pattern can have two connecting lines, and these two connecting lines can be used as the X-axis and Y-axis of the candidate coordinate system, and the directions of the X-axis and Y-axis can be set according to the local asymmetric pattern. The location of the pattern is determined, for example, the quadrant where the partial pattern is located can be set as the first quadrant, so that the directions of the X-axis and the Y-axis can be determined. Of course, the quadrant in which the partial pattern is located may also be set as the second quadrant, the third quadrant or the fourth quadrant, which is not limited in the present disclosure.
需要说明的是,上述仅以根据非对称图案中设定局部图案所在位置确定坐标轴的方向进行示例,实际应用时,还可以直接根据设定局部图案的图像特征,来确定坐标轴的方向,比如,设定局部图案为箭头图案,则可以根据设定局部图案的箭头方向确定坐标轴的正方向。It should be noted that the above is only an example of determining the direction of the coordinate axis according to the location of the set local pattern in the asymmetric pattern. In practical applications, the direction of the coordinate axis can also be determined directly according to the image features of the set local pattern. For example, if the partial pattern is set as an arrow pattern, the positive direction of the coordinate axis can be determined according to the arrow direction of the set partial pattern.
在本公开实施例的另一种可能的实现方式中,坐标系部分可以包括非对称图像,可以根据非对称图案中设定关键点所在位置,确定候选坐标系中设定的坐标点。例如,已知非对称图案中设定关键点在候选坐标系中设定的坐标点为(-1,1),此时,可以直接根据该设定的坐标点为(-1,1)建立候选坐标系。In another possible implementation of the embodiment of the present disclosure, the coordinate system part may include an asymmetric image, and the coordinate point set in the candidate coordinate system may be determined according to the position of the key point set in the asymmetric pattern. For example, it is known that the coordinate point set in the candidate coordinate system of the key point in the known asymmetric pattern is (-1, 1). Candidate coordinate system.
在本公开实施例的又一种可能的实现方式中,坐标系部分可以包括非对称图像,可以根据非对称图案中的设定参考线,确定候选坐标系的坐标轴,以及根据非对称图案中设定关键点所在位置,确定候选坐标系中设定的坐标点。其中,坐标轴的方向,是根据非对称图案中设定局部图案所在位置确定的。In yet another possible implementation of the embodiment of the present disclosure, the coordinate system part may include an asymmetric image, the coordinate axis of the candidate coordinate system may be determined according to the set reference line in the asymmetric pattern, and the coordinate axis of the candidate coordinate system may be determined according to the set reference line in the asymmetric pattern. Set the position of the key point, and determine the coordinate point set in the candidate coordinate system. Wherein, the direction of the coordinate axis is determined according to the position where the local pattern is set in the asymmetric pattern.
作为一种示例,参见图3,图3为本公开实施例中的位置标识示意图一。其中,该位置标识包括设定局部图案21和由多个标记点(本公开中记为第一标记点)组成的编码部分22。设定参考线可以为设定局部图案21的对称轴,可以将该设定参考线作为候选坐标系中的X轴,将设定局部图案21的箭头方向,作为X轴的正方向,非对称图案中设置有至少一个设定关键点,该设定关键点可以为候选坐标系的原点,或者是处于Y轴正方向或负方向中的点,根据该设定关键点,以及X轴,可以建立候选坐标系。As an example, refer to FIG. 3 , which is a schematic diagram 1 of a location identification in an embodiment of the present disclosure. Wherein, the position identification includes a set partial pattern 21 and an encoding part 22 composed of a plurality of marking points (referred to as first marking points in the present disclosure). The setting reference line can be the symmetry axis of the setting partial pattern 21, and the setting reference line can be used as the X axis in the candidate coordinate system, and the arrow direction of the setting partial pattern 21 can be regarded as the positive direction of the X axis, and the asymmetrical At least one set key point is set in the pattern. The set key point can be the origin of the candidate coordinate system, or a point in the positive or negative direction of the Y axis. According to the set key point and the X axis, you can Create a candidate coordinate system.
在本公开实施例的再一种可能的实现方式中,坐标系部分可以包括至少五个第二标记 点,可以在图像中,连接共线的至少三个第二标记点,得到两条连线,将处于两条连线交点的第二标记点,确定为候选坐标系的原点,将两条连线,确定为候选坐标系的坐标轴;其中,坐标轴的方向,是根据处于坐标轴上的第二标记点与原点的距离确定的。In yet another possible implementation of the embodiment of the present disclosure, the coordinate system part may include at least five second marking points, and in the image, at least three second marking points that are collinear may be connected to obtain two connecting lines , the second mark point at the intersection of the two connecting lines is determined as the origin of the candidate coordinate system, and the two connecting lines are determined as the coordinate axis of the candidate coordinate system; wherein, the direction of the coordinate axis is based on the coordinate axis. The distance between the second marker point and the origin is determined.
作为一种示例,参见图4,图4为本公开实施例中的位置标识示意图二,其中,字母A表示第二标记点,字母B表示第一标记点。可以确定各第二标记点与原点的距离,根据距离长的一侧,确定坐标轴的正方向,根据距离短的一侧,确定坐标轴的负方向。需要说明的是,图4仅以根据距离长的一侧确定坐标轴的正方向,根据距离短的一侧确定坐标轴的负方向进行示例,实际应用时,也可以根据距离长的一侧,确定坐标轴的负方向,根据距离短的一侧,确定坐标轴的正方向,本公开对此并不做限制。为了便于说明,本公开以根据距离长的一侧,确定坐标轴的正方向,根据距离短的一侧,确定坐标轴的负方向进行示例。As an example, refer to FIG. 4 , which is a second schematic diagram of position identification in an embodiment of the present disclosure, wherein letter A represents the second marking point, and letter B represents the first marking point. The distance between each second marker point and the origin can be determined, the positive direction of the coordinate axis is determined according to the side with the longer distance, and the negative direction of the coordinate axis is determined according to the side with the short distance. It should be noted that Fig. 4 only uses the positive direction of the coordinate axis according to the side with the long distance, and the negative direction of the coordinate axis according to the side with the short distance as an example. The negative direction of the coordinate axis is determined, and the positive direction of the coordinate axis is determined according to the side with the short distance, which is not limited in the present disclosure. For convenience of description, the present disclosure takes as an example that the positive direction of the coordinate axis is determined according to the side with a long distance, and the negative direction of the coordinate axis is determined according to the side with a short distance.
需要说明的是,当坐标系部分中的多个第二标记点与编码部分中多个第一标记点的形状、大小、颜色等特征完全相同时,基于步骤101中的图像识别技术,仅可以识别得到图像中的各个标记点,此时,需要进一步从各个标记点中确定多个第一标记点和多个第二标记点。例如,参见图4,多个第一标记点B和多个第二标记点A的图像特征相同。It should be noted that when the shape, size, color and other characteristics of the plurality of second marking points in the coordinate system part and the plurality of first marking points in the coding part are exactly the same, based on the image recognition technology in step 101, only the After identifying each marker point in the image, at this time, it is necessary to further determine a plurality of first marker points and a plurality of second marker points from each marker point. For example, referring to FIG. 4 , the image features of the plurality of first marking points B and the plurality of second marking points A are the same.
作为本公开实施例的一种可能的实现方式,为了提升识别结果的准确性,可以首先从图像中识别得到各标记点,再从各标记点中识别出各第二标记点;其中,第二标记点的位置分布符合设定的几何约束条件,从而可以将处第二标记点之外的各标记点,作为第一标记点。As a possible implementation manner of the embodiment of the present disclosure, in order to improve the accuracy of the recognition result, each marker point may be first identified from the image, and then each second marker point may be identified from each marker point; The position distribution of the marked points complies with the set geometric constraints, so that each marked point other than the second marked point can be used as the first marked point.
例如,上述设定的几何约束条件可以为非对称的几何约束条件,当第二标记点的位置分布符合非对称的几何约束条件时,可以基于该几何约束条件,确定图像中的候选坐标系的坐标轴以及坐标轴的方向。For example, the geometric constraints set above may be asymmetric geometric constraints. When the position distribution of the second marker points complies with the asymmetric geometric constraints, the geometric constraints can be used to determine the position of the candidate coordinate system in the image. The axis and the direction of the axis.
需要说明的是,上述步骤101和202仅是示例性实施例,但本公开不限于此,还可以包括本领域已知的其他的图像识别方法,只要能够识别得到图像中的各标记点即可。例如,还可以对图像传感器采集到的图像进行预处理,比如高斯模糊、二值化、边缘提取等处理,根据预处理后的图像中各像素点的取值,确定各标记点,或者,还可以直接根据图像传感器采集到的图像中各像素点的取值,确定各标记点。比如,可以确定图像中像素点的取值超过预设阈值的各像素点,并根据取值超过预设阈值的各像素点,确定连通域,将各连通域作为各标记点。或者,可以直接将图像中像素点的取值超过预设阈值的各像素点作为各标记点,本公开对此并不作限制。It should be noted that the above steps 101 and 202 are only exemplary embodiments, but the present disclosure is not limited thereto, and other image recognition methods known in the art may also be included, as long as each marker point in the image can be recognized. . For example, the image collected by the image sensor can also be preprocessed, such as Gaussian blur, binarization, edge extraction, etc., and each marker point can be determined according to the value of each pixel in the preprocessed image, or, Each marker point can be determined directly according to the value of each pixel point in the image collected by the image sensor. For example, each pixel in the image whose value exceeds a preset threshold may be determined, and a connected domain may be determined according to each pixel whose value exceeds the preset threshold, and each connected domain may be used as each marked point. Alternatively, each pixel point in the image whose value exceeds the preset threshold may be directly used as each marker point, which is not limited in the present disclosure.
也就是说,可以根据连通域内的亮度情况,来实现对各标记点进行识别,可以排除形状与标记点相似,但亮度不满足条件的连通域,以提升标记点检测结果的准确性。That is to say, each marker point can be identified according to the brightness in the connected domain, and the connected domain whose shape is similar to the marker point but whose brightness does not satisfy the condition can be excluded, so as to improve the accuracy of the marker point detection result.
应当理解的是,上述实施例中,当第二标记点的位置分布符合非对称的几何约束条件时,可以确定候选坐标系中坐标轴的方向,当坐标轴有方向时,编码在不同象限内具有不同的含义,这种方式还可以增加编码容量。It should be understood that, in the above-mentioned embodiment, when the position distribution of the second marker points complies with the asymmetric geometric constraints, the direction of the coordinate axis in the candidate coordinate system can be determined, and when the coordinate axis has a direction, it is encoded in different quadrants. With different meanings, this way can also increase the encoding capacity.
步骤203,将候选坐标系,与标准坐标系进行坐标系变换,得到候选坐标系与标准坐标系之间的仿射变换矩阵。Step 203: Perform coordinate system transformation between the candidate coordinate system and the standard coordinate system to obtain an affine transformation matrix between the candidate coordinate system and the standard coordinate system.
其中,标准坐标系为位置标识所在的坐标系,即标准坐标系是根据自移动设备所处空间内的位置标识上的坐标系部分,在位置标识上预先建立的坐标系。应当理解的是,图像传感器采集到的图像可能存在畸变,候选坐标系可能存在畸变或扭曲,为观测到的坐标系,随着观测位置的改变而改变,坐标轴可能并非为直的。而标准坐标系是与候选坐标系相对应的,未存在畸变的坐标系,即该标准坐标系不随观测位置的改变而改变。The standard coordinate system is the coordinate system where the location marker is located, that is, the standard coordinate system is a coordinate system pre-established on the location marker according to the part of the coordinate system on the location marker in the space where the mobile device is located. It should be understood that the image collected by the image sensor may be distorted, and the candidate coordinate system may be distorted or distorted. For the observed coordinate system, it changes with the change of the observation position, and the coordinate axis may not be straight. The standard coordinate system corresponds to the candidate coordinate system, and there is no distorted coordinate system, that is, the standard coordinate system does not change with the change of the observation position.
本公开实施例中,仿射变换可以理解为对原坐标轴进行放缩、旋转、平移后形成的新坐标轴。在确定候选坐标系和标准坐标系后,可以根据二维几何变换,确定候选坐标系与标准坐标系之间的仿射变换矩阵。In this embodiment of the present disclosure, affine transformation can be understood as a new coordinate axis formed by scaling, rotating, and translating the original coordinate axis. After the candidate coordinate system and the standard coordinate system are determined, the affine transformation matrix between the candidate coordinate system and the standard coordinate system can be determined according to the two-dimensional geometric transformation.
步骤204,采用仿射变换矩阵,将各第一标记点在候选坐标系中的坐标位置变换至标 准坐标系下,以得到各第一标记点在标准坐标系中的坐标位置。 Step 204, using an affine transformation matrix to transform the coordinate position of each first marker point in the candidate coordinate system to the standard coordinate system, so as to obtain the coordinate position of each first marker point in the standard coordinate system.
本公开实施例中,针对候选坐标系中的每个第一标记点,可以采用仿射变换矩阵,将该第一标记点的坐标位置变换至标准坐标系下,得到该第一标记点在标准坐标系中的坐标位置。In the embodiment of the present disclosure, for each first marker point in the candidate coordinate system, an affine transformation matrix may be used to transform the coordinate position of the first marker point into the standard coordinate system, so as to obtain the first marker point in the standard coordinate system. The coordinate position in the coordinate system.
步骤205,根据各第一标记点在标准坐标系中的坐标位置,确定对应的目标编码。Step 205: Determine the corresponding target code according to the coordinate position of each first marker point in the standard coordinate system.
本公开实施例中,可以根据各第一标记点在标准坐标系中的坐标位置,确定对应的目标编码。例如,可以将各第一标记点在标准坐标系中的坐标位置进行组合,得到对应的目标编码。举例而言,当第一标记点的个数为3个时,假设3个第一标记点在标准坐标系中的坐标位置分别为(1,1)、(2,2)和(3,3),则目标编码例如可以为112233、11-22-33、11 22 33、1-1-2-2-3-3等。In the embodiment of the present disclosure, the corresponding target code may be determined according to the coordinate position of each first marker point in the standard coordinate system. For example, the coordinate positions of the first marker points in the standard coordinate system can be combined to obtain the corresponding target code. For example, when the number of the first marker points is 3, it is assumed that the coordinate positions of the 3 first marker points in the standard coordinate system are (1, 1), (2, 2) and (3, 3 respectively) ), the target code can be, for example, 112233, 11-22-33, 11 22 33, 1-1-2-2-3-3, etc.
步骤206,根据目标编码,查询得到编码部分中各第一标记点在位置标识所在的标准坐标系中的坐标位置,本公开中记为标准坐标位置。 Step 206, according to the target code, query to obtain the coordinate position of each first marker point in the code part in the standard coordinate system where the position identifier is located, which is recorded as the standard coordinate position in the present disclosure.
应当理解的是,每个位置标识是已知的,位置标识中的编码部分和坐标系部分也是已知的,在自移动设备所处空间中设置位置标识后,标准坐标系可以确定,编码部分中各第一标记点在标准坐标系中的标准坐标位置也是可确定的,例如,参见图4,编码部分中的每个第一标记点在标准坐标系中的标准坐标位置是可以计算得到的。因此,本公开中,针对每个位置标识,可以预先计算该位置标识中编码部分中各第一标记点在位置标识所在的标准坐标系中的标准坐标位置,并对应存储各位置标识,与该位置标识中编码部分中第一标记点在该位置标识所在的标准坐标系中的标准坐标位置。It should be understood that each location identifier is known, and the encoding part and the coordinate system part in the location identifier are also known. After the location identifier is set in the space where the mobile device is located, the standard coordinate system can be determined, and the encoding part can be determined. The standard coordinate position of each first marker point in the standard coordinate system can also be determined. For example, referring to FIG. 4, the standard coordinate position of each first marker point in the coding part in the standard coordinate system can be calculated. . Therefore, in the present disclosure, for each location identifier, the standard coordinate position of each first marker point in the coding part of the location identifier in the standard coordinate system where the location identifier is located can be pre-calculated, and each location identifier is stored correspondingly, which is consistent with the location identifier. The standard coordinate position of the first marked point in the coding part of the location identifier in the standard coordinate system where the location identifier is located.
从而本公开中,可以根据目标编码,查询存储的数据,获取与目标编码匹配的标准坐标位置,作为编码部分中各第一标记点在位置标识所在的标准坐标系中的标准坐标位置。Therefore, in the present disclosure, the stored data can be queried according to the target code, and the standard coordinate position matching the target code can be obtained as the standard coordinate position of each first marker point in the coding part in the standard coordinate system where the position identifier is located.
举例而言,当第一标记点的个数为3个时,假设目标编码为1-1-2-2-3.1-3.1,可以查询与该目标编码匹配度最高的属于同一位置标识中的3个第一标记点的标准坐标位置,比如为(1,1)、(2,2)和(3,3),则可以将查询得到的标准坐标位置,作为编码部分中3个第一标记点在位置标识所在的标准坐标系中的标准坐标位置。For example, when the number of the first marking points is 3, assuming that the target code is 1-1-2-2-3.1-3.1, it is possible to query the 3 points in the same location identifier that have the highest matching degree with the target code. The standard coordinate position of the first marker point, such as (1,1), (2,2) and (3,3), the standard coordinate position obtained by the query can be used as the three first marker points in the coding part The standard coordinate position in the standard coordinate system in which the location marker is located.
步骤207,根据标准坐标位置和参考坐标位置,确定标准坐标系与采集图像时自移动设备的坐标系之间的坐标变换关系;其中,参考坐标位置,是编码部分中各第一标记点在候选坐标系中的坐标位置。 Step 207, according to the standard coordinate position and the reference coordinate position, determine the coordinate transformation relationship between the standard coordinate system and the coordinate system of the self-mobile device when the image is collected; wherein, the reference coordinate position is that each first mark point in the coding part is in the candidate position. The coordinate position in the coordinate system.
本公开实施例中,可以根据多个第一标记点对应的标准坐标位置和参考坐标位置,采用PnP算法确定标准坐标系与采集图像时自移动设备的坐标系之间的坐标变换关系,该坐标变换关系可以包括标准坐标系与采集图像时自移动设备的坐标系之间的旋转矩阵R和位移矢量t(或称为平移向量),例如该坐标变换关系可以为由旋转矩阵R和位移矢量t组成的变换矩阵T_t。In this embodiment of the present disclosure, the PnP algorithm may be used to determine the coordinate transformation relationship between the standard coordinate system and the coordinate system of the self-mobile device when the image is captured, according to the standard coordinate positions and reference coordinate positions corresponding to the plurality of first marker points. The transformation relationship can include a rotation matrix R and a displacement vector t (or a translation vector) between the standard coordinate system and the coordinate system of the mobile device when the image is captured. For example, the coordinate transformation relationship can be composed of a rotation matrix R and a displacement vector t. Composition of transformation matrix T_t.
步骤208,根据坐标变换关系,和自移动设备在地图坐标系中的设备位姿,在地图坐标系中标注位置标识的预测位姿。 Step 208 , according to the coordinate transformation relationship and the device pose of the self-mobile device in the map coordinate system, mark the predicted pose of the position marker in the map coordinate system.
步骤208的执行过程可以参见上述实施例的执行过程,在此不做赘述。For the execution process of step 208, reference may be made to the execution process of the foregoing embodiment, and details are not described herein.
需要说明的是,在自移动设备移动过程中,图像传感器可以连续采集图像,采集不同帧图像时,自移动设备在地图坐标系中的设备位姿可以不同,从而根据步骤105计算得到的位姿可以不同,因此,作为本公开实施例的一种可能的实现方式,为了提升计算结果的可靠性,可以对计算得到的各帧图像对应的位姿进行融合,以得到位置标识的预测位姿,并在地图坐标系中标注该位置标识的预测位置。下面结合实施例三,对上述过程进行详细说明。It should be noted that, during the movement of the self-moving device, the image sensor can continuously collect images. When different frames of images are collected, the device pose of the self-moving device in the map coordinate system may be different, so the pose calculated according to step 105 can be different, therefore, as a possible implementation manner of the embodiment of the present disclosure, in order to improve the reliability of the calculation result, the pose corresponding to each frame image obtained by the calculation may be fused to obtain the predicted pose of the position identifier, And mark the predicted location of the location marker in the map coordinate system. The above process will be described in detail below with reference to the third embodiment.
图5为本公开实施例三所提供的建立地图的方法的流程示意图。FIG. 5 is a schematic flowchart of a method for establishing a map according to Embodiment 3 of the present disclosure.
如图5所示,当展示有同一位置标识的图像为至少两帧,并且采集各帧图像时自移动设备在地图坐标系中具有对应的设备位姿时,在图1或图2所示实施例的基础上,步骤105或208可以包括以下步骤:As shown in FIG. 5 , when there are at least two frames of images showing the same position identification, and the self-mobile device has a corresponding device pose in the map coordinate system when each frame of image is collected, the implementation as shown in FIG. 1 or FIG. 2 is performed. On the basis of example, step 105 or 208 may include the following steps:
步骤301,根据标准坐标系与采集各帧图像时自移动设备的坐标系之间的坐标变换关系,以及根据采集各帧图像时自移动设备在地图坐标系中的设备位姿,在地图坐标系中确定各帧图像对应的位置标识的观测位姿。 Step 301, according to the coordinate transformation relationship between the standard coordinate system and the coordinate system of the self-mobile device when collecting each frame of image, and according to the device pose of the self-mobile device in the map coordinate system when collecting each frame of image, in the map coordinate system. Determine the observation pose of the position marker corresponding to each frame of images.
本公开实施例中,针对采集的每帧图像,可以根据公式(1)计算该帧图像对应的位置标识的观测位姿。In the embodiment of the present disclosure, for each frame of image collected, the observed pose of the position identifier corresponding to the frame of image may be calculated according to formula (1).
例如,标记在t0时刻采集的图像为M0,自移动设备在地图坐标系中采集M0时的设备位姿为P0,根据M0中的位置标识,计算得到标准坐标系与采集M0时自移动设备的坐标系之间的坐标变换关系为T_t0,根据公式(1),可以计算得到M0对应的位置标识的观测位姿为
Figure PCTCN2021124196-appb-000002
同理,标记在t1时刻采集的图像为M1,自移动设备在地图坐标系中采集M1时的设备位姿为P1,根据M1中的位置标识,计算得到标准坐标系与采集M1时自移动设备的坐标系之间的坐标变换关系为T_t1,根据公式(1),可以计算得到M1对应的位置标识的观测位姿为
Figure PCTCN2021124196-appb-000003
For example, the image collected at time t0 is marked as M0, and the device pose when M0 is collected from the mobile device in the map coordinate system is P0. The coordinate transformation relationship between the coordinate systems is T_t0. According to formula (1), the observed pose of the position marker corresponding to M0 can be calculated as
Figure PCTCN2021124196-appb-000002
In the same way, the image collected at time t1 is marked as M1, and the device pose when M1 is collected from the mobile device in the map coordinate system is P1. The coordinate transformation relationship between the coordinate systems is T_t1. According to formula (1), the observed pose of the position identifier corresponding to M1 can be calculated as
Figure PCTCN2021124196-appb-000003
步骤302,融合各帧图像对应的观测位姿,得到预测位姿。 Step 302 , fuse the observed poses corresponding to each frame of images to obtain the predicted poses.
本公开实施例中,在计算得到各帧图像对应的位置标识的观测位姿后,可以融合各帧图像对应的观测位姿,得到预测位姿。In the embodiment of the present disclosure, after the observed poses of the position identifiers corresponding to each frame of images are calculated and obtained, the observed poses corresponding to each of the frames of images can be fused to obtain the predicted poses.
在本公开实施例的一种可能的实现方式中,为了提升融合后得到的预测位姿的可靠性,预测位姿与各观测位姿之间的观测差异之和最小化。In a possible implementation manner of the embodiment of the present disclosure, in order to improve the reliability of the predicted pose obtained after fusion, the sum of the observed differences between the predicted pose and each observed pose is minimized.
例如,预测位姿为Target_id_P,各帧图像对应的观测位姿为
Figure PCTCN2021124196-appb-000004
则在融合各帧图像对应的观测位姿,得到预测位姿时,需要满足下述公式(2):
For example, the predicted pose is Target_id_P, and the observed pose corresponding to each frame of image is
Figure PCTCN2021124196-appb-000004
Then, when fusing the observed poses corresponding to each frame of images to obtain the predicted poses, the following formula (2) needs to be satisfied:
Figure PCTCN2021124196-appb-000005
Figure PCTCN2021124196-appb-000005
其中,argmin为使得泛函数取最小值的函数,“–”表示用于表征观测差异的算法,不限于直接相减,||后的上标2表示平方,下标2表示范数2。Among them, argmin is the function that makes the functional function take the minimum value, "-" indicates the algorithm used to characterize the observation difference, not limited to direct subtraction, the superscript 2 after || represents the square, and the subscript 2 represents the norm 2.
需要说明的是,位姿可以包括坐标位置和姿态,为多个维度值,上述公式(2)仅以观测差异为预测位姿与各所述观测位姿之间的多维的位姿差异进行示例,实际应用时,还可以根据重投影、点点间距等算法,计算观测差异,本公开对此并不作限制。比如,可以将预测位姿投影到某一个平面,确定投影后的预测值,并将各观测位姿投影到该平面,确定投影后的各观测值,根据投影后的预测值与各观测值之间的差值,确定观测差异。It should be noted that the pose may include coordinate positions and attitudes, which are multiple dimensional values. The above formula (2) only takes the observation difference as the multi-dimensional pose difference between the predicted pose and each of the observed poses for example. , in practical application, the observation difference can also be calculated according to algorithms such as reprojection and point-to-point spacing, which is not limited in the present disclosure. For example, the predicted pose can be projected onto a certain plane, the predicted predicted value after projection can be determined, and each observed pose can be projected onto the plane to determine each observed value after projection, according to the difference between the predicted predicted value after projection and each observed value The difference between the two to determine the observed difference.
即,本公开中,观测差异是根据预测位姿与各帧图像对应的观测位姿之间的误差距离确定的,其中,误差距离可以为欧式距离、马氏距离等。That is, in the present disclosure, the observation difference is determined according to the error distance between the predicted pose and the observed pose corresponding to each frame of images, where the error distance may be Euclidean distance, Mahalanobis distance, or the like.
步骤303,在地图坐标系中标注位置标识的预测位姿。Step 303: Mark the predicted pose of the position marker in the map coordinate system.
本公开实施例中,在确定位置标识在地图坐标系中的预测位姿,并在地图坐标系中标注位置标识的预测位姿。In the embodiment of the present disclosure, the predicted pose of the location marker in the map coordinate system is determined, and the predicted pose of the location marker is marked in the map coordinate system.
本公开实施例的建立地图的方法,通过在展示有同一位置标识的图像为至少两帧,采集各帧图像时自移动设备在地图坐标系中具有对应的设备位姿时,对根据标准坐标系与采集各帧图像时自移动设备的坐标系之间的坐标变换关系,以及根据采集各帧图像时自移动设备在地图坐标系中的设备位姿,在地图坐标系中确定各帧图像对应的位置标识的观测位姿;融合各帧图像对应的观测位姿,得到预测位姿,并在地图坐标系中标注位置标识的预测位姿。由此,可以提升预测位姿计算结果的可靠性,从而提升后续定位的准确性。In the method for building a map according to the embodiment of the present disclosure, when the images showing the same position identification are at least two frames, when the self-mobile device has a corresponding device pose in the map coordinate system when collecting each frame of images, the image is based on the standard coordinate system. The coordinate transformation relationship between the self-mobile device and the coordinate system of the self-mobile device when each frame of image is collected, and the device pose of the self-mobile device in the map coordinate system when each frame of image is collected. Determine the corresponding frame of image in the map coordinate system. The observed pose of the location marker; the observed pose corresponding to each frame image is fused to obtain the predicted pose, and the predicted pose of the location marker is marked in the map coordinate system. As a result, the reliability of the predicted pose calculation result can be improved, thereby improving the accuracy of subsequent positioning.
需要说明的是,每帧图像中可以展示至少一个位置标识,当每帧图像中展示一个位置标识时,可以根据上述实施例中步骤301计算得到各帧图像中该位置标识的观测位姿,并对观测位姿进行融合,得到预测位姿,该预测位姿满足公式(2)的约束条件,而当每帧图像中展示有多个位置标识时,可以根据步骤301计算得到各帧图像中每个位置标识的观测位姿,并根据同一帧图像对应的每一位置标识的观测位姿,确定相对观测位姿,之后,可以根据各帧图像对应的相对观测位姿,确定至少两个位置标识的预测位姿;其中,至少两个位置标识的预测位姿之间的相对位姿与各帧图像对应的相对观测位姿之间的观测差异之和最小化,以提升预测位姿计算结果的可靠性,从而提升后续定位的准确性。It should be noted that at least one position marker can be displayed in each frame of image, and when one position marker is displayed in each frame of image, the observed pose of the position marker in each frame of image can be calculated according to step 301 in the above-mentioned embodiment, and The observed pose is fused to obtain the predicted pose. The predicted pose satisfies the constraints of formula (2), and when there are multiple position identifiers displayed in each frame of image, each frame of image can be calculated according to step 301. The observation poses of the position markers are determined, and the relative observation poses are determined according to the observation poses of each position marker corresponding to the same frame of images. After that, at least two position markers can be determined according to the relative observation poses corresponding to each frame image. The predicted pose; wherein, the sum of the relative poses between the predicted poses of at least two position markers and the observed difference between the relative observed poses corresponding to each frame image is minimized, so as to improve the accuracy of the predicted pose calculation results. reliability, thereby improving the accuracy of subsequent positioning.
下面结合实施例四,对上述过程进行详细说明。The above process will be described in detail below with reference to the fourth embodiment.
图6为本公开实施例四所提供的建立地图的方法的流程示意图。FIG. 6 is a schematic flowchart of a method for establishing a map according to Embodiment 4 of the present disclosure.
如图6所示,当各帧图像中均展示有至少两个位置标识时,在图5所示实施例的基础上,步骤302可以包括以下步骤:As shown in FIG. 6 , when each frame of image displays at least two position identifiers, on the basis of the embodiment shown in FIG. 5 , step 302 may include the following steps:
步骤401,根据同一帧图像对应的每一位置标识的观测位姿,确定相对观测位姿。Step 401: Determine the relative observation pose according to the observation pose of each position marker corresponding to the same frame of image.
本公开实施例中,针对同一帧图像中的各个位置标识,不同位置标识对应的候选坐标系和标准坐标系是不同的,解码得到的目标编码也是不同的,计算得到的坐标变换关系也是不同的,从而计算得到的观测位姿也是不同的,即,同一帧图像中每个位置标识均具有对应的观测位姿,可以根据同一帧图像对应的每一位置标识的观测位姿,确定相对观测位姿。In the embodiment of the present disclosure, for each position marker in the same frame of image, the candidate coordinate system and the standard coordinate system corresponding to different position markers are different, the target codes obtained by decoding are also different, and the coordinate transformation relations obtained by calculation are also different. , so the calculated observation poses are also different, that is, each position marker in the same frame image has a corresponding observation pose, and the relative observation position can be determined according to the observation pose of each position marker corresponding to the same frame image. posture.
举例而言,当同一帧图像中具有两个位置标识时,分别为位置标识1和位置标识2。标记在t0时刻采集的图像为M0,自移动设备在地图坐标系中采集M0时的设备位姿为P0,根据M0中的位置标识1,计算得到标准坐标系与采集M0时自移动设备的坐标系之间的坐标变换关系为T_t01,根据公式(1),可以计算得到M0对应的位置标识1的观测位姿为
Figure PCTCN2021124196-appb-000006
Figure PCTCN2021124196-appb-000007
根据M0中的位置标识2,计算得到标准坐标系与采集M0时自移动设备的坐标系之间的坐标变换关系为T_t02,根据公式(1),可以计算得到M0对应的位置标识2的观测位姿为
Figure PCTCN2021124196-appb-000008
Figure PCTCN2021124196-appb-000009
则位置标识1和位置标识2之间的相对观测位姿为Target_1_t0–Target_2_t0。
For example, when there are two location identifiers in the same frame of image, they are location identifier 1 and location identifier 2 respectively. The image collected at time t0 is marked as M0, and the device pose when M0 is collected from the mobile device in the map coordinate system is P0. According to the position identifier 1 in M0, the standard coordinate system and the coordinates of the self-mobile device when M0 are collected are calculated. The coordinate transformation relationship between the systems is T_t01. According to formula (1), the observed pose of the position marker 1 corresponding to M0 can be calculated as
Figure PCTCN2021124196-appb-000006
make
Figure PCTCN2021124196-appb-000007
According to the position identifier 2 in M0, the coordinate transformation relationship between the standard coordinate system and the coordinate system of the self-mobile device when collecting M0 is calculated as T_t02, and according to formula (1), the observation position of the position identifier 2 corresponding to M0 can be calculated and obtained pose
Figure PCTCN2021124196-appb-000008
make
Figure PCTCN2021124196-appb-000009
Then the relative observation pose between the position identification 1 and the position identification 2 is Target_1_t0–Target_2_t0.
再例如,标记在t1时刻采集的图像为M1,自移动设备在地图坐标系中采集M1时的设备位姿为P1,根据M1中的位置标识1,计算得到标准坐标系与采集M1时自移动设备的坐标系之间的坐标变换关系为T_t11,根据公式(1),可以计算得到M1对应的位置标识1的观测位姿为
Figure PCTCN2021124196-appb-000010
Figure PCTCN2021124196-appb-000011
根据M1中的位置标识2,计算得到标准坐标系与采集M1时自移动设备的坐标系之间的坐标变换关系为T_t12,根据公式(1),可以计算得到M1对应的位置标识2的观测位姿为
Figure PCTCN2021124196-appb-000012
Figure PCTCN2021124196-appb-000013
Figure PCTCN2021124196-appb-000014
则位置标识1和位置标识2之间的相对观测位姿为Target_1_t1–Target_2_t1。
For another example, the image collected at time t1 is marked as M1, and the device pose when M1 is collected from the mobile device in the map coordinate system is P1. The coordinate transformation relationship between the coordinate systems of the device is T_t11. According to formula (1), the observed pose of the position marker 1 corresponding to M1 can be calculated as:
Figure PCTCN2021124196-appb-000010
make
Figure PCTCN2021124196-appb-000011
According to the position identification 2 in M1, the coordinate transformation relationship between the standard coordinate system and the coordinate system of the mobile device when M1 is collected is calculated as T_t12. According to formula (1), the observation position of the position identification 2 corresponding to M1 can be calculated and obtained. pose
Figure PCTCN2021124196-appb-000012
make
Figure PCTCN2021124196-appb-000013
Figure PCTCN2021124196-appb-000014
Then the relative observation pose between the location identifier 1 and the location identifier 2 is Target_1_t1–Target_2_t1.
因此,本公开中,可以标记各帧图像对应的位置标识1对应的观测位姿为Target_1_tn,位置标识2对应的观测位姿为Target_2_tn,则各帧图像对应的位置标识1和位置标识2之间的相对观测位姿为Target_1_tn–Target_2_tn。Therefore, in the present disclosure, the observed pose corresponding to the position identifier 1 corresponding to each frame of images can be marked as Target_1_tn, and the observed pose corresponding to the position identifier 2 is Target_2_tn, then the distance between the position identifier 1 and the position identifier 2 corresponding to each frame image is The relative observation pose is Target_1_tn–Target_2_tn.
步骤402,根据各帧图像对应的相对观测位姿,确定至少两个位置标识的预测位姿;其中,至少两个位置标识的预测位姿之间的相对位姿与各帧图像对应的相对观测位姿之间的观测差异之和最小化。Step 402: Determine the predicted poses of at least two position markers according to the relative observation poses corresponding to each frame of images; wherein, the relative poses between the predicted poses of the at least two position markers and the relative observation corresponding to each frame image The sum of observed differences between poses is minimized.
仍以上述例子示例,标记位置标识1对应的预测位姿为Target_1,位置标识2对应的预测位姿为Target_2,则两个位置标识的预测位姿之间的相对位姿为Target_1–Target_2,则相对位姿与相对观测位姿之间的观测差异可以满足下述公式(3):Still taking the above example as an example, the predicted pose corresponding to the marker location identifier 1 is Target_1, and the predicted pose corresponding to the location identifier 2 is Target_2, then the relative pose between the predicted poses of the two location markers is Target_1–Target_2, then The observation difference between the relative pose and the relative observation pose can satisfy the following formula (3):
SUM(argmin||(Target_1–Target_2)–(Target_1_tn–Target_2_tn)|| 2 2);  (3) SUM(argmin||(Target_1–Target_2)–(Target_1_tn–Target_2_tn)|| 2 2 ); (3)
其中,观测差异是根据预测位姿与各观测位姿之间的误差距离确定的。Among them, the observation difference is determined according to the error distance between the predicted pose and each observed pose.
本公开实施例中,通过对根据各帧图像对应的相对观测位姿,确定至少两个位置标识的预测位姿;其中,至少两个位置标识的预测位姿之间的相对位姿与各帧图像对应的相对观测位姿之间的观测差异之和最小化,可以得到较为可靠的预测位姿,从而提升后续定位结果的准确性。In the embodiment of the present disclosure, the predicted poses of at least two position markers are determined by the relative observed poses corresponding to each frame of images; wherein the relative poses between the predicted poses of the at least two position markers are related to the The sum of the observation differences between the relative observation poses corresponding to the images is minimized, and a more reliable predicted pose can be obtained, thereby improving the accuracy of the subsequent positioning results.
为了实现上述实施例,本公开还提出一种建立地图的装置。In order to realize the above embodiments, the present disclosure also provides an apparatus for establishing a map.
图7为本公开实施例五所提供的建立地图的装置的结构示意图。FIG. 7 is a schematic structural diagram of an apparatus for establishing a map according to Embodiment 5 of the present disclosure.
如图7所示,该建立地图的装置100可以包括:获取模块110、解码模块120、查询模块130、确定模块140以及标注模块150。As shown in FIG. 7 , the apparatus 100 for establishing a map may include: an acquisition module 110 , a decoding module 120 , a query module 130 , a determination module 140 , and a labeling module 150 .
其中,获取模块110,用于获取自移动设备在移动过程中采集的图像,以及采集图像时自移动设备在地图坐标系中的设备位姿;其中,图像中展示有位置标识。Wherein, the acquisition module 110 is used for acquiring the image collected from the mobile device during the movement process, and the device pose in the map coordinate system of the self-mobile device when the image is collected; wherein, the image displays the position identification.
解码模块120,用于根据位置标识中的坐标系部分,对位置标识中的编码部分解码得到目标编码。The decoding module 120 is configured to decode the coding part in the position identification according to the coordinate system part in the position identification to obtain the target code.
查询模块130,用于根据目标编码,查询得到编码部分在位置标识所在的标准坐标系中的标准坐标位置。The query module 130 is configured to query and obtain the standard coordinate position of the encoded part in the standard coordinate system where the position identifier is located according to the target code.
确定模块140,用于根据标准坐标位置和参考坐标位置,确定标准坐标系与采集图像时自移动设备的坐标系之间的坐标变换关系;其中,参考坐标位置,是编码部分在坐标系部分确定的候选坐标系中的坐标位置。The determination module 140 is used to determine the coordinate transformation relationship between the standard coordinate system and the coordinate system of the self-mobile device when collecting images according to the standard coordinate position and the reference coordinate position; wherein, the reference coordinate position is determined by the coding part in the coordinate system part The coordinate position in the candidate coordinate system of .
标注模块150,用于根据坐标变换关系,和自移动设备在地图坐标系中的设备位姿,在地图坐标系中标注位置标识的预测位姿。The labeling module 150 is configured to label the predicted pose of the position marker in the map coordinate system according to the coordinate transformation relationship and the device pose of the mobile device in the map coordinate system.
进一步地,在本公开实施例的一种可能的实现方式中,展示有同一位置标识的图像为至少两帧,采集各帧图像时自移动设备在地图坐标系中具有对应的设备位姿,则参见图8,在图7所示实施例的基础上,标注模块150,可以包括:Further, in a possible implementation manner of the embodiment of the present disclosure, the images showing the same position identification are at least two frames, and the self-mobile device has a corresponding device pose in the map coordinate system when collecting each frame of images, then Referring to FIG. 8, based on the embodiment shown in FIG. 7, the labeling module 150 may include:
确定单元151,用于根据标准坐标系与采集各帧图像时自移动设备的坐标系之间的坐标变换关系,以及根据采集各帧图像时自移动设备在地图坐标系中的设备位姿,在地图坐标系中确定各帧图像对应的位置标识的观测位姿;The determining unit 151 is configured to, according to the coordinate transformation relationship between the standard coordinate system and the coordinate system of the self-mobile device when collecting each frame of image, and according to the device pose of the self-mobile device in the map coordinate system when collecting each frame of image, in the In the map coordinate system, determine the observation pose of the position identification corresponding to each frame of image;
融合单元152,用于融合各帧图像对应的观测位姿,得到预测位姿;The fusion unit 152 is used to fuse the observed poses corresponding to each frame of images to obtain the predicted poses;
标注单元153,用于在地图坐标系中标注位置标识的预测位姿。The labeling unit 153 is configured to label the predicted pose of the position marker in the map coordinate system.
作为一种可能的实现方式,预测位姿与各观测位姿之间的观测差异之和最小化。As a possible implementation, the sum of the observed differences between the predicted pose and each observed pose is minimized.
进一步地,在本公开实施例的一种可能的实现方式中,各帧图像中均展示有至少两个位置标识;其中,融合单元152,用于:根据同一帧图像对应的每一位置标识的观测位姿,确定相对观测位姿;根据各帧图像对应的相对观测位姿,确定至少两个位置标识的预测位姿;其中,至少两个位置标识的预测位姿之间的相对位姿与各帧图像对应的相对观测位姿之间的观测差异之和最小化。Further, in a possible implementation manner of the embodiment of the present disclosure, each frame of image displays at least two position identifiers; wherein, the fusion unit 152 is configured to: according to each position identifier corresponding to the same frame of image Observe the pose, and determine the relative observation pose; according to the relative observation pose corresponding to each frame of images, determine the predicted pose of at least two position markers; wherein, the relative pose between the predicted poses of the at least two position markers is the same as The sum of observation differences between the relative observation poses corresponding to each frame image is minimized.
作为一种可能的实现方式,观测差异是根据预测位姿与各观测位姿之间的误差距离确定的。As a possible implementation, the observed difference is determined according to the error distance between the predicted pose and each observed pose.
进一步地,在本公开实施例的一种可能的实现方式中,参见图8,在图7所示实施例的基础上,解码模块120,可以包括:Further, in a possible implementation manner of the embodiment of the present disclosure, referring to FIG. 8 , on the basis of the embodiment shown in FIG. 7 , the decoding module 120 may include:
处理单元121,用于根据位置标识中的坐标系部分,确定候选坐标系。The processing unit 121 is configured to determine a candidate coordinate system according to the coordinate system part in the position identification.
解码单元122,用于根据位置标识中的编码部分在候选坐标系中的参考坐标位置,解码得到目标编码。The decoding unit 122 is configured to decode and obtain the target code according to the reference coordinate position of the coding part in the position identification in the candidate coordinate system.
在本公开实施例的一种可能的实现方式中,编码部分包括多个第一标记点;解码单元122,用于:将候选坐标系,与标准坐标系进行坐标系变换,得到候选坐标系与标准坐标系之间的仿射变换矩阵;采用仿射变换矩阵,将各第一标记点在候选坐标系中的坐标位置变换至标准坐标系下,以得到各第一标记点在标准坐标系中的坐标位置;根据各第一标记点在标准坐标系中的坐标位置,确定对应的目标编码。In a possible implementation manner of the embodiment of the present disclosure, the encoding part includes a plurality of first marking points; the decoding unit 122 is configured to: perform coordinate system transformation between the candidate coordinate system and the standard coordinate system to obtain the candidate coordinate system and the standard coordinate system. Affine transformation matrix between standard coordinate systems; using the affine transformation matrix, the coordinate position of each first marker point in the candidate coordinate system is transformed to the standard coordinate system, so as to obtain each first marker point in the standard coordinate system According to the coordinate position of each first marker point in the standard coordinate system, the corresponding target code is determined.
在本公开实施例的一种可能的实现方式中,坐标系部分包括至少五个第二标记点;其中,处理单元121,用于:在图像中,连接共线的至少三个第二标记点,得到两条连线;将处于两条连线交点的第二标记点,确定为候选坐标系的原点,将两条连线,确定为候选坐标系的坐标轴;其中,坐标轴的方向,是根据处于坐标轴上的第二标记点与原点的距离确定的。In a possible implementation of the embodiment of the present disclosure, the coordinate system part includes at least five second mark points; wherein, the processing unit 121 is configured to: in the image, connect at least three collinear second mark points , two connecting lines are obtained; the second marked point at the intersection of the two connecting lines is determined as the origin of the candidate coordinate system, and the two connecting lines are determined as the coordinate axis of the candidate coordinate system; among them, the direction of the coordinate axis, It is determined according to the distance between the second marker point on the coordinate axis and the origin.
在本公开实施例的另一种可能的实现方式中,坐标系部分包括非对称图案;其中,处理单元121,用于:根据非对称图案中的设定参考线,确定候选坐标系的坐标轴;其中,坐标轴的方向,是根据非对称图案中设定局部图案所在位置确定的;和/或,根据非对称图案中设定关键点所在位置,确定候选坐标系中设定的坐标点。In another possible implementation of the embodiment of the present disclosure, the coordinate system part includes an asymmetric pattern; wherein, the processing unit 121 is configured to: determine the coordinate axis of the candidate coordinate system according to the set reference line in the asymmetric pattern wherein, the direction of the coordinate axis is determined according to the location of the set local pattern in the asymmetric pattern; and/or, the coordinate point set in the candidate coordinate system is determined according to the location of the key point set in the asymmetric pattern.
需要说明的是,前述对建立地图的方法实施例的解释说明也适用于该实施例的建立地图的装置,此处不再赘述。It should be noted that, the foregoing explanations on the method embodiment for establishing a map are also applicable to the apparatus for establishing a map in this embodiment, and details are not repeated here.
本公开实施例的建立地图的装置,通过获取自移动设备在移动过程中采集的图像,以及采集图像时自移动设备在地图坐标系中的设备位姿;根据图像中的位置标识中的坐标系部分,对位置标识中的编码部分解码得到目标编码;根据目标编码,查询得到编码部分在位置标识所在的标准坐标系中的标准坐标位置;根据标准坐标位置和参考坐标位置,确定标准坐标系与采集图像时自移动设备的坐标系之间的坐标变换关系;其中,参考坐标位置,是编码部分在坐标系部分确定的候选坐标系中的坐标位置;根据坐标变换关系,和自移动设备在地图坐标系中的设备位姿,在地图坐标系中标注位置标识的预测位姿。本公开中,根据位置标识来建立地图,即使自移动设备所处空间内的陈设位置发生变化,或者人员移动干扰激光雷达扫描周围环境,建立的地图也不会失效,从而可以有效定位自移动设备的位置,提升该装置的适用性。The apparatus for establishing a map according to the embodiment of the present disclosure obtains the images collected from the mobile device during the movement process, and the device pose of the self-mobile device in the map coordinate system when the image is collected; part, decode the coding part in the position mark to obtain the target code; according to the target code, query to obtain the standard coordinate position of the coding part in the standard coordinate system where the position mark is located; according to the standard coordinate position and the reference coordinate position, determine the standard coordinate system and the reference coordinate position. The coordinate transformation relationship between the coordinate systems of the self-mobile device when the image is collected; wherein, the reference coordinate position is the coordinate position of the coding part in the candidate coordinate system determined by the coordinate system part; The device pose in the coordinate system, and the predicted pose of the location marker is marked in the map coordinate system. In the present disclosure, the map is established according to the location identification, even if the display position in the space where the mobile device is located changes, or the movement of people interferes with the lidar scanning the surrounding environment, the established map will not fail, so that the self-mobile device can be effectively located. position to enhance the applicability of the device.
为了实现上述实施例,本公开还提出一种自移动设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时,实现如本公开前述任一实施例提出的建立地图的方法。In order to implement the above embodiments, the present disclosure also proposes a self-mobile device, including: a memory, a processor, and a computer program stored in the memory and running on the processor, when the processor executes the program, the The method for establishing a map proposed by any of the foregoing embodiments of the present disclosure.
本公开第四方面实施例提出了一种非临时性计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本公开前述任一实施例提出的建立地图的方法。Embodiments of the fourth aspect of the present disclosure provide a non-transitory computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the method for building a map as proposed in any of the foregoing embodiments of the present disclosure.
本公开第五方面实施例提出了一种计算机程序产品,当所述计算机程序产品中的指令被处理器执行时,实现如本公开前述任一实施例提出的建立地图的方法。Embodiments of the fifth aspect of the present disclosure provide a computer program product. When instructions in the computer program product are executed by a processor, the method for building a map as proposed in any of the foregoing embodiments of the present disclosure is implemented.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本公开的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, description with reference to the terms "one embodiment," "some embodiments," "example," "specific example," or "some examples", etc., mean specific features described in connection with the embodiment or example , structures, materials, or features are included in at least one embodiment or example of the present disclosure. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, those skilled in the art may combine and combine the different embodiments or examples described in this specification, as well as the features of the different embodiments or examples, without conflicting each other.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本公开的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implying the number of indicated technical features. Thus, a feature delimited with "first", "second" may expressly or implicitly include at least one of that feature. In the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless expressly and specifically defined otherwise.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现定制逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本公开的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本公开的实施例所属技术领域的技术人员所理解。Any process or method description in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing custom logical functions or steps of the process , and the scope of the preferred embodiments of the present disclosure includes alternative implementations in which the functions may be performed out of the order shown or discussed, including performing the functions substantially concurrently or in the reverse order depending upon the functions involved, which should It is understood by those skilled in the art to which the embodiments of the present disclosure pertain.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in flowcharts or otherwise described herein, for example, may be considered an ordered listing of executable instructions for implementing the logical functions, may be embodied in any computer-readable medium, For use with, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other system that can fetch instructions from and execute instructions from an instruction execution system, apparatus, or apparatus) or equipment. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport the program for use by or in connection with an instruction execution system, apparatus, or apparatus. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections with one or more wiring (electronic devices), portable computer disk cartridges (magnetic devices), random access memory (RAM), Read Only Memory (ROM), Erasable Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Compact Disc Read Only Memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program may be printed, as the paper or other medium may be optically scanned, for example, followed by editing, interpretation, or other suitable medium as necessary process to obtain the program electronically and then store it in computer memory.
应当理解,本公开的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。如,如果用硬件来实现和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented by any one of the following techniques known in the art, or a combination thereof: discrete with logic gates for implementing logic functions on data signals Logic circuits, application specific integrated circuits with suitable combinational logic gates, Programmable Gate Arrays (PGA), Field Programmable Gate Arrays (FPGA), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium, and the program is stored in a computer-readable storage medium. When executed, one or a combination of the steps of the method embodiment is included.
此外,在本公开各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing module, or each unit may exist physically alone, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may also be stored in a computer-readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本公开的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本公开的限制,本领域的普通技术人员在本公开的范围内可以对上述实施例进行变化、修改、替换和变型。The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, and the like. Although the embodiments of the present disclosure have been shown and described above, it should be understood that the above-described embodiments are exemplary and should not be construed as limitations of the present disclosure, and those of ordinary skill in the art may interpret the above-described embodiments within the scope of the present disclosure. Embodiments are subject to variations, modifications, substitutions and variations.

Claims (13)

  1. 一种建立地图的方法,其特征在于,所述方法包括:A method for establishing a map, the method comprising:
    获取自移动设备在移动过程中采集的图像,以及采集所述图像时所述自移动设备在地图坐标系中的设备位姿;其中,所述图像中展示有位置标识;Obtaining an image collected from a mobile device during the movement process, and the device pose of the self-mobile device in the map coordinate system when the image is collected; wherein, the image displays a position identifier;
    根据所述位置标识中的坐标系部分,对所述位置标识中的编码部分解码得到目标编码;According to the coordinate system part in the position identification, decode the coding part in the position identification to obtain the target code;
    根据所述目标编码,查询得到所述编码部分在所述位置标识所在的标准坐标系中的标准坐标位置;According to the target code, query to obtain the standard coordinate position of the code part in the standard coordinate system where the position identifier is located;
    根据所述标准坐标位置和参考坐标位置,确定所述标准坐标系与采集所述图像时所述自移动设备的坐标系之间的坐标变换关系;其中,所述参考坐标位置,是所述编码部分在所述坐标系部分确定的候选坐标系中的坐标位置;According to the standard coordinate position and the reference coordinate position, determine the coordinate transformation relationship between the standard coordinate system and the coordinate system of the self-mobile device when the image is captured; wherein, the reference coordinate position is the code the coordinate position of the part in the candidate coordinate system determined by the coordinate system part;
    根据所述坐标变换关系,和所述自移动设备在地图坐标系中的设备位姿,在所述地图坐标系中标注所述位置标识的预测位姿。According to the coordinate transformation relationship and the device pose of the self-moving device in the map coordinate system, the predicted pose of the location identifier is marked in the map coordinate system.
  2. 根据权利要求1所述的建立地图的方法,其特征在于,展示有同一所述位置标识的所述图像为至少两帧,采集各帧图像时所述自移动设备在地图坐标系中具有对应的设备位姿;The method for building a map according to claim 1, wherein the images showing the same location identifier are at least two frames, and the self-mobile device has a corresponding image in the map coordinate system when collecting each frame of images. equipment pose;
    其中,所述根据所述坐标变换关系,和所述自移动设备在地图坐标系中的设备位姿,在所述地图坐标系中标注所述位置标识的预测位姿,包括:Wherein, according to the coordinate transformation relationship and the device pose of the self-mobile device in the map coordinate system, marking the predicted pose of the location identifier in the map coordinate system includes:
    根据所述标准坐标系与采集各帧所述图像时所述自移动设备的坐标系之间的坐标变换关系,以及根据采集各帧图像时所述自移动设备在地图坐标系中的设备位姿,在所述地图坐标系中确定各帧所述图像对应的所述位置标识的观测位姿;According to the coordinate transformation relationship between the standard coordinate system and the coordinate system of the self-mobile device when each frame of the image is collected, and according to the device pose of the self-mobile device in the map coordinate system when each frame of image is collected , in the map coordinate system, determine the observation pose of the position marker corresponding to each frame of the image;
    融合各帧所述图像对应的观测位姿,得到所述预测位姿;Fusing the observed poses corresponding to the images in each frame to obtain the predicted poses;
    在所述地图坐标系中标注所述位置标识的所述预测位姿。The predicted pose of the location marker is marked in the map coordinate system.
  3. 根据权利要求2所述的建立地图的方法,其特征在于,所述预测位姿与各所述观测位姿之间的观测差异之和最小化。The method for building a map according to claim 2, wherein the sum of the observed differences between the predicted pose and each of the observed poses is minimized.
  4. 根据权利要求2或3所述的建立地图的方法,其特征在于,各帧所述图像中均展示有至少两个所述位置标识;The method for building a map according to claim 2 or 3, wherein at least two of the location identifiers are displayed in each frame of the image;
    其中,所述融合各帧所述图像对应的观测位姿,得到所述预测位姿,包括:Wherein, the fusion of the observed poses corresponding to the images of each frame to obtain the predicted poses includes:
    根据同一帧所述图像对应的每一所述位置标识的观测位姿,确定相对观测位姿;Determine the relative observation pose according to the observed pose of each of the position markers corresponding to the same frame of the image;
    根据各帧所述图像对应的相对观测位姿,确定所述至少两个所述位置标识的预测位姿;其中,所述至少两个位置标识的预测位姿之间的相对位姿与各帧所述图像对应的相对观测位姿之间的观测差异之和最小化。Determine the predicted poses of the at least two position markers according to the relative observed poses corresponding to the images of each frame; wherein, the relative poses between the predicted poses of the at least two position markers are the same as each frame. The sum of the observed differences between the relative observed poses corresponding to the images is minimized.
  5. 根据权利要求3或4所述的建立地图的方法,其特征在于,所述观测差异是根据所述预测位姿与各所述观测位姿之间的误差距离确定的。The method for building a map according to claim 3 or 4, wherein the observed difference is determined according to an error distance between the predicted pose and each of the observed poses.
  6. 根据权利要求1-5任一项所述的建立地图的方法,其特征在于,所述根据所述位置标识中的坐标系部分,对所述位置标识中的编码部分解码得到目标编码,包括:The method for building a map according to any one of claims 1-5, wherein, according to the coordinate system part in the position identification, decoding the coding part in the position identification to obtain the target code, comprising:
    根据所述位置标识中的坐标系部分,确定候选坐标系;Determine a candidate coordinate system according to the coordinate system part in the position identification;
    根据所述位置标识中的编码部分在所述候选坐标系中的参考坐标位置,解码得到所述目标编码。The target code is obtained by decoding according to the reference coordinate position of the coding part in the position identification in the candidate coordinate system.
  7. 根据权利要求6所述的建立地图的方法,其特征在于,所述编码部分包括多个第一标记点;所述根据所述位置标识中的编码部分在所述候选坐标系中的参考坐标位置,解码得到所述目标编码,包括:The method for building a map according to claim 6, wherein the coding part comprises a plurality of first marking points; the reference coordinate position in the candidate coordinate system according to the coding part in the position identification , decoding to obtain the target code, including:
    将所述候选坐标系,与所述标准坐标系进行坐标系变换,得到所述候选坐标系与所述标准坐标系之间的仿射变换矩阵;performing coordinate system transformation between the candidate coordinate system and the standard coordinate system to obtain an affine transformation matrix between the candidate coordinate system and the standard coordinate system;
    采用所述仿射变换矩阵,将各所述第一标记点在所述候选坐标系中的坐标位置变换至所述标准坐标系下,以得到各所述第一标记点在所述标准坐标系中的坐标位置;Using the affine transformation matrix, transform the coordinate positions of the first marker points in the candidate coordinate system to the standard coordinate system, so as to obtain the standard coordinate system of the first marker points. The coordinate position in ;
    根据各所述第一标记点在所述标准坐标系中的坐标位置,确定对应的目标编码。According to the coordinate position of each first marker point in the standard coordinate system, the corresponding target code is determined.
  8. 根据权利要求6或7所述的建立地图的方法,其特征在于,所述坐标系部分包括至少五个第二标记点;The method for building a map according to claim 6 or 7, wherein the coordinate system part includes at least five second marking points;
    其中,所述根据所述位置标识中的坐标系部分,确定候选坐标系,包括:Wherein, determining the candidate coordinate system according to the coordinate system part in the position identification includes:
    在所述图像中,连接共线的至少三个所述第二标记点,得到两条连线;In the image, connecting at least three of the second marking points that are collinear to obtain two connecting lines;
    将处于所述两条连线交点的第二标记点,确定为所述候选坐标系的原点,将所述两条连线,确定为所述候选坐标系的坐标轴;其中,所述坐标轴的方向,是根据处于所述坐标轴上的所述第二标记点与所述原点的距离确定的。Determining the second marked point at the intersection of the two connecting lines as the origin of the candidate coordinate system, and determining the two connecting lines as the coordinate axis of the candidate coordinate system; wherein, the coordinate axis The direction of , is determined according to the distance between the second marker point on the coordinate axis and the origin.
  9. 根据权利要求6或7所述的建立地图的方法,其特征在于,所述坐标系部分包括非对称图案;The method for establishing a map according to claim 6 or 7, wherein the coordinate system part comprises an asymmetric pattern;
    其中,所述根据所述位置标识中的坐标系部分,确定候选坐标系,包括:Wherein, determining the candidate coordinate system according to the coordinate system part in the position identification includes:
    根据所述非对称图案中的设定参考线,确定所述候选坐标系的坐标轴;其中,所述坐标轴的方向,是根据所述非对称图案中设定局部图案所在位置确定的;Determine the coordinate axis of the candidate coordinate system according to the set reference line in the asymmetric pattern; wherein, the direction of the coordinate axis is determined according to the location of the set local pattern in the asymmetric pattern;
    和/或,根据所述非对称图案中设定关键点所在位置,确定所述候选坐标系中设定的坐标点。And/or, according to the position of the set key point in the asymmetric pattern, the set coordinate point in the candidate coordinate system is determined.
  10. 一种建立地图的装置,其特征在于,包括:A device for establishing a map, comprising:
    获取模块,用于获取自移动设备在移动过程中采集的图像,以及采集所述图像时所述自移动设备在地图坐标系中的设备位姿;其中,所述图像中展示有位置标识;an acquisition module, configured to acquire an image collected from the mobile device during the movement process, and the device pose of the self-mobile device in the map coordinate system when the image is collected; wherein, the image displays a position identifier;
    解码模块,用于根据所述位置标识中的坐标系部分,对所述位置标识中的编码部分解码得到目标编码;A decoding module for decoding the coding part in the position identification to obtain the target code according to the coordinate system part in the position identification;
    查询模块,用于根据所述目标编码,查询得到所述编码部分在所述位置标识所在的标准坐标系中的标准坐标位置;a query module, configured to query and obtain the standard coordinate position of the coding part in the standard coordinate system where the position identifier is located according to the target code;
    确定模块,用于根据所述标准坐标位置和参考坐标位置,确定所述标准坐标系与采集所述图像时所述自移动设备的坐标系之间的坐标变换关系;其中,所述参考坐标位置,是所述编码部分在所述坐标系部分确定的候选坐标系中的坐标位置;A determination module, configured to determine the coordinate transformation relationship between the standard coordinate system and the coordinate system of the self-mobile device when the image is collected according to the standard coordinate position and the reference coordinate position; wherein the reference coordinate position , is the coordinate position of the coding part in the candidate coordinate system determined by the coordinate system part;
    标注模块,用于根据所述坐标变换关系,和所述自移动设备在地图坐标系中的设备位姿,在所述地图坐标系中标注所述位置标识的预测位姿。A labeling module, configured to label the predicted pose of the location identifier in the map coordinate system according to the coordinate transformation relationship and the device pose of the self-mobile device in the map coordinate system.
  11. 一种自移动设备,其特征在于,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时,实现如权利要求1-9中任一所述的建立地图的方法。A self-moving device is characterized in that, comprising a memory, a processor and a computer program stored in the memory and running on the processor, when the processor executes the program, it realizes any one of claims 1-9. 1. The described method of building a map.
  12. 一种非临时性计算机可读存储介质,其上存储有计算机程序,其特征在于,所述程序被处理器执行时实现如权利要求1-9中任一所述的建立地图的方法。A non-transitory computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the method for establishing a map according to any one of claims 1-9 is implemented.
  13. 一种计算机程序产品,包括计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1-9中任一项所述的建立地图的方法。A computer program product, comprising a computer program, characterized in that, when the computer program is executed by a processor, the method for establishing a map according to any one of claims 1-9 is implemented.
PCT/CN2021/124196 2020-10-16 2021-10-15 Map establishment method and apparatus, and self-moving device and storage medium WO2022078512A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011106961.2A CN111932675B (en) 2020-10-16 2020-10-16 Map building method and device, self-moving equipment and storage medium
CN202011106961.2 2020-10-16

Publications (1)

Publication Number Publication Date
WO2022078512A1 true WO2022078512A1 (en) 2022-04-21

Family

ID=73334528

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/124196 WO2022078512A1 (en) 2020-10-16 2021-10-15 Map establishment method and apparatus, and self-moving device and storage medium

Country Status (2)

Country Link
CN (1) CN111932675B (en)
WO (1) WO2022078512A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115379562A (en) * 2022-10-25 2022-11-22 杭州华橙软件技术有限公司 Method and device for determining network supply position, storage medium and electronic device
CN115797585A (en) * 2022-12-19 2023-03-14 北京百度网讯科技有限公司 Parking lot map generation method and device

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111932675B (en) * 2020-10-16 2020-12-29 北京猎户星空科技有限公司 Map building method and device, self-moving equipment and storage medium
CN113470143B (en) * 2021-06-29 2024-04-05 阿波罗智能技术(北京)有限公司 Electronic map drawing method, device, equipment and automatic driving vehicle
CN113639639A (en) * 2021-08-31 2021-11-12 追觅创新科技(苏州)有限公司 Data processing method and device for position data and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101798041B1 (en) * 2016-06-29 2017-11-17 성균관대학교산학협력단 Device for 3 dimensional object recognition and pose estimation and method for the same
CN110411464A (en) * 2019-07-12 2019-11-05 中南大学 Three-dimensional point cloud ground drawing generating method, device, equipment and storage medium
CN111179427A (en) * 2019-12-24 2020-05-19 深圳市优必选科技股份有限公司 Autonomous mobile device, control method thereof, and computer-readable storage medium
CN111442722A (en) * 2020-03-26 2020-07-24 达闼科技成都有限公司 Positioning method, positioning device, storage medium and electronic equipment
CN111932675A (en) * 2020-10-16 2020-11-13 北京猎户星空科技有限公司 Map building method and device, self-moving equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107091643A (en) * 2017-06-07 2017-08-25 旗瀚科技有限公司 A kind of indoor navigation method based on many 3D structure lights camera splicings
CN108332752B (en) * 2018-01-09 2021-04-20 深圳市无限动力发展有限公司 Indoor robot positioning method and device
CN111354042B (en) * 2018-12-24 2023-12-01 深圳市优必选科技有限公司 Feature extraction method and device of robot visual image, robot and medium
CN109724603A (en) * 2019-01-08 2019-05-07 北京航空航天大学 A kind of Indoor Robot air navigation aid based on environmental characteristic detection
CN111679291B (en) * 2020-06-17 2022-12-06 四川智动木牛智能科技有限公司 Inspection robot target positioning configuration method based on three-dimensional laser radar

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101798041B1 (en) * 2016-06-29 2017-11-17 성균관대학교산학협력단 Device for 3 dimensional object recognition and pose estimation and method for the same
CN110411464A (en) * 2019-07-12 2019-11-05 中南大学 Three-dimensional point cloud ground drawing generating method, device, equipment and storage medium
CN111179427A (en) * 2019-12-24 2020-05-19 深圳市优必选科技股份有限公司 Autonomous mobile device, control method thereof, and computer-readable storage medium
CN111442722A (en) * 2020-03-26 2020-07-24 达闼科技成都有限公司 Positioning method, positioning device, storage medium and electronic equipment
CN111932675A (en) * 2020-10-16 2020-11-13 北京猎户星空科技有限公司 Map building method and device, self-moving equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115379562A (en) * 2022-10-25 2022-11-22 杭州华橙软件技术有限公司 Method and device for determining network supply position, storage medium and electronic device
CN115379562B (en) * 2022-10-25 2023-02-28 杭州华橙软件技术有限公司 Method and device for determining network supply position, storage medium and electronic device
CN115797585A (en) * 2022-12-19 2023-03-14 北京百度网讯科技有限公司 Parking lot map generation method and device
CN115797585B (en) * 2022-12-19 2023-08-08 北京百度网讯科技有限公司 Parking lot map generation method and device

Also Published As

Publication number Publication date
CN111932675A (en) 2020-11-13
CN111932675B (en) 2020-12-29

Similar Documents

Publication Publication Date Title
WO2022078512A1 (en) Map establishment method and apparatus, and self-moving device and storage medium
WO2022078513A1 (en) Positioning method and apparatus, self-moving device, and storage medium
WO2022078488A1 (en) Positioning method and apparatus, self-moving device, and storage medium
US20200334843A1 (en) Information processing apparatus, control method for same, non-transitory computer-readable storage medium, and vehicle driving support system
CN109345588B (en) Tag-based six-degree-of-freedom attitude estimation method
CN108090958B (en) Robot synchronous positioning and map building method and system
US9157757B1 (en) Methods and systems for mobile-agent navigation
US9990726B2 (en) Method of determining a position and orientation of a device associated with a capturing device for capturing at least one image
CN108022264B (en) Method and equipment for determining camera pose
US20160246302A1 (en) Methods and systems for mobile-agent navigation
Mishra et al. Extrinsic Calibration of a 3D-LIDAR and a Camera
US20200309534A1 (en) Systems and methods for robust self-relocalization in a pre-built visual map
US20210374978A1 (en) Capturing environmental scans using anchor objects for registration
CN112265463B (en) Control method and device of self-moving equipment, self-moving equipment and medium
Martín-Martín et al. Jrdb: A dataset and benchmark for visual perception for navigation in human environments
Huang et al. Accurate direct visual-laser odometry with explicit occlusion handling and plane detection
Yamamoto et al. Optical sensing for robot perception and localization
Khurana et al. Extrinsic calibration methods for laser range finder and camera: A systematic review
CN111444768A (en) Method for discovering tiny obstacles for reflective ground scene
Tamaazousti et al. The constrained SLAM framework for non-instrumented augmented reality: Application to industrial training
López-Nicolás et al. Spatial layout recovery from a single omnidirectional image and its matching-free sequential propagation
KR100906991B1 (en) Method for detecting invisible obstacle of robot
Li et al. Indoor layout estimation by 2d lidar and camera fusion
Barceló et al. Image-based floor segmentation in visual inertial navigation
Pauls et al. Automatic mapping of tailored landmark representations for automated driving and map learning

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21879553

Country of ref document: EP

Kind code of ref document: A1