Multi-feature indoor visual positioning method and system based on ground segmentation network

By adopting a multi-feature indoor visual positioning method based on ground segmentation network in visual SLAM, point, line and surface features are extracted and processed, and dynamic features are eliminated using a full convolutional network, the problem of low positioning accuracy in indoor environments is solved, and the problem of low positioning accuracy in indoor environments is realized. More stable and precise pose estimation.

CN118887288AActive Publication Date: 2024-11-01SKYLAB M&C TECH

Patent Information

Application Number
CN202410947916.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-11-01
Estimated Expiration
2044-07-16

AI Technical Summary

Technical Problem

The existing visual SLAM technology has low positioning accuracy and unstable feature point extraction, which is easily affected by environmental changes, and leads to positioning failure in indoor environments where low texture or repeated textures or missing textures and prone to specular reflections.

Method used

A multi-feature indoor visual positioning method based on ground segmentation network is adopted. Point features, line features and surface features are extracted, and semantic segmentation is used to eliminate dynamic features to ensure the stability of features and improve positioning accuracy.

Benefits of technology

It improves the robustness and accuracy of indoor visual positioning, can perform position estimation more accurately in complex environments, and enhances the positioning capabilities of intelligent robots.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118887288A_ABST
    Figure CN118887288A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of indoor positioning, and discloses a multi-feature indoor visual positioning method and system based on a ground segmentation network, and the method comprises the steps: obtaining an initial image containing environment information; extracting point features, line features and surface features based on the initial image; respectively matching the point feature, the line feature and the surface feature of the current frame with the point feature, the line feature and the surface feature in the previous key frame, calculating a matching error, and optimizing to obtain an estimated pose; judging whether the current frame is a new key frame or not according to the estimated pose; if the current frame is a new key frame, performing semantic segmentation on the initial image based on a preset full convolutional network model to obtain a ground semantic masking map, and eliminating dynamic point features and dynamic line features located on the ground in the current frame by using the ground semantic masking map; and executing local mapping operation. The method has the advantages that the precision and robustness of the positioning method are improved, and the intelligent robot is assisted in more accurate and faster positioning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of indoor positioning technology, and in particular to a multi-feature indoor visual positioning method and system based on a ground segmentation network. Background Art

[0002] With the advancement of science and technology, intelligent robots are gradually integrating into our daily lives. For intelligent robots, positioning is a basic but crucial requirement. The improvement of positioning capability will make intelligent robots more accurate and more stable when performing tasks. At present, visual SLAM (Simultaneous Localization and Mapping) technology is a technology that obtains environmental information through cameras, locates in real time and builds maps. Compared with satellite positioning and lidar, visual SLAM has the advantages of low cost and easy deployment, and it can work in complex environments, without the limitation that satellite positioning can only work in outdoor environments. According to the different front ends, visual SLAM can be mainly divided into feature point SLAM and direct SLAM. Feature point SLAM first obtains significant feature points in the image through feature point detection and descriptor extraction, and uses these feature points for camera posture estimation and map construction. The extracted feature points are invariant and can be matched between different frames. Common feature points include corner points, edges, etc. However, due to the limitations of feature point extraction and matching, feature point SLAM performs poorly in areas with low texture, repeated texture or texture loss. Direct SLAM uses the pixel values ​​of the image directly for motion estimation and map construction, estimates the camera motion by minimizing the brightness error between images, and uses the gradient information of the image brightness to estimate the depth information of the map, without the need to pre-detect and extract feature points. However, the challenge faced by direct SLAM is its strong assumption of grayscale invariance, which is sensitive to strong exposure, drastic lighting changes, and dynamic objects.

[0003] In indoor environments, when the feature point method SLAM faces low texture or texture loss such as large white walls, the extracted point features are not stable enough and are easily affected by environmental changes. This situation will cause the SLAM system to lack sufficient stable and reliable information when achieving positioning, which will lead to a decrease in positioning accuracy and easily lead to tracking failure. In addition, there are many light sources in indoor environments, which will produce many "false" projections in areas such as tiles that are prone to mirror reflection. The so-called "false" projection means that the position of these projections in the actual three-dimensional space is not fixed, but will change with the relative movement of the light source and the camera. Feature points and feature lines are then extracted from these projections for subsequent pose estimation. Since the positions of these feature points and feature lines change dynamically, using them for pose estimation will reduce the accuracy of positioning.

[0004] With respect to the above-mentioned related technologies, the inventors have found that the existing visual SLAM technology has the problem of low positioning accuracy due to lack of reliable information in indoor environment scenarios with low texture, repeated texture, missing texture, and easy to produce specular reflection. Summary of the invention

[0005] In order to improve the positioning accuracy in indoor environments with low texture, repeated texture, missing texture, and easy to produce specular reflection, the present application provides a multi-feature indoor visual positioning method and system based on a ground segmentation network.

[0006] In a first aspect, the present application provides a multi-feature indoor visual positioning method based on a ground segmentation network.

[0007] This application is achieved through the following technical solutions:

[0008] A multi-feature indoor visual positioning method based on ground segmentation network, comprising the following steps:

[0009] Obtain an initial image containing environmental information;

[0010] Based on the initial image, extracting point features, line features and surface features;

[0011] Match the point features, line features and surface features of the current frame with the point features, line features and surface features of the previous key frame respectively, calculate the matching error, and obtain the estimated pose through nonlinear optimization;

[0012] According to the estimated pose, determining whether the current frame is a new key frame;

[0013] If the current frame is a new key frame, semantic segmentation is performed on the initial image based on a preset full convolutional network model to obtain a ground semantic mask map, and the dynamic point features and dynamic line features located on the ground in the current frame are eliminated using the ground semantic mask map to obtain an optimized frame;

[0014] A local mapping operation is performed using the optimized frame.

[0015] In a preferred example, the present application may be further configured as follows: based on the initial image, the step of extracting point features includes:

[0016] Dividing the initial image into layers according to a pyramid to obtain a target grid of a fixed size located on the initial image;

[0017] Setting a FAST threshold to extract a preset number of FAST corner points for each target grid;

[0018] If the number of FAST corner points extracted from any target grid is less than a preset number, lowering the FAST threshold of the target grid until the number of FAST corner points extracted from the target grid is equal to the preset number;

[0019] Point features are determined from the FAST corner points.

[0020] In a preferred example, the present application may be further configured as follows: the step of determining point features from the FAST corner points includes:

[0021] Determining whether the width of the initial image exceeds a width threshold;

[0022] If the width of the initial image exceeds the width threshold, the initial image is cropped into a target size area, wherein:

[0023] Determining the number of the FAST corner points in the node;

[0024] If the number of the FAST corner points is greater than 1, the node is split into four child nodes based on a quadtree method, and the child nodes without FAST corner points are removed;

[0025] Determine the number of the FAST corner points in the child node;

[0026] If the number of the FAST corner points is greater than 1, the sub-nodes are further split using a quadtree method, and sub-nodes without FAST corner points are removed;

[0027] Until the child nodes can no longer be split, or the total number of child nodes is greater than the preset node threshold;

[0028] Select a FAST corner point that meets the requirements from each child node and summarize it to get the point features.

[0029] In a preferred example, the present application may be further configured as follows: based on the initial image, the step of extracting line features includes:

[0030] Using an enhanced edge drawing algorithm, the initial image is subjected to noise suppression by Gaussian filtering to obtain a de-noised image;

[0031] Calculating the gradient magnitude and edge direction map of the denoised image;

[0032] Extracting anchor points of the denoised image based on the gradient magnitude and the edge direction map;

[0033] The anchor points are connected using an enhanced routing algorithm to obtain line features of the initial image, wherein if the edge direction from a previous pixel point to a current pixel point changes, the pixel point that generates a diagonal line is deleted from the candidate edge points.

[0034] In a preferred example, the present application may be further configured as follows: before the step of connecting the anchor points using an enhanced routing algorithm to obtain the line features of the initial image, the method further includes:

[0035] Test candidate line segments of different lengths to obtain the line segment lengths of the candidate line segments;

[0036] Preset a jump length, and determine whether the line segment length of any candidate line segment is greater than the jump length;

[0037] When the line segment length of the candidate line segment is greater than the jump length, determining whether another pixel aligned with the candidate line segment and having a target number of pixels to be jumped from the current pixel is located in the initial image, wherein the target number of pixels to be jumped = the length value of the jump length;

[0038] When another pixel aligned with the candidate line segment and having a target number of pixels to be jumped from the current pixel is located in the initial image, it is determined whether there are at least a target number of extended pixels when connecting the anchor points along the edge direction, wherein the target number of extended pixels = the length value of the jump length;

[0039] When there are at least a target number of extended pixels when connecting the anchor points along the edge direction, determining whether the extended pixels are completely aligned with the candidate line segment;

[0040] When the extended pixel is completely aligned with the candidate line segment, the preset minimum discontinuity portion is automatically skipped when connecting the anchor points to obtain the line features of the initial image.

[0041] In a preferred example, the present application may be further configured as follows: based on the initial image, the step of extracting surface features includes:

[0042] According to the depth map of the initial image, a two-dimensional pixel back-projection operation is performed on the target pixel points, and then converted into a three-dimensional point set to obtain a structured point cloud sequence;

[0043] The depth map of the initial image is divided into blocks of a preset size to obtain divided blocks, wherein each divided block corresponds to a node in the graph model;

[0044] Based on the structure point cloud sequence, a plane extraction algorithm of principal component analysis is used to calculate the three-dimensional center coordinates and covariance matrix of the points in each node;

[0045] Solving the minimum eigenvalue of the covariance matrix, and taking the minimum eigenvalue as the mean square error of the node;

[0046] Eliminate nodes whose mean square error is greater than a preset value, nodes with depth missing pixels, nodes with depth discontinuous edges, and nodes located at the boundary between two planes;

[0047] Sort the nodes in descending order according to the mean square error of the nodes, and establish a minimum heap structure;

[0048] For the node with the minimum mean square error in the minimum heap structure, traverse the neighborhood of the node, find the neighboring node with the minimum mean square error after merging, perform a merging operation, and remove the node and the neighboring nodes from the minimum heap structure;

[0049] Determine whether the mean square error of the merged nodes is less than the preset value;

[0050] If the mean square error of the merged node is less than or equal to the preset value, adding the merged node to the minimum heap structure;

[0051] If the mean square error of the merged node is greater than the preset value, the merged node is removed;

[0052] Until all nodes are extracted using the plane extraction algorithm based on principal component analysis, the minimum heap structure is used as the surface feature.

[0053] In a preferred example, the present application can be further configured as follows: the step of determining whether the mean square error of the merged nodes is less than the preset value includes:

[0054] Get the center coordinates of the node with the minimum mean square error in the minimum heap structure The center coordinates of the neighboring nodes with the smallest mean square error after merging in,

[0055] Calculate the center coordinates of the node with the minimum mean square error in the minimum heap structure and the node after merging the neighboring nodes in, k1 is the number of three-dimensional points of the node with the minimum mean square error in the minimum heap structure, and k2 is the number of three-dimensional points of the neighborhood nodes;

[0056] Calculate the covariance matrix Σ3 of the node with the minimum mean square error in the minimum heap structure and the node after merging the neighboring nodes, where: Σ1 is the covariance matrix of the node with the minimum mean square error in the minimum heap structure, and Σ2 is the covariance matrix of the neighborhood nodes;

[0057] According to the center coordinates and covariance matrix of the merged nodes, the mean square error of the merged nodes is calculated;

[0058] It is determined whether the mean square error of the merged nodes is less than the preset value.

[0059] In a preferred example, the present application can be further configured as follows: it also includes the following steps:

[0060] Get the current scene image in real time;

[0061] The ORB feature extraction algorithm is used to describe the attributes of feature points of the current scene image to obtain the ORB feature point descriptor;

[0062] The K-means++ algorithm is used to cluster the ORB feature point descriptors to construct a K-tree structure dictionary;

[0063] Searching for words in the structure dictionary according to the ORB feature point descriptor, and calculating TF-IDF as the weight of the word to form a bag-of-words vector of the current scene image;

[0064] Calculate the similarity between the bag-of-words vector of the current scene image and the bag-of-words vector of the saved keyframe;

[0065] When the similarity exceeds a preset loop threshold and satisfies the loop determination strategy, it is determined to be a loop, triggering global optimization of all key frames and feature points.

[0066] In a second aspect, the present application provides a multi-feature indoor visual positioning system based on a ground segmentation network.

[0067] This application is achieved through the following technical solutions:

[0068] A multi-feature indoor visual positioning system based on ground segmentation network, including:

[0069] A tracking module is used to obtain an initial image containing environmental information; based on the initial image, extract point features, line features and surface features; match the point features, line features and surface features of the current frame with the point features, line features and surface features in the previous key frame respectively to obtain an estimated pose of the current frame;

[0070] A semantic segmentation module is used to determine whether the current frame is a new key frame according to the estimated posture; if the current frame is a new key frame, semantic segmentation is performed on the initial image to obtain a ground semantic mask map, and the ground semantic mask map is used to eliminate dynamic point features and dynamic line features located on the ground in the current frame to obtain an optimized frame;

[0071] The local mapping module is used to perform a local mapping operation using the optimized frame.

[0072] In a preferred example, the present application can be further configured as follows: further comprising:

[0073] The loop detection module is used to obtain the current scene image in real time; describe the attributes of the feature points in the current scene image to obtain feature point descriptors; cluster the feature point descriptors to build a structure dictionary; search for words in the structure dictionary according to the feature point descriptors, and calculate the weights of the words to form a bag-of-words vector of the current scene image; calculate the similarity between the bag-of-words vector of the current scene image and the bag-of-words vector of the saved key frame; when the similarity exceeds a preset loop threshold and satisfies the loop determination strategy, it is determined to be a loop;

[0074] The global BA module is used to trigger global optimization of all keyframes and feature points when a loop is detected.

[0075] In summary, compared with the prior art, the technical solution provided by this application has at least the following beneficial effects:

[0076] An initial image containing environmental information is obtained to perceive the external environment; based on the initial image, point features, line features and surface features are extracted, and the point features, line features and surface features of the current frame are matched with the point features, line features and surface features in the previous key frame respectively, and the matching error is calculated. The estimated pose is obtained through nonlinear optimization, and the point features, line features and surface features are tightly coupled for pose estimation to solve the problem of insufficient feature points affecting positioning accuracy in indoor texture-deficient scenes, and to improve the robustness of the positioning method; according to the estimated pose, it is determined whether the current frame is a new key frame. If the current frame is a new key frame, the initial image is semantically segmented based on the preset full convolutional network model to obtain a ground semantic mask map, and the ground The semantic mask eliminates the dynamic point features and dynamic line features located on the ground in the current frame, so as to eliminate the dynamic point features and dynamic line features existing in the ground area with severe reflection. This is to cope with the influence of a large number of dynamic projections caused by the large number of indoor light sources and areas such as tiles that are prone to mirror reflection, and ensure that the point features and line features used for pose estimation are statically stable, thereby improving the accuracy of the positioning method. Based on the fully convolutional structure, the fully convolutional network model can process input images of any size, can be trained directly from pixel to pixel, realize pixel-level semantic understanding, and can process images very quickly; finally, the optimized frame is used to perform local mapping operations to assist the intelligent robot in more accurate and faster positioning. BRIEF DESCRIPTION OF THE DRAWINGS

[0077] Figure 1 A schematic diagram of the overall process of a multi-feature indoor visual positioning method based on a ground segmentation network is provided as an exemplary embodiment of the present application.

[0078] Figure 2A schematic diagram of the principle of determining point features using a quadtree method in a multi-feature indoor visual positioning method based on a ground segmentation network is provided as another exemplary embodiment of the present application.

[0079] Figure 3 A schematic diagram of the principle of connecting anchor points using an intelligent routing algorithm in a multi-feature indoor visual positioning method based on a ground segmentation network provided in another exemplary embodiment of the present application.

[0080] Figure 4 A schematic diagram of the structure of a fully convolutional network model based on a multi-feature indoor visual positioning method based on a ground segmentation network is provided as an exemplary embodiment of the present application.

[0081] Figure 5 A schematic diagram of eliminating dynamic point features and dynamic line features located on the ground in a multi-feature indoor visual positioning method based on a ground segmentation network provided as an exemplary embodiment of the present application.

[0082] Figure 6 A structural block diagram of a multi-feature indoor visual positioning system based on a ground segmentation network is provided as an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0083] This specific embodiment is merely an explanation of the present application and is not a limitation of the present application. After reading this specification, those skilled in the art may make modifications to the present embodiment without any creative contribution as needed, but such modifications are protected by the patent law as long as they are within the scope of the claims of the present application.

[0084] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0085] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.

[0086] It has been found that there are two prominent problems in using visual SLAM positioning indoors.

[0087] The first problem is that the point feature-based visual SLAM system is not robust enough in low-texture artificial environments and often fails. Therefore, it is very important to provide more robust and reliable feature information and use this information together for visual SLAM positioning to improve the robustness of the system.

[0088] The second problem is that most indoor environments are paved with ceramic tiles that are prone to specular reflection, and there are many indoor light sources, which often lead to a large number of light and shadows on the ground. For example, there are many projections of light tubes and ventilation ducts on the ground. The positions of these projections in the actual three-dimensional space are not fixed, but will change with the relative movement of the light source and the camera, forming dynamic light and shadow. In an indoor environment with dynamic light and shadow, the visual SLAM system can easily extract dynamic point features and dynamic line features composed of dynamic light and shadow, and perform pose estimation based on the matching results of these dynamic features, resulting in a significant reduction in positioning accuracy. Then how to eliminate these dynamic feature information is very important for indoor visual SLAM systems with static environmental assumptions. Eliminating these dynamic feature information can significantly improve the accuracy of indoor visual positioning.

[0089] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.

[0090] Reference Figure 1 , an embodiment of the present application provides a multi-feature indoor visual positioning method based on a ground segmentation network, and the main steps of the method are described as follows.

[0091] S1: Obtain an initial image containing environmental information;

[0092] S2: extracting point features, line features and surface features based on the initial image;

[0093] S3: Match the point features, line features and surface features of the current frame with the point features, line features and surface features in the previous key frame, calculate the matching error, and obtain the estimated pose through nonlinear optimization;

[0094] S4: judging whether the current frame is a new key frame according to the estimated posture;

[0095] S5: If the current frame is a new key frame, semantic segmentation is performed on the initial image based on a preset full convolutional network model to obtain a ground semantic mask map, and the dynamic point features and dynamic line features located on the ground in the current frame are removed using the ground semantic mask map to obtain an optimized frame;

[0096] S6: Perform a local mapping operation using the optimized frame.

[0097] With the rapid development and cost reduction of sensor technology, such as global navigation satellite system (GNSS), camera, inertial navigation, lidar and lidar millimeter wave radar, they are now widely used in intelligent robot technology. These sensors enable intelligent robots to obtain richer and deeper information from their environment, so that they can better operate and make decisions. With the improvement of computing power and the expansion of storage capacity, various intelligent robots can now process a large amount of sensor data in real time, which greatly enhances the functions and computing power of intelligent robots, allowing intelligent robots to more effectively analyze and understand the surrounding environment.

[0098] Through visual SLAM (Simultaneous Localization and Mapping) technology, the RGB-D camera of the intelligent robot collects image information of the surrounding environment, obtains the initial image containing environmental information, perceives the external environment, locates in real time and builds a map. The intelligent robot can be an unmanned vehicle, a drone, etc. Compared with satellite positioning and lidar technology, the advantages of visual SLAM technology are low cost and easy deployment, as well as the ability to work in complex environments, without the limitation that satellite positioning can only work in outdoor environments.

[0099] The basic functions of visual SLAM technology include real-time positioning and map construction, environmental perception through image data collected by the camera, localization of the unit and creation of unit maps at the same time.

[0100] Specifically, based on the initial image, point features are extracted.

[0101] Point features are obtained by using OpenCV's ORB feature extraction, but this method will cause the feature points to be too dense and concentrated, resulting in a clustering of feature points, and reducing the amount of information during closed-loop detection, thereby reducing the accuracy of SLAM.

[0102] In order to improve the density and concentration of point feature distribution and make the point feature distribution uniform, the initial image is divided into several small grids, and the best n feature points manually selected are retained in each grid. However, this method has the following problems: when a sufficient number of feature points cannot be extracted from a certain grid (such as a textureless area), the number of feature points extracted from the entire image cannot meet the extraction requirements, which may cause SLAM failure in severe cases.

[0103] In order to extract a sufficient number of point features, in one embodiment, based on the initial image, the step of extracting point features includes:

[0104] Dividing the initial image into layers according to a pyramid to obtain a target grid of a fixed size located on the initial image;

[0105] Setting a FAST threshold to extract a preset number of FAST corner points for each target grid;

[0106] If the number of FAST corner points extracted from any target grid is less than a preset number, lowering the FAST threshold of the target grid until the number of FAST corner points extracted from the target grid is equal to the preset number;

[0107] Point features are determined from the FAST corner points.

[0108] Specifically, the initial image is processed by pyramid layering, and for each layer, the initial image is divided into target grids of a fixed size. The size of the target grid may be 30×30 pixels.

[0109] Set the FAST threshold and extract a preset number of FAST corner points for each target grid. A FAST corner point is defined as follows: if a pixel point is in a different region from enough pixels in its surrounding area, then the pixel point is called a FAST corner point. For example, if a pixel point is in a different region from the 8 pixels in its surrounding area, then the pixel point is a FAST corner point.

[0110] When the preset number of FAST corner points cannot be extracted for any target grid, the FAST threshold is automatically lowered until the preset number of FAST corner points can be extracted for the target grid, ensuring that the preset number of FAST corner points can be extracted even in areas with weak or no texture, thereby ensuring the number of point features and avoiding the problem of SLAM failure caused by the number of point features extracted from the entire image failing to meet the demand.

[0111] In one embodiment, the step of determining point features from the FAST corner points comprises:

[0112] Determining whether the width of the initial image exceeds a width threshold;

[0113] If the width of the initial image exceeds the width threshold, the initial image is cropped into a target size area, wherein:

[0114] Determining the number of the FAST corner points in the node;

[0115] If the number of the FAST corner points is greater than 1, the node is split into four child nodes based on a quadtree method, and the child nodes without FAST corner points are removed;

[0116] Determine the number of the FAST corner points in the child node;

[0117] If the number of the FAST corner points is greater than 1, the sub-nodes are further split using a quadtree method, and sub-nodes without FAST corner points are removed;

[0118] Until the child nodes can no longer be split, or the total number of child nodes is greater than the preset node threshold;

[0119] Select a FAST corner point that meets the requirements from each child node and summarize it to get the point features.

[0120] The FAST corner points are uniformly selected by using a quadtree-based method to determine the point features. If the image is wide, the image is first divided into left and right w / h nodes. For example, a 640×480 pixel image has only one node.

[0121] If the number of feature points in a node is greater than 1, each node is divided into four sub-nodes. If there is no feature point in a sub-node, the sub-node is deleted.

[0122] Continue to split child nodes until they cannot be split any further or the total number of child nodes is greater than the node threshold.

[0123] Finally, a FAST corner point with the best quality is manually selected from each split child node and summarized to obtain the point features.

[0124] Reference Figure 2 ,The principle of determining point features from FAST corner points using a quadtree-based method is shown in the figure.,Set the node threshold N=25 to retain 25 child nodes.

[0125] First, the initial image is divided into w / h nodes. For example, a 640×480 pixel image has only one node.

[0126] The first split is performed, and 1 node node is split into 4 child nodes node<25. At this time, further splitting is required.

[0127] The second split is performed, and the 4 child nodes node are split into 15 child nodes node<25. Because one of the child nodes has no FAST corner points, it is removed and needs to be split further.

[0128] The third split is performed to remove the child nodes without FAST corner points. Then the 15 child nodes node are split into 30 child nodes node>25. At this time, the total number of child nodes is greater than the preset node threshold 25, and the split ends.

[0129] Finally, a FAST corner point with the best quality is selected from each child node and summarized to obtain the point feature.

[0130] Based on the initial image, line features are extracted.

[0131] By adopting the edge drawing algorithm (ED), which is suitable for grayscale images, the line features of the initial image are extracted using the following steps: 1) suppressing the noise of the initial image through Gaussian filtering; 2) calculating the gradient amplitude of the processed initial image and obtaining the edge direction map; 3) extracting anchor points based on the gradient amplitude and the edge direction map; 4) connecting the anchor points through the intelligent routing algorithm to obtain the edge map of the image.

[0132] Specifically, a 5×5 Gaussian kernel convolution with σ=1 is used to suppress the noise of the initial image and obtain the denoised image. For the gradient magnitude and direction calculation, the Sobel operator is first applied to calculate the horizontal gradient G of the denoised image. x and the vertical gradient G y , and then use the L1 norm, that is, G=|G x |+|G y |. Set the gradient threshold and set G=0 for pixels below the gradient threshold. Quantize the gradient direction O into two values: vertical edge and horizontal edge: x |≥|G y | is a vertical edge, and when |G x |<|G y | is a horizontal edge. The anchor point is the pixel point where the line segment is drawn. To extract the anchor point pixel, scan the image pixels with G>0 and calculate whether the gradient magnitude G is a local maximum along the gradient quantization direction O. When the pixel direction O(x,y) corresponds to a vertical edge and satisfies G[x,y]-G[x-1,y]≥T anchor and G[x,y]-G[x+1,y]≥T anchor When , the pixel is the anchor point. The horizontal edge calculation method in the vertical direction is similar to this, and will not be repeated here. anchor The value and spacing of certain columns and rows of scanned pixels limit the number of anchor points.

[0133] Reference Figure 3 , connecting anchor points through intelligent routing algorithm, the working principle of intelligent routing process is as follows:

[0134] Start at the anchor point and look at the direction of the edge that passes through the anchor point. If the horizontal edge passes through the anchor point, connect it by going left and right, such as Figure 3 (b) If the vertical edge passes through the anchor point, the connection process is performed upward and then downward, as shown in Figure 3 (c) During the movement, only three direct neighbor anchors are considered and the one with the largest gradient value is selected.

[0135] The process stops in two cases:

[0136] (1) Move out of the edge area, that is, the threshold gradient value of the current pixel is 0;

[0137] (2) Encountering a previously detected edge point. A simple example is Figure 3 As shown in (a), the numbers inside the pixels are the gradient magnitudes; black pixels represent threshold pixels, anchor points are marked with red circles, and pixels collected during the connection process are marked with yellow circles. Assume that the pixel at (8,4) is the starting anchor point. Since the horizontal edge passes through this anchor point, a horizontal walk is initiated (first to the left, then to the right). The small arrows indicate the pixels considered during the wiring process, and the blue arrows indicate the selected pixels. Figure 3 (b) and Figure 3 As shown in (c), at each iteration, the three direct neighbor anchor points in the edge direction are checked and the pixel with the maximum gradient value is selected. At (3,5), the edge direction changes from horizontal to vertical. At this time, the current horizontal left walk is stopped and two vertical walks are started, one upward and one downward. The vertical upward walk terminates immediately because it will select the selected edge segment pixel (4,4). The vertical downward walk continues until (5,10). In this way, a part of the edge of the image is obtained starting from an anchor point, and all the edges of the image can be obtained by performing this operation on each anchor point.

[0138] The ED algorithm itself can extract high-quality edges of images, but to obtain line features in the image, it is necessary to perform additional processing on the edge map of the image, perform line segment detection on the edge map of the image, and obtain line features.

[0139] In order to improve the detection speed of line features and improve the efficiency of line segment detection, in one embodiment, based on the initial image, the step of extracting line features mainly includes an enhanced edge drawing algorithm (Enhanced Edge Drawing, EED), and the specific steps are as follows:

[0140] Performing noise suppression on the initial image by Gaussian filtering to obtain a de-noised image;

[0141] Calculating the gradient magnitude and edge direction map of the denoised image;

[0142] Extracting anchor points of the denoised image based on the gradient magnitude and the edge direction map;

[0143] The anchor points are connected using an enhanced routing algorithm to obtain line features of the initial image, wherein if the edge direction from the previous pixel to the current pixel changes, the pixel points that generate diagonal lines are deleted from the candidate edge points, that is, the pixel points that will cause the edge to be non-straight.

[0144] The EED algorithm is based on the ED algorithm. The intelligent routing algorithm in ED is improved into an enhanced routing algorithm. The other steps remain unchanged to combine the edge drawing and line segment detection processes in one step, which greatly improves the efficiency of line feature extraction.

[0145] The EED algorithm uses an enhanced routing algorithm for line segment extraction problems to improve the intelligent routing algorithm. The EED algorithm considers the previous pixel and the current pixel during the drawing process. During the movement process, as long as the edge direction from the previous pixel to the current pixel does not change, that is, there is no change from vertical to horizontal or from horizontal to vertical, the same pixels as in the ED algorithm will be explored. If the edge direction changes, the existing ED algorithm will draw an edge that breaks the straight line assumption, that is, the pixel point goes back to form a corner, generating some diagonal pixels. However, the EED algorithm uses a different method to make the edge points always follow a line. The specific method is mainly to delete the pixels that will produce diagonal lines from the candidate edge points.

[0146] By using the EED algorithm to extract line features, there are two advantages: 1) it is faster than the original ED routing algorithm because fewer pixels need to be explored, and 2) it avoids the meaningless situation of searching for line segments.

[0147] When a line segment is interrupted by multiple discontinuous points, the length of the discontinuity is unknown, which will affect the efficiency of line feature extraction.

[0148] In order to skip these parts when discontinuities are detected and continue drawing along the line segment direction as much as possible to improve the extraction efficiency of line features, in one embodiment, before the step of connecting the anchor points using an enhanced routing algorithm to obtain the line features of the initial image, the method further includes:

[0149] Test candidate line segments of different lengths to obtain the line segment lengths of the candidate line segments;

[0150] Preset a jump length, and determine whether the line segment length of any candidate line segment is greater than the jump length;

[0151] When the line segment length of the candidate line segment is greater than the jump length, determining whether another pixel aligned with the candidate line segment and having a target number of pixels to be jumped from the current pixel is located in the initial image, wherein the target number of pixels to be jumped = the length value of the jump length;

[0152] When another pixel aligned with the candidate line segment and having a target number of pixels to be jumped from the current pixel is located in the initial image, it is determined whether there are at least a target number of extended pixels when connecting the anchor points along the edge direction, wherein the target number of extended pixels = the length value of the jump length;

[0153] When there are at least a target number of extended pixels when connecting the anchor points along the edge direction, determining whether the extended pixels are completely aligned with the candidate line segment;

[0154] When the extended pixel is completely aligned with the candidate line segment, the preset minimum discontinuity portion is automatically skipped when connecting the anchor points to obtain the line features of the initial image.

[0155] In this embodiment, since a 5×5 Gaussian smoothing kernel is used for noise suppression, any pixel discontinuity will at least affect a neighborhood of 5 pixels, so the minimum discontinuity length threshold is set to 5 pixels. The jump length J∈[5,7,9] is preset, that is, the number of pixels is preset to 5, 7, or 9.

[0156] Test candidate line segments of different lengths, determine the length between any two anchor points, check if the line segment length of the candidate line segment is greater than the jump length, and the anchor point drawing process will continue after detecting the discontinuity if all of the following conditions are true:

[0157] 1) The length of the line segment is greater than the number of pixels to jump J; 2) The pixel a that is aligned with the line segment and is J pixels away from the current pixel c is located inside the image, and the gradient G[a]>0; 3) Starting from pixel a, EED can draw at least J pixels along the edge direction, and these J pixels are called extended pixels; 4) The extended pixels are completely aligned with the line segment, that is, the starting pixel and the end pixel of the J extended pixels coincide with the starting point and end point of the preset line segment, and the remaining extended pixels are located on the preset line segment.

[0158] Based on the initial image, face features are extracted.

[0159] In one embodiment, based on the initial image, the step of extracting surface features includes:

[0160] According to the depth map of the initial image, a two-dimensional pixel back-projection operation is performed on the target pixel points, and then converted into a three-dimensional point set to obtain a structured point cloud sequence;

[0161] The depth map of the initial image is divided into blocks of a preset size to obtain divided blocks, wherein each divided block corresponds to a node in the graph model;

[0162] Based on the structure point cloud sequence, a plane extraction algorithm of principal component analysis is used to calculate the three-dimensional center coordinates and covariance matrix of the points in each node;

[0163] Solving the minimum eigenvalue of the covariance matrix, and taking the minimum eigenvalue as the mean square error of the node;

[0164] Eliminate nodes whose mean square error is greater than a preset value, nodes with depth missing pixels, nodes with depth discontinuous edges, and nodes located at the boundary between two planes;

[0165] Sort the nodes in descending order according to the mean square error of the nodes, and establish a minimum heap structure;

[0166] For the node with the minimum mean square error in the minimum heap structure, traverse the neighborhood of the node, find the neighboring node with the minimum mean square error after merging, perform a merging operation, and remove the node and the neighboring nodes from the minimum heap structure;

[0167] Determine whether the mean square error of the merged nodes is less than the preset value;

[0168] If the mean square error of the merged node is less than or equal to the preset value, adding the merged node to the minimum heap structure;

[0169] If the mean square error of the merged node is greater than the preset value, the merged node is removed;

[0170] Until all nodes are extracted using the plane extraction algorithm based on principal component analysis, the minimum heap structure is used as the surface feature.

[0171] In one embodiment, the step of determining whether the mean square error of the merged nodes is less than the preset value includes:

[0172] Obtain the center coordinates P1 of the node with the minimum mean square error in the minimum heap structure and the center coordinates P2 of the neighboring node with the minimum mean square error after merging, where P1 = [x1, y1, z1] T , P2=[x2,y2,z2] T ;

[0173] Calculate the center coordinates of the node with the minimum mean square error in the minimum heap structure and the node after merging the neighboring nodes in, k1 is the number of three-dimensional points of the node with the minimum mean square error in the minimum heap structure, and k2 is the number of three-dimensional points of the neighborhood nodes;

[0174] Calculate the covariance matrix Σ3 of the node with the minimum mean square error in the minimum heap structure and the node after merging the neighboring nodes, where: Σ1 is the covariance matrix of the node with the minimum mean square error in the minimum heap structure, and Σ2 is the covariance matrix of the neighborhood nodes;

[0175] According to the center coordinates and covariance matrix of the merged nodes, the mean square error of the merged nodes is calculated; by solving the minimum eigenvalue of the covariance matrix and taking it as the mean square error of the merged nodes;

[0176] It is determined whether the mean square error of the merged nodes is less than the preset value.

[0177] Specifically, the PEAC plane extraction algorithm is used to extract the surface features of the initial image.

[0178] The PEAC plane extraction algorithm is a plane extraction algorithm based on principal component analysis and hierarchical clustering. The algorithm uses the structure of the point cloud to cluster the point cloud into blocks using the hierarchical clustering algorithm and principal component analysis to extract the plane. The specific process can be divided into the following steps:

[0179] 1) Constructing a structural point cloud: By inputting a depth map, perform two-dimensional pixel back-projection on the pixels with effective depth information, and then convert them into a three-dimensional point set according to the pinhole camera model to form an ordered sequence of structural point clouds. The effective depth means that the depth is not 0 or negative. The pinhole camera model is a simplified camera model. Its basic assumption is that light is projected onto the image plane through a small hole. The position, posture and imaging process of the camera are described by the intrinsic parameters (intrinsic parameters) and extrinsic parameters (extrinsic parameters) of the camera. Two pictures of the same scene are taken by two cameras. The parallax between corresponding points in the image is calculated, and the depth information is calculated using the parallax, and finally converted into a three-dimensional point set.

[0180] 2) Graph initialization: The depth map is divided into blocks of 16×16, and each block corresponds to a node in the graph model. For each node, the principal component analysis is used to fit the plane and calculate the three-dimensional center coordinates of the points in the node. And the covariance matrix Σ. Then, find the minimum eigenvalue of the covariance matrix and use it as the mean square error of the node. Finally, remove nodes whose mean square error is greater than the preset value, nodes with missing depth pixels, nodes with discontinuous depth edges (if there is a discontinuous depth edge in the node, that is, the change of the depth value is too drastic, it can be judged by detecting the difference in the depth values ​​of adjacent pixels, then the node is removed) and nodes located at the boundary of two planes (the difference between the plane obtained by fitting the node and the surrounding nodes can be judged. If the difference is large, the node is removed) so that the graph model is initialized.

[0181] 3) Hierarchical clustering: For the nodes in the graph model, sort them in descending order according to the size of the mean square error, and establish a minimum heap structure to quickly find the node with the minimum mean square error. According to the principle of principal component analysis, the node with the minimum mean square error is more likely to represent a plane. Therefore, the merging operation is started from the node with the minimum mean square error. For the node with the minimum mean square error in the minimum heap, traverse its neighborhood and find the neighboring node with the smallest mean square error after merging. Then, perform a merge operation to obtain the merged node and remove the two nodes from the minimum heap structure. If the mean square error of the merged node is less than the preset value, the merged node is added to the minimum heap structure; otherwise, the node is removed from the graph model. Repeat the above steps until all nodes are extracted and the graph model construction process is completed.

[0182] In one embodiment, after the step of dividing the depth map of the initial image into blocks of a preset size to obtain divided blocks, the method further includes:

[0183] For the over-divided plane, the graph model is reconstructed using the segmented blocks around the over-divided plane to obtain new nodes around the over-divided plane;

[0184] A hierarchical clustering algorithm is used to cluster and merge the new nodes to obtain optimized nodes of the over-divided plane.

[0185] For over-segmented planes, which occur when a large plane is cut into multiple small blocks, and the plane is a collection of multiple continuous 16*16 pixel blocks, and these small blocks are independently fitted into the plane, which may lead to increased errors and inaccurate models. In this case, the surrounding segmented blocks (i.e., the surrounding pixel blocks that have been segmented into planes) can be reconstructed into nodes, and then the graph model can be established again. Then, the hierarchical clustering algorithm can be used to cluster and merge the surrounding segmented blocks (nodes) to obtain a larger plane to better improve the situation of over-segmented planes, thereby obtaining more accurate surface feature extraction results.

[0186] Also, at the edge, in order to reduce the jaggedness of the surface features, the erosion algorithm can be used to process the nodes at the edge, such as merging some of the surrounding nodes to eliminate unnecessary fine structures.

[0187] Also, for unused (eliminated) nodes, you can consider merging them into nearby planes. This helps optimize the structure of the graph model and better utilize the information in the graph data.

[0188] Next, the extracted point features, line features and surface features of the current frame are matched with the point features, line features and surface features in the previous key frame respectively, the matching error is calculated, and the pose estimation is obtained through nonlinear optimization. The nonlinear optimization algorithm can adopt the Loevenberg-Marquardt algorithm, conjugate gradient method, gradient descent method, etc.

[0189] Based on the result of pose estimation, determine whether the current frame is a new key frame. By calculating the relative pose change between the current frame and the most recent key frame, the perspective change value is obtained. If the perspective change value exceeds the preset key frame threshold, the current frame is determined to be a new key frame.

[0190] If the current frame is determined to be a key frame, a new thread is started to perform semantic segmentation on the image using the preset fully convolutional network model FCN to obtain a ground semantic mask map.

[0191] In one embodiment, the steps of constructing the fully convolutional network model include:

[0192] Convert the input initial image into a higher-level feature representation through an encoder;

[0193] Decoding the feature representation of the encoder into a prediction result of the same size as the initial image step by step through a decoder;

[0194] And the output of the target layer of the encoder is connected to the input of the corresponding layer of the decoder through a jump connection. The encoder uses features from different levels, adopts a softmax function for prediction, and outputs a ground semantic mask map.

[0195] Reference Figure 4 ,The overall grid architecture based on the fully convolutional network model FCN is an encoder-decoder structure for image segmentation tasks.,Input represents the input image, Conv represents the convolution layer, Deconv represents the deconvolution layer, and Plane params represents the plane parameters,which represent the loss of the gap with the label value to assist the training of the,semantic segmentation network.

[0196] The encoder is responsible for converting the input image into a higher-level feature representation, where the higher-level feature is higher in dimension than the input image. If the features encoded by the encoder are sufficient to represent the parameters of a plane, then the encoder can be considered to have strong representation capabilities.

[0197] The decoder is responsible for gradually decoding the transformed feature representation into a prediction result of the same size as the original input image.

[0198] The outputs of some layers of the encoder are directly connected to the corresponding layers of the decoder to implement skip connection Concat, so that more low-level feature information can be integrated during the decoding process, thereby improving the accuracy of segmentation.

[0199] In the decoder, features from different levels are used simultaneously for multi-scale prediction, so that the network can process feature information of different scales at the same time, improve the recognition ability of objects of different sizes, and help the network better capture the details and global information in the image, thereby improving the accuracy and robustness of segmentation.

[0200] During the training process, the hyperparameters can be set to β1 = 0.99, β2 = 0.9999, epoch = 4, and lr = 0.0001. The model is trained using the training dataset provided by SYNTHIA.

[0201] Due to its fully convolutional structure, FCN can process input images of any size, can be trained directly from pixel to pixel, achieve pixel-level semantic understanding, and can process images very quickly.

[0202] In one embodiment, the predicted image can also be scaled by using a random factor in the range of [1, 1.15], such as an upsampling operation Upsample to enlarge the spatial resolution (i.e., width and height) of the predicted image to make the image resolution higher, and then random cropping is performed to enhance the image data.

[0203] The softmax function is used during prediction to convert the network output into a probability distribution, which facilitates the classification of each pixel. This design combines the powerful features and advantages of convolutional neural networks and provides an efficient and effective solution for image segmentation tasks, so that we can more accurately extract ground semantic masks.

[0204] In one embodiment, except for the prediction layer, the fully convolutional network model uses the ReLU activation function for learning. In the entire network, the use of the ReLU activation function helps to learn nonlinear features, thereby improving the representation ability of the model.

[0205] Reference Figure 5 Furthermore, the ground semantic mask is used to eliminate the dynamic point features and dynamic line features located on the ground in the current frame. The ground semantic information of the ground semantic mask is used to eliminate the dynamic point features and dynamic line features existing in the ground area with severe reflection, so as to ensure that the point features and line features used for pose estimation are statically stable, thereby improving the positioning accuracy of the system.

[0206] In one embodiment, the step of removing the dynamic point features located on the ground in the current frame using the ground semantic mask includes:

[0207] Determine whether the pixel corresponding to the point feature in the key frame falls within the range of the ground semantic pixel in the ground semantic mask;

[0208] If the pixel corresponding to the point feature in the key frame falls within the range of the ground semantic pixel in the ground semantic mask, it is determined to be a dynamic point feature located on the ground in the key frame and is removed.

[0209] For point features, the relationship between their pixel coordinates and the pixel values ​​of the ground segmentation semantic map is used to determine whether they need to be removed. If the pixel corresponding to the point feature falls within the range of the ground semantic pixel in the ground segmentation semantic map, the feature point is considered unstable and needs to be removed. Figure 5 (a); otherwise, it is retained. The gray part in the figure is the ground semantics, the red points are the point features located on the ground, and the green point features are not located on the ground.

[0210] In one embodiment, the step of removing the dynamic line features located on the ground in the current frame using the ground semantic mask includes:

[0211] Uniformly sampling the line features in the key frame to obtain a number of equally spaced sampling points;

[0212] Determine whether the pixel corresponding to the sampling point falls within the range of ground semantic pixels in the ground semantic mask;

[0213] Counting the number of sampling points that fall within the range of ground semantic pixels in the ground semantic mask image;

[0214] If the number of sampling points falling within the range of the ground semantic pixels in the ground semantic mask exceeds a preset rejection threshold, they are determined to be dynamic line features located on the ground in the key frame and are rejected.

[0215] For line features, uniform sampling is first performed. In this embodiment, 11 equally spaced sampling points are obtained. Then, for each sampling point, the same method as for point features is adopted to determine whether the sampling point falls on the ground. Finally, the number of sampling points falling on the ground is counted. If the total number of sampling points is greater than a set threshold, such as 6, it is considered that the line feature is on the ground and is unstable and needs to be removed. Figure 5 (b) shows that otherwise it is retained. The gray part in the figure is the ground semantics, the red points are the point features located on the ground, and the green points are not located on the ground.

[0216] Finally, the current frame without the dynamic point features and dynamic line features on the ground, that is, the optimized frame, is used to perform local mapping operations, including taking the initial frame and its feature points as the initial state of the local map; adding new feature points detected to the local map to become new map points, and matching feature points between adjacent frames; and using the observation perspective of the optimized frame to optimize the position of map points to obtain a local map.

[0217] In one embodiment, the local map is optimized to further improve the accuracy of pose estimation. The optimization of the local map can use a local BA (Bundle Adjustment) operation, which helps to correct and optimize the relative pose relationship between the current key frame and its surrounding frames to ensure the consistency and accuracy of the entire map. Local BA optimization of the local map can better correct errors, so that more reliable results can be obtained in the subsequent positioning and navigation process.

[0218] In order to maximize the real-time and efficiency of positioning, in one embodiment, a multi-feature indoor visual positioning method based on a ground segmentation network further includes the following steps:

[0219] Get the current scene image in real time;

[0220] The ORB feature extraction algorithm is used to describe the attributes of feature points of the current scene image to obtain the ORB feature point descriptor;

[0221] The K-means++ algorithm is used to cluster the ORB feature point descriptors to construct a K-tree structure dictionary;

[0222] Searching for words in the structure dictionary according to the ORB feature point descriptor, and calculating TF-IDF as the weight of the word to form a bag-of-words vector of the current scene image;

[0223] Calculate the similarity between the bag-of-words vector of the current scene image and the bag-of-words vector of the saved keyframe;

[0224] When the similarity exceeds a preset loop threshold and satisfies the loop determination strategy, it is determined to be a loop, triggering global optimization of all key frames and feature points.

[0225] Specifically, the intelligent robot collects the current scene image, clusters the ORB feature point descriptors of the current scene image using the K-means++ algorithm, and constructs a K-tree structure dictionary.

[0226] Then, according to the ORB feature point descriptor of the current image, the word in the dictionary is searched, and TF-IDF is calculated as the weight of the word to form the bag-of-words vector of the current image. TF-IDF (term frequency–inverse document frequency) is a commonly used weighting technology for information retrieval and data mining. TF is term frequency and IDF is inverse document frequency.

[0227] Next, the similarity between the bag-of-words vector of the current scene image and the bag-of-words vector of all saved key frames is calculated using methods such as the L1 norm. If the similarity score is large enough and satisfies the preset loop determination strategy, for example, the similarity is higher than the set threshold and satisfies the spatial relationship conditions, it is determined to be a loop, that is, the intelligent robot revisits a scene similar to the one it has experienced before. Loop detection can help the intelligent robot better identify and utilize previous experience during navigation, improve the accuracy and robustness of positioning and path planning, and maximize the real-time and efficiency of positioning.

[0228] When a loop is detected, global BA (Bundle Adjustment) optimization of all keyframes and feature points is triggered. Global BA involves optimizing all keyframes and feature points of the entire constructed map to maximize the overall pose estimation results. Through global BA optimization, the system can more accurately correct the relative pose relationship between each keyframe, thereby improving the accuracy and stability of the entire system.

[0229] In summary, a multi-feature indoor visual positioning method based on ground segmentation network obtains an initial image containing environmental information to perceive the external environment; based on the initial image, point features, line features and surface features are extracted, and the point features, line features and surface features of the current frame are matched with the point features, line features and surface features in the previous key frame respectively, and the matching error is calculated. The estimated pose is obtained through nonlinear optimization, and the point features, line features and surface features are tightly coupled for pose estimation, which solves the problem of insufficient feature points affecting positioning accuracy in indoor texture-deficient scenes and improves the robustness of the positioning method; according to the estimated pose, it is determined whether the current frame is a new key frame. If the current frame is a new key frame, the pose is estimated based on the preset full pose. The convolutional network model performs semantic segmentation on the initial image to obtain a ground semantic mask map, and uses the ground semantic mask map to eliminate the dynamic point features and dynamic line features located on the ground in the current frame, so as to eliminate the dynamic point features and dynamic line features existing in the ground area with severe reflection. This can cope with the influence of a large number of dynamic projections caused by the large number of indoor light sources and areas such as tiles that are prone to mirror reflection, and ensure that the point features and line features used for pose estimation are statically stable, thereby improving the accuracy of the positioning method. The full convolutional network model is a lightweight ground semantic segmentation neural network with faster detection speed. Finally, the optimized frame is used to perform local mapping operations to assist the intelligent robot in more accurate and faster positioning.

[0230] A multi-feature indoor visual positioning method based on ground segmentation network proposes a method of tightly coupling multiple features. Since line features and surface features are more stable than point features, three different types of features are tightly coupled. Point features (orb), line features (elsed) and surface features (PEAC) are combined for pose estimation and environment mapping to solve the problem that the insufficient number of point features in the indoor environment can easily lead to the failure of visual SLAM and improve the robustness of the system.

[0231] In order to solve the problem that a large number of dynamic projections appear in ground areas with numerous indoor light sources and prone to specular reflections, resulting in the extracted point and line features not meeting the static assumption, a multi-feature indoor visual positioning method based on ground segmentation network constructs a lightweight ground semantic segmentation neural network to extract ground semantic information in images. The ground semantic information is used to eliminate dynamic point features and dynamic line features in ground areas with severe reflections. The ground semantic segmentation is performed using a network with FCN architecture, and only the ground point and line features located in the key frames are eliminated. This not only ensures that the features used for pose estimation are statically stable, thereby improving positioning accuracy; but also only performs semantic segmentation operations on key frames to ensure the real-time performance of the system.

[0232] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0233] Reference Figure 6 , a multi-feature indoor visual positioning method based on ground segmentation network is implemented by a multi-feature indoor visual positioning system based on ground segmentation network. The overall framework of a multi-feature indoor visual positioning system based on ground segmentation network is similar to the SLAM system using feature points, including,

[0234] The tracking module is used to extract point features, line features and surface features from the input initial image containing environmental information; match the point features, line features and surface features of the current frame with the point features, line features and surface features in the previous key frame respectively to obtain the estimated pose of the current frame;

[0235] A semantic segmentation module is used to determine whether the current frame is a new key frame according to the estimated posture; if the current frame is a new key frame, semantic segmentation is performed on the initial image to obtain a ground semantic mask map, and the ground semantic mask map is used to eliminate dynamic point features and dynamic line features located on the ground in the current frame to obtain an optimized frame;

[0236] The local mapping module is used to perform a local mapping operation using the optimized frame.

[0237] By adding line features (Enhanced Line Segment Drawing, ELSED) and surface features (FastPlane Extraction Using Agglomerative Hierarchical Clustering, PEAC), point features, line features and surface features are tightly coupled for pose estimation to solve the problem of insufficient feature points in indoor texture-deficient scenes. Specifically, in the tracking stage, point features, line features and surface features are first extracted for each image frame, and then matched with the corresponding features of the previous key frame, and finally the pose estimate of the current frame is obtained together.

[0238] At the same time, in order to cope with the impact of a large number of dynamic projections caused by the large number of indoor light sources and areas prone to mirror reflections such as tiles, this system uses a semantic segmentation module to extract the ground semantic mask map for the key frame, and removes the dynamic point features and dynamic line features located in the ground semantic mask map to obtain an optimized frame to improve the accuracy of pose estimation.

[0239] According to the result of pose estimation, it can be determined whether the current optimized frame is a new key frame. If the current optimized frame is a new key frame, local mapping is performed, new map points and map lines are created, and local BA is performed to optimize the local pose estimation results.

[0240] Detect and remove redundant keyframes.

[0241] A multi-feature indoor visual positioning system based on a ground segmentation network, further comprising:

[0242] The loop detection module is used to obtain the current scene image in real time; describe the attributes of the feature points in the current scene image to obtain feature point descriptors; cluster the feature point descriptors to build a structural dictionary; search for words in the structural dictionary according to the feature point descriptors, and calculate the weights of the words to form a bag-of-words vector of the current scene image; calculate the similarity between the bag-of-words vector of the current scene image and the bag-of-words vector of the saved key frame; when the similarity exceeds a preset loop threshold and satisfies the loop determination strategy, it is determined to be a loop, so as to maximize the real-time performance and efficiency of the system;

[0243] The global BA module is used to trigger global optimization of all keyframes and feature points when a loop is detected.

[0244] The loop detection module is executed in parallel with other modules as a daemon process. This parallel execution mode enables the system to achieve a good balance between real-time and accuracy, so as to better cope with the positioning and navigation requirements in different scenarios and complex environments.

[0245] The loop detection module also includes a loop correction function.

[0246] The embodiment of the present application also provides a multi-feature indoor visual positioning device based on a ground segmentation network, and the multi-feature indoor visual positioning device based on a ground segmentation network corresponds one-to-one to the multi-feature indoor visual positioning method based on a ground segmentation network in the above embodiment. The multi-feature indoor visual positioning device based on a ground segmentation network includes:

[0247] An acquisition module, used to obtain an initial image containing environmental information;

[0248] A feature extraction module, used for extracting point features, line features and surface features based on the initial image;

[0249] The fusion module is used to match the point features, line features and surface features of the current frame with the point features, line features and surface features of the previous key frame, calculate the matching error, and obtain the estimated pose through nonlinear optimization;

[0250] A key frame detection module, used to determine whether the current frame is a new key frame according to the estimated posture;

[0251] An optimization module, for performing semantic segmentation on the initial image based on a preset full convolutional network model to obtain a ground semantic mask map if the current frame is a new key frame, and using the ground semantic mask map to remove dynamic point features and dynamic line features located on the ground in the current frame to obtain an optimized frame;

[0252] A mapping module is used to perform a local mapping operation using the optimized frame.

[0253] A multi-feature indoor visual positioning device based on a ground segmentation network also includes:

[0254] The loop detection module is used to obtain the current scene image in real time; use the ORB feature extraction algorithm to describe the attributes of the feature points of the current scene image to obtain the ORB feature point descriptor; use the K-means++ algorithm to cluster the ORB feature point descriptors to build a K-tree structure dictionary; search for words in the structure dictionary according to the ORB feature point descriptors, and calculate TF-IDF as the weight of the words to form a bag-of-words vector of the current scene image; calculate the similarity between the bag-of-words vector of the current scene image and the bag-of-words vector of the saved key frame; when the similarity exceeds the preset loop threshold and satisfies the loop determination strategy, it is determined to be a loop, triggering the global optimization of all key frames and feature points.

[0255] A multi-feature indoor visual positioning device based on a ground segmentation network also includes:

[0256] The model building module is used to convert the input initial image into a higher-level feature representation through an encoder; gradually decode the feature representation of the encoder into a prediction result of the same size as the initial image through a decoder; and connect the output of the target layer of the encoder to the input of the corresponding layer of the decoder through a jump. The encoder uses features from different levels and adopts a softmax function for prediction to output a ground semantic mask map.

[0257] For the specific limitations of a multi-feature indoor visual positioning device based on a ground segmentation network, please refer to the above limitations of a multi-feature indoor visual positioning method based on a ground segmentation network, which will not be repeated here.

[0258] Each module in the above-mentioned multi-feature indoor visual positioning device based on ground segmentation network can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0259] In one embodiment, a computer device is provided, which may be a server. The computer device includes a processor, a memory, a network interface, and a database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, any of the above-mentioned multi-feature indoor visual positioning methods based on a ground segmentation network is implemented.

[0260] In one embodiment, a computer-readable storage medium is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, any one of the multi-feature indoor visual positioning methods based on a ground segmentation network is implemented.

[0261] In one embodiment, a computer program product is provided, which includes a computer program, and when the computer program is executed by a processor, any one of the above-mentioned multi-feature indoor visual positioning methods based on a ground segmentation network is implemented.

[0262] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. When the computer program is executed, it may include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0263] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the system can be divided into different functional units or modules to complete all or part of the functions described above.

Claims

1. A multi-feature indoor visual positioning method based on ground segmentation network, It is characterized in that The following steps are included: Obtain an initial image containing environmental information; Based on the initial image, extracting point features, line features and surface features; Match the point features, line features and surface features of the current frame with the point features, line features and surface features of the previous key frame respectively, calculate the matching error, and obtain the estimated pose through nonlinear optimization; According to the estimated pose, determining whether the current frame is a new key frame; If the current frame is a new key frame, semantic segmentation is performed on the initial image based on a preset full convolutional network model to obtain a ground semantic mask map, and the dynamic point features and dynamic line features located on the ground in the current frame are eliminated using the ground semantic mask map to obtain an optimized frame; A local mapping operation is performed using the optimized frame.

2. According to the multi-feature indoor visual positioning method based on ground segmentation network according to claim 1, It is characterized in that Based on the initial image, the step of extracting point features includes: Dividing the initial image into layers according to a pyramid to obtain a target grid of a fixed size located on the initial image; Setting a FAST threshold to extract a preset number of FAST corner points for each target grid; If the number of FAST corner points extracted from any target grid is less than a preset number, lowering the FAST threshold of the target grid until the number of FAST corner points extracted from the target grid is equal to the preset number; Point features are determined from the FAST corner points.

3. According to claim 2, the multi-feature indoor visual positioning method based on ground segmentation network, It is characterized in that The step of determining point features from the FAST corner points comprises: Determining whether the width of the initial image exceeds a width threshold; If the width of the initial image exceeds the width threshold, the initial image is cropped into a target size area, wherein: Determining the number of the FAST corner points in the node; If the number of the FAST corner points is greater than 1, the node is split into four child nodes based on a quadtree method, and the child nodes without FAST corner points are removed; Determine the number of the FAST corner points in the child node; If the number of the FAST corner points is greater than 1, the sub-nodes are further split using a quadtree method, and sub-nodes without FAST corner points are removed; Until the child nodes can no longer be split, or the total number of child nodes is greater than the preset node threshold; Select a FAST corner point that meets the requirements from each child node and summarize it to get the point features.

4. The multi-feature indoor visual positioning method based on ground segmentation network according to claim 1, It is characterized in that Based on the initial image, the step of extracting line features includes: Using an enhanced edge drawing algorithm, the initial image is subjected to noise suppression by Gaussian filtering to obtain a de-noised image; Calculating the gradient magnitude and edge direction map of the denoised image; Extracting anchor points of the denoised image based on the gradient magnitude and the edge direction map; The anchor points are connected using an enhanced routing algorithm to obtain line features of the initial image, wherein if the edge direction from a previous pixel point to a current pixel point changes, the pixel point that generates a diagonal line is deleted from the candidate edge points.

5. According to claim 4, the multi-feature indoor visual positioning method based on ground segmentation network, It is characterized in that Before the step of connecting the anchor points using an enhanced routing algorithm to obtain line features of the initial image, the method further includes: Test candidate line segments of different lengths to obtain the line segment lengths of the candidate line segments; Preset a jump length, and determine whether the line segment length of any candidate line segment is greater than the jump length; When the line segment length of the candidate line segment is greater than the jump length, determining whether another pixel aligned with the candidate line segment and having a target number of pixels to be jumped from the current pixel is located in the initial image, wherein the target number of pixels to be jumped = the length value of the jump length; When another pixel aligned with the candidate line segment and having a target number of pixels to be jumped from the current pixel is located in the initial image, it is determined whether there are at least a target number of extended pixels when connecting the anchor points along the edge direction, wherein the target number of extended pixels = the length value of the jump length; When there are at least a target number of extended pixels when connecting the anchor points along the edge direction, determining whether the extended pixels are completely aligned with the candidate line segment; When the extended pixel is completely aligned with the candidate line segment, the preset minimum discontinuity portion is automatically skipped when connecting the anchor points to obtain the line features of the initial image.

6. The multi-feature indoor visual positioning method based on ground segmentation network according to claim 1, It is characterized in that Based on the initial image, the step of extracting face features comprises: According to the depth map of the initial image, a two-dimensional pixel back-projection operation is performed on the target pixel points, and then converted into a three-dimensional point set to obtain a structured point cloud sequence; The depth map of the initial image is divided into blocks of a preset size to obtain divided blocks, wherein each divided block corresponds to a node in the graph model; Based on the structure point cloud sequence, a plane extraction algorithm of principal component analysis is used to calculate the three-dimensional center coordinates and covariance matrix of the points in each node; Solving the minimum eigenvalue of the covariance matrix, and taking the minimum eigenvalue as the mean square error of the node; Eliminate nodes whose mean square error is greater than a preset value, nodes with depth missing pixels, nodes with depth discontinuous edges, and nodes located at the boundary between two planes; Sort the nodes in descending order according to the mean square error of the nodes, and establish a minimum heap structure; For the node with the minimum mean square error in the minimum heap structure, traverse the neighborhood of the node, find the neighboring node with the minimum mean square error after merging, perform a merging operation, and remove the node and the neighboring nodes from the minimum heap structure; Determine whether the mean square error of the merged nodes is less than the preset value; If the mean square error of the merged node is less than or equal to the preset value, adding the merged node to the minimum heap structure; If the mean square error of the merged node is greater than the preset value, the merged node is removed; Until all nodes are extracted using the plane extraction algorithm based on principal component analysis, the minimum heap structure is used as the surface feature.

7. The multi-feature indoor visual positioning method based on ground segmentation network according to claim 6, It is characterized in that The step of judging whether the mean square error of the merged nodes is less than the preset value comprises: Get the center coordinates of the node with the minimum mean square error in the minimum heap structure The center coordinates of the neighboring nodes with the smallest mean square error after merging in, Calculate the center coordinates of the node with the minimum mean square error in the minimum heap structure and the node after merging the neighboring nodes in, k 1 is the number of three-dimensional points of the node with the minimum mean square error in the minimum heap structure, k 2 is the number of three-dimensional points of the neighborhood node; Calculate the covariance matrix Σ of the node with the minimum mean square error in the minimum heap structure and the node after merging the neighboring nodes 3 ,in, Σ 1 is the covariance matrix of the node with the minimum mean square error in the minimum heap structure, Σ 2 is the covariance matrix of the neighborhood nodes; According to the center coordinates and covariance matrix of the merged nodes, the mean square error of the merged nodes is calculated; It is determined whether the mean square error of the merged nodes is less than the preset value.

8. The multi-feature indoor visual positioning method based on ground segmentation network according to claim 1, It is characterized in that The following steps are also included: Get the current scene image in real time; The ORB feature extraction algorithm is used to describe the attributes of feature points of the current scene image to obtain the ORB feature point descriptor; The K-means++ algorithm is used to cluster the ORB feature point descriptors to construct a K-tree structure dictionary; Searching for words in the structure dictionary according to the ORB feature point descriptor, and calculating TF-IDF as the weight of the word to form a bag-of-words vector of the current scene image; Calculate the similarity between the bag-of-words vector of the current scene image and the bag-of-words vector of the saved keyframe; When the similarity exceeds a preset loop threshold and satisfies the loop determination strategy, it is determined to be a loop, triggering global optimization of all key frames and feature points.

9. A multi-feature indoor visual positioning system based on ground segmentation network, It is characterized in that include, A tracking module is used to obtain an initial image containing environmental information; based on the initial image, extract point features, line features and surface features; match the point features, line features and surface features of the current frame with the point features, line features and surface features in the previous key frame respectively to obtain an estimated pose of the current frame; A semantic segmentation module is used to determine whether the current frame is a new key frame according to the estimated posture; if the current frame is a new key frame, semantic segmentation is performed on the initial image to obtain a ground semantic mask map, and the ground semantic mask map is used to eliminate dynamic point features and dynamic line features located on the ground in the current frame to obtain an optimized frame; The local mapping module is used to perform a local mapping operation using the optimized frame.

10. The multi-feature indoor visual positioning system based on ground segmentation network according to claim 9, It is characterized in that Also includes, Loop detection module, used to obtain the current scene image in real time; Describing the attributes of feature points in the current scene image to obtain feature point descriptors; clustering the feature point descriptors to construct a structure dictionary; Searching for words in the structure dictionary according to the feature point descriptor, and calculating the weight of the words to form a bag-of-words vector of the current scene image; calculating the similarity between the bag-of-words vector of the current scene image and the bag-of-words vector of the saved key frame; when the similarity exceeds a preset loop threshold and satisfies the loop determination strategy, it is determined to be a loop; The global BA module is used to trigger global optimization of all keyframes and feature points when a loop is detected.

Citation Information

Patent Citations

  • Semantic mapping method based on visual SLAM and two-dimensional semantic segmentation

    CN111462135A

  • Dynamic environment information detection method based on semantic segmentation network and multi-view geometry

    CN112435262A

  • Map construction method and device based on SLAM in dynamic scene

    CN114898062A

  • Indoor dynamic vision SLAM algorithm based on line feature optimization

    CN115330809A

  • Image feature point extraction method and device, equipment and storage medium

    CN115512171A

Cited By

  • Infrared image edge detection method based on three-dimensional laser point cloud data guidance

    CN119648728A