A dynamic scene 3D reconstruction method based on semantic information

Through the three-dimensional reconstruction method of dynamic scenes assisted by semantic information, screening static features and Bayesian filtering framework, combined with the minimum bounding box method, the problem of low positioning accuracy of traditional SLAM systems in dynamic scenes is solved, and higher semantic perception and Positioning accuracy, suitable for real-time semantic reconstruction in complex environments.

CN114332394BActive Publication Date: 2024-08-30BEIHANG UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111648384.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2024-08-30
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

It is difficult for traditional visual SLAM systems to accurately construct semantic maps in dynamic scenes, and cannot effectively distinguish the dynamic and static states of dynamic objects, resulting in low positioning accuracy and inaccurate data association between semantic labels and map points, which affects the robot's understanding of the environment and practical applications. .

Method used

A dynamic scene three-dimensional reconstruction method based on semantic information is used to collect images through visual sensors for semantic segmentation and feature extraction, filter static point and line features, establish static object point cloud models, and use Bayesian filtering framework to update semantic categories, combined with The minimum bounding box method determines the object pose and constructs a semantic point cloud map.

Benefits of technology

It improves the semantic perception capability and positioning accuracy of the visual positioning system in dynamic environments, enhances the robot's understanding of the environment, and is suitable for real-time semantic reconstruction of complex and low-texture scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114332394B
    Figure CN114332394B
Patent Text Reader

Abstract

The present invention relates to a dynamic scene three-dimensional reconstruction method based on semantic information assistance, comprising the following steps: (1) a visual sensor collects images, and performs semantic segmentation and point and line feature extraction on the collected images, and screens out static point and line features through the image semantic segmentation result; (2) combining the static point and line features obtained in step (1), calculating the camera posture, and establishing a static object point cloud model in the dynamic scene; (3) combining the static object point cloud model in the dynamic scene obtained in step (2), fusing the image semantic segmentation result in step (1), mapping the image semantic label to a three-dimensional space point, and using a Bayesian filtering framework to update the semantic categories of all map points in step (2) to obtain a semantic point cloud map; (4) combining the semantic point cloud map in step (3), clustering the point clouds of the same category, and using a minimum bounding box method to determine the object posture, to obtain a semantic point cloud model of the dynamic scene, thereby solving the problem of semantic mapping of the dynamic scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a dynamic scene three-dimensional reconstruction method based on the assistance of semantic information, which is suitable for semantic map reconstruction in dynamic scenes. Background Art

[0002] Real-time 3D map reconstruction technology is widely used in military, detection, unmanned driving, robotics and other fields. In recent years, this technology has developed rapidly in the fields of mobile robots and unmanned driving. Being able to build maps in real time and give maps semantic information is the key research direction of map building technology at this stage, which is of great significance. In the absence of prior information about the environment, the robot estimates its own position through the acquired sensor data and builds a globally consistent environmental map at the same time, that is, simultaneous localization and mapping (SLAM) technology. Among them, the SLAM system based on visual sensors is called visual SLAM. At the practical application level, the visual SLAM system can be used to achieve a variety of needs, including positioning, reconstruction display, navigation and obstacle avoidance, and interaction between machines and the environment. In order to achieve these needs, the visual SLAM system needs to build maps in different forms. However, in order to meet the positioning requirements, the traditional visual SLAM system has established a sparse point cloud map, which is difficult to meet complex tasks such as autonomous driving and human-computer interaction. With the continuous expansion of robot application fields and the deepening of application levels, high intelligence has become an inevitable trend in the development of robots. Whether the semantic characteristics of the environment can be understood is the premise for achieving human-computer interaction, reducing the cognitive gap, and completing complex tasks. However, conventional map construction methods lack environmental semantic information, which seriously restricts their theoretical development and practical application. In addition, traditional map reconstruction technology is also poor in dealing with dynamic scenes. In actual use, dynamic objects in the scene will randomly block the scene. However, traditional methods cannot distinguish the dynamic and static states of objects in the scene, and will still build maps according to the traditional static world assumption. This causes dynamic objects in the scene to leave a series of motion trajectory afterimages in the map, which seriously affects the human visual experience and seriously interferes with the mobile robot's judgment of its own environment.

[0003] The current research difficulties in semantic mapping of dynamic scenes are mainly reflected in the following aspects: (1) Dynamic objects in dynamic environments seriously interfere with camera pose calculation and affect point cloud stitching, which is the most fundamental link in mapping; (2) The existing semantic segmentation network based on deep learning often does not produce accurate segmentation results when objects are occluded or blurred by motion, which seriously affects the data association between semantic labels and map points; (3) Existing semantic mapping methods often find it difficult to determine the orientation of objects in dynamic scenes, which makes it difficult to further develop semantic-assisted positioning. Summary of the invention

[0004] The technical problem solved by the present invention is: to overcome the shortcomings of the existing technology, to provide a dynamic scene 3D reconstruction method based on semantic information assistance for the semantic mapping problem of dynamic scenes, to enhance the semantic perception ability of the visual positioning system for the dynamic environment, and to improve the positioning accuracy of the visual positioning system in a dynamic environment.

[0005] The technical solution of the present invention is: a dynamic scene 3D reconstruction method based on semantic information assistance, the implementation steps are as follows:

[0006] (1) The visual sensor collects images, performs semantic segmentation and extracts point and line features from the collected images, and filters out static point and line features through the image semantic segmentation results;

[0007] (2) Combining the static point and line features obtained in step (1), calculating the camera pose and establishing a point cloud model of static objects in the dynamic scene;

[0008] (3) Combining the static object point cloud model in the dynamic scene obtained in step (2), integrating the image semantic segmentation result in step (1), mapping the image semantic label to the three-dimensional space point, and using the Bayesian filtering framework to update the semantic category of all map points in step (2) to obtain a semantic point cloud map;

[0009] (4) Combined with the semantic point cloud map of step (3), point clouds of the same category are clustered, and the minimum bounding box method is used to determine the object pose, and the semantic point cloud model of the dynamic scene is obtained, which solves the problem of semantic mapping of dynamic scenes.

[0010] In the step (1), the visual sensor collects images, and performs semantic segmentation and point and line feature extraction on the collected images. The method for filtering out static point and line features through the semantic segmentation results is as follows:

[0011] For the collected images, semantic segmentation and feature extraction are performed simultaneously. In the semantic segmentation module, the classic SegNet encoder-decoder network is used to perform pixel-level semantic segmentation on the RGB image to segment the dynamic objects in the scene. In the feature extraction module, the RGB image is first converted to grayscale, and ORB feature points and line features are extracted from the grayscale image at the same time. The line features are extracted using the LSD line feature extractor.

[0012] On the basis of the above, combined with the semantic segmentation results of the current image obtained from the semantic segmentation thread, the dynamic ORB feature points in the current image and some LSD line features located on dynamic objects are detected based on this. The semantic label judgment setting rule of the line feature is: only when both endpoints of the line feature are not on a dynamic object, it is identified as a static line feature. Remove the feature points or feature lines with dynamic semantic labels, and only keep the static points and line features to calculate the camera pose corresponding to the current image.

[0013] In step (2), the method of calculating the camera pose and establishing a point cloud model of static objects in a dynamic scene by combining the static point and line features obtained in step (1) is as follows:

[0014] The static point and line features obtained by screening are used to obtain the precise position and posture of the camera in the dynamic scene through the point and line tracking thread. In order to reduce the amount of calculation during 3D reconstruction, the present invention screens out appropriate key frames by counting the number of point features and line features that can be tracked by the tracking thread in the image. When a frame of image has more than 40 tracked feature points and more than 10 tracked line features, the frame is set as a key frame.

[0015] The key frame image is then mapped to the three-dimensional space through the corresponding depth image to obtain the three-dimensional point cloud of the key frame. The point cloud map generated by two consecutive frames is then stitched through the calculated conversion relationship between the two frames to finally establish a point cloud model of static objects in the dynamic scene.

[0016] In the step (3), the static object point cloud model in the dynamic scene obtained in step (2) is combined with the semantic segmentation result in step (1), the image semantic label is mapped to the three-dimensional space point, and the semantic category of all map points in step (2) is updated using the Bayesian filtering framework. The method for obtaining the semantic point cloud map is as follows:

[0017] Combining the segmentation result of the semantic segmentation network obtained in step (1) and the point cloud map obtained in step (2), the semantic labels are mapped to the three-dimensional point cloud map through the internal and external parameters of the camera to obtain an initial semantic point cloud map;

[0018] Taking into account the inconsistency of semantic segmentation results between consecutive frame images, the present invention adopts Bayesian filtering to fuse the semantic information between different frames. For each frame of image semantic segmentation data obtained, the Bayesian filtering framework is used to perform incremental data fusion on the semantic categories of map points.

[0019] Assume that the current frame is the kth frame and the current frame image is I k , using the SegNet semantic segmentation network for I k The result of the segmentation is Sk , remember x k For a 3D map point X in image I k The corresponding pixel point on L k is the semantic category of the 3D map point X, l k is x k In the semantic segmentation result S k The corresponding semantic category in P(L k |S k ) represents the semantic category probability distribution P(L k ) In the current segmentation result S k The conditional probability under the condition is expressed as P(l k |S k ) represents the two-dimensional map point x corresponding to the current three-dimensional map point X k The semantic category probability distribution P(l k ) In the current segmentation result S k Conditional probability under the condition:

[0020] P(L k |S k )=P(l k |S k )

[0021] Among them l k The domain of the semantic segmentation network is the categories that can be distinguished, including people, books, monitors and keyboards. Given all the semantic segmentation data {S1, S2, …S k}, these data are integrated to obtain the posterior probability distribution of the semantic category of the map point X, and the three-dimensional map point semantic label updating method based on Bayesian estimation adopted by the present invention is obtained:

[0022]

[0023] Among them, P(L k |S1,S2,…S k ) represents the segmentation results S1, S2, ..., S of all image data at time k k The probability distribution of the semantic category of the post-map point X, P(l k |S k ) represents the observed value of the semantic category probability distribution of the map point X obtained according to the semantic segmentation result of the k-th frame image, P(L k ) is the probability distribution of the semantic category of map point X at time k. The probability distribution of the semantic category of map point X is continuously updated through the above recursive formula.

[0024] In step (4), the point clouds of the same category are clustered in combination with the semantic point cloud map of step (3), and the minimum bounding box method is used to determine the object pose, thereby obtaining a semantic point cloud model of a dynamic scene. The method for solving the problem of semantic mapping of dynamic scenes is as follows:

[0025] For the three-dimensional point cloud map with semantic information obtained in step (3), the adjacent point clouds with the same semantic labels in the three-dimensional space are clustered into one category through K-means clustering, and each category of point clouds obtained by clustering is fitted with a regular body using the OBB bounding box method (Oriented bounding box). Then, the angle between the three-dimensional map line parallel to the horizontal plane of the world coordinate system and the main axis of the bounding box is calculated. The minimum value of the angle is taken as the correction amount of the main axis of the bounding box, and the direction of the bounding box is corrected to obtain the accurate orientation of the bounding box in the world coordinate system. In the world coordinate system, the size of the bounding box is obtained by calculating the extreme value difference of the coordinates of the category of spatial point cloud along the main axis of the bounding box. The semantic map finally constructed contains both the bounding box with semantic labels and the spatial point cloud with semantic labels.

[0026] The advantages of the present invention compared with the prior art are:

[0027] (1) Aiming at the specific application of semantic mapping of dynamic scenes, the present invention endows the map with semantic information through the assistance of semantic information. The addition of line features in pose estimation improves the accuracy of establishing three-dimensional semantic maps and enhances the robot's understanding of its environment, thus opening up new space for the future theoretical development and practical application of robots.

[0028] (2) Compared with conventional semantic information-assisted mapping methods, the present invention has higher accuracy and system stability in low-texture scenes and dynamic scenes, and is therefore applicable to a wider range of environments.

[0029] In summary, the method adopted by the present invention is simple in principle and can achieve the purpose of real-time semantic reconstruction of dynamic low-texture scenes. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 This is a flow chart of the method for 3D reconstruction of dynamic scenes based on the assistance of semantic information according to the present invention. DETAILED DESCRIPTION

[0031] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of the present invention.

[0032] like Figure 1 As shown, the specific implementation steps of the present invention are as follows:

[0033] Step 1: The visual sensor collects images, performs semantic segmentation and point and line feature extraction on the collected images, and screens out static point and line features through the image semantic segmentation results. The collected images are semantically segmented and feature extracted simultaneously. In the semantic segmentation module, the classic SegNet encoder-decoder network is used to perform pixel-level semantic segmentation on the RGB image to segment the dynamic objects in the scene. In the feature extraction module, the RGB image is grayscaled, and ORB feature points and line features are extracted from the grayscale image at the same time, where the line features are extracted using the LSD line feature extractor.

[0034] On the basis of the above, combined with the semantic segmentation results of the current image obtained from the semantic segmentation thread, the dynamic ORB feature points in the current image and some LSD line features located on dynamic objects are detected based on this. The semantic label judgment setting rule of the line feature is: only when both endpoints of the line feature are not on a dynamic object, it is identified as a static line feature. Remove the feature points or feature lines with dynamic semantic labels, and only keep the static points and line features to calculate the camera pose corresponding to the current image.

[0035] Step 2, combining the static point and line features obtained in step (1), calculating the camera pose, and establishing a point cloud model of static objects in the dynamic scene. The static point and line features obtained by screening are used to obtain the precise pose of the camera in the dynamic scene through the point and line tracking thread. In order to reduce the amount of calculation during 3D reconstruction, the present invention screens out appropriate key frames by counting the number of point features and line features in the image that can be tracked by the tracking thread. When a frame of image has more than 40 tracked feature points and more than 10 tracked line features, the frame is set as a key frame.

[0036] The key frame image is then mapped to the three-dimensional space through the corresponding depth image to obtain the three-dimensional point cloud of the key frame. The point cloud map generated by two consecutive frames is then stitched through the calculated conversion relationship between the two frames to finally establish a point cloud model of static objects in the dynamic scene.

[0037] Step 3: Combine the point cloud model of static objects in the dynamic scene obtained in step (2), fuse the semantic segmentation results in step (1), map the image semantic labels to three-dimensional space points, and use the Bayesian filtering framework to update the semantic categories of all map points in step (2) to obtain a semantic point cloud map. Combine the segmentation results of the semantic segmentation network obtained in step (1) and the point cloud map obtained in step (2), and map the semantic labels to the three-dimensional point cloud map through the internal and external parameters of the camera to obtain the initial semantic point cloud map;

[0038] Taking into account the inconsistency of semantic segmentation results between consecutive frame images, the present invention adopts Bayesian filtering to fuse the semantic information between different frames. For each frame of image semantic segmentation data obtained, the Bayesian filtering framework is used to perform incremental data fusion on the semantic categories of map points.

[0039] Assume that the current frame is the kth frame and the current frame image is I k , using the SegNet semantic segmentation network for I k The result of the segmentation is S k , remember x k For a 3D map point X in image I k The corresponding pixel point on L k is the semantic category of the 3D map point X, l k is x k In the semantic segmentation result S k The corresponding semantic category in P(L k |S k ) represents the semantic category probability distribution P(L k ) in the current segmentation result S k The conditional probability under the condition is expressed as P(l k |S k ) represents the two-dimensional map point x corresponding to the current three-dimensional map point X k The semantic category probability distribution P(l k ) in the current segmentation result S k Conditional probability under the condition:

[0040] P(L k |S k )=P(l k |S k )

[0041] Among them l k The domain of the semantic segmentation network is the categories that can be distinguished, including people, books, monitors and keyboards. Given all the semantic segmentation data {S1, S2, …S k}, these data are integrated to obtain the posterior probability distribution of the semantic category of the map point X, and the three-dimensional map point semantic label updating method based on Bayesian estimation adopted by the present invention is obtained:

[0042]

[0043] Among them, P(L k |S1,S2,…S k ) represents the segmentation results S1, S2, ..., S of all image data at time k k The probability distribution of the semantic category of the post-map point X, P(lk |S k ) represents the observed value of the semantic category probability distribution of the map point X obtained according to the semantic segmentation result of the k-th frame image, P(L k ) is the probability distribution of the semantic category of map point X at time k. The probability distribution of the semantic category of map point X is continuously updated through the above recursive formula.

[0044] Step 4: Combined with the semantic point cloud map of step (3), cluster the point clouds of the same category, and use the minimum bounding box method to determine the object pose, so as to obtain the semantic point cloud model of the dynamic scene, thereby solving the problem of semantic mapping of dynamic scenes. For the three-dimensional point cloud map with semantic information obtained in step (3), the adjacent point clouds with the same semantic label in the three-dimensional space are clustered into one category by K-means clustering, and the OBB bounding box method (Oriented bounding box) is used to fit the regular body for each category of point cloud obtained by clustering. Then, the angle between the three-dimensional map line parallel to the horizontal plane of the world coordinate system and the main axis of the bounding box is calculated. The minimum value of the angle is taken as the correction amount of the main axis of the bounding box, and the direction of the bounding box is corrected to obtain the accurate orientation of the bounding box in the world coordinate system. In the world coordinate system, the size of the bounding box is obtained by calculating the extreme value difference of the coordinates of the spatial point cloud of this category along the main axis of the bounding box. The semantic map finally constructed contains both the bounding box with semantic labels and the spatial point cloud with semantic labels.

[0045] Although the above describes the illustrative specific embodiments of the present invention to facilitate those skilled in the art to understand the present invention, and it should be clear that the present invention is not limited to the scope of the specific embodiments, for those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations using the concept of the present invention are protected.

Claims

1. A method for 3D reconstruction of dynamic scenes based on semantic information, characterized in that: The following steps are involved: (1) The camera captures images, performs semantic segmentation and extracts point and line features from the captured images, and filters out static point and line features through the image semantic segmentation results; (2) Combine the static point and line features obtained in step (1) to calculate the camera pose and establish a point cloud model of static objects in the dynamic scene; (3) Combine the point cloud model of static objects in the dynamic scene obtained in step (2) with the semantic segmentation result in step (1), map the image semantic labels to three-dimensional space points, and use the Bayesian filtering framework to update the semantic categories of all map points in step (2) to obtain a semantic point cloud map; (4) Combined with the semantic point cloud map in step (3), point clouds of the same category are clustered, and the minimum bounding box method is used to determine the object pose to obtain a semantic point cloud model of the dynamic scene; In the step (3), the static object point cloud model in the dynamic scene obtained in step (2) is combined with the semantic segmentation result in step (1), the image semantic label is mapped to the three-dimensional space point, and the semantic category of all map points in step (2) is updated using the Bayesian filtering framework. The method for obtaining the semantic point cloud map is as follows: Combining the semantic segmentation result obtained in step (1) and the static object point cloud model obtained in step (2), the semantic labels are mapped to the three-dimensional point cloud map through the internal and external parameters of the camera to obtain an initial semantic point cloud map; Considering the inconsistency of semantic segmentation results between consecutive key frame images, the Bayesian filter is used to fuse the semantic information between different frames. For each frame of image semantic segmentation data obtained, the Bayesian filter framework is used to perform incremental data fusion on the semantic categories of map points. Set the current frame to Frame, the current frame image is , using the SegNet encoder-decoder network The result of segmentation is ,remember For 3D map points In the image The corresponding pixel point on For 3D map points The semantic category of yes In the semantic segmentation results The corresponding semantic category in Represents a 3D map point The semantic category probability distribution of In the current segmentation result The conditional probability under the condition is Indicates the current 3D map point Corresponding 2D map points The semantic category probability distribution of In the current segmentation result Conditional probability under the condition: in The domain of the SegNet encoder-decoder network can distinguish categories including people, books, displays and keyboards; given all the semantic segmentation data at the current moment , merging these data to get map points The posterior probability distribution of the semantic category is obtained, and the three-dimensional map point semantic label update method based on Bayesian estimation is obtained. The update method is completed using the following formula: Among them, the left side of the equation Indicates comprehensive utilization Segmentation results of all image data at the moment Back map point The probability distribution of the semantic categories, for Time map point The probability distribution of the semantic categories of the map points is calculated by using the above recursive formula to perform incremental data fusion on the semantic categories of the map points. In step (4), the semantic point cloud map of step (3) is combined to cluster the point clouds of the same category, and the minimum bounding box method is used to determine the object pose. The method for obtaining the semantic point cloud model of the dynamic scene is as follows: For the semantic point cloud map obtained in step (3), the adjacent point clouds with the same semantic label in the three-dimensional space are clustered into one category through K-means clustering. Each category of point cloud obtained by clustering is fitted with a regular body using the OBB bounding box method (Oriented bounding box). Then, the angle between the three-dimensional map line parallel to the horizontal plane of the world coordinate system and the main axis of the bounding box is calculated, and the minimum value of the angle is taken as the correction amount of the main axis of the bounding box. The direction of the bounding box is corrected to obtain the accurate orientation of the bounding box in the world coordinate system. In the world coordinate system, the size of the bounding box is obtained by calculating the extreme value difference of the coordinates of the same category of point clouds along the main axis of the bounding box. The semantic map finally constructed contains both the bounding box with the semantic label and the three-dimensional space point cloud with the semantic label.

2. The method for 3D reconstruction of dynamic scenes based on semantic information assistance according to claim 1, characterized in that: In the step (1), the camera collects images, and performs semantic segmentation and point and line feature extraction on the collected images. The method for filtering out static point and line features through the image semantic segmentation results is as follows: The collected images are semantically segmented and feature extracted simultaneously. In the semantic segmentation module, the classic SegNet encoder-decoder network is used to perform pixel-level semantic segmentation on the RGB image to segment the dynamic objects in the scene. In the feature extraction module, the RGB image is grayscaled, and ORB feature points and line features are extracted from the grayscale image at the same time. The line features are extracted using the LSD line feature extractor. On the above basis, combined with the semantic segmentation result of the current image obtained from the semantic segmentation module, the dynamic ORB feature points in the current image and some LSD line features located on dynamic objects are detected based on this. The semantic label judgment setting rule of the line feature is: only when both endpoints of the line feature are not on the dynamic object, it is identified as a static line feature, and the feature points or line features with dynamic semantic labels are removed. Only static points and line features are retained to calculate the camera pose corresponding to the current image.

3. The method for 3D reconstruction of dynamic scenes based on semantic information assistance according to claim 1, characterized in that: In step (2), the method of calculating the camera pose and establishing a point cloud model of static objects in a dynamic scene by combining the static point and line features obtained in step (1) is as follows: The static point and line features obtained by screening are used to obtain the precise position and posture of the camera in the dynamic scene through the point and line tracking threads; in order to reduce the amount of calculation during 3D reconstruction, the number of point features and line features tracked by the tracking thread in the image is counted to screen out the appropriate key frame. When a frame of image has more than 40 tracked feature points and more than 10 tracked line features, the frame is set as a key frame; The key frame image is then mapped to the three-dimensional space through the corresponding depth image to obtain the three-dimensional point cloud of the key frame. The point cloud maps generated by two consecutive key frames are then spliced ​​through the calculated transformation relationship to finally establish a point cloud model of static objects in the dynamic scene.

Citation Information

Patent Citations

  • Real-time semantic map construction method based on semantic inverse depth filtering

    CN111325843A

  • Indoor environment 3D semantic map construction method based on point cloud deep learning

    CN111798475A