A pre-calibration-free visual slam method and system based on three-dimensional base model and differentiable joint calibration
By using a visual SLAM method based on a 3D base model and differentiable joint calibration, the problem of projection ambiguity under uncalibrated conditions was solved, and the accuracy of camera pose estimation and the quality of Gaussian mapping were improved, thus enhancing the localization and mapping effects.
Patent Information
- Application Number
- CN202611666457.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-27
- Publication Date
- 2026-11-24
AI Technical Summary
Existing feedforward SLAM methods based on 3D base models cause projection ambiguity due to inconsistent camera intrinsic parameters predicted frame by frame by directly using the 3D base model, resulting in a decrease in the quality of camera localization and Gaussian mapping under uncalibrated conditions.
A pre-calibration-free visual SLAM method based on a 3D basic model and differentiable joint calibration is adopted. A global reference projection model is established through a differential correction reference set, the camera pose is jointly optimized, and the Gaussian elements are re-anchored in stages according to the anchoring confidence. A 3D Gaussian map is constructed by segmenting the consistent projection model and local projection compensation.
It improves camera pose estimation accuracy, reduces calibration error accumulation, enhances the storage compactness and local reconstruction fidelity of 3D Gaussian maps, and simultaneously improves positioning accuracy and rendering quality.
Smart Images

Figure CN123160684A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer vision technology, and in particular to a pre-calibration-free visual SLAM method and system based on a three-dimensional basic model and differentiable joint calibration. Background Technology
[0002] Simultaneous Localization and Mapping (SLAM) technology aims to estimate camera pose and reconstruct the structure of unknown environments based on continuous observations, and is widely used in robotics, augmented reality, and digital twins. In recent years, with the development of neural radiation fields and 3D Gaussian sputtering techniques, rendering-based SLAM methods can reconstruct high-fidelity 3D models by jointly optimizing camera pose and scene representation through differentiable rendering. However, such methods typically rely on accurate camera intrinsic parameters, and their projection process is parameterized by these parameters. Inaccurate intrinsic parameters introduce projection ambiguity and pixel misalignment during projection, leading to decreased tracking accuracy and deteriorated reconstruction consistency, thus limiting the application of these methods in real-world, uncalibrated scenes.
[0003] In recent years, 3D base models have been able to directly recover geometric structures from image sets, providing a new technical path for SLAM under uncalibrated conditions. However, due to the high memory consumption of 3D base model inference and the limited processing sequence length, existing methods mostly adopt a feedforward architecture, which divides the input sequence into multiple sub-maps and then globally aligns and stitches them together. However, existing feedforward SLAM methods still have shortcomings: First, they directly use the intrinsic parameters predicted frame by frame from the 3D base model and assume their accuracy. In reality, there are significant differences between the intrinsic parameters predicted in different frames. This inconsistent projection makes the matching of 3D point correspondences unreliable, and calibration errors will continue to accumulate within the sub-map. Second, using transformations with additional degrees of freedom to align the sub-map cannot restore inconsistent intrinsic parameters to a single globally consistent intrinsic parameter. Third, the projection of Gaussian sputtering is determined by the intrinsic parameters. When using inconsistent intrinsic parameters for optimization, the same Gaussian primitive is projected to inconsistent positions in different frames, and the continuous changes in camera pose and intrinsic parameters force the Gaussian representation to learn additional appearance changes caused by projection changes. Fourth, existing methods focus more on dense reconstruction and ignore localization quality, lack a global joint optimization mechanism for camera pose and Gaussian map, and local Gaussian optimization can also cause the forgetting of historical observations.
[0004] Therefore, how to establish a unified global projection benchmark without relying on pre-calibration, identify and retain local projection system changes, and enable inconsistent frame-by-frame projections to form a segmented consistent projection relationship with global benchmark constraints, while making the Gaussian map adapt to projection changes and achieving simultaneous improvement in positioning and mapping quality, is a technical problem that urgently needs to be solved in this field. Summary of the Invention
[0005] The purpose of this invention is to solve the problem that existing feedforward SLAM methods based on 3D base models cause projection ambiguity due to inconsistent camera intrinsic parameters predicted frame by frame by directly using the 3D base model, resulting in a decrease in the quality of camera localization and Gaussian mapping under uncalibrated conditions. The invention proposes a pre-calibration-free visual SLAM method and system based on 3D base models and differentiable joint calibration.
[0006] To achieve the above objectives, the present invention adopts the following technical solution:
[0007] On the one hand, a pre-calibration-free visual SLAM method based on a 3D base model and differentiable joint calibration is provided, including the following specific steps:
[0008] Keyframes from an uncalibrated RGB video stream are input into a 3D base model to obtain and align geometric priors.
[0009] The observable section and the projection system conversion boundary are identified and calibrated through forward and reverse infinitesimal projection perturbation to form a differential correction reference set;
[0010] A global reference projection model is established using a differential correction reference set, and the camera pose is jointly optimized.
[0011] The effective differential correction value is determined through limited feedback verification;
[0012] Establish local projection compensation quantities to obtain a piecewise consistent projection model and a set of differential correction results with intrinsic parameter convergence labels;
[0013] A three-dimensional Gaussian map is constructed using a piecewise consistent projection model and a differential correction result set, and then re-anchored according to the anchoring confidence level.
[0014] Backward validation distinguishes between projection dependency error and persistent geometric underexpression regions and validates candidate Gaussian units;
[0015] Based on the convergence labels of the intrinsic parameters, the system performs joint optimization in stages, and outputs the corrected camera trajectory and 3D scene map.
[0016] On the other hand, a pre-calibration-free visual SLAM system based on a 3D fundamental model and differentiable joint calibration is provided, including:
[0017] The video input module is used to acquire RGB video streams that have not been pre-calibrated by the camera;
[0018] The keyframe filtering and streaming inference module is used to filter keyframes and construct local subsequences with common keyframes. It obtains geometric priors, including initial camera intrinsics, through the 3D base model and forms an aligned geometric prior sequence after pose and scale alignment.
[0019] The differential correction reference set construction module is used to apply forward and reverse infinitesimal projection perturbations to the initial camera intrinsic parameters, form a bidirectional projection response sequence, identify and calibrate the observable segment set and projection system conversion boundary, and form a differential correction reference set.
[0020] The piecewise consistent projection model establishment module is used to establish a global reference projection model based on the differential correction reference set, form an effective differential correction quantity through joint adjustment and restricted backtesting, establish a local projection compensation quantity, and form a piecewise consistent projection model and a differential correction result set carrying intrinsic parameter convergence labels.
[0021] The Gaussian mapping module with backtesting constraints is used to construct a 3D Gaussian map based on the piecewise consistent projection model and the differential correction result set, and to re-anchor according to the anchoring confidence level. It also identifies persistent geometrically underexpressed regions and validation candidate Gaussian units through backtesting.
[0022] The phased joint optimization output module is used to adjust the optimization degrees of freedom of the 3D Gaussian elements and camera pose in stages according to the intrinsic parameter convergence label, jointly optimize the camera pose, local projection compensation amount and 3D Gaussian map, and output the camera trajectory and 3D scene map in combination with closure constraints.
[0023] The beneficial effects of this invention are as follows:
[0024] 1. By distinguishing intrinsic parameter changes from pose and depth scale changes through bidirectional projection response sequences, and by using constrained backtesting to intercept coupled changes, it helps to restore inconsistent intrinsic parameter estimates frame by frame to a piecewise consistent projection model, alleviates projection ambiguity under uncalibrated conditions, thereby improving camera pose estimation accuracy and reducing the accumulation of calibration errors in local subsequences.
[0025] 2. Based on the anchoring confidence, Gaussian primitives are re-anchored in a hierarchical manner to reduce positional drift caused by repeated anchoring in depth-prior unstable regions. The projection subordination error and the persistent geometric underrepresentation region are distinguished by backtesting, and a second validation admission is performed on the candidate Gaussian primitives. This helps to suppress the invalid expansion of the Gaussian map for transient error regions caused by projection changes, and improves the storage compactness and local reconstruction fidelity of the 3D Gaussian map.
[0026] 3. Based on the convergence label of the intrinsic parameters, the optimization degrees of freedom of Gaussian geometric parameters and camera pose are released in stages. The camera pose, local projection compensation amount and 3D Gaussian map are jointly optimized, which helps to reduce the problem of mutual contamination between pose and map in the non-convergence stage of calibration, reduce trajectory drift in long sequence processing, and improve positioning accuracy and rendering quality at the same time. Attached Figure Description
[0027] Figure 1 This is a flowchart of the method proposed in Embodiment 1 of the present invention;
[0028] Figure 2 This is a diagram of the architecture of the global reference projection model in the method proposed in Embodiment 1 of the present invention;
[0029] Figure 3 This is a diagram of the architecture of the segmented consistent projection model in the method proposed in Embodiment 1 of the present invention;
[0030] Figure 4 This is a framework diagram of the system proposed in Embodiment 2 of the present invention;
[0031] Figure 5 This is a visualization of the scene rendering results under uncalibrated conditions using the method proposed in Embodiment 3 of the present invention. Detailed Implementation
[0032] To make the technical means, creative features, objectives and effects of this invention easier to understand, the invention will be further described below in conjunction with specific embodiments.
[0033] Example 1
[0034] Please see the appendix Figure 1-3 A pre-calibration-free visual SLAM method based on a 3D base model and differentiable joint calibration includes the following specific steps:
[0035] S1. Input keyframes of the uncalibrated RGB video stream into the 3D basic model to obtain and align geometric priors. Identify and calibrate the observable segments and projection system conversion boundaries through forward and reverse infinitesimal projection perturbations to form a differential correction reference set; specifically including:
[0036] S11. Keyframe selection and streaming geometry prior acquisition, including:
[0037] S111. To avoid selecting low-texture, purely rotated, or insufficiently parallax images when selecting frames solely based on image motion, which could lead to unobservable camera intrinsics in subsequent frames, the image motion relative to the previous keyframe is first calculated frame by frame for the uncalibrated RGB video stream, and the contribution of the current image to the calibration constraints is evaluated simultaneously. For the current image... Compared to the previous keyframe Calculate image motion based on effective pixel optical flow. ,in, The amount of motion in the current image. To effectively match the number of pixels, For the first Each valid matching pixel is a two-dimensional optical flow vector from the previous keyframe to the current image.
[0038] To ensure that keyframes simultaneously provide sufficient displacement parallax and spatial texture constraints, a disparity baseline representation is determined based on the disparity distribution of matched pixels, and texture richness is determined based on the proportion of effective gradient pixels, corner spatial coverage, and the dispersion of texture in different regions of the image, thus forming a calibration gain. ,in, To calibrate the gain, This is the disparity baseline characterization quantity after scale unification. For texture richness after scaling, and For the corresponding weight and The weights are obtained by pre-selecting calibration videos with different motion modes and texture conditions, and statistically analyzing the contribution of changes in each indicator to the decrease in the subsequent intrinsic parameter reprojection residual, so that indicators with greater contributions are given higher weights.
[0039] To avoid the fixed threshold being affected by differences in camera resolution and scene scale, the preset motion threshold is determined by the optical flow noise distribution in the sampling segment where the device is stationary or experiencing low motion. Motion that significantly exceeds the upper noise bound and forms a stable cross-frame match is used as the motion threshold. The preset gain threshold is calibrated using the calibration gain distribution of historical candidate frames and the actual improvement in intrinsic parameter constraint strength after entering subsequent calibration. Only when... Reaching the preset exercise volume and When the preset gain condition is met, the current image is identified as a keyframe. This outputs a sequence of keyframes arranged in time, providing input for the construction of local subsequences in S112.
[0040] S112. To overcome the limitations of the number of images and video memory usage in a single inference of the 3D base model, while ensuring that there are directly usable geometric connections between different local inference results, the keyframe sequence formed in S111 is continuously written into the current local subsequence in chronological order, and common keyframes between preceding and following local subsequences are retained. The preset capacity of the local subsequence is not directly specified using a fixed empirical value, but is jointly determined based on the maximum stable number of input frames of the 3D base model on the target hardware, the single-frame feature cache usage, the peak video memory usage for inference, and the required online processing latency. Under the condition that no video memory overflow occurs during inference and the average processing latency meets the requirements for online operation, a capacity that can accommodate a large number of consecutive keyframes is selected as the preset capacity.
[0041] To prevent the computational load from increasing due to the continuous accumulation of historical attention states during long-sequence inference, and to ensure that new local subsequences inherit the coordinate relationships of previous local subsequences, when the current local subsequence reaches a preset capacity, its further expansion is terminated and the historical attention cache that is no longer involved in the current local inference is cleared. Subsequently, the latest keyframe of the current local subsequence is simultaneously retained as the first keyframe of the next local subsequence, ensuring that adjacent local subsequences share at least this keyframe.
[0042] To prevent texture degradation of common keyframes from causing subsequent alignment failures, the implementation also checks whether the latest keyframe maintains the effective number of matches and calibration gain conditions in S111. If not, the most recent keyframe that meets the conditions is selected from the end of the current local subsequence as the common keyframe. This process does not change the temporal order of the keyframes, only adjusting the overlapping positions of the local subsequences. Finally, a set of local subsequences arranged sequentially in time and sharing common keyframes is obtained, which is then used as the direct input for streaming inference of the S113 3D base model.
[0043] S113. To obtain the initial geometric and projection values required for subsequent differential correction simultaneously without providing pre-calibrated camera parameters and an external depth sensor, the local sub-sequences obtained in S112 are sequentially input into the 3D base model to perform streaming feedforward inference. This implementation preferably uses a StreamVGGT-type 3D base model, whose structure includes an image coding layer, a spatiotemporal feature interaction layer, a streaming state buffer layer, a geometric decoding head, a camera parameter decoding head, and a cross-frame correlation output layer.
[0044] To transform the original RGB keyframes into a unified visual representation capable of cross-frame association, the image coding layer extracts multi-scale visual features from each keyframe. The spatiotemporal feature interaction layer performs joint attention interaction on features from different keyframes within local subsequences, establishing associations between the same scene structure from different perspectives. The streaming state buffer layer stores the feature states of the current local subsequence that still need to participate in inference and establishes state connections between previous and subsequent states using common keyframes when entering the next local subsequence. The shared spatiotemporal features output by the above structure are simultaneously fed into different task decoders, thus avoiding inconsistent initial values for depth, pose, and camera intrinsics that would result from separate estimations by independent models.
[0045] To provide shared geometric priors for subsequent scale alignment and projection perturbations, the geometry decoding head outputs depth priors and corresponding 3D point priors for each keyframe based on their shared spatiotemporal features. The camera parameter decoding head outputs the initial camera pose and initial camera intrinsic parameters. The cross-frame correlation output layer establishes the 3D point correspondence and confidence information between keyframes. For pixel positions... and its depth prior The prior knowledge of 3D points is obtained from the back projection relationship corresponding to the current initial camera intrinsic parameters, i.e. ,in, For the first In the first keyframe Prior knowledge of 3D points corresponding to 1 pixel For back projection function, This serves as the initial camera intrinsic parameters. Finally, for each local subsequence, the depth prior, 3D point prior, initial camera pose, and initial camera intrinsic parameters are synchronously output as inputs for S114 unified coordinates and scale alignment.
[0046] S114. To eliminate the local coordinate system differences caused by independent inference of different local subsequences by the 3D base model, the relative pose relationship between adjacent local subsequences is established using the common keyframes retained in S112 and the initial camera poses output in S113. Let the adjacent local subsequences be... and Both in the common keyframe Overlapping areas, relative pose transformations are maintained. ,in, and These represent the initial camera poses of the common keyframes in the two local subsequences. This refers to the relative pose transformation that transforms the latter local subsequence to the coordinate system of the former local subsequence.
[0047] To ensure that all keyframes in the subsequent local subsequence inherit a unified coordinate reference, the aforementioned relative pose transformation is propagated to each keyframe in the subsequent local subsequence. The transformation relationship is as follows: ,in, For the aligned first Keyframe pose This is its original initial camera pose. Local subsequence The keyframe set. The corresponding 3D point priors are implemented synchronously using the same relative transformation, ensuring a unified coordinate relationship between the camera trajectory and the 3D geometry.
[0048] To eliminate scale drift caused by the monocular 3D base model for different local subsequences, the scale factor is further estimated using the corresponding 3D points in the common keyframes. The scale estimation form is as follows: ,in, For the first The optimal scaling factor of a local subsequence relative to the previous local subsequence. and For the first public keyframe The prior knowledge of the corresponding 3D points in the two local subsequences. Traverse the common keyframes to find valid 3D points that satisfy the cross-view correspondence stability condition and depth confidence requirement. The closed-form solution to this least squares problem is: That is, the sum of the dot products of the prior three-dimensional points of the previous local sequence and the prior three-dimensional points of the next local sequence, divided by the sum of the squares of the magnitudes of the prior three-dimensional points of the next local sequence.
[0049] To reduce the impact of anomalous 3D points, only 3D points that are stable across views and meet the depth confidence requirements are selected for scale estimation. The confidence conditions are determined by the stable distribution of the reprojection of corresponding points within the local subsequence. Finally, the scale factor is propagated sequentially to the depth prior, 3D point prior, and translation components of subsequent local subsequences, so that all local subsequences enter a unified coordinate and scale system, forming an aligned geometric prior sequence for continued use by S121.
[0050] S12. Construction of the differential correction benchmark set, including:
[0051] S121. To separate the projection response caused by changes in camera intrinsic parameters from the original geometric error, the matching space point, depth prior, and camera pose are kept unchanged in the aligned geometric prior sequence formed in S114. Only the components to be corrected in the initial camera intrinsic parameters are subjected to equal-amplitude positive and negative infinitesimal perturbations, respectively. For the first... The position of the original projected image is calculated for each matching spatial point. Position of the projected image with forward perturbation and the position of the reverse perturbation projection image And obtain the bidirectional projection response. ,in, and These are the forward and reverse projection displacements, respectively.
[0052] To ensure that the perturbation reflects local differential characteristics without causing cross-regional changes in the projection model, the magnitude of the micro-perturbation is determined based on the order of the initial camera intrinsic parameters and the approximately linear range between the projection image displacement and the perturbation amount under historical perturbations. The value is selected from the maximum perturbation range that produces a stable and measurable projection displacement with approximately symmetrical forward and inverse responses. The bidirectional responses are saved according to the spatial point index, depth prior, and corresponding keyframes to form a bidirectional projection response sequence, providing input for S122 to determine observability.
[0053] S122. To avoid incorrectly correcting camera intrinsic parameters in areas with low parallax, single depth levels, or high coupling between pose changes and intrinsic parameter changes, the projection back correspondence, depth response differences, and keyframe parallax distribution are jointly evaluated based on the bidirectional projection response sequence from S121. To avoid instability in the back correspondence calculation when the forward or backward projection response is close to zero, the matching spatial points are first screened for minimum measurable response, retaining only those matching spatial points where both forward and backward projection displacements meet the minimum measurable response condition. The minimum measurable response condition is obtained by statistically analyzing the pixel position numerical fluctuations and feature localization noise generated by repeated projections in a stationary camera state, and a boundary value that can distinguish between numerical disturbances and effective projection responses is taken. First, the back correspondence of the spatial points is calculated. ,in, The closer the response is to the stable inverse response, the more attributable the corresponding projection change is to the intrinsic parameter perturbation.
[0054] To confirm that intrinsic parameter perturbations can produce identifiable responses at different depth levels, the matching spatial points are divided into multiple depth groups based on depth priors. The differences in the amplitude and direction of projected displacement among the groups are compared to obtain the depth response difference. Simultaneously, the median disparity and spatial distribution of effective matching points between keyframes are statistically analyzed to obtain the disparity characterization. Based on pre-acquired normal translation, low disparity, and near-range rotation sequences, the ranges of inverse correspondence, depth response difference, and disparity characterization that ensure stable convergence of subsequent intrinsic parameter correction are statistically analyzed, forming corresponding judgment conditions. Only when all three conditions are met is a consecutive keyframe included in the calibration observable segment, and multiple consecutive segments form a calibration observable segment set.
[0055] S123. To identify changes in projection regime caused by video cropping, digital scaling, or changes in local projection relationships, and to avoid misjudging changes in the real scene structure as projection transformations, the scene geometric continuity and bidirectional projection response changes of adjacent keyframes are compared sequentially over time within the calibrated observable segment. First, the continuity of scene geometry is checked using common 3D points, depth priors, and camera pose in the aligned geometric prior sequence. When the spatial adjacency relationship and depth change of the corresponding 3D points remain within the range of changes formed by normal motion, the keyframe pair is retained for further evaluation.
[0056] Then, the change in the bidirectional projection response of adjacent keyframes was calculated. ,in, For the first The amount of change in the bidirectional projection response of each keyframe relative to the previous keyframe. The number of spatial points that are effectively matched together in adjacent keyframes. and The first The first keyframe The forward and backward projection responses of each matching spatial point. To prevent single-frame noise from triggering boundaries, only when... When multiple consecutive keyframes exceed the normal response fluctuation range and the trend remains stable, the projection system conversion boundary is determined. The normal response fluctuation range is determined by the statistical distribution of the bidirectional projection response of the stable video segment of the projection model. The number of consecutive keyframes is determined based on the longest consecutive length of occasional bidirectional projection response exceeding the boundary in the stable video segment of the projection model. The smallest integer greater than this longest consecutive length is taken as the number of consecutive keyframes to eliminate false boundaries caused by single-frame noise and short-term matching fluctuations. Finally, the alignment geometric prior sequence, the calibrated observable segment set, and the projection system conversion boundary are jointly organized to form the differential correction reference set directly used by S211.
[0057] S2. Establish a global reference projection model using the differential correction reference set and jointly optimize the camera pose. Verify the effective differential correction quantity through constrained retracement. Establish local projection compensation quantities to obtain a piecewise consistent projection model and a differential correction result set carrying intrinsic parameter convergence labels. Specifically, this includes:
[0058] S21. Establishment and joint optimization of the global baseline projection model, including:
[0059] S211. To ensure that different keyframes share a unified and differentiable projection relationship in subsequent joint optimization, the initial camera intrinsic parameters of each keyframe are first read from the calibration observable segment set formed in S123, and the global reference projection model is initialized with its stable statistical results. The global reference projection model consists of a global intrinsic parameter layer, a projection layer, a back-projection layer, and a pose coupling layer, wherein the global intrinsic parameter layer maintains shared parameters. In the formula: and These are the equivalent focal lengths in the horizontal and vertical directions of the image, respectively. and These represent the coordinates of the principal point in the horizontal and vertical directions of the image, respectively. The projection layer maps the camera coordinate points to the image plane, the backprojection layer recovers the 3D points based on depth priors, and the pose coupling layer transforms the 3D points in different keyframes to a unified camera coordinate system. To reduce the impact of initial camera intrinsic parameter deviations in a single frame, the initial global intrinsic parameters are weighted and statistically analyzed based on the initial camera intrinsic parameters of each keyframe within the calibrated observable segment. The weights are jointly determined by the cross-frame association confidence information obtained in S113 and the reverse correspondence obtained in S122; the higher the cross-frame association confidence information and the more stable the reverse correspondence, the higher the weight of the initial camera intrinsic parameters of the corresponding keyframe. All weights are uniformly scaled and normalized before statistical analysis. The projection layer uses... The back projection layer adopts ,in, The coordinates of a 3D point in the camera coordinate system. For pixel coordinates, For depth priors, For global reference projection function, For its corresponding back projection function, the projection layer and the back projection layer satisfy a reciprocal relationship. This results in a global reference projection model that can be uniformly invoked in subsequent cross-keyframe reprojections.
[0060] S212. To avoid mismatches or the corresponding points causing drastic fluctuations in residuals across iterations pulling the global baseline projection model, the matching relationships across keyframes are first subjected to hierarchical screening. For the first... Each matching relationship is based on the matching confidence level in the confidence information output by the S113 cross-frame correlation output layer. And the consistency of residuals calculated from the reprojection residual sequence in successive optimization rounds. ,in The thresholds are determined based on the magnitude of residual change relative to the median fluctuation range of the residuals in each match. The matching confidence threshold and residual consistency threshold are determined by pre-labeling stable and mismatched samples, statistically analyzing the matching confidence and residual consistency distributions of the two types of samples, and selecting the cutoff values that balance the retention rate of valid matches with the removal rate of abnormal matches as the corresponding thresholds. Only stable matches that simultaneously meet both conditions are retained.
[0061] To ensure that the selected matches simultaneously constrain the in-camera poses of the participating cameras, a depth reprojection residual is established based on the stable matching pixel positions, depth priors, and the global reference projection model. The global projection parameters and keyframe poses are then jointly solved. ,in, and For the first A stable match is found between the pixel positions in the two keyframes. For the corresponding depth prior, For the relative pose of two keyframes For the first The weights of a stable match are determined by the following formula: ,in, To match confidence levels, This is the residual consistency evaluation value. This is the stable set of matches retained after stratified filtering. The summation index for traversing a stable set of matches.
[0062] To ensure the stability of the iterative solution, the Levenberg-Marquardt incremental form is adopted: ,in, Let be the residual Jacobian matrix. This is the weight matrix. The reprojection residual vector, The damping factor, This represents the joint update of global projection parameters and camera pose. This is an identity matrix adapted to the dimension of the parameters to be optimized. The damping factor adaptively increases or decreases according to the descent of the objective function in previous iterations, thereby obtaining the updated global reference projection model and camera pose, which are then used as inputs for the S221 constrained backtracking verification.
[0063] S22. Constrained backtesting and determination of effective differential correction, including:
[0064] S221. To verify whether the projection parameter adjustments obtained in S212 truly originate from changes in camera intrinsic parameters, rather than being temporarily absorbed by depth errors or camera pose changes, after each joint adjustment of the global reference projection model and camera pose, only the incremental projection parameters written into the global reference projection model in this round are subjected to a reverse restricted backtracking, without changing the already updated matching relationships and depth priors. Let the amount of projection parameter adjustment in this round be... Construct the return volume in the opposite direction. ,in, For the first Limited return volume of the wheel The return ratio is determined by the linear intervals of the forward and reverse minor perturbations as specified in S121. To avoid the optimized state exceeding the current local linear response region due to complete reversal, the return ratio is obtained, ensuring that the projected position after the return remains within the effective response range of the bidirectional projected response sequence.
[0065] Subsequently, using the parameters before adjustment, the parameters after adjustment, and the parameters after applying the return projection, the same set of stable matching spatial points are reprojected to obtain the projection positions before adjustment, the projection positions after adjustment, and the return projection positions, while maintaining a one-to-one correspondence between the spatial point indices. These three sets of projection positions form the corrected positive displacement and return displacement of each matching spatial point, providing direct input for S222 to determine whether the current round of projection adjustment has a reversible differential response.
[0066] S222. To avoid accepting incorrect intrinsic parameter adjustments based solely on the decrease in reprojection residuals, the current round of residual improvement is jointly evaluated with the bidirectional projection response sequence established in S121. For the first... For each matching spatial point, calculate the return consistency based on the projection positions before, after, and after the return. ,in, To adjust the projected position, To return to the projected position, This is the projection response in S121 that is opposite to the direction of the current adjustment.
[0067] To avoid individual erroneous matches affecting the judgment, the consistency of return is statistically analyzed for spatial points that meet the stable matching condition. The distance between the projected position after return and the response side before adjustment is then used to determine whether a corresponding return has occurred. The return judgment threshold is obtained by statistically analyzing the return consistency distributions of correct intrinsic parameter perturbation samples and geometric or pose coupling perturbation samples. A boundary value that minimizes both the false positive and false negative rates is selected as the return judgment threshold between the two distributions. When the total reprojection residual decreases and the return condition is met, the corresponding projection parameter adjustment is accepted and recorded as an effective differential correction. When the residual decreases but the return condition is not met, the change is judged as a coupling change caused by geometric or pose factors. Necessary camera pose optimization results are retained, but the corresponding projection parameter adjustment is restricted from being written into the global reference projection model, thus providing a reliable effective differential correction sequence for establishing local projection compensation in S231.
[0068] S23. Establishment of piecewise consistent projection model and generation of differential correction result set, including:
[0069] S231. To avoid the forced absorption of local projection differences on both sides of the projection system conversion boundary into the same set of global camera intrinsic parameters, the stable differences of keyframe segments on both sides of the boundary are first compared based on the effective differential correction values continuously obtained in S222, and a segmented consistent projection model is constructed accordingly. The segmented consistent projection model consists of a global reference projection layer, a segment association layer, a local projection compensation layer, and a unified projection layer. The global reference projection layer maintains the continuity of the global reference projection model established in S211. The segment association layer determines the projection segment to which each keyframe belongs based on the projection system conversion boundary in S123. The local projection compensation layer stores the local projection compensation amount of each projection segment relative to the global reference projection model. The unified projection layer combines the two to form the actual projection parameters of the corresponding segment.
[0070] To avoid local compensation induced by fluctuations in a single correction, the nearest neighbors on both sides of the boundary were statistically analyzed. In a valid differential correction round that has passed backtesting, if the difference direction remains stable and the difference amplitude continuously exceeds the normal correction fluctuation range, it is determined that there is a continuous projection difference on both sides of the boundary. This normal fluctuation range is obtained from the historical dispersion of the effective differential correction in the video segment without projection system conversion; whereby... The number of consecutive effective correction rounds used in S232 for intrinsic parameter convergence evaluation is consistent with that used in the previous method. For the... The local projection compensation amount for each projection segment is expressed as: ,in, This is the amount of local projection compensation. For the first The projection segment Effective differential correction value of the wheel, This represents the effective differential correction value corresponding to the globally stable segment. This indicates taking the robust median with respect to continuous effective derivatives. The effective projection parameters for the corresponding segment are as follows: Obtain, among which, These are the projection parameters for the global reference projection model. For the first The segmented projection parameters of each projection segment are used to form a segmented consistent projection model that maintains global connectivity while allowing for differences in local projection systems.
[0071] S232. To ensure that the projection corrections generated by the segmented consistent projection model are fed back into the 3D geometry and subsequent Gaussian mapping, the corresponding segmented projection parameters are read according to the projection segment to which each keyframe belongs, and the original depth prior is re-projected using these parameters to obtain the updated 3D point prior. For the first... Pixels in keyframes and its depth prior The updated 3D point prior is based on Obtain, among which, For the updated 3D point priors, For the first In the first keyframe 1 pixel position For the corresponding depth prior, For the first The projection segment to which each keyframe belongs. These are the segmented projection parameters for this projection segment. The back-projection function described in S211 is used. Subsequently, the keyframe reprojection constraints are reconstructed based on the updated 3D point prior, and the camera pose is locally updated to ensure consistency between the depth prior, 3D point prior, camera pose, and the piecewise consistent projection model. To determine when different keyframes can transition from the calibration optimization stage to the stable mapping stage, the effective differential correction amount and reprojection residual in consecutive correction rounds are evaluated for convergence. Specifically:
[0072] To avoid the difference in numerical scales between the effective differential correction and the reprojection residual causing one item to dominate the convergence evaluation of the intrinsic parameters, before calculating the convergence evaluation values, the intrinsic parameters are normalized according to the statistical scales of the effective differential correction magnitude, the change in continuous correction, and the change in reprojection residual in the stable calibration video segments, ensuring that each evaluation item is within a comparable numerical range. For the most recent... Calculation of effective correction cycles ,in, For the first The intrinsic parameter convergence evaluation value of each keyframe. For the first Effective differential correction value of the wheel, For the corresponding reprojection residual, and The balance coefficient is used to determine the convergence threshold. To adapt the convergence criteria to different videos, the balance coefficient and convergence threshold are statistically determined from several calibrated and stable video sequences. This ensures that the effective differential correction is nearly stable and the reprojection residual no longer decreases significantly, allowing for identification. Intrinsic parameter convergence labels are generated based on whether the intrinsic parameter convergence evaluation value meets the convergence condition. The updated depth prior, 3D point prior, camera pose, effective differential correction, intrinsic parameter convergence evaluation value, and intrinsic parameter convergence labels are combined to form a differential correction result set, which serves as input for S311 3D Gaussian map construction and subsequent phased joint optimization.
[0073] S3. Construct a 3D Gaussian map using a piecewise consistent projection model and a differential correction result set, and re-anchor according to the anchoring confidence level; distinguish between projection dependency errors and persistent geometric underexpression regions through backtesting and verify candidate Gaussian units; perform staged joint optimization based on intrinsic parameter convergence labels, and output the corrected camera trajectory and 3D scene map; specifically including:
[0074] S31. Calibration-perceptual Gaussian mapping for anchored confidence grading, including:
[0075] S311. To establish the 3D Gaussian map from the unified geometric state after differential correction, read the differential correction result set formed in S232, and initialize the 3D Gaussian primitives using the updated depth prior, 3D point prior, and camera pose under the piecewise consistent projection model. For pixel positions... and its depth prior The Gaussian center is determined according to the following relationship: ,in, and These are the Gaussian centers in the camera coordinate system and the world coordinate system, respectively. For the first Each keyframe consists of a rotation matrix from the camera coordinate system to the world coordinate system. The two vectors, corresponding to the translation vector, together characterize the camera pose of the keyframe.
[0076] To balance online processing efficiency and local map continuity, only keyframes within the current sliding keyframe window are selected for Gaussian parameter optimization, and... As the optimization objective, among which... To slide the keyframe window, To measure the photometric error between the observed image and the rendered image, This relates to depth priors and geometric errors in rendering depth maps. The weights are assigned to the two. To ensure the weights are adapted to the actual data, Based on the stable magnitude of photometric and geometric errors in the calibration video and their contribution to the reduction of rendering errors in the verification frames, the Gaussian center, scale, orientation, transparency, and appearance parameters are gradually optimized.
[0077] S312. To distinguish between 3D Gaussian primitives that can reliably follow changes in the projection model and those affected by depth prior fluctuations, firstly, the projection segment to which each 3D Gaussian primitive belongs at the time of its creation is recorded, and the corresponding pixels are found in that projection segment and in keyframes with co-view relationships with it. The corresponding pixels are back-projected to a unified world coordinate system using their respective segmented projection parameters, depth priors, and camera poses to obtain a set of multi-frame spatial positions of the same 3D Gaussian primitive.
[0078] To quantify its multi-frame spatial stability, an anchoring discrete quantity is defined. ,in, For the first Anchored discrete quantities of a three-dimensional Gaussian element. To effectively increase the number of shared keyframes, For the first The spatial location recovered from each keyframe For its stable center, by The median of each coordinate component is taken. To ensure higher anchoring confidence with higher spatial consistency across multiple frames, the anchoring confidence is... The anchoring confidence level is obtained by normalizing the distribution of the effective Gaussian discrete values within the current projection segment using the following formula. ,Right now: ,in, The quantile statistical value of the effective 3D Gaussian element anchoring discrete quantity within the current projection segment is determined through re-anchoring experiments in video segments with stable intrinsic parameters. Quantile positions are selected that retain most Gaussian elements with stable subsequent positions while excluding those with significant drift. Preset confidence conditions are determined statistically from video segments with stable intrinsic parameters. The anchoring confidence range corresponding to 3D Gaussian elements with stable multi-view reprojection relationships and no significant drift in subsequent re-anchoring positions is used as the criterion, thereby obtaining the anchoring confidence level for use in S313 graded re-anchoring.
[0079] S313. To avoid historical 3D Gaussian primitives remaining at positions corresponding to the old projection relationship after camera projection parameter updates, when the effective differential correction or local projection compensation is updated, affected 3D Gaussian primitives are selected based on the projection segments recorded in S312, and processed according to the anchoring confidence level. To ensure that the projection relationship is consistent with the coordinate system of the 3D Gaussian center during re-anchoring, the 3D Gaussian primitives to be re-anchored are first transformed to the coordinate system of the camera before the update based on the previous camera pose. In this coordinate system, the corresponding pixel position is determined using the previous projection relationship. Then, the world coordinate system anchoring position is re-determined based on the updated piecewise consistent projection parameters, the corresponding depth prior, and the updated camera pose. For Gaussian primitives that meet the preset confidence conditions, re-anchoring is performed according to the Gaussian adaptive adjustment relationship: and in accordance with Update the Gaussian direction; where, To update the Gaussian center in the previous world coordinate system; The center of Gauss in the updated world coordinate system; , Each is the first before the update. The rotation matrix and translation vector of the camera pose for each keyframe; This indicates that the Gaussian center in the world coordinate system before the update will be transformed to the camera coordinate system before the update; , These are the updated rotation matrix and translation vector, respectively; The projection function before the update; This is the updated back projection function; The depth prior corresponding to the three-dimensional Gaussian primitive; Update the relative rotation matrix corresponding to the camera pose. and These are the 3D Gaussian orientation matrices before and after the update. The Gaussian center before and after the update both refer to the Gaussian center in the world coordinate system; during projection and back-projection operations, the transformation between the world coordinate system and the camera coordinate system is completed according to the corresponding camera pose.
[0080] To prevent low-confidence Gaussian primitives from directly forming erroneous permanent anchors, the opacity or rendering weight of 3D Gaussian primitives that do not meet the pre-set confidence conditions is reduced, and permanent anchoring is temporarily suspended. Specifically, the rendering contribution can be attenuated based on the anchoring confidence of the corresponding 3D Gaussian primitive, making... ,in, Contribute weights to rendering before decay. Contribute weights to the rendered image after attenuation. The anchoring confidence level obtained in S312 is used; the lower the anchoring confidence level, the smaller the contribution of the corresponding 3D Gaussian primitives in subsequent rendering. After subsequent keyframes provide new multi-view correspondences, the spatial intersection position is recalculated. Once the preset confidence conditions are met, re-anchoring is completed, providing an updated 3D Gaussian map for the S321 back-to-validation rendering.
[0081] S32. Gaussian compaction control of backtesting constraints, including:
[0082] S321. To ensure that the same image region has a directly comparable rendering basis before, after, and in the backtracking state, select the current keyframe and its common keyframe after the hierarchical re-anchoring is completed in S313. To ensure that the error variation between the three renderings can be attributed to the change in projection parameters, freeze the 3D Gaussian map used for verification when performing backtracking verification. Keep the center, scale, orientation, appearance parameters, visibility filtering range, and image exposure state of the 3D Gaussian primitives unchanged. Only call the projection parameters before adjustment, the current segmented consistent projection model, and the restricted backtracking projection parameters corresponding to S221 to perform three renderings, forming the rendering result before correction, the rendering result after correction, and the backtracking verification rendering result in sequence. After completing the backtracking verification, write the re-anchoring result formed in S313 back to the subsequent 3D Gaussian map.
[0083] To consistently measure the change in the position of each pixel, the rendering error relative to the observed image is calculated for each of the three rendering passes. ,in, These represent the pre-correction, post-correction, and relapse states, respectively. and For pixels Prior observation of color and depth, For state Next pixel The rendered colors, For state Next pixel Rendering depth and The weights are for luminance and depth errors. To avoid bias caused by the difference in their dimensions, the weights are determined based on the statistical scale of the two types of errors in the stable projection interval and their contribution to the rendering consistency of the verification frame. This results in three sets of rendering error results with consistent positions, which are then used by S322 for error attribution.
[0084] S322. To distinguish between transient errors caused by changes in the projection model and persistent errors caused by insufficient map representation, a backtracking consistency comparison is performed on the three sets of rendering errors at the same pixel location in S321. For pixels where the error after correction significantly changes compared to before correction, the backtracking recovery degree is calculated. ,in, For pixels The degree of recovery , and These represent the rendering errors before correction, after correction, and in the reverted state, respectively. To prevent tiny positive numbers with a denominator of zero.
[0085] To confirm that the error is indeed controlled by the projection adjustment, when the error change before and after correction exceeds the normal rendering fluctuation and When the regression condition is met, the corresponding error is identified as a projection subordinate error. To avoid misclassifying real missing structures as projection errors, high-error pixels that do not meet the regression condition are further projected to a unified space using camera pose and depth priors, and verified in multiple keyframes from different viewing directions. If the error consistently exceeds the high-error condition and the spatial position remains consistent, it is identified as a region of persistent geometric underexpression. The normal fluctuation range, regression condition, and high-error condition are all obtained from the statistics of video segments after the segmented consistent projection model has stabilized. The number of effective observation keyframes and the minimum difference in viewing direction between keyframes are determined based on the number of observations and the difference in viewpoints required for the same real geometric structure to form a stable multi-view space intersection in video segments where the segmented consistent projection model has stabilized, in order to exclude single-viewpoint occlusion and occasional rendering errors.
[0086] S323. To prevent a single residual judgment from permanently altering the 3D Gaussian map, different Gaussian writing strategies are adopted for the two types of regions identified in S322. For regions with projection subordinate errors, the existing 3D Gaussian primitives are maintained, and only subsequent projection adjustments and re-anchoring are allowed to eliminate errors; no permanent 3D Gaussian primitives are added. For regions with persistent geometric underrepresentation, candidate Gaussian primitives are generated based on the corresponding depth prior and the prior of neighboring 3D points, and are not temporarily incorporated into the permanent 3D Gaussian map. To confirm that the candidate Gaussians correspond to the true geometry rather than incomplete calibration changes, the backtracking verification of S321-S322 is repeated when the effective differential correction is updated again. If the corresponding intrinsic parameters directly reach convergence, multi-view consistency verification is performed using the converged piecewise consistent projection model.
[0087] To quantify the validation results, candidate support is defined. ,in, To gauge the support for candidate Gao Siyuan, The number of visible keyframes that still fall within the persistent geometrically underexpressed region and are spatially consistent after verification is determined. The number of all valid visible keyframes is used. The support determination criteria are obtained by statistically analyzing the candidate support distribution of real newly added Gaussian units and finally withdrawn candidate Gaussian units in the stable mapping segment after subsequent multi-view verification. The boundary value that can distinguish between the two types of candidate Gaussian units is selected as the support determination criterion. Only when a candidate Gaussian meets the condition and still corresponds to a region with persistent geometric underexpression is it written into the 3D Gaussian map; otherwise, the candidate status is withdrawn, thus obtaining a 3D Gaussian map for use in the S331 staged joint optimization.
[0088] S33. The output of the phased joint optimization driven by intrinsic parameter convergence label includes:
[0089] S331. Before releasing the optimization degrees of freedom, first read the trend of the effective differential correction value change in each projection segment. For projection segments where the effective differential correction value still fluctuates significantly, prioritize the execution of the following geometric degree of freedom constraints. To prevent the 3D Gaussian geometric parameters from prematurely absorbing projection errors before the camera intrinsic parameters are stable, based on the intrinsic parameter convergence label generated in S232, divide the keyframes and their corresponding projection segments into non-converged and converged stages, and associate the corresponding 3D Gaussian primitives with the projection segments recorded in S312. For the 3D Gaussian primitives in the projection segments where the intrinsic parameters have not yet converged, fix or limit the update amplitude of the Gaussian center, scale, and direction, and only open the appearance parameters such as color and opacity for optimization, so that the rendered appearance can be gradually restored and the geometric structure does not undergo excessive deformation due to the unstable projection relationship.
[0090] To ensure that the degree of restriction can change continuously with the calibration state, a geometric release coefficient is constructed based on the intrinsic parameter convergence evaluation value of S232. ,in, For the first Geometric release coefficient of each projection segment This is the intrinsic parameter convergence evaluation value of the projection segment, derived from the intrinsic parameter convergence evaluation values of each keyframe within that segment. Obtained by taking the robust median value. and The results are determined by the historical evaluation distributions of the stable calibration section and the obviously non-converged section, respectively, and the calculation results exceeding the range are truncated to the interval [0, 1]. This indicates that the maximum geometric limit is maintained. This indicates that the corresponding geometric degrees of freedom are allowed to be fully released. While the intrinsic parameters have not yet converged, a small geometric release coefficient is used to restrict geometric updates. Once the intrinsic parameters converge, the Gaussian center, scale, and orientation are gradually released, and the joint optimization degrees of freedom for the corresponding keyframe camera pose are simultaneously opened. Through this phased release method, the 3D Gaussian map gradually transitions from prioritizing a stable appearance to allowing joint optimization of Gaussian geometric parameters and camera pose, providing a reliable initial state for S332 global joint optimization.
[0091] S332. To eliminate trajectory drift and local map forgetting caused by local window optimization, after releasing the corresponding optimization degrees of freedom in S331, the camera pose, local projection compensation, and 3D Gaussian map are uniformly incorporated into the global joint optimization, while maintaining the global reference projection model as the common projection reference for each projection segment. The joint optimization objective is expressed as follows: ,in, To stabilize the reprojection error caused by cross-keyframe matching, The reprojection residual is constructed in the same way as described in S212, and is calculated by the selected stable cross-keyframe matching through a segmented consistent projection model. To account for the map errors formed by the observation image, depth prior, and 3D Gaussian rendering results, Consistent with the construction method of the optimization target described in S311, it consists of photometric and geometric errors between the observed image, depth prior, and 3D Gaussian rendering results; The pose closure error between loopback keyframes. ,in, For the set of loopback keyframe pairs, For the relative pose of two keyframes and For the estimated pose of two keyframes, This represents the logarithmic mapping from the relative pose transformation matrix to the corresponding Lie algebra vector, used to represent rotation and translation closure deviations as pose residual vectors that can participate in optimization; To preserve the error of local projection compensation, the local projection compensation amount of each projection segment during the global joint optimization process is used to limit the unconstrained deviation of the local projection compensation amount from the reference local projection compensation amount determined by backtesting S231, which is expressed as follows: ,in, For the first step in the global joint optimization process The current local projection compensation amount for each projection segment. S231 is the reference local projection compensation amount for this projection segment determined based on the continuous difference in the effective differential correction amount. By traversing each projection segment, the retention error allows the confirmed projection differences to be preserved on both sides of the projection system conversion boundary, without requiring the local projection compensation amounts of adjacent projection segments to be continuous with each other. , , and To correspond to the weights and avoid a single error term dominating the optimization, each weight is normalized based on the initial error scale of the system on the stable sequence, and determined by verifying the range in which the trajectory error and rendering error decrease synchronously in the sequence.
[0092] To correct long-sequence trajectory drift, candidate loop closures are screened using the co-visibility of non-adjacent keyframes. Loop closure constraints are established when candidate keyframes have sufficient time intervals and the matched reprojection relationship satisfies spatial consistency conditions, and these constraints are incorporated into camera pose optimization. During the joint solution process, only variables released via S331 are allowed to be updated, while unconstrained propagation of local projection compensation across projection system conversion boundaries is restricted until changes in camera pose, map error reduction, and local projection compensation in adjacent optimization rounds all enter a stable range. This stable range is determined by the natural fluctuation distribution of corresponding quantities in a verification sequence without significant trajectory drift. The final output is the corrected camera trajectory in a unified world coordinate system and a globally consistent 3D scene map.
[0093] Example 2
[0094] Please see the appendix Figure 4 A pre-calibration-free visual SLAM system based on a 3D fundamental model and differentiable joint calibration includes:
[0095] The video input module is used to acquire RGB video streams that have not been pre-calibrated by the camera;
[0096] The keyframe filtering and streaming inference module is used to jointly perform keyframe filtering based on image motion and calibration gain conditions on continuous RGB images, construct local subsequences with common keyframes and input them into the 3D basic model for streaming inference, obtain the depth prior, 3D point prior, initial camera pose and initial camera intrinsic parameters corresponding to each keyframe, and complete the unified coordinate and scale alignment of adjacent local subsequences based on common keyframes to form an aligned geometric prior sequence.
[0097] The differential correction reference set construction module is used to maintain the correspondence between three-dimensional points, apply micro-projection perturbations in opposite directions to the initial camera intrinsic parameters to form a bidirectional projection response sequence, identify the calibrated observable segment set and the projection system conversion boundary, and form the differential correction reference set by aligning the geometric prior sequence, calibrating the observable segment set and the projection system conversion boundary;
[0098] The segmented consistent projection model establishment module is used to establish a global reference projection model with the differential correction reference set as input. After joint adjustment and restricted backtesting, an effective differential correction quantity is formed. According to the projection system conversion boundary, a local projection compensation quantity is established and a segmented consistent projection model is formed. The segmented consistent projection model is used to update the depth prior, 3D point prior and camera pose. Based on the continuous correction state, an intrinsic parameter convergence label is generated to form a differential correction result set.
[0099] The Gaussian mapping module with back-validation constraints is used to initialize 3D Gaussian primitives with a piecewise consistent projection model and differential correction result set as input and perform incremental optimization with sliding keyframe window. It performs hierarchical re-anchoring of 3D Gaussian primitives based on anchoring confidence. It distinguishes between projection subordination error and persistent geometric underexpression region through pre-correction rendering results, post-correction rendering results and back-validation rendering results. It writes the candidate Gaussian primitives with secondary back-validation into the 3D Gaussian map.
[0100] The phased joint optimization output module is used to release the joint optimization degrees of freedom in stages according to the intrinsic parameter convergence label, jointly optimize the camera pose, local projection compensation amount and 3D Gaussian map, and combine closure constraints to correct long sequence trajectory drift, and output the corrected camera trajectory and 3D scene map.
[0101] Example 3
[0102] This embodiment performs camera pose estimation and 3D Gaussian scene reconstruction on monocular RGB video without prior camera calibration parameters. The Replica, TUM RGB-D, and ScanNet indoor datasets are used, and validation is performed using real-world scene videos without provided camera calibration information. The platform is configured with a GeForce RTX 4090 graphics processor. In this embodiment, the optical flow trigger threshold corresponding to the preset motion condition is preferably 4.0 pixels, and the normalized calibration gain threshold corresponding to the preset gain condition is preferably 0.6; the amplitude of the forward and reverse micro-projection perturbation is determined according to the local linear response range described in S121, and an optimal perturbation ratio within this range is selected; the intrinsic parameter convergence evaluation uses the most recent 8 effective correction rounds; and the calibration gain weights are used. and The optimal value is 0.5; the photometric weight in the map optimization objective. The preferred value is 0.8; the equilibrium coefficient in the internal parameter convergence evaluation. and The preferred values are 1.0 and 0.5, respectively; rendering error weights and The preferred values are 1.0 and 0.05, respectively; return ratio The preferred value is 0.8; the preferred optical flow threshold for loop closure detection is 25.0 pixels; the preferred time interval threshold is 20 keyframes; the preferred local subsequence capacity is 50 keyframes; and the preferred Gaussian optimized sliding window length is 10 keyframes; the formula for return recovery... To prevent the denominator from being zero, its value is determined after the photometric error and depth error have been scaled and unified. It should be significantly smaller than the normal rendering error variation in the stable projection segment, serving only a numerical stabilization function. The remaining thresholds and weights are determined according to the statistical calibration method given in the corresponding steps of Example 1. The above values are merely preferred examples and do not constitute a limitation on the scope of protection of this invention.
[0103] Except for the preferred parameter settings mentioned above, the remaining processing steps in this embodiment are executed in accordance with the manner described in S111-S332 of Embodiment 1, and will not be repeated here. The above parameters are used to complete keyframe selection, geometric prior reasoning, differential correction, segmented consistent projection modeling, 3D Gaussian map construction, backtesting, and phased joint optimization of the uncalibrated RGB video stream.
[0104] This embodiment uses absolute trajectory error (ATE RMSE) to evaluate camera tracking accuracy and PSNR, SSIM, and LPIPS to evaluate the rendering quality of the 3D Gaussian map. As shown in Table 1, to evaluate the camera tracking performance of this invention under uncalibrated conditions, a comparative experiment was conducted on the TUM RGB-D dataset between this invention and existing uncalibrated SLAM methods.
[0105] Table 1. Quantitative comparison of tracking accuracy on the TUM RGB-D dataset. Metrics used are ATE RMSE. ↓
[0106]
[0107] The present invention achieves an average tracking error of 3.1 cm on the TUM RGB-D dataset, outperforming all other uncalibrated methods compared. Specifically, compared to VGGT-SLAM, VGGT-SLAM2, and GeoGS-SLAM, the average tracking error of the present invention is reduced by approximately 41.5%, 24.4%, and 11.4%, respectively. Furthermore, the present invention achieves competitive tracking results on multiple test sequences, validating its effectiveness in achieving high-precision camera tracking under uncalibrated conditions.
[0108] As shown in Table 2, to further verify the tracking performance of this invention in complex indoor scenes, experiments were conducted on the ScanNet dataset, and test sequences from multiple different scenarios were selected for evaluation. The tracking accuracy of this invention in different indoor environments was analyzed by comparing it with existing unlabeled SLAM methods.
[0109] Table 2. Quantitative comparison of tracking accuracy on the ScanNet dataset. Metrics used are ATE RMSE. ↓
[0110]
[0111] The average tracking error of this invention on the ScanNet dataset is 8.0 cm. Compared with VGGT-SLAM and GeoGS-SLAM, the average tracking error of this invention is reduced by approximately 57.7% and 80.8%, respectively; it also achieves a certain improvement in accuracy compared with VGGT-SLAM2. Furthermore, this invention achieves low tracking errors on multiple test sequences, including 0059, 0106, 0169, 0181, and 0207, indicating that this invention can adapt to different indoor scenarios and maintain good tracking performance under uncalibrated conditions.
[0112] As shown in Table 3, to further evaluate the camera tracking accuracy of this invention in synthetic indoor scenes, comparative experiments were conducted on the Replica dataset, covering multiple room and office environment sequences. The experiments compared this invention with several existing unlabeled SLAM methods to verify the applicability of the proposed method under different scenes and motion conditions.
[0113] Table 3. Quantitative comparison of tracking accuracy on the Replica dataset. Metrics used are ATE RMSE ↓
[0114]
[0115] The present invention achieves an average tracking error of 0.26 cm on the Replica dataset, outperforming all uncalibrated methods compared in the table. Compared to VGGT-SLAM, VGGT-SLAM2.0, SLAM-Former, and GeoGS-SLAM, the average tracking error of the present invention is reduced by approximately 97.6%, 91.3%, 91.3%, and 89.2%, respectively. Experimental results demonstrate that the present invention effectively improves camera tracking accuracy under uncalibrated conditions, achieving stable and accurate trajectory estimation in multiple synthetic indoor scenes.
[0116] The experimental results above demonstrate that the present invention achieves high camera tracking accuracy on multiple datasets, verifying the effectiveness of the present invention in achieving high-precision visual tracking under uncalibrated conditions, and providing a reliable pose estimation basis for subsequent 3D reconstruction.
[0117] As shown in Table 4, quantitative comparative experiments were conducted on the Replica, TUM RGB-D, and ScanNet datasets to evaluate the method of the present invention in terms of scene reconstruction quality.
[0118] Table 4. Quantitative comparison of rendering quality on different datasets
[0119]
[0120] Experimental results show that the present invention can achieve high-quality scene reconstruction on different datasets, achieving good results in evaluation metrics such as PSNR, SSIM, and LPIPS. Specifically, the PSNR of the present invention reaches 40.64, 26.82, and 30.76 on the three datasets, respectively; the SSIM reaches 0.98, 0.85, and 0.89, respectively; and the LPIPS reaches 0.03, 0.16, and 0.11, respectively. Considering all metrics, the rendering quality of the present invention is superior to existing comparative methods, indicating that the present invention can effectively improve the visual fidelity and structural consistency of the reconstructed scene.
[0121] In the ScanNet-0106 scenario, the relevant experiments completed the online processing of 2324 images in about 240 seconds, and global Gaussian optimization took an additional 210 seconds, indicating that the processing method of using streaming geometric prior inference, local sliding window mapping and subsequent global joint optimization is feasible in practice.
[0122] like Figure 5As shown, the present invention can still achieve high-quality scene rendering without providing camera calibration parameters, accurately restoring the appearance information, texture details and geometric structure in the scene, indicating that the present invention can effectively improve the scene reconstruction quality under uncalibrated conditions.
[0123] Through the above implementation methods, camera intrinsic parameter correction, camera trajectory estimation, and 3D Gaussian scene reconstruction can be completed without providing accurate camera calibration parameters. Furthermore, the erroneous writing of the 3D map structure caused by camera projection changes can be reduced through constrained backtracking verification and candidate Gaussian primitive secondary verification.
[0124] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of the invention is limited to these examples; within the framework of the invention, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity.
[0125] This invention is intended to cover all such substitutions, modifications, and variations that fall within the broad scope of this specification. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A pre-calibration-free visual SLAM method based on a three-dimensional base model and differentiable joint calibration, characterized in that, include: Keyframes from an uncalibrated RGB video stream are input into a 3D base model to obtain and align geometric priors. The observable section and the projection system conversion boundary are identified and calibrated through forward and reverse infinitesimal projection perturbation to form a differential correction reference set; A global reference projection model is established using a differential correction reference set, and the camera pose is jointly optimized. The effective differential correction value is determined through limited feedback verification; Establish local projection compensation quantities to obtain a piecewise consistent projection model and a set of differential correction results with intrinsic parameter convergence labels; A three-dimensional Gaussian map is constructed using a piecewise consistent projection model and a differential correction result set, and then re-anchored according to the anchoring confidence level. Backward validation distinguishes between projection dependency error and persistent geometric underexpression regions and validates candidate Gaussian units; Based on the convergence labels of the intrinsic parameters, the system performs joint optimization in stages, and outputs the corrected camera trajectory and 3D scene map.
2. The pre-calibration-free visual SLAM method based on a three-dimensional basic model and differentiable joint calibration as described in claim 1, characterized in that, The step of inputting keyframes from an unlabeled RGB video stream into a 3D base model to obtain and align geometric priors includes: Calculate the image motion of adjacent images, and evaluate the calibration gain based on the disparity baseline and texture richness of the current image relative to existing keyframes. Images that simultaneously meet preset motion and gain conditions are identified as keyframes; the calibration gain is determined according to the following formula: ,in, To calibrate the gain, This is the disparity baseline characterization quantity after scale unification. For texture richness after scaling, and For the corresponding weights; Local subsequences with common keyframes are constructed based on consecutive keyframes. Once the local subsequence reaches a preset capacity, the historical attention cache is cleared, and the latest keyframe is used as the common keyframe to continue constructing the next local subsequence. Each local subsequence is input into the 3D base model for streaming inference to obtain the depth prior, 3D point prior, initial camera pose and initial camera intrinsic parameters corresponding to each keyframe. Based on common keyframes, the pose and scale relationships between adjacent local subsequences are determined. Coordinate and scale alignment is then performed on each local subsequence to form an aligned geometric prior sequence. Among these, the first... The scaling factor of a local subsequence relative to the previous local subsequence is determined by the following formula: In the formula: This is the optimal scaling factor. and Common keyframes The Middle Each valid correspondence 3D point has a priori 3D points in two adjacent local subsequences.
3. The pre-calibration-free visual SLAM method based on a three-dimensional basic model and differentiable joint calibration as described in claim 2, characterized in that, The observable segment and projection system conversion boundary are identified and calibrated through forward and reverse micro-projection perturbation to form a differential correction reference set, including: While keeping the correspondence between three-dimensional points unchanged, apply small projection perturbations in the forward and reverse directions to the initial camera intrinsic parameters respectively, and form a bidirectional projection response sequence based on the reprojection changes of the same matching spatial point before and after the perturbation. Based on the inverse correspondence degree of the bidirectional projection response sequence, the response differences of spatial points at different depths, and the disparity distribution of keyframes, keyframe segments whose intrinsic parameter changes can be distinguished from changes in pose and depth scale are identified, forming a set of calibrated observable segments; the inverse correspondence degree is determined by the inverse correspondence degree. ,in: For the first The reverse correspondence of each matching spatial point and These represent the projected displacements of the matching spatial point under forward and reverse infinitesimal projection perturbations, respectively. When the scene geometry of adjacent keyframes remains continuous while the bidirectional projection response relationship continues to change, the projection system transformation boundary is determined. A differential correction reference set is formed by aligning the geometric prior sequence, calibrating the observable segment set, and the projection system transformation boundary. The change in bidirectional projection response between adjacent keyframes is determined according to the following formula: ,in, For the first The amount of change in the bidirectional projection response of each keyframe relative to the previous keyframe. The number of spatial points that are effectively matched together in adjacent keyframes. and The first The first keyframe The forward and backward projection responses of a matching spatial point.
4. The pre-calibration-free visual SLAM method based on a three-dimensional basic model and differentiable joint calibration as described in claim 3, characterized in that, The process of establishing a global reference projection model using a differential correction reference set and jointly optimizing the camera pose includes: Within the calibrated observable section, the initial camera intrinsic parameters output by the 3D basic model are used as the initial values of the projection parameters to establish a global reference projection model suitable for joint correction of each keyframe. Unstable cross-keyframe matches are filtered out based on matching confidence and cross-iteration residual consistency. The global baseline projection model and camera pose are jointly adjusted based on the retained matching relationships and depth reprojection relationships. The joint adjustment establishes a weighted depth reprojection optimization objective according to the following formula: ,in, These are the parameters of the global intrinsic parameters of the global reference projection model. This represents the relative pose between two keyframes. and For the first A stable match is found between the pixel positions in the two keyframes. For the corresponding depth prior, For the first A stable matching normalized weight.
5. The pre-calibration-free visual SLAM method based on a three-dimensional basic model and differentiable joint calibration as described in claim 4, characterized in that, The effective differential correction value formed through restricted feedback verification includes: After each joint adjustment of the global reference projection model and camera pose, a restricted back projection is performed in the opposite direction to the current projection adjustment, and the same set of matching spatial points before, after, and after the back projection are compared accordingly; The wheel-limited return distance is determined according to the following formula: ,in, For the first Limited return volume of the wheel For the first Rotate through the adjustment amount of the projection parameters of the global reference projection model. For the first The cycle of return ratio; An effective differential correction is formed when the reprojection residual decreases and the retrospective projection can return to the pre-adjustment response side along the bidirectional projection response sequence; if the retrospective projection does not hold, the corresponding change is determined as a coupled change and the corresponding projection parameter adjustment is restricted and written into the global reference projection model; the retrospective projection is determined by the retrospective consistency. ,in, For the first The consistency of the return values of each matching spatial point To adjust the projected position, To return to the projected position.
6. The pre-calibration-free visual SLAM method based on a three-dimensional basic model and differentiable joint calibration as described in claim 5, characterized in that, The process of establishing local projection compensation quantities to obtain a piecewise consistent projection model and a set of differential correction results carrying intrinsic parameter convergence labels includes: For keyframe segments where both sides of the projection system conversion boundary have passed back-verification but the effective differential correction amount continues to differ, a local projection compensation amount is established based on this difference, and a piecewise consistent projection model is formed with the global reference projection model; The local projection compensation amount and segmented projection parameters for each projection segment are determined according to the following formulas: , ,in, For the first Local projection compensation amount for each projection segment For this section Effective differential correction value of the wheel, This represents the effective differential correction value corresponding to the globally stable segment. This indicates that a robust median value is taken for the continuous effective differential correction. These are global reference projection parameters. For the first Segmented projection parameters for each projection segment; The depth prior is re-projected using a piecewise consistent projection model, and the 3D point prior and camera pose are updated. Intrinsic parameter convergence labels are generated based on the effective differential correction amount and reprojection residual changes in consecutive correction rounds, forming a differential correction result set. The degree of intrinsic parameter convergence is determined by the intrinsic parameter convergence evaluation value. ,in, For the first The intrinsic parameter convergence evaluation value of each keyframe. To ensure continuous and effective correction cycles, For the first Effective differential correction value of the wheel, For the corresponding reprojection residual, and This is the balance coefficient.
7. The pre-calibration-free visual SLAM method based on a three-dimensional basic model and differentiable joint calibration as described in claim 6, characterized in that, The construction of a 3D Gaussian map using a piecewise consistent projection model and a differential correction result set, followed by graded re-anchoring based on anchoring confidence, includes: Under the segmented consistent projection model, the three-dimensional Gaussian primitives are initialized based on the updated depth prior, 3D point prior and camera pose, and incremental optimization is performed by using a sliding keyframe window in combination with photometric error and depth geometric error. Record the projection segment corresponding to each 3D Gaussian primitive when it is established, and determine the anchoring confidence of each 3D Gaussian primitive based on the spatial consistency of its corresponding depth prior across multiple keyframes; the anchoring discretization and anchoring confidence of the g-th 3D Gaussian primitive are determined according to the following formulas: , ,in, For the first Anchored discrete quantities of a three-dimensional Gaussian element. To effectively increase the number of shared keyframes, For the first The spatial location recovered from each keyframe For its stable center, This represents the high quantile statistical value of the effective three-dimensional Gaussian element anchoring discrete quantity within the current projection segment. To anchor the confidence level; When the effective differential correction or local projection compensation is updated, 3D Gaussian primitives that meet the preset confidence conditions are re-anchored and their Gaussian orientations are updated; for 3D Gaussian primitives that do not meet the preset confidence conditions, their rendering contribution is reduced and permanent re-anchoring is temporarily suspended, and the anchoring position is re-determined using subsequent multi-view calculations; 3D Gaussian primitives that meet the preset confidence conditions are re-anchored and their Gaussian orientations are updated according to the following formula: , ,in, and These are the Gaussian centers of the world coordinate system before and after the update. and To update the rotation matrix and translation vector of the previous camera pose, and The updated rotation matrix and translation vector are... For the projection function before the update, For the updated back projection function, For the corresponding depth prior, For relative rotation matrices, and These are the three-dimensional Gaussian direction matrices before and after the update, respectively.
8. The pre-calibration-free visual SLAM method based on a three-dimensional basic model and differentiable joint calibration as described in claim 7, characterized in that, The process of distinguishing between projection dependency errors and persistent geometrically underexpressed regions through backtesting and validating candidate Gaussian units includes: Rendering is performed on the 3D Gaussian map before projection adjustment, after projection adjustment, and under restricted return state, respectively, to form the rendering result before correction, the rendering result after correction, and the return verification rendering result. Errors generated during projection adjustment and synchronously reflected in the back-review verification are defined as projection dependency errors; errors that do not disappear with projection back-review but maintain spatial correspondence in keyframes across different viewing directions are defined as persistent geometric underexpression regions; the back-review verification is quantified using back-recovery degree. ,in, For pixels The degree of recovery , and These represent the rendering errors before correction, after correction, and in the reverted state, respectively. To prevent tiny positive numbers with a denominator of zero; For regions with projection dependency errors, no permanent Gaussian primitives are added. For regions with persistent geometric underexpression, candidate Gaussian primitives are established, and secondary validation is performed when the effective differential correction is updated again or the corresponding intrinsic parameters converge. Candidate Gaussian primitives that still correspond to regions with persistent geometric underexpression after validation are written into the 3D Gaussian map. The secondary validation of candidate Gaussian primitives is quantified by candidate support. ,in, To gauge the support for candidate Gao Siyuan, This represents the number of visible keyframes that, after secondary validation, still fall within a region of persistent geometric underexpression and have the same spatial location. This represents the total number of valid visible keyframes for the candidate Gaussian element.
9. A pre-calibration-free visual SLAM method based on a three-dimensional basic model and differentiable joint calibration as described in claim 8, characterized in that, The phased joint optimization based on intrinsic parameter convergence labels outputs the corrected camera trajectory and 3D scene map, including: Based on the intrinsic parameter convergence label, the geometric degrees of freedom are restricted for the 3D Gaussian elements corresponding to the non-converged projection segments of the intrinsic parameters, and the appearance representation is optimized preferentially; the joint optimization degrees of freedom of geometric parameters and camera pose are released for the 3D Gaussian elements corresponding to the converged projection segments of the intrinsic parameters; The geometric release coefficient of each projection segment is determined according to the following formula: ,in, For the first Geometric release coefficient of each projection segment This is the intrinsic parameter convergence evaluation value for this projection segment. and The convergence evaluation values of the historical intrinsic parameters in the stable calibration projection section and the obviously non-converging projection section are determined respectively. The camera pose, local projection compensation, and 3D Gaussian map are jointly optimized, and long-sequence trajectory drift is corrected by incorporating loop closure constraints. The corrected camera trajectory and 3D scene map are then output. The joint optimization uses the following formula as the optimization objective: ,in, To stabilize the reprojection error caused by cross-keyframe matching, To account for the map errors formed by the observation image, depth prior, and 3D Gaussian rendering results, For loop pose closure error, To preserve the error in local projection compensation, , , and For the corresponding weights; the local projection compensation preservation error is determined according to the following formula: ,in, For the first step in the global joint optimization process The current local projection compensation amount for each projection segment. This is the reference local projection compensation amount for this projection section.
10. A pre-calibration-free visual SLAM system based on a three-dimensional basic model and differentiable joint calibration, characterized in that, To implement the pre-calibration-free visual SLAM method based on a three-dimensional base model and differentiable joint calibration as described in any one of claims 1-9, comprising: The video input module is used to acquire RGB video streams that have not been pre-calibrated by the camera; The keyframe filtering and streaming inference module is used to filter keyframes and construct local subsequences with common keyframes. It obtains geometric priors, including initial camera intrinsics, through the 3D base model and forms an aligned geometric prior sequence after pose and scale alignment. The differential correction reference set construction module is used to apply forward and reverse infinitesimal projection perturbations to the initial camera intrinsic parameters, form a bidirectional projection response sequence, identify and calibrate the observable segment set and projection system conversion boundary, and form a differential correction reference set. The piecewise consistent projection model establishment module is used to establish a global reference projection model based on the differential correction reference set, form an effective differential correction quantity through joint adjustment and restricted backtesting, establish a local projection compensation quantity, and form a piecewise consistent projection model and a differential correction result set carrying intrinsic parameter convergence labels. The Gaussian mapping module with backtesting constraints is used to construct a 3D Gaussian map based on the piecewise consistent projection model and the differential correction result set, and to re-anchor according to the anchoring confidence level. It also identifies persistent geometrically underexpressed regions and validation candidate Gaussian units through backtesting. The phased joint optimization output module is used to adjust the optimization degrees of freedom of the 3D Gaussian elements and camera pose in stages according to the intrinsic parameter convergence label, jointly optimize the camera pose, local projection compensation amount and 3D Gaussian map, and output the camera trajectory and 3D scene map in combination with closure constraints.
