Visual SLAM method, device and equipment for indoor environment and storage medium

By combining semantic segmentation and feature extraction algorithms with Manhattan world constraints, a semantic octree map is constructed, which solves the problem of low positioning accuracy of traditional visual SLAM in indoor environments, achieves efficient visual SLAM in indoor environments, and reduces costs.

CN118799719APending Publication Date: 2024-10-18SHENZHEN INST OF ADVANCED TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310430880.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-11
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Traditional visual SLAM is difficult to work effectively in indoor environments. Although laser SLAM can perform pose estimation, it does not fully utilize point and line features and geometric constraints, resulting in limited positioning accuracy and high cost.

Method used

Semantic segmentation algorithm is used to obtain the semantic information of RGB images, point and line features are extracted and matched through feature extraction algorithm, inter-frame pose estimation is performed based on Manhattan world constraints, and a semantic octree map is constructed to achieve visual SLAM in indoor environments.

Benefits of technology

It improves the accuracy and robustness of camera pose estimation, enhances SLAM positioning accuracy in indoor environments, and reduces costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799719A_ABST
    Figure CN118799719A_ABST
Patent Text Reader

Abstract

The invention relates to a visual SLAM method and device for an indoor environment, equipment and a storage medium. The method comprises the following steps: acquiring an RGB image of an indoor environment, and acquiring semantic information of the RGB image; performing point-line feature extraction on the RGB image, and matching the point-line features to obtain a visual constraint of the RGB image; detecting a planar object in the RGB image based on the semantic information of the RGB image, and obtaining Manhattan world constraints of the RGB image; and performing inter-frame pose estimation on the RGB image in combination with the visual constraint and the Manhattan world constraint, and constructing the visual SLAM of the indoor environment according to an inter-frame pose estimation result. According to the embodiment of the invention, geometric constraints in the indoor environment are added, the visual SLAM of the indoor environment is constructed by combining low-level geometric features of points, lines and planes and high-level semantic features, and the pose estimation, accuracy and robustness of the camera are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer vision technology, and in particular, relates to a visual SLAM method, device, equipment and storage medium for indoor environments. Background Art

[0002] SLAM (Simultaneous Localization and Mapping) is a robot perception technology, which refers to a subject equipped with specific sensors, which builds a model of the environment during movement and estimates its own movement at the same time. SLAM technology is divided into two categories: visual SLAM and laser SLAM. Traditional visual SLAM usually estimates and optimizes the camera's pose by data association between camera frame features or optical flow, and builds a map that meets the task requirements based on the estimated trajectory. Indoor environments usually have texture loss, and traditional visual SLAM systems are difficult to work effectively in indoor environments. Therefore, laser SLAM and other SLAM systems equipped with non-camera sensors are currently used in indoor environments to estimate and locate the robot's pose. However, the existing laser SLAM does not fully utilize the point and line features and geometric constraints in the indoor environment, resulting in limited SLAM positioning accuracy in indoor environments. At the same time, the cost of using laser SLAM is relatively high. Summary of the invention

[0003] The present application provides a visual SLAM method, apparatus, device and storage medium for an indoor environment, aiming to solve at least one of the above-mentioned technical problems in the prior art to a certain extent.

[0004] In order to solve the above problems, this application provides the following technical solutions:

[0005] A visual SLAM method for an indoor environment, comprising:

[0006] Acquire an RGB image of the indoor environment, and use a semantic segmentation algorithm to acquire semantic information of the RGB image;

[0007] Extracting point and line features from the RGB image using a feature extraction algorithm, and matching the point and line features to obtain visual constraints of the RGB image;

[0008] Detecting a planar object in the RGB image based on semantic information of the RGB image, and obtaining a Manhattan world constraint of the RGB image according to a normal of the planar object;

[0009] The inter-frame pose estimation is performed on the RGB image in combination with the visual constraint and the Manhattan world constraint, and the visual SLAM of the indoor environment is constructed according to the inter-frame pose estimation result.

[0010] The technical solution adopted by the embodiment of the present application also includes: the obtaining of an RGB image in an indoor environment and obtaining semantic information of the RGB image using a semantic segmentation algorithm includes:

[0011] Acquire an RGB image containing color information and depth information in an indoor environment through a sensor data acquisition device; the sensor data acquisition device is an RGB-D camera;

[0012] The Deeplabv3+ algorithm is used to perform semantic segmentation on the RGB image to obtain semantic information of the RGB image.

[0013] The technical solution adopted by the embodiment of the present application also includes: extracting point and line features from the RGB image using a feature extraction algorithm, and matching the point and line features to obtain the visual constraints of the RGB image, which are specifically:

[0014] The ORB algorithm is used to extract point features from the RGB image, and the BRIEF descriptor is used to construct a descriptor of the point features;

[0015] The LSD algorithm is used to extract line features from the RGB image, and the LBD descriptor is used to construct a descriptor of the line features;

[0016] Point and line feature matching is performed based on the point feature descriptor and the line feature descriptor.

[0017] The technical solution adopted by the embodiment of the present application also includes: before detecting the planar object in the RGB image based on the semantic information of the RGB image, it also includes:

[0018] Detecting potential dynamic objects in the RGB image based on the semantic information;

[0019] A motion consistency check is performed on the dynamic objects to screen out the dynamic objects in motion, and point and line features of the dynamic objects in motion are eliminated.

[0020] The technical solution adopted by the embodiment of the present application also includes: detecting the planar object in the RGB image based on the semantic information of the RGB image, and obtaining the Manhattan world constraint of the RGB image according to the normal of the planar object is specifically:

[0021] Detecting a planar object in the RGB image according to the semantic information, wherein the planar object includes a wall, a ceiling, and a ground;

[0022] The normals of the wall, ceiling and ground are solved, and the normals of the wall are perpendicular to the normals of the ceiling and the ground respectively as the Manhattan world constraints of the RGB image.

[0023] The technical solution adopted by the embodiment of the present application also includes: the visual SLAM of the indoor environment is constructed according to the inter-frame pose estimation result, specifically:

[0024] Based on the inter-frame pose estimation result, a representative frame in the RGB image is selected as a key frame, and a quadtree algorithm is used to remove redundant points in the key frame;

[0025] A sliding window is created, and after performing bundle adjustment optimization on key frames in the sliding window, a semantic octree map of the indoor environment is established.

[0026] The technical solution adopted by the embodiment of the present application also includes: after the semantic octree map of the indoor environment is established, it also includes:

[0027] The bag-of-words model is used for closed-loop detection, and the semantic octree map is globally optimized and corrected according to the detection results to complete the visual SLAM of the indoor environment.

[0028] Another technical solution adopted by the embodiment of the present application is: a visual SLAM device for an indoor environment, comprising:

[0029] Semantic segmentation module: used to obtain an RGB image of the indoor environment and use a semantic segmentation algorithm to obtain semantic information of the RGB image;

[0030] Feature extraction module: used to extract point and line features from the RGB image using a feature extraction algorithm, and match the point and line features to obtain visual constraints of the RGB image;

[0031] Plane detection module: used to detect planar objects in the RGB image based on the semantic information of the RGB image, and obtain the Manhattan world constraint of the RGB image according to the normal of the planar object;

[0032] A pose estimation module is used to perform inter-frame pose estimation on the RGB image in combination with the visual constraint and the Manhattan world constraint, and to construct a visual SLAM of the indoor environment according to the inter-frame pose estimation result.

[0033] Another technical solution adopted by the embodiment of the present application is: a device, the device includes a processor and a memory coupled to the processor, wherein:

[0034] The memory stores program instructions for implementing the visual SLAM method for the indoor environment;

[0035] The processor is used to execute the program instructions stored in the memory to control the visual SLAM method of the indoor environment.

[0036] Another technical solution adopted by the embodiment of the present application is: a storage medium storing program instructions executable by a processor, wherein the program instructions are used to execute the visual SLAM method for the indoor environment.

[0037] Compared with the prior art, the beneficial effects of the embodiments of the present application are as follows: the visual SLAM method, device, equipment and storage medium of the indoor environment of the embodiments of the present application obtains the RGB image of the indoor environment, uses a semantic segmentation algorithm to obtain the semantic information of the RGB image, uses a feature extraction algorithm to extract point and line features of the RGB image, and matches the point and line features to obtain the visual constraints of the RGB image, detects the planar objects in the RGB image based on the semantic information of the RGB image, and obtains the Manhattan world constraints of the RGB image according to the normal of the planar object, combines the visual constraints and the Manhattan world constraints to estimate the inter-frame pose of the RGB image, and establishes a semantic octree map of the indoor environment to complete the visual SLAM of the indoor environment. The embodiments of the present application construct the visual SLAM of the indoor environment by adding geometric constraints in the indoor environment and combining low-level geometric features of points, lines and surfaces with high-level semantic features, which greatly improves the pose estimation, accuracy and robustness of the camera. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 is a flow chart of the visual SLAM method for an indoor environment of the first embodiment of the present application;

[0039] Figure 2 is a flow chart of a visual SLAM method for an indoor environment of a second embodiment of the present application;

[0040] Figure 3 A schematic diagram of the structure of a visual SLAM device for an indoor environment according to an embodiment of the present application;

[0041] Figure 4 A schematic diagram of the device structure of an embodiment of the present application;

[0042] Figure 5 A schematic diagram of the structure of a storage medium according to an embodiment of the present application. DETAILED DESCRIPTION

[0043] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only 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.

[0044] The terms "first", "second", "third" in this application are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first", "second", "third" can expressly or implicitly include at least one of the features. In the description of this application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. In the embodiments of this application, all directional indications (such as up, down, left, right, front, back...) are only used to explain the relative position relationship, movement, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication also changes accordingly. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the steps or units listed, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.

[0045] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0046] Specifically, see Figure 1 , is a flow chart of the visual SLAM method for an indoor environment of the first embodiment of the present application. The visual SLAM method for an indoor environment of the first embodiment of the present application comprises the following steps:

[0047] S100: Acquire an RGB image of an indoor environment, and use a semantic segmentation algorithm to acquire semantic information of the RGB image;

[0048] S110: extracting point and line features from the RGB image using a feature extraction algorithm, and matching the point and line features to obtain visual constraints of the RGB image;

[0049] S120: Detecting a planar object in the RGB image based on the semantic information of the RGB image, and acquiring a Manhattan world constraint of the RGB image according to a normal of the planar object;

[0050] S130: performing inter-frame pose estimation on the RGB image in combination with the visual constraint and the Manhattan world constraint, and constructing a visual SLAM of the indoor environment according to the inter-frame pose estimation result.

[0051] See also Figure 2 , is a flow chart of the visual SLAM method for an indoor environment of the second embodiment of the present application. The visual SLAM method for an indoor environment of the second embodiment of the present application comprises the following steps:

[0052] S200: acquiring an RGB image containing color information and depth information in an indoor environment through a sensor data acquisition device;

[0053] In this step, the sensor data acquisition device is an RGB-D camera. The RGB-D camera acquires three-dimensional information based on the principle of triangulation, that is, a triangle is formed between the image planes of the two cameras and the object being measured. The three-dimensional information of the target body can be obtained according to the baseline distance, focal length, geometric relationship in the image, and coordinate system conversion of the camera, thereby obtaining an RGB image + depth image containing color information and depth information in the indoor environment. It can be understood that other types of sensor data acquisition devices such as depth cameras can also be used to collect RGB images, which can be set according to the actual application scenario.

[0054] S210: Use the Deeplabv3+ algorithm to perform semantic segmentation on the RGB image, obtain the semantic information of the RGB image, and pass the RGB image and semantic information to the front-end visual odometry;

[0055] In this step, the Deeplabv3+ algorithm is a semantic segmentation algorithm. This algorithm introduces the idea of ​​​​Ecoder-Decoder based on DilatedFCN and adds a Decoder module, which further integrates the underlying features with the high-level features to achieve high-precision segmentation at the pixel level and runs faster.

[0056] S210: extracting point and line features from the RGB image using a feature extraction algorithm through the front-end visual odometer, and matching the point and line features to obtain visual constraints of the RGB image;

[0057] In this step, the feature extraction algorithm is used to extract point and line features from the RGB image. Specifically, the ORB (Oriented Fast and Rotated Brief, which extracts feature points based on the FAST algorithm and constructs a descriptor of point features based on the BRIEF algorithm) algorithm is first used to extract point features from the RGB image, and the BRIEF descriptor is used to construct a descriptor of point features for subsequent point and line feature matching; then the LSD (Line Segment Detector, straight line extraction algorithm) algorithm is used to extract line features from the RGB image, and the LBD descriptor is used to construct a descriptor of line features for subsequent point and line feature matching.

[0058] S220: Detecting potential dynamic objects in the RGB image based on the semantic information of the RGB image, performing motion consistency check on the dynamic objects, screening out the dynamic objects in motion, and removing the point and line features of the dynamic objects;

[0059] In this step, the RGB image may contain dynamic objects such as walking people, cats and / or dogs that may appear indoors. In order to avoid interference of these dynamic objects to the pose estimation, the embodiment of the present application detects possible potential dynamic objects in the RGB image based on the semantic information in the RGB image, performs a motion consistency check on the dynamic object, and determines whether the motion point of the dynamic object is greater than a set threshold. If so, it is determined that the dynamic object is in motion, and the point and line features in the dynamic object are removed, so as to achieve the purpose of eliminating interference of the dynamic object to the pose estimation.

[0060] S230: Detecting planar objects such as walls, ceilings, and the ground in the RGB image based on semantic information of the RGB image, and solving normals of the planar objects, and taking the normals of the walls to be perpendicular to the normals of the ceiling and the ground as Manhattan world constraints of the RGB image;

[0061] In this step, the Manhattan world constraint assumes that the reconstructed surface obeys three mutually perpendicular orthogonal directions. The structural features of the Manhattan world can provide useful scene geometry information, such as parallel, orthogonal and coplanar relationships, which can improve the accuracy of camera pose estimation.

[0062] S240: perform inter-frame pose estimation on RGB images by combining visual constraints and Manhattan world constraints of RGB images;

[0063] S250: based on the inter-frame pose estimation result, select a representative frame in the RGB image as a key frame, and use a quadtree algorithm to remove redundant points in the key frame;

[0064] In this step, the key frame selection strategy in the RGB image is: determine whether the points tracked in the current frame and the previous key frame are less than the set point threshold. If so, create a new key frame. After selecting the key frame, the quadtree algorithm is used to filter the points in the key frame to reduce the amount of calculation for subsequent optimization.

[0065] S260: creating a sliding window, performing bundle adjustment optimization on the key frames in the sliding window, and establishing a semantic octree map of the indoor environment;

[0066] In this step, the sliding window size can be set according to the actual application scenario. If a new key frame is created, the old key frame in the sliding window will be removed to reduce the amount of calculation. Bundle Adjustment uses the camera posture and the three-dimensional coordinates of the measurement point as unknown parameters, and the coordinates of the feature points detected on the image for forward intersection as observation data to adjust and obtain the optimal camera parameters and world point coordinates.

[0067] S270: Use the Bag of Words (BoW) model for closed-loop detection, and globally optimize and correct the semantic octree map based on the detection results to complete the visual SLAM of the indoor environment;

[0068] In this step, closed loop detection is to compare the similarities of several features in the image to determine whether the camera has returned to a position it has reached before. If so, a closed loop has occurred. If a closed loop is detected, global optimization is performed to correct the drift caused by long-term SLAM work. After the optimization is completed, the established local semantic octree map is corrected to complete the visual SLAM of the indoor environment.

[0069] Based on the above, the visual SLAM method for indoor environments of the second embodiment of the present application obtains an RGB image containing color information and depth information in the indoor environment, uses the Deeplabv3+ algorithm to segment the RGB image, obtains the semantic information of the RGB image, uses a feature extraction algorithm to extract point and line features from the RGB image, and matches the point and line features to obtain the visual constraints of the RGB image, detects potential dynamic objects in the RGB image based on the semantic information of the RGB image, and removes the point and line features of the dynamic object, detects the plane object in the RGB image based on the semantic information of the RGB image, obtains the Manhattan world constraint of the RGB image according to the normal of the plane object, combines the visual constraint of the RGB image and the Manhattan world constraint to estimate the inter-frame pose of the RGB image, and establishes a semantic octree map of the indoor environment to complete the visual SLAM of the indoor environment. The embodiment of the present application eliminates the interference caused by the dynamic object on the pose estimation by removing the point and line features of the dynamic object in the indoor environment, and adds the geometric constraints in the indoor environment, combines the low-level geometric features of points, lines, and surfaces, and the high-level semantic features to construct the visual SLAM of the indoor environment, which greatly improves the pose estimation and accuracy and robustness of the camera.

[0070] See also Figure 3 , is a schematic diagram of the structure of a visual SLAM device for an indoor environment in an embodiment of the present application. The visual SLAM device 40 for an indoor environment in an embodiment of the present application includes:

[0071] Semantic segmentation module 41: used to obtain an RGB image of the indoor environment and obtain semantic information of the RGB image using a semantic segmentation algorithm;

[0072] Feature extraction module 42: used for extracting point and line features from the RGB image using a feature extraction algorithm, and matching the point and line features to obtain visual constraints of the RGB image;

[0073] Plane detection module 43: used to detect a planar object in the RGB image based on the semantic information of the RGB image, and obtain the Manhattan world constraint of the RGB image according to the normal of the planar object;

[0074] The pose estimation module 44 is used to perform inter-frame pose estimation on the RGB image in combination with the visual constraint and the Manhattan world constraint, and construct the visual SLAM of the indoor environment according to the inter-frame pose estimation result.

[0075] See also Figure 4 , is a schematic diagram of the device structure of an embodiment of the present application. The device 50 includes:

[0076] A memory 51 storing executable program instructions;

[0077] A processor 52 connected to the memory 51;

[0078] The processor 52 is used to call the executable program instructions stored in the memory 51 and perform the following steps: obtain an RGB image of the indoor environment, and use a semantic segmentation algorithm to obtain semantic information of the RGB image; use a feature extraction algorithm to extract point and line features from the RGB image, and match the point and line features to obtain visual constraints of the RGB image; detect planar objects in the RGB image based on the semantic information of the RGB image, and obtain Manhattan world constraints of the RGB image according to the normals of the planar objects; perform inter-frame pose estimation on the RGB image in combination with the visual constraints and Manhattan world constraints, and construct a visual SLAM of the indoor environment according to the inter-frame pose estimation results.

[0079] The processor 52 may also be referred to as a CPU (Central Processing Unit). The processor 52 may be an integrated circuit chip having signal processing capabilities. The processor 52 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0080] See also Figure 5 , Figure 5 Schematic diagram of the structure of the storage medium of the embodiment of the present application. The storage medium of the embodiment of the present application stores program instructions 61 that can implement the following steps: obtaining an RGB image of an indoor environment, and using a semantic segmentation algorithm to obtain semantic information of the RGB image; using a feature extraction algorithm to extract point and line features from the RGB image, and matching the point and line features to obtain visual constraints of the RGB image; detecting planar objects in the RGB image based on the semantic information of the RGB image, and obtaining Manhattan world constraints of the RGB image according to the normal of the planar object; combining the visual constraints and Manhattan world constraints to estimate the inter-frame pose of the RGB image, and constructing the visual SLAM of the indoor environment according to the inter-frame pose estimation results. Among them, the program instruction 61 can be stored in the above-mentioned storage medium in the form of a software product, including a number of instructions to enable a device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the various implementation methods of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program instructions, or terminal devices such as computers, servers, mobile phones, tablets, etc. Among them, the server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.

[0081] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0082] In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. The above is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the description and drawings of this application, or directly or indirectly used in other related technical fields, is also included in the patent protection scope of the present application.

Claims

1. A visual SLAM method for indoor environments, characterized in that: include: Acquire an RGB image of the indoor environment, and use a semantic segmentation algorithm to acquire semantic information of the RGB image; Extracting point and line features from the RGB image using a feature extraction algorithm, and matching the point and line features to obtain visual constraints of the RGB image; Detecting a planar object in the RGB image based on semantic information of the RGB image, and obtaining a Manhattan world constraint of the RGB image according to a normal of the planar object; The inter-frame pose estimation is performed on the RGB image in combination with the visual constraint and the Manhattan world constraint, and the visual SLAM of the indoor environment is constructed according to the inter-frame pose estimation result.

2. The visual SLAM method for indoor environment according to claim 1, characterized in that: The step of acquiring an RGB image in an indoor environment and acquiring semantic information of the RGB image using a semantic segmentation algorithm includes: Acquire an RGB image containing color information and depth information in an indoor environment through a sensor data acquisition device; the sensor data acquisition device is an RGB-D camera; The Deeplabv3+ algorithm is used to perform semantic segmentation on the RGB image to obtain semantic information of the RGB image.

3. The visual SLAM method for indoor environment according to claim 2, characterized in that: The feature extraction algorithm is used to extract point and line features from the RGB image, and the point and line features are matched to obtain the visual constraints of the RGB image. Specifically, the visual constraints are: The ORB algorithm is used to extract point features from the RGB image, and the BRIEF descriptor is used to construct a descriptor of the point features; The LSD algorithm is used to extract line features from the RGB image, and the LBD descriptor is used to construct a descriptor of the line features; Point and line feature matching is performed based on the point feature descriptor and the line feature descriptor.

4. The visual SLAM method for indoor environments according to any one of claims 1 to 3, characterized in that: Before detecting the planar object in the RGB image based on the semantic information of the RGB image, the method further includes: Detecting potential dynamic objects in the RGB image based on the semantic information; A motion consistency check is performed on the dynamic objects to screen out the dynamic objects in motion, and point and line features of the dynamic objects in motion are eliminated.

5. The visual SLAM method for indoor environment according to claim 4, characterized in that: The method of detecting a planar object in the RGB image based on the semantic information of the RGB image and obtaining the Manhattan world constraint of the RGB image according to the normal of the planar object is specifically: Detecting a planar object in the RGB image according to the semantic information, wherein the planar object includes a wall, a ceiling, and a ground; The normals of the wall, ceiling and ground are solved, and the normals of the wall are perpendicular to the normals of the ceiling and the ground respectively as the Manhattan world constraints of the RGB image.

6. The visual SLAM method for indoor environment according to claim 5, characterized in that: The visual SLAM of the indoor environment is constructed according to the inter-frame pose estimation result as follows: Based on the inter-frame pose estimation result, a representative frame in the RGB image is selected as a key frame, and a quadtree algorithm is used to remove redundant points in the key frame; A sliding window is created, and after performing bundle adjustment optimization on key frames in the sliding window, a semantic octree map of the indoor environment is established.

7. The visual SLAM method for indoor environment according to claim 6, characterized in that: After the semantic octree map of the indoor environment is established, the method further includes: The bag-of-words model is used for closed-loop detection, and the semantic octree map is globally optimized and corrected according to the detection results to complete the visual SLAM of the indoor environment.

8. A visual SLAM device for an indoor environment, characterized in that: include: Semantic segmentation module: used to obtain an RGB image of the indoor environment and use a semantic segmentation algorithm to obtain semantic information of the RGB image; Feature extraction module: used to extract point and line features from the RGB image using a feature extraction algorithm, and match the point and line features to obtain visual constraints of the RGB image; Plane detection module: used to detect planar objects in the RGB image based on the semantic information of the RGB image, and obtain the Manhattan world constraint of the RGB image according to the normal of the planar object; A pose estimation module is used to perform inter-frame pose estimation on the RGB image in combination with the visual constraint and the Manhattan world constraint, and to construct a visual SLAM of the indoor environment according to the inter-frame pose estimation result.

9. A device, characterized in that: The device comprises a processor and a memory coupled to the processor, wherein: The memory stores program instructions for implementing the visual SLAM method for an indoor environment according to any one of claims 1 to 7; The processor is used to execute the program instructions stored in the memory to control the visual SLAM method of the indoor environment.

10. A storage medium, characterized in that: The device stores program instructions executable by a processor, wherein the program instructions are used to execute the visual SLAM method for an indoor environment as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Visual SLAM method based on semantic segmentation of deep learning

    CN112132897A

  • Indoor binocular visual odometer method based on point, line and surface features

    CN114004900A