Robot indoor scene three-dimensional reconstruction method based on hue guidance and bidirectional feature matching

By introducing hue-guided H-SURF feature extraction and two-way matching of the FLANN algorithm into the three-dimensional reconstruction technology, combined with the optimized RANSAC algorithm, the problems of low efficiency and feature matching relying on texture information in the existing technology are solved, and the problem of feature matching in complex environments is achieved. Efficient and accurate 3D reconstruction.

CN118864709APending Publication Date: 2024-10-29BEIJING SHENMOU TECH CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410856597.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing 3D reconstruction technology is inefficient in complex environments and lacks automation and system integration. Feature matching methods are one-way and rely on texture information, resulting in failure under illumination changes or texture scarcity conditions, affecting accuracy and robustness.

Method used

The H-SURF feature extraction algorithm and FLANN algorithm based on hue guidance are used for bidirectional feature matching, combined with the optimized RANSAC algorithm, through similarity distance sorting and iterative threshold setting to eliminate false matching points, and integrate the hue components of the HSV color space to enhance Robustness of characterization.

Benefits of technology

It significantly improves the accuracy and reliability of feature matching, improves the automation level and reconstruction quality of 3D reconstruction, and achieves a more accurate and efficient 3D modeling process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118864709A_ABST
    Figure CN118864709A_ABST
Patent Text Reader

Abstract

A robot indoor scene three-dimensional reconstruction method based on hue guidance and bidirectional feature matching comprises the steps that image frames are extracted from an input video, blurred image frames are removed, feature points and composite feature descriptors are extracted through a hue guidance H-SURF feature extraction algorithm, and feature detection of images is achieved; bidirectional search and feature matching are carried out by using an FLANN algorithm, wrong feature matching point pairs are eliminated by using an optimized RANSAC algorithm, and feature point detection and matching of the image are realized; and performing dense reconstruction on the recovered sparse point cloud and the camera pose by using the obtained feature matching point pair, and based on the recovered sparse point cloud and the camera pose recovered dense point cloud, obtaining a point cloud model of the indoor scene, and completing an accurate three-dimensional reconstruction task of the indoor scene. According to the method, the automation level and the reconstruction quality of indoor scene three-dimensional reconstruction are remarkably improved, and a more accurate and efficient three-dimensional modeling process is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of computer vision and three-dimensional modeling, and in particular relates to a robot indoor scene three-dimensional reconstruction method based on color tone guidance and bidirectional feature matching. Background Art

[0002] In the field of service robotics, 3D reconstruction technology is crucial for robots' environmental perception and navigation. Currently, 3D reconstruction techniques are divided into two main categories based on their application methods: traditional algorithms based on structure from motion (SfM) and algorithms based on machine learning. Although machine learning-based 3D reconstruction algorithms have theoretical potential, they typically rely on large datasets, require high computational resources, and face difficulties in practical implementation, which limits their widespread adoption. In contrast, 3D reconstruction algorithms based on SfM have become the mainstream technology for 3D reconstruction in service robots due to their low data requirements, high computational efficiency, and adaptability to various environmental scenarios. SfM technology uses multiple images captured from different viewpoints, uses a matching algorithm to identify corresponding pixels in the images, and then, combined with the principle of triangulation, calculates the 3D coordinates of spatial points to reconstruct a 3D model of the object. This approach is of great significance for path planning and obstacle avoidance for service robots in complex environments.

[0003] In the development of the SfM algorithm, the rotation-invariant corner detection algorithm proposed by Harris et al. in 1988 was a significant milestone. Subsequently, to address the issue of false point detection in the Harris method, Mikolajczyk et al. introduced a scale parameter in 2004 and proposed the Harris-Laplace and Harris-Affine algorithms, enhancing the algorithms' scale and affine invariance. To speed up corner detection, Ke et al. proposed an improved method based on principal component analysis (PCA) based on the SIFT operator proposed by Lowe. Furthermore, to address the computational complexity of the SIFT operator, Bay et al. proposed the SURF algorithm, which significantly improves computational efficiency by introducing the concept of integral images.

[0004] The improvement and development of these algorithms provide strong technical support for the three-dimensional reconstruction of service robots in dynamic and complex environments, thereby enhancing the autonomy and reliability of robots.

[0005] However, although numerous methods have been proposed to achieve the conversion from video input to 3D point cloud output, no method has yet been able to form a complete, engineered solution. Existing processes often require complex pre-processing and post-processing steps, lack automation and system integration, resulting in low efficiency in practical applications. In addition, existing feature extraction algorithms mostly focus on the texture and gradient information of the image, while ignoring the important role of color information. If the description of features relies solely on texture gradients, it may fail when texture information is scarce or lighting conditions are not ideal, affecting the accuracy and robustness of feature matching. At the same time, existing feature matching methods mostly use one-way matching strategies, which limits the accuracy and reliability of matching. Summary of the Invention

[0006] To overcome the shortcomings of the prior art, the present invention aims to provide a method for robotic 3D reconstruction of indoor scenes based on color tone guidance and bidirectional feature matching. This method aims to achieve complete, engineered, and accurate 3D reconstruction of indoor scenes. It also improves the feature extraction algorithm to incorporate color information, enhances the bidirectional accuracy of the feature matching method, and improves the efficiency of the RANSAC algorithm. These improvements enable a more accurate and automated 3D reconstruction technology.

[0007] In order to achieve the above object, the technical solution adopted by the present invention is:

[0008] A robot indoor scene 3D reconstruction method based on color tone guidance and bidirectional feature matching includes the following steps:

[0009] Step 1: extract image frames from the input video and preprocess them to remove blurred image frames;

[0010] Step 2: Using the hue-guided H-SURF feature extraction algorithm to extract feature points and composite feature descriptors to achieve feature detection of the image; the composite feature descriptor introduces the hue component (H) of the HSV color space into the feature descriptor, thereby updating the feature descriptor corresponding to the feature point to a composite feature descriptor containing hue information;

[0011] Step 3: Use the FLANN algorithm to perform bidirectional search and feature matching, and use the optimized RANSAC algorithm to eliminate incorrect feature matching point pairs through similarity distance sorting and iterative threshold setting to achieve feature point detection and matching of the image;

[0012] In step 4, the feature matching point pairs obtained in step 3 are used to restore the sparse point cloud and camera pose, and based on the restored sparse point cloud and camera pose, the dense point cloud is restored for dense reconstruction to obtain the point cloud model of the indoor scene, completing the task of accurate 3D reconstruction of the indoor scene.

[0013] Compared with the prior art, the present invention has the following beneficial effects:

[0014] The present invention introduces a hue-guided H-SURF feature extraction algorithm and integrates the hue component (H) of the HSV color space into the feature descriptor, thereby significantly enhancing the robustness of feature point description under conditions of illumination changes or scarce texture information.

[0015] The present invention adopts the FLANN algorithm for bidirectional search and matching, and combines it with the optimized RANSAC algorithm to effectively eliminate erroneous matching point pairs through similarity distance sorting and iterative threshold setting, thereby improving the accuracy and reliability of feature matching.

[0016] In general, the present invention significantly improves the automation level and reconstruction quality of indoor scene 3D reconstruction, and realizes a more accurate and efficient 3D modeling process. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 Flowchart of the 3D reconstruction method of the present invention

[0018] Figure 2 This is the video preprocessing flow chart of the present invention

[0019] Figure 3 The composite feature descriptor generation process of the present invention is

[0020] Figure 4 This is the calculation step of the feature bidirectional search and matching of the present invention

[0021] Figure 5 This is the flow chart of the optimized RANSAC algorithm of the present invention

[0022] Figure 6 This is the dining table image data (part) in the home_md scene in the SUN3d dataset used in the embodiment of the present invention.

[0023] Figure 7 3 is a comparison diagram of image matching effects before and after optimization in an embodiment of the present invention, where (a) is the matching result of the original SURF algorithm, and (b) is the matching result of the H-SURF+ optimized matching algorithm of the present invention.

[0024] Figure 8 This is a diagram showing the effect of sparse point cloud reconstruction in an embodiment of the present invention.

[0025] Figure 9 This is a diagram showing the effect of sparse point cloud reconstruction in an embodiment of the present invention. DETAILED DESCRIPTION

[0026] The embodiments of the present invention are described in detail below with reference to the accompanying drawings and examples.

[0027] This invention presents a robotic 3D reconstruction method for indoor scenes based on hue guidance and bidirectional feature matching. By incorporating the hue component of the HSV color space into feature descriptors and employing the FLANN algorithm and optimized RANSAC algorithm for bidirectional matching, the method significantly improves the accuracy and robustness of feature matching, achieving more accurate and efficient 3D modeling. The implementation combines clarity filtering using a grayscale variance product function, hue-guided feature extraction, feature matching using the FLANN and optimized RANSAC algorithms, and structure-from-motion and multi-view stereo geometry techniques to improve the accuracy and efficiency of 3D modeling of indoor scenes.

[0028] The specific method of the present invention can be referred to Figure 1 As shown, it mainly includes the following steps:

[0029] Step 1: Preprocess the input video data.

[0030] Before performing 3D modeling of indoor scenes, keyframe extraction is required to achieve the optimal modeling results using the least amount of computing resources. Because indoor scenes are captured using handheld devices, factors such as varying speeds and slight hand shaking during the capture process can result in a large number of redundant and blurred frames in the image sequence after the indoor scene video is converted. If indoor image modeling is performed directly based on this image sequence, modeling the redundant images would waste significant computing resources, while modeling the blurred images would distort the modeling results, severely impacting the efficiency and effectiveness of subsequent modeling work.

[0031] Therefore, before modeling indoor images, it is necessary to extract keyframes from the indoor image sequence. This involves extracting image frames from the input video and preprocessing them to remove blurry frames. Specifically, a grayscale variance product function (SMD2) can be used to set a threshold for image clarity to remove blurry frames, retaining clear and valid indoor image frames for subsequent 3D scene reconstruction. The specific process is as follows:

[0032] First, the image sequence after video conversion is evaluated for clarity using the SMD2 function. The calculation method is as shown in formula (1):

[0033] D(f)=Σ y Σ x |f(x,y)-f(x+1,y)|*|f(x,y)-f(x,y+1)| (1) Where: f(x,y) is the grayscale value of the pixel (x,y), and D(f) is the calculated result of image clarity.

[0034] Figure 2This is the video preprocessing flow chart of the present invention. After obtaining the clarity of the image using the SMD2 function, the blurred image is determined by setting the clarity threshold θ, and only images with clarity above the threshold are retained.

[0035] Step 2: Use the hue-guided H-SURF feature extraction algorithm to extract feature points and composite feature descriptors to achieve feature detection of the image.

[0036] The construction of the feature descriptor of the traditional SURF algorithm is performed on the grayscale space of the image, so the feature descriptor only uses the grayscale information and brightness information of the color image for matching, ignoring the impact of the corresponding color information on the matching process, which leads to the generation of incorrect matching pairs. The present invention introduces the concept of composite feature descriptors, that is, the hue component (H) of the HSV color space is introduced into the feature descriptor, thereby updating the feature descriptor corresponding to the feature point to a composite feature descriptor containing hue information. The hue-guided H-SURF feature extraction algorithm of the present invention can be specifically described as including the following steps:

[0037] Step 21: Introduction of color information. In the visual system of the service robot, hue information exhibits higher stability than RGB values ​​under different lighting conditions. This conclusion is based on the observation of the changes in hue and RGB values ​​of image pixels under different lighting conditions. Experimental results confirm that the amplitude of change in hue value is significantly smaller than that of RGB value, indicating that hue information is more robust to lighting changes. Therefore, when designing the visual recognition algorithm of the service robot, the use of hue information can improve the stability and reliability of color recognition, especially in dynamic or changing lighting environments. Therefore, the present invention implements the introduction of color information through a color description branch based on hue information.

[0038] Step 22: Introduction of hue information. The feature descriptor of the present invention consists of two branches: one is the traditional SURF feature description branch based on texture information, and the other is the color description branch based on hue information. Figure 3 The computational process for generating feature descriptors for the present invention.

[0039] Step 221: Traditional SURF feature extraction branch. Using the feature extraction results of the traditional SURF branch based on texture information, taking the jth feature point of the i-th image as an example, the feature extraction results are The calculation method is as shown in formula (2):

[0040]

[0041] Among them, P i-j is the coordinate of the jth feature point in the i-th image, P i-j =(x i-j ,y i-j ), Vi-j is the k-dimensional feature descriptor of the j-th feature point in the i-th image, V i-j =(i1,i2,…,i k ), preferably, k=64 here.

[0042] Step 222: Color branch based on hue information. The calculation process of the color branch based on hue information is as follows: first, calculate the mean value μ of the hue component H of the jth feature point of the i-th image and all pixels in its neighborhood in the HSV color space. h and variance δ h , the calculation method is as follows:

[0043]

[0044] where h t represents the hue value of the t-th pixel in the neighborhood of the j-th feature point in the i-th image, and θ represents the total number of pixels in the neighborhood of the j-th feature point in the i-th image.

[0045] The two results obtained by the above calculation are normalized and compared with the k-dimensional feature descriptor V of the original feature point. i-j Composed of composite descriptors, the resulting k+2-dimensional composite feature descriptor (Vh) i-j As shown in formula (4):

[0046]

[0047] In order to describe the feature points more accurately, the H-SURF feature extraction algorithm based on hue guidance introduces the 2-dimensional hue component containing HSV color information into the feature descriptor, updates the feature descriptor corresponding to the feature point to a k+2-dimensional feature descriptor containing hue information, and uses the color information of the color image to guide the matching between feature point pairs.

[0048] Step 223: Final feature extraction results. The feature extraction results output in this step include feature points and composite feature descriptors. Taking the jth feature point of the i-th image as an example, the feature extraction results are Feature-Extraction-Results. i-j The calculation of is as follows:

[0049] Feature-Extraction-Results i-j =[P i-j ,(Vh) i-j ] (5)

[0050] Among them, P i-j is the coordinate of the jth feature point of the i-th image, where P i-j =(xi-j ,y i-j ), (Vh) i-j is the k+2-dimensional composite feature descriptor corresponding to the feature point

[0051] In this step, the hue component (H) of the HSV color space is integrated into the feature descriptor, thereby enhancing the robustness of the feature point description. Specifically, the mean of the hue component H of the HSV color space of the feature point and all pixels in its neighborhood is calculated as and variance After normalization, it is introduced into the original feature descriptor to form a composite feature descriptor, and the obtained k+2-dimensional feature descriptor The feature descriptor corresponding to the feature point is updated to a k+2-dimensional feature descriptor containing hue information, and the color information of the color image is used to guide the matching between feature point pairs.

[0052] Step 3: Bidirectional feature matching based on FLANN and optimized RANSAC.

[0053] After introducing the color information of the H hue component of the HSV color space in step 2 to expand the original feature descriptor, this step uses the FLANN algorithm to perform bidirectional search and feature matching. Finally, the optimized RANSAC algorithm is used to eliminate incorrect feature matching point pairs through similarity distance sorting and iterative threshold setting, obtaining accurate feature matching point pairs and realizing feature point detection and matching of the image. The bidirectional feature matching based on FLANN and optimized RANSAC of the present invention can be specifically described as including the following steps:

[0054] Step 31: Use the FLANN algorithm for bidirectional search and feature matching. The SURF algorithm uses a one-way traversal matching method. This method only uses the feature points of the previous image as a reference for matching, ignoring the reverse matching of the previous image using the next image as a reference. This can still result in incorrect matching points. Therefore, the FLANN algorithm, based on the Euclidean distance metric, performs bidirectional search and matching to address the issues of one-way matching and improve the matching success rate. Figure 4 This is the calculation step for the bidirectional search and matching of the features of the present invention.

[0055] Step 311: Calculate the Euclidean distance and similarity score between composite feature descriptors. First, the similarity between composite feature descriptors is calculated based on the Euclidean distance. For the jth feature point of the i-th image and the nth feature point of the m-th image, the Euclidean distance between their composite feature descriptors is calculated as shown in formula (6):

[0056]

[0057] Where, D((Vh) i-j ,(Vh) m-n ) is the Euclidean distance between the composite feature descriptor of the jth feature point in the i-th image and the composite feature descriptor of the nth feature point in the m-th image, d 1i and d 2i They are (Vh) i-j and (vh) m-n The value in the i-th dimension, N is the length of the composite feature descriptor, that is, the number of elements in the vector, and in this embodiment, the value is k+2=66.

[0058] In practical applications, in order to standardize the distance value, the Euclidean distance is usually divided by the length of the feature vector to obtain the normalized similarity score S((Vh) i-j ,(Vh) m-n ), represents the similarity score between the composite feature descriptor of the jth feature point in the i-th image and the composite feature descriptor of the nth feature point in the m-th image. The calculation process is as shown in formula (7):

[0059]

[0060] Step 312: Perform bidirectional feature search and matching.

[0061] For bidirectional feature search and matching, the first step is forward matching: for each feature point p in image A i ∈P A , for each feature point q in image B j ∈P B , using the FLANN algorithm in the composite feature descriptor set D of image B B Search and determine a set of matching points to form M AB The calculation process of the forward matching set is as shown in formula (8), and the feature point p i and q j The similarity score between the composite feature descriptors is a local minimum:

[0062] M AB =(p2,q j )|q j ∈D B (8)

[0063] The second step is reverse matching. For each feature point p in image A, i ∈P A , for each feature point q in image B j ∈P B , using the FLANN algorithm in the composite feature descriptor set D of image A A Search and determine a set of matching points to form MBA The calculation process of the reverse matching set is as shown in formula (9), and the feature point p i and q j The similarity score between the composite feature descriptors is a local minimum:

[0064] M BA =(q j ,p i )|p i ∈D A (9)

[0065] The output of this step is a set M of bidirectional matching point pairs final is the positive matching set M AB and reverse matching set M BA The intersection of , as shown in formula (10):

[0066] M final =M AB ∩M BA (10)

[0067] That is, only when a point pair (p i ,q j ) exists in M AB and M BA , it is considered a valid matching point.

[0068] Step 32: Optimized RANSAC algorithm. The RANSAC algorithm is used for eight-point fitting. The fundamental matrix F is a technique used in computer vision to recover camera motion and scene structure from corresponding points. The fundamental matrix F is used to describe the mapping relationship between two images of the same scene from two different perspectives. For point P in image A, A and point P in image B b The relationship between is as shown in formula (11):

[0069]

[0070] Among them, P A is a point in image A, P B is a point in image B, and F is the fundamental matrix between the two images. It can be seen that the fundamental matrix F can be solved by constructing a system of linear equations based on feature matching point pairs. Due to the uniqueness of the fundamental matrix F, it can also be used to verify the correctness of the matching point pairs.

[0071] The RANSAC algorithm optimized in this step changes the random extraction of the RANSAC algorithm to sorting by the similarity distance between the matched feature point pairs from small to large, extracts the matching point pairs in order to calculate the basic matrix F, and then uses the basic matrix F to verify the correctness of other feature matching points; when the inlier rate reaches a certain threshold standard, the iteration ends, all corresponding outlier point pairs are eliminated, the elimination of incorrect matching point pairs is completed, and the final basic matrix F and the optimized matching point pairs are output. The flow chart of the optimized RANSAC algorithm of the present invention is as follows Figure 5 .

[0072] Step 321: Feature similarity sorting. The present invention sorts the feature point pairs from small to large according to the similarity distance between the matched feature point pairs, and uses the similarity score of formula (7) to sort the matching point pair set M output in step 31. final Sort the bidirectional matching point pairs in from high to low to obtain the sorted matching point pair set M sort , the calculation process is as follows:

[0073] M sort =Sort from high to low (M final ) (12)

[0074] Step 322: Calculate the basic matrix F. It is known that the basic matrix F has 8 degrees of freedom and can be calculated from 8 points. Therefore, sort by similarity and calculate the matching point set M. sort Select 8 pairs of matching points, and for the coordinates (x1, y1) and (x2, y2) corresponding to each matching point pair, establish a linear equation as shown in Formula (13). Solve the linear equations through singular value decomposition (SVD) to find a solution for the F matrix.

[0075] (x1,y1) T ·F·(x2,y2)=0 (13)

[0076] Step 323: Filter the optimized matching point pair set M Optimized First, the inliers are judged. For each pair of matching points, the F matrix obtained in the current iteration is used. If the formula (14) is satisfied, the point pair is considered to be an inlier, where t is a pre-set threshold.

[0077]

[0078] Finally, the best model is selected. When the inlier rate meets the requirements, the best basic matrix F and the inliers under the current F matrix are output. When the number of iterations reaches the upper limit, the RANSAC fails and the basic matrix F of the current image pair cannot be found. Therefore, the output of this step is the set of the best basic matrices F between all images. best-set , and the optimized matching point pair set MOptimized .

[0079] This step uses the FLANN algorithm for bidirectional search and matching, and combines it with the optimized RANSAC algorithm to effectively eliminate incorrect matching points through similarity distance sorting and iterative threshold setting. The final set of the best basic matrices between the images is F best-set , and the optimized matching point pair set M Optimized , provided to the downstream SFM and MVS modules.

[0080] Step 4: Use the image matching point pairs obtained in step 3 to restore the sparse point cloud and camera pose.

[0081] After the feature matching stage is completed, the present invention uses structure from motion (SFM) to recover the sparse point cloud and camera pose. SFM is a technology that uses images from multiple perspectives to estimate the three-dimensional structure of the scene and camera motion. The process of recovering the sparse point cloud and camera pose can be described as follows:

[0082] Step 41: 2D-2D relative orientation. The relationship between the fundamental matrix F and the camera pose is as shown in formula (15):

[0083]

[0084] Where R, t are the rotation and translation matrices of the two cameras, and K1 and K2 are the intrinsic parameter matrices of the two cameras.

[0085] The best set of fundamental matrices F output by the optimized RANSAC algorithm in step 32 is used best-set , we can estimate the relative pose between corresponding images and get the rotation matrix set set R And the translation matrix set t , as shown in formula (16):

[0086] set R ,set t =function(K1,K2,F best-set ) (16)

[0087] Step 42: 2D-3D sparse point cloud construction. Use the optimized matching point pair set M obtained in step 32 Optimized , and the rotation matrix set obtained in step 41 R And the translation matrix set t, the three-dimensional coordinates of the feature matching points are calculated by triangulation to form a sparse point cloud. Then, the bundle adjustment (BA) algorithm is used to globally optimize the camera poses and sparse point clouds of all images to minimize the reprojection error and improve the accuracy of the poses and point clouds. The calculation is as shown in formula (17):

[0088] P 3D =BA(set R ,set t ,M Optimized ) (17)

[0089] Among them, P 3D is a sparse point cloud.

[0090] Step 5: Based on the recovered sparse point cloud and the camera pose, the dense point cloud is restored for dense reconstruction to obtain the point cloud model of the indoor scene and complete the task of accurate 3D reconstruction of the indoor scene.

[0091] After the sparse point cloud and camera pose are recovered, the present invention uses multi-view stereo (MVS) technology to generate a dense point cloud of the scene. The implementation method can be described as the following process:

[0092] First, for each pair of images, the Patch Match dense matching algorithm is used to find more corresponding points to increase the connectivity between views. The calculation is as follows:

[0093] M dense =PM(I,P 3D , Θ1) (18)

[0094] Among them, M dense is a dense matching point set, I is an image set, and Θ1 is an algorithm parameter.

[0095] Secondly, the initial depth map is generated by disparity estimation, and then multi-view fusion is performed to generate a complete depth map.

[0096] Finally, the depth estimation result is used to model the point cloud and construct the dense point cloud of the scene, which is calculated as follows:

[0097] P 3D-dense =function(P 3D , M dense , Θ2) (19)

[0098] Among them, P 3D-dense is a dense point cloud, Θ2 is an algorithm parameter.

[0099] To verify the effect of the present invention, we take the dining table in the home_md scene in the SUN3d dataset as an example and input 314 multi-view images of the scene, some of which are given as examples. Figure 6 :

[0100] (1) Feature extraction and matching results

[0101] The original SURF algorithm and the H-SURF+ optimized matching algorithm of the present invention are used to perform a before-and-after comparison of feature point matching. Figure 7 In (a) and (b), the original SURF algorithm successfully matched only 48 groups of points; the H-SURF+ optimized matching algorithm of the present invention, by introducing the HSV hue descriptor branch for bidirectional matching and combining it with the optimized RANSAC algorithm, successfully matched 243 groups of points.

[0102] (2) In the dining table scene of SUN3d-home_md, the sparse point cloud reconstruction results are as follows Figure 8 , where the distributed discrete points are the reconstructed sparse point clouds, and the red rectangle is the sparsely reconstructed pose estimate. For the target scene, the present invention reconstructs 9531 3D point clouds from 314 multi-view images of the scene.

[0103] (3) In the dining table scene of SUN3d-home_md, the dense point cloud reconstruction results are as follows Figure 9 The reconstruction accuracy is 77.59% and the recall is 73.99%. The harmonic mean of the precision and recall is called the F-score, which is used to evaluate overall performance. The F-score for this scenario is 0.7575. For the target scene, the present invention reconstructed 831,103 3D points from 314 multi-view images, demonstrating that the present invention achieves high-precision 3D scene reconstruction.

Claims

1. A robot indoor scene 3D reconstruction method based on color tone guidance and bidirectional feature matching, characterized in that: The steps include: Step 1, extracting image frames from the input video and preprocessing to remove blurred image frames; Step 2, using the hue-guided H-SURF feature extraction algorithm to extract feature points and composite feature descriptors to achieve feature detection of the image; the composite feature descriptor is to introduce the hue component (H) of the HSV color space into the feature descriptor, thereby updating the feature descriptor corresponding to the feature point to a composite feature descriptor containing hue information; Step 3: Use the FLANN algorithm to perform bidirectional search and feature matching, and use the optimized RANSAC algorithm to eliminate incorrect feature matching point pairs through similarity distance sorting and iterative threshold setting to achieve feature point detection and matching of the image; Step 4: Use the feature matching point pairs obtained in step 3 to restore the sparse point cloud and camera pose, and restore the dense point cloud based on the restored sparse point cloud and camera pose for dense reconstruction to obtain the point cloud model of the indoor scene and complete the task of accurate 3D reconstruction of the indoor scene.

2. The robot indoor scene 3D reconstruction method based on color tone guidance and bidirectional feature matching according to claim 1, characterized in that: In the step 1, a grayscale variance product function is used to set a threshold for the clarity requirement of the image frame to eliminate blurred image frames.

3. The robot indoor scene 3D reconstruction method based on color tone guidance and bidirectional feature matching according to claim 1, characterized in that: The step 2, the hue-guided H-SURF feature extraction algorithm comprises: Using the traditional SURF feature description branch based on texture information, the feature extraction results of the jth feature point in the i-th image are as follows: SURF Feature-Extraction-Resultsi-j =[P i-j ,V i-j ] Among them, P i-j is the coordinate of the jth feature point in the i-th image, P i-j =(x i-j ,y i-j ), V i-j is the k-dimensional feature descriptor of the j-th feature point in the i-th image, V i-j =(i1,i2,…,i k ); Using the color description branch based on hue information, a composite feature descriptor is obtained, which is expressed as follows: where μ h and δ h They represent the mean and variance of the HSV color space hue component H of the jth feature point of the i-th image and all pixels in its neighborhood, respectively, and are expressed as follows: where h t represents the hue value of the t-th pixel in the neighborhood of the j-th feature point in the ith image, and θ represents the total number of pixels in the neighborhood of the j-th feature point in the ith image.

4. The robot indoor scene 3D reconstruction method based on color tone guidance and bidirectional feature matching according to claim 1, characterized in that: In step 3, the FLANN algorithm is used to perform bidirectional search and feature matching, and the implementation method is as follows: Calculate the Euclidean distance and similarity score between composite feature descriptors; Perform bidirectional feature search and matching to obtain a set M of bidirectional matching point pairs final , which is expressed as follows: M final =M AB ∩M BA Among them, M AB Represents the positive matching set, M BA Represents a reverse matching set; For each feature point p in image A i ∈P A , each feature point q in image B j ∈P B , the forward matching uses the FLANN algorithm to find the composite feature descriptor set D in image B B Search and determine a set of matching points to form M AB ; The reverse matching uses the FLANN algorithm to describe the composite feature set D of image A A Search and determine a set of matching points to form M BA .

5. The robot indoor scene 3D reconstruction method based on color tone guidance and bidirectional feature matching according to claim 4, characterized in that: The calculation of the Euclidean distance and similarity score between the composite feature descriptors is implemented as follows: Where, D((Vh) i-j ,(Vh) m-n ) is the Euclidean distance between the composite feature descriptor of the jth feature point in the ith image and the composite feature descriptor of the nth feature point in the mth image, d 1i and d 2i They are (Vh) i-j and (Vh) m-n The value in the i-th dimension, N is the length of the composite feature descriptor, that is, the number of elements in the vector; S((Vh) i-j ,(Vh) m-n ) is the normalized similarity score, which represents the similarity score between the composite feature descriptor of the jth feature point in the ith image and the composite feature descriptor of the nth feature point in the mth image; The forward matching set and the reverse matching set are calculated as follows: M AB =(p i ,q j )|q j ∈D B , and the feature point p i and q j The similarity score between the composite feature descriptors is a local minimum; M BA =(q j ,p i )|p i ∈D A , and the feature point p i and q j The similarity score between the composite feature descriptors is a local minimum.

6. The robot indoor scene 3D reconstruction method based on color tone guidance and bidirectional feature matching according to claim 5, characterized in that: The optimized RANSAC algorithm changes the random extraction of the RANSAC algorithm to sorting the feature point pairs from small to large according to the similarity distance between the matched feature point pairs, extracts the matching point pairs in order to calculate the basic matrix F, and then uses the basic matrix F to verify the correctness of other feature matching points; When the inlier rate reaches a certain threshold, the iteration ends, all corresponding outlier point pairs are removed, the wrong matching point pairs are removed, and the final basic matrix F and the optimized matching point pairs are output.

7. The robot indoor scene 3D reconstruction method based on color tone guidance and bidirectional feature matching according to claim 5, characterized in that: The method of sorting the similarity distances between the matched feature point pairs from small to large is to sort the set M of bidirectional matching point pairs according to the similarity scores. final Sort the bidirectional matching point pairs in from high to low to obtain the sorted matching point pair set M sort ; The calculation basis matrix F is based on the matching point pair set M sort Select 8 pairs of matching points, and for each pair of matching points corresponding to the coordinates (x1, y1) and (x2, y2), establish a linear equation (x1, y1) T F·(x2,y2)=0, solve the linear equations by singular value decomposition and find a solution for the F matrix; For each pair of matching points, use the F matrix obtained in the current iteration if it satisfies Then the point pair is considered to be an interior point, where t is a pre-set threshold; When the inlier rate meets the requirements, the best basic matrix F and the inliers under the current F matrix are output, and finally the best basic matrix set F between all images is obtained. best-set , and the optimized matching point pair set M Optimized .

8. The robot indoor scene 3D reconstruction method based on color tone guidance and bidirectional feature matching according to claim 1, characterized in that: In step 4, the sparse point cloud and camera pose are restored by using the motion recovery structure, and the dense point cloud of the scene is generated by using the multi-view stereo geometry technology.

9. The robot indoor scene 3D reconstruction method based on color tone guidance and bidirectional feature matching according to claim 8, characterized in that: The method of using motion recovery structure to recover sparse point cloud and camera pose is as follows: Step 41, 2D-2D relative orientation: The relationship between the basic matrix F and the camera pose is as follows: Where R, t is the rotation and translation matrix of the two cameras, K1 and K2 are the internal parameter matrices of the two cameras; Using the set of fundamental matrices F best-set , estimate the relative pose between corresponding images and obtain the rotation matrix set R And the translation matrix set t ,as follows: set R ,set t =function(K1,K2,F best-set ) Step 42, 2D-3D sparse point cloud construction: using the optimized matching point pair set M Optimized , and the rotation matrix set R And the translation matrix set t , the three-dimensional coordinates of the feature matching points are calculated by triangulation method to form a sparse point cloud, and then the bundle adjustment algorithm is used to globally optimize the camera pose and sparse point cloud of all images. The process is as follows: P 3D =BA(set R ,set t ,M Optimized ) Among them, P 3D is a sparse point cloud.

10. The robot indoor scene 3D reconstruction method based on color tone guidance and bidirectional feature matching according to claim 9, characterized in that: The method of using multi-view stereo geometry technology to generate a dense point cloud of a scene is as follows: First, for each pair of images, use the Patch Match dense matching algorithm to find more corresponding points to increase the connectivity between views. The calculation is as follows: M dense =PM(I,P 3D ,Θ1) Among them, M dense is a dense matching point set, I is an image set, Θ1 is an algorithm parameter; Secondly, the initial depth map is generated by disparity estimation, and then multi-view fusion is performed to generate a complete depth map; Finally, the depth estimation result is used to model the point cloud and construct a dense point cloud of the scene. The calculation is as follows: P 3D-dense =function(P 3D ,M dense ,Θ2) Among them, P 3D-dense is a dense point cloud, Θ2 is an algorithm parameter.

Citation Information

Cited By

  • Method, device and equipment for acquiring three-dimensional model of heavy haul railway train

    CN121280640A

  • A method, device and equipment for acquiring a three-dimensional model of a heavy-load railway train

    CN121280640B

  • Incremental SfM reconstruction method based on relative orientation uncertainty

    CN121999143A