A method for removing dynamic feature points in visual SLAM front end
By using the depth camera and YOLOv5 target detection algorithm on the visual SLAM front-end to remove dynamic feature points, the problem of traditional visual SLAM positioning accuracy deviation in dynamic environments is solved, achieving higher positioning accuracy and stability, and is suitable for dynamic scenes. Visual SLAM system.
Patent Information
- Application Number
- CN202210202326.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-03
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-03-03
AI Technical Summary
Traditional visual SLAM algorithms have problems with positioning accuracy deviation and insufficient robustness in dynamic environments, mainly due to the impact of dynamic objects on pose estimation.
At the front end of visual SLAM, a depth camera is used to obtain color and depth images, ORB feature points and YOLOv5 target detection algorithms are used to remove dynamic feature points, and static feature points are screened out through scene flow calculation for pose estimation to achieve accurate positioning of the dynamic environment.
It improves the positioning accuracy and stability of the visual SLAM system in dynamic environments. It is faster than traditional methods, can better retain high-quality static feature points, and is suitable for positioning in actual dynamic scenes.
Smart Images

Figure CN114565675B
Abstract
Description
Technical Field
[0001] The invention relates to a method for removing dynamic feature points at a visual SLAM front end, and belongs to the technical field of computer vision and deep learning. Background Art
[0002] Simultaneous Localization And Mapping (SLAM) refers to the robot building a map of the unknown surrounding environment with its own environmental perception sensors without any prior knowledge. The technology of using visual sensors to complete map building is called visual SLAM. Because visual sensors are low-priced, collect rich environmental information, and can achieve autonomous positioning and navigation functions, they have attracted much attention in related fields and have become a research hotspot in the field of SLAM technology. Therefore, a number of excellent open source visual SLAM algorithms have emerged, such as ORB-SLAM, RGBD-SLAM, OPENVSLAM, etc.
[0003] Most traditional visual SLAM algorithms are based on the assumption of a static environment. In actual environments, the robot pose estimation often has large deviations due to the presence of constantly moving objects in the environment, such as the movement of people or other animals, the movement of vehicles, etc., which leads to positioning failure. In view of the shortcomings of the above-mentioned traditional visual SLAM algorithms in actual dynamic environments, the present invention proposes a method for removing dynamic feature points in the front end of visual SLAM for dynamic environments. Using the remaining feature points after removing the dynamic feature points for pose estimation can greatly improve the positioning accuracy of the visual SLAM system in a dynamic environment, as well as its robustness and stability. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a method for removing dynamic feature points in the front end of visual SLAM. This method is applied in the visual SLAM system, which can effectively remove the influence of dynamic objects on pose estimation and improve the accuracy and stability of visual SLAM in dynamic environments.
[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0006] A method for removing dynamic feature points in a visual SLAM front end comprises the following steps:
[0007] Step 1: Use a depth camera to obtain color and depth images, homogenize the collected RGB images to extract ORB feature points, and use the object detection algorithm to obtain the bounding box detection results;
[0008] Step 2: Classify the bounding box detection results into dynamic objects and static objects and create a set for them, filter out the feature points that only exist in the dynamic object detection frame and remove them;
[0009] Step 3: Calculate the scene flow between adjacent frames of the remaining feature points, and filter out the remaining dynamic feature points based on the scene flow calculation results and remove them;
[0010] Step 4: Use the remaining static feature points for feature matching, obtain the best matching feature points and perform camera pose estimation to obtain accurate camera motion results, thereby achieving accurate visual SLAM for dynamic scenes.
[0011] In Step 1, the method of uniformly extracting ORB feature points is as follows: first, an image pyramid model is constructed, that is, the original RGB image is Gaussian blurred with a Gaussian convolution kernel, and then downsampled, and the original RGB image is divided into several layers in turn, and FAST corner points are extracted on each layer, and then the number of feature points N that need to be extracted in each layer of the image pyramid is calculated. α , the formula is as follows:
[0012]
[0013] In formula (1), N′ represents the total number of feature points in each layer, α represents the current number of layers, s represents the scaling factor of the image in each layer of the image pyramid, and b represents the total number of layers of the image pyramid. Next, each layer of the constructed image pyramid is evenly divided into 30×30 pixel grids, and FAST corner points are extracted from each grid separately. If a FAST corner point cannot be extracted from a grid, the FAST threshold is lowered to ensure that FAST corner points can also be extracted from some areas with weaker textures. Finally, for a large number of extracted FAST corner points, a quadtree-based method is used to uniformly select N α FAST corner points.
[0014] In Step 1, the target detection algorithm includes the following contents: after obtaining the RGB image captured by the depth camera, the YOLOv5 network model is used to detect the target on the input RBG image. A Focus structure is added to the YOLOv5 network model to slice the RBG image. A 3×608×608 pixel RBG image is input. After slicing, it becomes a feature map of 12×304×304 pixels. Finally, 32 convolution kernels are used to perform a convolution, which becomes a feature map of 32×304×304 pixels. The YOLOv5 network model uses two different CSPs in Backbone and Neck. In Backbone, CSP1_X with a residual structure is used, and CSP2_X is used in Neck. The output of the backbone network of the YOLOv5 network model is divided into two branches, which are then connected to enhance the YOLOv5 network's ability to fuse the features of the input image (including boundaries, textures, etc.), so that it outputs the bounding box position and vertex coordinates with the bounding box detection results, so as to facilitate the subsequent classification of the extracted feature points.
[0015] In Backbone, CSP1_X with a residual structure is used. Because the Backbone network is deeper, the addition of the residual structure enhances the gradient value when back propagating between layers, effectively preventing the gradient from disappearing when the network is deepened, and obtaining finer feature granularity; CSP2_X is used in Neck. Compared with the simple CBL, the output of the backbone network is divided into two branches, which are then connected to enhance the network's ability to fuse features and retain richer feature information. The YOLOv5 model is transplanted to the embedded device to output the bounding box position and vertex coordinates with the detection results, so as to facilitate the subsequent classification of the extracted feature points.
[0016] In Step 2, the method for removing dynamic feature points is as follows:
[0017] The bounding box detection results are classified into dynamic objects and static objects. Assume that the dynamic object pixel set of the Nth frame RGB image input to the YOLOv5 network model is: The pixel set of static objects is in is the i-th pixel of the dynamic object detection box in the N-th frame image, is the jth pixel in the static object detection box in the Nth frame image; the set of feature points extracted from the Nth frame image (i.e., the pixel points with obvious features extracted after using the feature extraction method) is in is the kth feature point in the Nth frame image; if and Then the feature point is judged as a dynamic feature point and is selected from the set Delete it.
[0018] In Step 3, the calculation method of the scene flow between adjacent frames of the remaining feature points is as follows:
[0019] For two adjacent frames (ordinary frames), feature points are extracted according to the Step 1 method, and feature matching is performed. The successfully matched feature points are recorded and the positions of the feature points in the two frames before and after are marked.
[0020] According to the position of the feature point in the two matched RGB images, find the depth value of the same feature point in the depth map, and record the three-dimensional coordinates of the feature point in the current frame as (x c ,y c , z c ), the three-dimensional coordinates of the feature points of the previous frame image matched with it are (x p ,y p , z p ), then the three-dimensional position change of the feature point between the current frame and the previous frame, i.e., the scene flow, is:
[0021]
[0022] In Step 3, the method for filtering out and removing the remaining dynamic feature points based on the scene flow calculation results is as follows:
[0023] According to the successfully matched feature points calculated above, the modulus c and angle θ of the scene flow are calculated, and the Gaussian value G of each feature point is obtained by using the Gaussian mixture model method. p , the Gaussian value G p Feature points greater than a certain threshold G0 are recorded as dynamic feature points and included in the set D f ={p|G p >G0}, p represents G p >G0 feature point, G0 calculation formula is as follows:
[0024]
[0025] In formula (3), n is the number of feature points; H k To construct the evaluation index for each feature point using the weighted average method, the calculation formula is:
[0026]
[0027] In formula (4): c k is the scene flow modulus value corresponding to the kth feature point, θ k is the scene flow angle corresponding to the kth feature point,
[0028] According to the above content, the state of the feature point p is:
[0029]
[0030] That is, for a feature point p, if its Gaussian value G p >G0, it is considered a dynamic feature point and is included in the set D f ={p|G p >G0} and removed, otherwise it is a static feature point counted into the set S f ={p|G p <G0}.
[0031] In Step 4, the method of feature matching and pose estimation is as follows: based on the static feature points extracted above, feature matching is performed on the feature points between adjacent key frames; in feature matching, the RANSAC algorithm is used to filter out erroneous data; the model evaluated in the RANSAC algorithm is the pose estimation between frames, and when solving the pose estimation, the optimal pose estimation is obtained by continuously setting the erroneous matches as outliers and cooperating with the pose solving algorithm.
[0032] A key frame is a special frame that represents nearby frames after filtering, which can reduce information redundancy.
[0033] The feature points in this key frame contain more than 75% of the feature points in its nearby frames. The nearby frames are frames near the key frame.
[0034] Dynamic objects include people, cats, and dogs.
[0035] The present invention has the following beneficial effects:
[0036] (1) The present invention integrates the YOLOv5 target detection algorithm into the visual SLAM front end to detect dynamic targets in the scene and remove dynamic feature points. Compared with the existing mainstream pixel-level semantic segmentation methods such as DS-SLAM and Dyna-SLAM, the speed is greatly improved;
[0037] (2) In terms of extracting dynamic feature points, the difference between the dynamic feature points and the static feature points obtained by target detection is taken, and then the feature points are further extracted by calculating the feature point scene flow. This method can not only accurately extract the dynamic feature points in the scene, but also better retain more high-quality static feature points for pose estimation;
[0038] (3) Compared with traditional visual SLAM, the method described in the present invention is more suitable for actual scenes, and the positioning accuracy is greatly improved in dynamic scenes.
[0039] The present invention provides a method for removing dynamic feature points by using a target detection algorithm based on deep learning for a visual SLAM front end, and belongs to the technical field of computer vision. The method mainly combines the YOLOv5 target detection algorithm with the traditional visual SLAM front end, collects environmental image information through a depth camera, performs ORB feature extraction on the collected RGB image, performs target detection on it, divides the detected objects into two categories: dynamic objects and static objects, and screens and removes feature points that only exist in the dynamic object frame. Afterwards, the scene flow modulus value of the matching pair between two adjacent frames is calculated, a Gaussian mixture model is established, and the dynamic objects and static objects in the scene are further separated, and the remaining dynamic feature points are removed. The remaining static feature points are used for feature matching and estimation of camera pose. The method is tested on the ORBSLAM2 front end, which greatly improves its positioning accuracy in a dynamic environment and can meet the real-time requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a flow chart of the method for removing dynamic feature points in the visual SLAM front end of the present invention;
[0041] Figure 2 This is an example diagram of removing dynamic feature points in the present invention;
[0042] Figure 3 It is a comparison diagram of the positioning effect of the present invention and the positioning effect of ORB-SLAM2 under the fr3_walking_xyz sequence, wherein Figure (a) is a positioning effect diagram of the present invention, and Figure (b) is a positioning effect diagram of ORB-SLAM2;
[0043] Figure 4 It is a comparison diagram of the positioning effect of the example of the present invention and the positioning effect of ORB-SLAM2 under the fr1_xyz sequence, wherein Figure (c) is a positioning effect diagram of the present invention, and Figure (d) is a positioning effect diagram of ORB-SLAM2. DETAILED DESCRIPTION
[0044] The present invention will be further described below in conjunction with the accompanying drawings.
[0045] like Figure 1 As shown in Figure 1, a method for removing dynamic feature points in the visual SLAM front end is
[0046] Step 1: Use an RGB-D camera to capture images, extract ORB feature points uniformly from the captured RGB images, and use the target detection algorithm to obtain the bounding box detection results. The specific process is as follows:
[0047] Construct an image pyramid to ensure the scale invariance of ORB feature points. Calculate the number of feature points N that need to be extracted in each layer of the pyramid α , the formula is as follows:
[0048]
[0049] Where N′ represents the total number of feature points set, α represents the current number of layers, s represents the scaling factor, and b represents the total number of pyramid layers. Each layer of the constructed image pyramid is evenly divided into small grids of 30*30 pixels, and FAST corner points are extracted for each grid separately. If there are grids where no corner points can be extracted, the FAST threshold is lowered. This ensures that FAST corner points can also be extracted from some areas with weaker textures. According to the angle calculated by Oriented FAST, the optimal 256 point pairs are selected, and the coordinates of these 256 point pairs are rotated, and then the grayscale is taken to increase the rotation invariance of the BRIEF descriptor. Finally, for the large number of extracted FAST corner points, a quadtree-based method is used to uniformly select N α Corner points.
[0050] After obtaining the image data collected by the depth camera, the YOLOv5 network model is used to detect the target on the input RBG image. In YOLOv5, a new Focus structure is added to slice the image. A 3×608×608 image is input. After slicing, it becomes a 12×304×304 feature map. Finally, 32 convolution kernels are used for a convolution, which becomes a 32×304×304 feature map. YOLOv5 uses two different CSPs in Backbone and Neck. In Backbone, CSP1_X with a residual structure is used. Because the Backbone network is deeper, the addition of the residual structure enhances the gradient value when back propagating between layers, effectively preventing the gradient from disappearing when the network is deepened, and the feature granularity is finer. In Neck, CSP2_X is used. Compared with the simple CBL, the output of the backbone network is divided into two branches, and then connected, so that the network's ability to fuse features is enhanced and richer feature information is retained. The YOLOv5 model is ported to the embedded device so that it outputs the bounding box position and vertex coordinates with the detection results to facilitate the subsequent classification of the extracted feature points.
[0051] Step 2: Classify the target detection results into dynamic objects and static objects and create a set for them. Filter out the feature points that only exist in the dynamic object detection frame and remove them. The specific process is as follows:
[0052] According to the annotation method of the coco dataset, the three types of results in the target detection results, people, cat, and dog, are classified as dynamic objects, and the rest are static objects. Assume that the set of dynamic object pixels in the input Nth frame image is: The pixel set of static objects is in is the i-th pixel in the dynamic object detection frame in the N-th frame image, is the jth pixel in the precise object detection frame in the Nth frame image. The set of feature points extracted from the Nth frame image is in is the kth feature point in the Nth frame image. and Then the feature point is judged as a dynamic feature point and is selected from the set Delete it.
[0053] Step 3: Calculate the scene flow between adjacent frames of the remaining feature points, select the remaining dynamic feature points and remove them according to the scene flow calculation results. The specific process is as follows:
[0054] For two adjacent frames of images, feature points are extracted according to the Step 1 method, and feature matching is performed. The successfully matched feature points are recorded and the positions of the feature points in the two frames of images are marked.
[0055] According to the position of the feature point in the two matched RGB images, find the depth value of the same feature point in the depth map, and record the three-dimensional coordinates of the feature point in the current frame as (x c ,y c ,z c ), the three-dimensional coordinates of the feature point of the previous frame matched with it are (x p ,y p ,z p ), then the three-dimensional position change of the feature point between the current frame and the previous frame, i.e., the scene flow, is:
[0056]
[0057] According to the feature points calculated above, the modulus c and angle θ of the scene flow are calculated, and the Gaussian value G of each feature point is obtained by using the Gaussian mixture model method. p , record the feature points whose Gaussian value is greater than a certain threshold as dynamic feature points and include them in the set D f ={p|G p >G0}, where G0 represents the threshold value, and the calculation formula is as follows:
[0058]
[0059] Where: n is the number of feature points; H k To construct the evaluation index for each feature point using the weighted average method, the calculation formula is:
[0060]
[0061] Where: ck is the scene flow modulus value corresponding to the kth feature point, θ k is the scene flow angle corresponding to the kth feature point.
[0062] According to the above content, the state of the feature point p is:
[0063]
[0064] That is, for a feature point p, if its Gaussian value G p >G0, it is considered a dynamic feature point and is included in the set D f ={p|G p >G0} and removed, otherwise it is a static feature point and counted into the set S f ={p|G p <G0}。
[0065] Step 4: Use the remaining static feature points for feature matching, obtain the best matching feature points and perform camera pose estimation to obtain accurate camera motion results, thereby achieving accurate visual SLAM for dynamic scenes. The specific process is as follows:
[0066] Based on the static feature points extracted above, feature matching is performed on the feature points between adjacent key frames. In feature matching, there are certain similar feature points, which are very easy to cause mismatches. In order to remove mismatches well, the RANSAC algorithm is used to filter the erroneous data. The model that needs to be evaluated in the RANSAC algorithm is the pose estimation between frames. When solving the pose estimation, the optimal pose estimation is obtained by continuously setting the mismatches as outliers and cooperating with the pose solving algorithm, thereby obtaining accurate camera motion results and realizing accurate visual SLAM for dynamic scenes.
[0067] Based on the above implementation steps, the TUM dataset is used as a specific embodiment (see Appendix Figure 2 As shown) give instructions:
[0068] Step 1: After acquiring the RGB image captured by the RGB-D camera, extract the ORB feature points from it and use the YOLOv5 target detection algorithm to detect dynamic targets in the image. The YOLOv5 target detection model loaded in the visual SLAM system is trained based on the ms coco dataset. The target detector can quickly and accurately detect 80 categories and obtain high-quality detection results in real time.
[0069] In the embodiment, the category of people is set as a dynamic target, and the others are static targets. The feature points in the dynamic target frame are removed as shown in the figure. Figure 2 shown.
[0070] Step 2: For the dynamic feature points that have not been removed, as shown in the attached Figure 2 The feature points in the box are used to calculate the modulus c and angle θ of the scene flow through the remaining feature points, and the Gaussian value G of each feature point is obtained using the Gaussian mixture model method. p , the feature points whose Gaussian values are greater than a certain threshold are recorded as dynamic feature points and removed.
[0071] Step 3: Based on the static feature points extracted above, feature matching is performed on the feature points between adjacent key frames. In feature matching, there are certain similar feature points, which are very easy to cause mismatches. In order to remove mismatches well, the RANSAC algorithm is used to filter the erroneous data. The model that needs to be evaluated in the RANSAC algorithm is the pose estimation between frames. When solving the pose estimation, the optimal pose estimation is obtained by continuously setting the mismatches as outliers and cooperating with the pose solving algorithm, thereby obtaining accurate camera motion results and realizing accurate visual SLAM for dynamic scenes.
[0072] In this embodiment, the absolute trajectory error (ATE) is used as the evaluation index of visual SLAM positioning accuracy. The absolute trajectory error refers to the root mean square error between the estimated camera trajectory and the true trajectory value. The true value sequence of the data set is recorded as G_1, G_2...G_n∈SE(3), the algorithm's camera trajectory prediction value sequence is recorded as P_1, P_2...P_n∈SE(3), the sequence length is recorded as n, and the calculation formula is:
[0073]
[0074] The proposed method is compared with the existing mainstream visual SLAM algorithm ORB-SLAM2 in TUM
[0075] Compare the fr3_walking_xyz and fr3_xyz dataset sequences, such as Figure 3 and Figure 4 As shown in the figure. fr3_walking_xyz is the dynamic scene sequence recorded by the RGB-D camera, and fr3_xyz is the static scene sequence recorded by the RGB-D camera. The comparison results are shown in the attached figure. Figure 3 and attached Figure 4 Table 1 shows the quantitative comparison results. The quantitative comparison results show that the improved algorithm has good adaptability in dynamic environments, and the positioning accuracy has been significantly improved compared to the ORB_SLAM2 algorithm. In static environments, the improved algorithm has almost no difference in performance with ORB_SLAM2.
[0076] Table 1. Comparison results of absolute trajectory errors
[0077]
[0078] It should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the intention that the claimed invention requires more features than those expressly recited in each claim. Rather, as reflected in the claims, inventive aspects lie in less than all of the features of the previously disclosed embodiments. Therefore, the claims that follow the detailed description are hereby expressly incorporated into the detailed description, with each claim itself serving as a separate embodiment of the present invention.
[0079] Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments may be envisioned within the scope of the invention thus described. In addition, it should be noted that the language used in this specification is selected primarily for readability and teaching purposes, rather than for explaining or defining the subject matter of the present invention. Therefore, many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the appended claims. The disclosure of the present invention is illustrative, not restrictive, with respect to the scope of the present invention, which is defined by the appended claims.
[0080] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for removing dynamic feature points in a visual SLAM front end, characterized in that: The steps include: Step 1: Use a depth camera to obtain color and depth images, homogenize the collected RGB images to extract ORB feature points, and use the object detection algorithm to obtain the bounding box detection results; Step 2: Classify the bounding box detection results into dynamic objects and static objects and create a set for them, filter out the feature points that only exist in the dynamic object detection frame and remove them; Step 3: Calculate the scene flow between adjacent frames of the remaining feature points, and filter out the remaining dynamic feature points based on the scene flow calculation results and remove them; Step 4: Use the remaining static feature points for feature matching, obtain the best matching feature points and perform camera pose estimation to obtain accurate camera motion results, thereby achieving accurate visual SLAM for dynamic scenes; In Step 2, the method for removing dynamic feature points is as follows: The bounding box detection results are classified into dynamic objects and static objects. Assume that the dynamic object pixel set of the Nth frame RGB image input to the YOLOv5 network model is: The pixel set of static objects is in is the i-th pixel in the dynamic object detection frame in the N-th frame image, is the jth pixel in the static object detection box in the Nth frame image; the set of feature points extracted from the Nth frame image is in is the kth feature point in the Nth frame image; if and Then the feature point is judged as a dynamic feature point and is selected from the set Delete from; In Step 3, the calculation method of the scene flow between adjacent frames of the remaining feature points is as follows: For two adjacent frames of images, feature points are extracted according to the Step 1 method, and feature matching is performed. The successfully matched feature points are recorded and the positions of the feature points in the two frames before and after are marked. According to the position of the feature point in the two matched RGB images, find the depth value of the same feature point in the depth map, and record the three-dimensional coordinates of the feature point in the current frame as (x c ,y c ,z c ), the three-dimensional coordinates of the feature points of the previous frame image matched with it are (x p ,y p , z p ), then the three-dimensional position change of the feature point between the current frame and the previous frame, i.e., the scene flow, is: In Step 3, the method for filtering out and removing the remaining dynamic feature points based on the scene flow calculation results is as follows: According to the successfully matched feature points calculated above, the modulus c and angle θ of the scene flow are calculated, and the Gaussian value G of each feature point is obtained by using the Gaussian mixture model method. p , the Gaussian value G p Feature points greater than a certain threshold G0 are recorded as dynamic feature points and included in the set D f ={p|G p >G0}, p represents G p >G0 feature point, G0 calculation formula is as follows: In formula (3), n is the number of feature points; H k′ To construct the evaluation index for each feature point using the weighted average method, the calculation formula is: In formula (4): c k′ is the scene flow modulus value corresponding to the k′th feature point, θ k′ is the scene flow angle corresponding to the k′th feature point, According to the above content, the state of the feature point p is: That is, for a feature point p, if its Gaussian value G p >G0, it is considered a dynamic feature point and is included in the set D f ={p|G p >G0} and removed, otherwise it is a static feature point counted into the set S f ={p|G p <G0}.
2. A method for removing dynamic feature points in a visual SLAM front end according to claim 1, characterized in that: In Step 1, the method of uniformly extracting ORB feature points is as follows: first, an image pyramid model is constructed, that is, the original RGB image is Gaussian blurred with a Gaussian convolution kernel, and then downsampled, and the original RGB image is divided into several layers in turn, and FAST corner points are extracted on each layer, and then the number of feature points N that need to be extracted in each layer of the image pyramid is calculated. α , the formula is as follows: In formula (1), N′ represents the total number of feature points in each layer, α represents the current number of layers, s represents the scaling factor of the image in each layer of the image pyramid, and b represents the total number of layers of the image pyramid. Next, each layer of the constructed image pyramid is evenly divided into 30×30 pixel grids, and FAST corner points are extracted from each grid separately. If a FAST corner point cannot be extracted from a grid, the FAST threshold is lowered to ensure that FAST corner points can also be extracted from some areas with weaker textures. Finally, for a large number of extracted FAST corner points, a quadtree-based method is used to uniformly select N α FAST corner points.
3. A method for removing dynamic feature points in a visual SLAM front end according to claim 1, characterized in that: In Step 1, the target detection algorithm includes the following contents: after obtaining the RGB image captured by the depth camera, the YOLOv5 network model is used to detect the target on the input RBG image. A Focus structure is added to the YOLOv5 network model to slice the RBG image. A 3×608×608 pixel RBG image is input. After slicing, it becomes a feature map of 12×304×304 pixels. Finally, 32 convolution kernels are used to perform a convolution, which becomes a feature map of 32×304×304 pixels. The YOLOv5 network model uses two different CSPs in Backbone and Neck. In Backbone, CSP1_X with a residual structure is used, and CSP2_X is used in Neck. The output of the backbone network of the YOLOv5 network model is divided into two branches, which are then connected to enhance the YOLOv5 network's ability to fuse the features of the input image, so that it outputs the bounding box position and vertex coordinates with the bounding box detection result, so as to facilitate the subsequent classification of the extracted feature points.
4. A method for removing dynamic feature points in a visual SLAM front end according to claim 1, characterized in that: In Step 4, the method of feature matching and pose estimation is as follows: based on the static feature points extracted above, feature matching is performed on the feature points between adjacent key frames; in feature matching, the RANSAC algorithm is used to filter out erroneous data; the model evaluated in the RANSAC algorithm is the pose estimation between frames, and when solving the pose estimation, the optimal pose estimation is obtained by continuously setting the erroneous matches as outliers and cooperating with the pose solving algorithm.
5. A method for removing dynamic feature points in a visual SLAM front end according to claim 1, characterized in that: Dynamic objects include people, cats, and dogs.
Citation Information
Patent Citations
Dynamic target detection and elimination method in video sequence
CN110599522A
Robust vision SLAM method based on semantic prior and deep learning features
CN111814683A
Method for Removing Line of Internal Structure for Implementation of Ceiling Vision-based SLAM Algorithm
KR1020120073864A
