Floor plane graph sensing camera attitude refinement method and system

The floor plan-aware camera posture refinement method solves the problem of inaccurate camera posture information in large-scene indoor 3D scanning, improves scanning accuracy and reconstruction quality, and ensures flat floors and straight walls.

CN118765405APending Publication Date: 2024-10-11SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380023823.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-05-27
Filing Date
2023-02-22
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

In indoor 3D scanning of large scenes, it is difficult to obtain accurate camera posture information with existing technology, resulting in bifurcated walls and floors in the scan results, damage to geometric shapes, and key point matching errors in the positioning algorithm.

Method used

By using a floor plan-aware camera pose refinement method, receiving floor plans and imaging scans of the 3D structure, identifying gravity directions, filtering points with statistical outliers, extracting structural elements, and by optimizing cost functions for geometry terms, floor terms, and wall terms to refine the camera pose.

Benefits of technology

Improved accuracy of 3D scene scanning, ensuring flat floors and straight walls, reducing scanning errors and noise, and improving reconstruction quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118765405A_ABST
    Figure CN118765405A_ABST
Patent Text Reader

Abstract

The invention relates to the field of computer vision. There is provided a method for floor plan aware camera pose refinement, the method comprising: receiving a floor plan of a three-dimensional structure of a scene, the floor plan reflecting a previous structure of the scene; receiving one or more imaging scans of the scene; identifying a gravity direction of the one or more imaging scans; constructing a boundary scan by filtering points in the one or more imaging scans whose horizontal projections are statistical anomalies; aligning the boundary scan with the floor plan; extracting structural elements in the one or more imaging scans; and optimizing a three-item cost function including a geometric item, a floor item, and a wall item by pulling points in the one or more imaging scans corresponding to the structural elements to corresponding points in the floor plan.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates generally to the field of computer vision, and more specifically to photogrammetry applications, object localization systems, mobile 3D scanning systems, and static 3D scanning systems for various indoor environments (apartments, offices, stores, etc.). Background Art

[0002] With the rapid development of computer vision technology today, computers have become able to automatically perform various tasks such as three-dimensional (3D) modeling and / or mapping of spaces (such as rooms) containing real-world objects, visual localization of objects in 3D scenes, visual analysis of scene content, etc.

[0003] Many such computer vision applications require the capture of 3D scans of different indoor scenes, including large scenes containing more than one room and many walls and partitions. Due to the limitation of the depth range and the presence of overlaps caused by occupancy and walls, such scenes cannot be captured at once. Therefore, such scenes must be captured by multiple scans. They can be obtained by continuously moving a sensor with a certain camera pose estimator inside (e.g., any SLAM model or Google ARCore) or by recording several local scans. In order to obtain accurate information about the position of objects in such 3D scenes, it is very important to know the accurate camera pose (i.e., position and orientation) information of each given scan in a sequence of one or more scans obtained using such one or more cameras. Therefore, it is necessary to refine (specify) the camera pose information and / or refine (estimate) the camera trajectory, particularly in such 3D indoor scene scan generation scenarios.

[0004] The related art provides a variety of methods for scan registration and camera trajectory estimation. However, in the case of large scenes, all of these methods are prone to errors and do not provide perfect scans. Small pose errors accumulate during scanning, resulting in bifurcations of walls and floors (the same wall and floor do not overlap after loop closure) and corruption of the geometry. In addition, similar patterns and the absence of "salient" points (such as in the case of large walls) also lead to errors in keypoint matching in the localization algorithm and scan corruption.

[0005] This scan needs to be optimized for further use. Most scenes that have to be modeled usually have a floor plan that was constructed at the time of construction. The floor plan usually contains information about the geometry and main structural features of the scene (walls, dividers, doors, etc.), but not about the interior contents (e.g. furniture), and can be used as ground truth for model improvement. Aligning a scan that reflects the current state of the scene with the floor plan can not only help improve the scan, but also get a complete solution of the scene.

[0006] One of the approaches to solve the above mentioned problem is based on bundle adjustment (BA), which refers to a geometric bundle of rays originating from each 3D feature and converging on the optical center of each camera, which is optimally adjusted according to an optimality criterion involving the corresponding image projections of all points.

[0007] Having an original posed RGB-D sequence captured by at least one sensor and a ground truth floor plan with the correct geometry, it may be necessary to obtain a new set of camera poses such that a newly scanned wall structure obtained using the new set of camera poses is as close as possible to the ground truth floor plan.

[0008] The 3D reconstruction pipeline based on the RGB-D sequence captured by the sensor usually consists of a tracking module and a global beam adjustment (BA) optimization, which is applied to the RGB-D sequence and the global beam adjustment (BA) optimization obtains the initial pose RGB-D sequence and corrects the pose to make the sequence more consistent. In other words, the tracking module is configured for preliminary camera pose (position and orientation) estimation. The camera with which positioning is performed is also called a tracking camera. BA optimization is performed after the preliminary estimation.

[0009] However, while aiming for consistency, BA solves the loop closure problem but does not ensure that the geometry of all objects and scanned parts is perfect. Planes may still become curved, corners become rounded, and the entire scan may be distorted.

[0010] BA aims to refine the camera pose and 3D points to improve the consistency between the 3D points and their 2D projections onto the image of the scene to be modeled. In the standard BA formulation, the cost function is based on the reprojection error. However, it is not universally defined, so it exhibits singularities, which makes the optimization process sensitive to initial conditions and outliers. In particular, BA formulations, such as those described in Mauricio Hess-Flores, Daniel Knoblauch, Mark Duchaineau, Kenneth Joy, and Falko Kuester, "Ray Divergence-Based Beam Adjustment Conditions for Multiview Stereo," pp. 153-164, November 2011; Dale Schinstock, Chris Lewis, and Craig Buckley, "Alternative Cost Functions for Bundle Adjustment for UAV Aerial Photography," April 2009, the cost function is based on the minimum distance between the rays of two cameras pointing to the same feature. In other related technical sources, depth can be incorporated into the BA objective function (see, for example, Kathia Melbouci, Sylvie Naudet Collette, Vincent Gay-Bellile, Omar Ait-Aider, Mathieu Carrier, and Michel Dhome, "Bundle Adjustment for SLAM Revisited with RGBD Sensors," in 2015 14th IAPR International Conference on Machine Vision Applications (MVA), pp. 166-169, IEEE, 2015; Sebastian A Scherer, Daniel Dube, and Andreas Zell, "Using Depth in Visual Simultaneous Localization and Mapping," in 2012 IEEE International Conference on Robotics and Automation, pp. 5216-5221, IEEE, 2012; Sebastian A Scherer and Andreas Zell, "Efficient Onboard RGBD-SLAM for Autonomous Micro Aerial Vehicles," in 2013 IEEE / RSJ International Conference on Intelligent Robots and Systems, pp. 1062-1068, IEEE, 2013).

[0011] For more complex scene models including point semantic labels, geometric primitives, or objects, there may be additional connections that reflect the scene structure. In some cases, additional constraints should be considered during the optimization process, such as, for example, the coplanarity of certain points. One of the biggest advantages of BA is its ability to adapt to almost arbitrary scenes.

[0012] To enforce structural consistency in 3D space, a cost function representing the 3D difference of point estimates from two views is employed. Specifically, the distance between estimates of the same 3D point transformed into a common coordinate system is penalized. This loss can be simply generalized to multiple views. Incorporating depth data increases the robustness of BA and allows handling difficult configurations without incurring the risks caused by the reprojection function.

[0013] Various ways of defining geometric inconsistency have been introduced in RGB-D simultaneous localization and mapping (SLAM) methods. Bundle adjustment direct (BAD) SLAM (see, e.g., Thomas Schops, Torsten Sattler, and Marc Pollefeys, "Bad Slam: Bundle Adjusted Direct RGB-D SLAM," Proceedings of the IEEE / CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2019) is the first dense BA method for RGB-D SLAM that combines depth map-based geometric constraints and photometric constraints within the cost function. In BAD SLAM, optimization is applied to scans represented in the form of 3D disks of facet orientations provided with scalar visual descriptors; the geometric term penalizes the angle between the facet normal and the facet normal transformed to camera coordinates from different frames. Consistent Planar Model Alignment (CPA)-SLAM (see, e.g., Lingni Ma, Christian Kerl, Jorg Stuckler, and Daniel Cremers, "CPA-SLAM: Consistent Planar Model Alignment for Direct RGB-D SLAM," 2016 IEEE International Conference on Robotics and Automation (ICRA), pp. 1285-1291, IEEE, 2016) represents the use of scanning of a global planar model and uses the plane for tracking and global graph optimization; similar to surfels, the angles between plane normals are minimized. PL-GM (see, e.g., Chenyang Zhang, "Pl-gm: RGB-D SLAM with Novel 2D and 3D Geometric Constrained Models of Point and Line Features," IEEE Access, 9: 9958-9971, 2021) incorporates the absolute depth error into the cost function. KDP-SLAM (see, e.g., Ming Hsiao, Eric Westman, Guofeng Zhang, and Michael Kaess, “Keyframe-based dense planar SLAM,” in 2017 IEEE International Conference on Robotics and Automation (ICRA), pp. 5110-5117, IEEE, 2017) uses an iterative projective plane method to calculate the geometric error.

[0014] Other related art approaches specifically adopt formalizing geometric inconsistency in terms of camera ray inconsistency. For example, differentiable ray consistency (DRC, see, e.g., Shubham Tulsiani, Tinghui Zhou, Alexei A Efros, and Jitendra Malik, "Multi-view Supervision for Single-view Reconstruction via Differentiable Ray Consistency," Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2626-2634, 2017) can be used as an objective function when performing single-view reconstruction.

[0015] SLAM systems exploit semantic information in various ways: from penalizing mismatched semantic labels in point reprojections to more creative object-based approaches. For example, Frost et al. (see Duncan P Frost, Olaf Kahler, and David W Murray, "Object-aware bundle adjustment for correcting monocular scale drift," 2016 IEEE International Conference on Robotics and Automation (ICRA), pp. 4770-4776, IEEE, 2016) added an additional term based on the size of the detected object to the BA cost function and demonstrated that it prevents scale drift on long outdoor trajectories. Galvez-Lopez et al. (see Dorian Galvez-Lopez, Marta Salas, Juan D Tardos, and JMM Montiel, "Real-time monocular object slam," Robotics and Autonomous Systems, 75: 435-449, 2016) collected an object database and used object 3D models to estimate the scale of the environment. Atanasov et al. (see Pappas, “A Unified View of Geometry, Semantics, and Data Association in SLAM,” IJCAI, pp. 5204–5208, 2018) established probabilistic associations between objects and incorporated them into the optimization process. Nicholson et al. (see Lachlan Nicholson, Michael Milford, and Niko Siinderhauf, “Quadric-SLAM: Dual Quadric Surfaces as Landmarks in Object-Oriented SLAM for Object Detection,” IEEE Robotics and Automation Letters, 4(1): 1–8, 2018) used dual quadric surfaces to capture the shape and pose of objects.

[0016] Howard et al. (see Henry Howard-Jenkins, Jose-Raul Ruiz-Sarmiento, and Victor Adrian Prisacariu, "Lalaloc: Latent layout localization in dynamic, unvisited environments", Proceedings of the IEEE / CVF International Conference on Computer Vision, pp. 10107-10116, 2021) use existing 3D models based on floor plans for indoor positioning. For each query image, its convolutional features are compared with layout features of the 3D model rendered from different positions, and the nearest pose in the grid is iteratively refined.

[0017] Wijmans et al. (see, Erik Wijmans and Yasutaka Furukawa, "Architectural-Scale Panoramic RGBD Alignment Using 2D Floor Plans", Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 308-316, 2017) use floor plans and scan alignment of RGB-D panoramas of a given large indoor scene. The initial size of the scan is manually selected, after which the alignment is estimated as a scan transform in a superposition of four rotations (0, 90, 180, 270) and a 2D translation.

[0018] The latter related art may be considered the closest analog to the present disclosure. Summary of the invention

[0019] Solutions to the Problem

[0020] This section, which discloses various aspects of the claimed invention, is intended to provide a brief overview of the claimed subject matter and its embodiments. The following provides detailed characteristics of the combination of technical means and methods for achieving the features of the claimed invention. Figure 1 The specific embodiments provided herein should not be considered to limit the scope of the claimed invention. The legal scope of protection for the claimed invention is limited only by the appended claims.

[0021] The present disclosure is generally directed to creating 3D scene models in such technical fields as photogrammetry, object localization systems, mobile and static 3D scanning systems for various indoor environments (apartments, offices, stores, etc.).

[0022] The technical problem to be solved by the present invention is to optimize (refine) the camera pose in a 3D scene scanned by at least one camera.

[0023] The object of the present disclosure is to provide a method and system for floor plan-aware camera pose refinement.

[0024] The technical result achieved by using the claimed invention consists in improving the accuracy of at least one scan of a 3D scene using an automatically obtained complete solution of the scene.

[0025] In a first aspect, the above-mentioned object is achieved by a method for floor plan-aware camera pose refinement, the method comprising: receiving a floor plan of a three-dimensional (3D) structure of a scene, the floor plan reflecting a prior structure of the scene; receiving one or more imaging scans of the scene; identifying a gravity direction of the one or more imaging scans; generating a boundary scan by filtering points whose horizontal projections in the one or more imaging scans are statistical outliers; aligning the boundary scan with the floor plan; extracting structural elements in the one or more imaging scans; and optimizing a three-term cost function including a geometric term, a floor term, and a wall term by pulling points in the one or more imaging scans corresponding to the structural elements to corresponding points in the floor plan.

[0026] The three-term cost function is formulated as:

[0027] L=L geom Ten Lambda floor L floor +λ wallls L walls

[0028] Where L geom is a geometric term, L floor is the floor term, and L walls is the wall term, λ floor and λ wallsare weight coefficients configured to make the contributions of all terms of the three cost functions equal. The floor plan is a 3D floor plan obtained from a set of 3D points generated based on a vector map with walls depicted as segments. The one or more imaging scans of the scene are one or more RGB-D scans with poses including one or more RGB image frames, depth data, and camera pose information. In one or more non-limiting embodiments, a floor plan may be represented by a set of planes that approximate walls within a 3D scene, wherein pulling points in one or more imaging scans to corresponding points in the floor plan may include: pulling the points to the nearest floor plan plane by finding the nearest floor plan point for each point and estimating the distance to the corresponding wall plane; in one or more non-limiting embodiments, pulling points in one or more imaging scans to corresponding points in the floor plan may include: clustering multiple points into one or more clusters of points based on the normals of the points; fitting the vertical wall planes of the one or more clusters of points by defining one or more vertical wall planes so that the deviation of the points in the one or more clusters from the given plane is minimized; matching the wall planes with the corresponding planar wall planes; for each pair of given point clusters and corresponding vertical wall planes, calculating the point-plane distance; and obtaining the wall term L by summing the point-plane distances. walls Aligning the boundary scan with the floor plan and optimizing the three cost functions may be alternated in an iterative manner.

[0029] In a second aspect, the above-mentioned purpose is achieved by a system for floor plan-aware camera pose refinement, the system comprising: a memory; and at least one processor connected to the memory, the at least one processor being configured under the control of instructions retrieved from the memory to: receive a floor plan of a three-dimensional (3D) structure of a scene, the floor plan reflecting a previous structure of the scene; receive one or more imaging scans of the scene; identify the gravity direction of the one or more imaging scans; generate a boundary scan by filtering points whose horizontal projections in the one or more imaging scans are statistical outliers; align the boundary scan with the floor plan; extract structural elements in the one or more imaging scans; and optimize a three-term cost function including a geometric term, a floor term, and a wall term by pulling points corresponding to the structural elements in the one or more imaging scans to corresponding points in the floor plan.

[0030] In a third aspect, the above object is achieved by a computer readable medium having computer program code stored thereon, which, when executed by at least one processor, causes the at least one processor to perform the method according to the above first aspect.

[0031] It will be clear to those skilled in the art that the inventive concept is not limited to the aspects described above, and that the present invention may take the form of other subject matters, such as devices, computer programs or computer program products. Additional features that may characterize specific embodiments of the present invention will be apparent to those skilled in the art from the detailed description of the embodiments provided below. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The accompanying drawings are provided in this document to facilitate understanding of the nature of the present disclosure. The accompanying drawings are schematic and not drawn to scale. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of the present disclosure.

[0033] Figure 1 An exemplary structure of a general pipeline according to an embodiment of the present disclosure is schematically shown.

[0034] Figure 2a An exemplary filter scan is depicted.

[0035] Figure 2b The alignment of the scan to the floor plan point cloud is shown.

[0036] Figure 3 An exemplary embodiment of floor and wall point cloud construction is shown.

[0037] Figure 4 An exemplary SMapper scan optimization is shown.

[0038] Figure 5 An exemplary Redwood scan optimization is shown.

[0039] Figure 6 An exemplary Smapper scan optimization is shown.

[0040] Figure 7 An exemplary SMapper scan optimization is shown.

[0041] Figure 8 Visualization of the NSD metric for the wall point cloud W before and after camera pose refinement is provided.

[0042] Fig. 9 A flowchart of a floor plan-aware camera pose refinement method according to an embodiment of the present disclosure is shown.

[0043] Fig.10 An example computer system is shown. DETAILED DESCRIPTION

[0044] The exemplary embodiments of the present disclosure are described in detail below. The exemplary embodiments are shown in the accompanying drawings, in which the same or similar reference numerals may represent the same or similar elements, or elements having the same or similar functions. The exemplary embodiments described with reference to the accompanying drawings are illustrative and are only used to explain the present disclosure, and should not be regarded as any limitation thereto.

[0045] Embodiments of the present disclosure propose a novel camera pose refinement method that extends the concept of bundle adjustment (or BA for short). Bundle adjustment is generally known as the simultaneous refinement of 3D coordinates describing scene geometry, parameters of relative motion, and optical properties of a camera used to acquire an image of the 3D scene, given a set of images depicting multiple 3D points from different viewpoints. Bundle adjustment refers to a bundle of geometric rays originating from each 3D feature and converging on the optical center of each camera, which are optimally adjusted according to an optimality criterion involving the corresponding image projections of all points.

[0046] Embodiments of the present disclosure receive a pose RGB-D frame and update the camera pose according to a previous structure of an environment provided in the form of a floor plan. Each RGB-D frame is a data portion consisting of an RGB image and a corresponding depth image, which originates from a camera, and its pose information will be refined. In photogrammetry and computer vision applications, the pose of an object (particularly a camera) is generally understood as a combination of position and orientation. In this context, a floor plan can be considered to be a data portion of a graphical representation of the structure of a given 3D scene in a view observed from above, which shows the relationship between 3D scene parts (such as rooms, spaces, partitions (such as, for example, walls) and other physical features at one level of the structure of the 3D scene. In the context of an indoor 3D scene, such as within a room, as a non-limiting example, the base level of the structure of the 3D scene can be the floor level.

[0047] The RGB-D frames in this context are obtained using an RGB-D camera, which may also be generally referred to as a rangefinder camera, which is a sensor device for producing a "range image". Rangefinder cameras may operate according to a variety of different technologies. As non-limiting examples, these may be, in particular, time-of-flight (ToF) cameras (e.g., such as provided in smartphones) or laser sensors (e.g., lidar). Other types of rangefinder cameras suitable for the present disclosure will also be apparent to those skilled in the art, and the present disclosure is not limited to any particular rangefinder camera type or technology.

[0048] Aligning a scan that reflects the current state of the scene with the floor plan can help not only improve the scan but also get a complete plan of the scene.

[0049] The novel optimization algorithm based on the embodiments of the present disclosure extends the traditional BA by exploiting prior knowledge about the scene structure. First, if it is known that the scene being reconstructed is an indoor house, the floor surface should be flat and close to a certain plane. Second, some walls should also be flat and should be consistent with the walls on the floor plan. These considerations usually result in additional costs, which are added to the optimization problem during the 3D scan refinement process. In addition to the BA loss, the 3D scene floor and walls are extracted, and these structural elements are pulled to the corresponding elements on the floor plan.

[0050] Figure 1 An exemplary structure of a general pipeline according to an embodiment of the present disclosure is schematically shown.

[0051] In the context of this disclosure, a floor plan (such as Figure 1 The floor plan 300 shown in FIG. 3 may be assumed to be a vector diagram with walls depicted as segments. For subsequent optimization, a 3D floor plan is generated based on this vector diagram. For a 2D floor plan segment, the coordinates of its endpoints (e.g., wall endpoints, such as the corners of a room) may be considered, and for each endpoint, two 3D points may be generated by adding a third coordinate corresponding to the height and having a minimum and maximum value equal to the floor and ceiling heights (minimum y and maximum y, respectively). min and the maximum value y max ). This results in 2 3D points per corner and 4 points per segment (2 points at each of its ends). The created rectangle (consisting of 2 pairs of points: two points at each segment endpoint) can be approximately depicted as the 3D location of the walls of the floor plan segment. Subsequently, points can be uniformly sampled (randomly selected within the created rectangle) in order to create the 3D wall surface corresponding to the segment. By applying this process to each floor plan segment, a 3D floor plan can be obtained from the resulting set of 3D points.

[0052] Embodiments of the present disclosure relate to computer-implemented methods and corresponding systems for floor plan perception camera pose refinement, which may be implemented using multiple modules. Those skilled in the art will appreciate that these modules may be implemented by software and / or hardware in different specific implementations without limiting the present disclosure to any particular selection of software and / or hardware devices for implementing the modules. Where applicable, the modules may exist in the form of one or more programs, program modules, one or more processors programmed to perform corresponding functions, ASICs, integrated circuits, microchips, FPGAs. As those skilled in the art will appreciate, one or more modules may be implemented as a neural network.

[0053] Figure 1An example of a general pipeline according to the present disclosure is shown in FIG. The pipeline may take a pose RGB-D scan 100 and a floor plan 300 as input data. The pose RGB-D scan 100 may include one or more RGB images 101 and one or more depth images 102. These data are input into the tracker module 110 to be processed and provide an input camera pose 103. The latter may be input into the floor and wall segmentation module 130 for processing to produce one of the three cost function terms. The scan-to-plan alignment module 140 may receive the input camera pose 103 and the floor plan 300 and perform alignment of these data to produce another of the three cost function terms. The global bundle adjustment module 150 may also receive the input camera pose 103 as input. As part of the global bundle adjustment module 150, an additional plane-based cost module 160 may be employed, which may receive the above-mentioned cost function terms from the floor and wall segmentation module 130 and the scan-to-plan alignment module 140 as well as the floor plan 300 as input. The additional plane-based cost module 160 may perform optimization of the three cost functions, which results in an optimized camera pose 200 (which may also be referred to as a refined camera pose).

[0054] In order to compute the cost function to be minimized as part of the optimization, several auxiliary steps should be performed: namely, scan-to-floorplan alignment and segmentation of structural elements of the scene.

[0055] Fig. 9 A flow chart of a method 900 for floor plan-aware camera pose refinement is shown.

[0056] At step 910, a floor plan of a three-dimensional (3D) structure of a scene reflecting a previous structure of the scene is received. According to various non-limiting embodiments of the invention, the floor plan is a 3D floor plan obtained from a set of 3D points generated based on a vector diagram with walls depicted as segments, or represented by a set of planes approximating walls within the 3D scene.

[0057] At step 920, one or more imaging scans of a scene are received. The one or more imaging scans of the scene may be obtained by various means, including but not limited to, for example, by a camera, a LIDAR sensor, or any other suitable means.

[0058] At step 930, a gravity direction of one or more imaging scans is identified.

[0059] At step 940, a boundary scan is generated by filtering points in one or more imaging scans whose horizontal projections are statistical outliers.

[0060] At step 950, the boundary scan is aligned with the floor plan.

[0061] At step 960, structural elements in one or more imaging scans are extracted.

[0062] At step 970, a three-term cost function including a geometric term, a floor term, and a wall term may be optimized by pulling points corresponding to structural elements in one or more imaging scans to corresponding points in the floor plan. The three-term cost function may be formulated as:

[0063] L=L geom +λ floor L floor +λ wallls L walls

[0064] Where L geom It can be a geometric term, L floor Can be a base plate item, and L walls According to an embodiment of the present disclosure, pulling points in one or more imaging scans to corresponding points in a floor plan may include: pulling the points to the nearest floor plan plane by finding the nearest floor plan point for each of the points and estimating the distance to the corresponding wall plane; and averaging the distances of the multiple points to obtain the wall item L. walls .

[0065] According to an embodiment of the present disclosure, pulling points in one or more imaging scans to corresponding points in a floor plan may include: clustering a plurality of the points into one or more clusters of points according to their normals; fitting the vertical wall planes of the one or more clusters of points by defining one or more vertical wall planes so that the deviations of the points in the one or more clusters from a given plane are minimized; matching the wall planes with the corresponding planar layout wall planes, assuming that the given wall planes and the given floor plan wall planes correspond to each other if they are closest to each other and parallel; calculating the point-plane distance for each pair of a given point cluster and a corresponding vertical wall plane; and summing the point-plane distances to obtain a wall term L walls .

[0066] According to an embodiment of the present disclosure, steps 950 and 970 may be alternated in an iterative manner.

[0067] The key steps of the method of the present invention will be discussed in further detail. However, it should be noted that the present disclosure is not limited by the exemplary details and specific examples described below, but should only be limited by the appended claims, and all possible equivalents will be obvious to those skilled in the art in the context of the present disclosure.

[0068] Scan to Plan Alignment

[0069] As part of its processing, the scan-to-plan-view alignment module 140 can operate to find the direction of gravity. When processing any given pose RGB-D scan 100, one should first ensure that the y-axis is pointing upward and the floor surface is horizontal. If inertial measurement unit (IMU) measurements are available, the direction of gravity (vertical) can be correctly defined. In any other case, the scan normal can be used to estimate the direction of gravity. Specifically, according to an embodiment of the present disclosure, as part of its processing, the scan-to-plan-view alignment module 140 can project the scan normal onto a sphere. The most frequent vector can be assumed to define the direction of gravity.

[0070] This disclosure has experimentally verified this assumption. The pose RGB-D scan 100 is rotated so that its y-axis coincides with the direction of gravity.

[0071] In addition, a boundary scan can be constructed. It is easiest to align two non-identical point clouds when they are as similar as possible. The floor plan 300 contains only walls, so it will be helpful to assume that the floor and furniture are removed from the scan. According to an embodiment of the present disclosure, to remove the floor, a histogram of the y-coordinates of the scan points with a step size of 15 centimeters (cm) can be constructed. The peak of the histogram corresponds to the floor plane, so points that are less than 15 cm above the floor can be removed. To remove furniture, points whose horizontal projections are statistical outliers can be filtered. In addition, in this article, a filtered scan is referred to as a boundary scan because it represents the boundaries between rooms.

[0072] The boundary scan obtained as described above may then be aligned with the floor plan 300 by the scan-to-plan alignment module 140. In order to align the boundary scan with the floor plan, the rotation, shift and scale about the y-axis need to be estimated.

[0073] First, processing by the scan-to-plan alignment module 140 can continue to estimate the rotation about the y-axis based on the normal to the boundary scan. As in the case of estimating the direction of gravity as described above, the normal can be projected onto a sphere and the three most frequent orthogonal directions can be selected. Make sure that one of these directions is consistent with the direction of gravity. Then, the other two vectors are projected onto the horizontal plane, and the boundary scan is rotated so that the most frequent direction is parallel to the x-axis. The floor plan 300 undergoes a similar process in the scan-to-plan alignment module 140: the normal can be estimated in the horizontal plane, the most frequent normal direction is found, and the floor plan 300 is rotated so that it becomes parallel to the x-axis.

[0074] According to an embodiment of the present disclosure, in order to estimate the scale, width and height of the scan projection and the floor plan, a scaling factor according to the aspect ratio can be calculated. Finally, the shift value can be selected so that the geometric centers of the pose RGB-D scan 100 and the floor plan 300 coincide.

[0075] An example of alignment of a filtered scan with a floor plan is depicted in FIG. 2 .

[0076] Figure 2a An exemplary filter scan is depicted. According to an embodiment of the present disclosure, a boundary scan may be obtained after filtering the points.

[0077] Figure 2b Alignment of the scan with the floor plan point cloud is depicted. According to an embodiment of the present disclosure, an aligned floor plan 210 can be obtained on a visualization of the scan 220. In the aligned floor plan 210, while the outer boundaries are aligned very accurately, the inner walls of the scan and the floor plan are clearly different; clearly, the scan geometry is corrupted and requires additional correction.

[0078] Floor and wall extraction

[0079] In order to pull the structural elements of the scan to the structural elements on the floor plan, they can first be found in the scan. As part of the processing of the floor and wall segmentation module 130, the results of the image segmentation are lifted into the 3D space due to further optimization relative to the camera pose and the 3D points can be determined as the projection of the 2D image points into the 3D space. More specifically, in each 2D video frame, the floor can be segmented by the semantic segmentation model (floor, ground and carpet categories are selected), after which only the points marked as "floor" are projected into the 3D space, forming a floor point cloud F. A similar process is performed on the walls to obtain the wall frame (point cloud W), which will be further pulled to the floor plan walls.

[0080] Figure 3 An exemplary embodiment of floor and wall point cloud construction is shown. According to an embodiment of the present disclosure, a binary mask of the floor 320 and a binary mask of the wall can be obtained on the frame from the sequence 310.

[0081] According to an embodiment of the present disclosure, a floor point cloud 350 may be obtained by back-projecting the points segmented onto the 3D space on the full scan (point cloud) 340 of the scene. A wall point cloud 360 may be obtained by back-projecting the points segmented onto the 3D space on the full scan 340 of the scene.

[0082] Cost function optimization process

[0083] The processing may be performed by the global bundle adjustment module 150 and an additional plane-based cost module 160 operating as part of the latter. As described above, a three-term cost function as in Equation 1 may be considered: a geometry term focusing on reconstruction consistency, a floor term aiming to make the floor surface flat, and a wall term penalizing differences between the reconstructed walls and the floor plan 300.

[0084] L=Lgeom +λ floor L floor +λ wallls L walls

[0085] First, we will discuss the geometric term L geom . According to an embodiment of the present disclosure, in order to enforce structural consistency in 3D space, a geometric term is employed to represent the 3D difference of the 3D point estimates from the two views. Hereinafter, this term will also be referred to herein as the 3D point error. Incorporating depth into the pose RGB-D scan 100 increases the robustness of the bundle adjustment (BA) process performed by the global bundle adjustment module 150 and allows complex configurations to be handled without incurring the risks posed by the re-projection based cost function.

[0086] First, keypoints are extracted from all given frames with superpoints (see, e.g., Daniel DeTone, Tomasz Malisiewicz, and Andrew Rabinovich, “Superpoints: Self-supervised Interest Point Detection and Description,” pp. 337-33712, June 2018), and these keypoints are matched across frames. Using the depth map, the extracted keypoints are back-projected into 3D space, and the distances between 3D points projected from different frames are calculated.

[0087] For the i-th RGB-D frame I i , let K i is the key point detected in a given RBG-D frame. i The key point k of the image is , and p(k) is its back projection into 3D space relative to the i-th camera.

[0088] For each pair of matching keypoints (k, k'), these keypoints are back-projected, which gives a pair of 3D points (p, p'). Denoting all such pairs as M, the geometric terms are formulated as:

[0089]

[0090] Since floors and walls are often untextured or covered with repeating patterns, many mismatches can occur. geom The aim is to bring matching points closer, so mismatches risk corrupting the scan. According to embodiments of the present disclosure, pulling mismatching points can be compensated by floor-to-plane and wall-to-floor-plan pulling.

[0091] Pulling in the context of the present disclosure should be understood as bringing points corresponding to structural elements of the posed RGB-D scan (walls / floors extracted at the corresponding method steps) "closer" to ("snapping said points to") the corresponding walls / floors in the floor plan. This "pulling" is basically the essence of the optimization of the floor and wall terms of the cost function.

[0092] Floor to Flat (F2P) Pull

[0093] The floor term L of the cost function floor Ensure that the floor surface is flat. According to an embodiment of the present disclosure, in order to eliminate floor unevenness and delamination, the floor points can be pulled to the plane π estimated by the floor point cloud. F . Statistical outliers of the floor point cloud (as a non-limiting example, 2% of the highest and lowest points) can be filtered out and a plane is fitted to the point cloud. The plane can be calculated once and kept fixed during the cost function optimization. When estimating the floor plane, the F2P loss can be calculated as the average distance between the points segmented as floors and the floor plan map by the following formula:

[0094]

[0095] This term is added to the floor The weight coefficient is chosen heuristically for each data set. It is chosen so that all terms of the loss function contribute equally and so that not only the sum but also each term is minimized during optimization. As a non-limiting example, in the case of the exemplary data set discussed further below, for the Redwood data set, λ floor =10 and λ walls =0.6, while for the dataset collected using Samsung S20+, λ floor =10 and λ walls =0.5. It should be understood that these are merely exemplary values, and the scope of the present disclosure is by no means limited by these values.

[0096] Wall to Floor Plan (W2P) Pull

[0097] Unlike the floor, which can be represented as a single plane, the wall is composed of many planar segments. These segments should not only be flat, but should also correspond to the walls of the floor plan 300. Similar to the floor, the points segmented into walls are pulled to the walls of the floor plan 300. Due to the multiple boundaries in the scene, it is first necessary to determine which points should be pulled to which walls. As non-limiting examples, several methods of wall-to-floor plan pulling can be used in the context of the present disclosure: closest point, iterative closest wall, and fixed closest wall. These methods will be further discussed below.

[0098] According to an embodiment of the present disclosure, in the closest point method, for the W For each point p in the floor plan, the nearest floor plan point q(p) is found, and the distance between these two points can be calculated. In this case, the wall term can be the average of the following distances:

[0099]

[0100] This pulling strategy depends heavily on how densely the 3D floor plan is covered by points. In practice, the coverage may not be sufficient to ensure stable convergence. Moreover, due to noise, point-to-point pulling brings the wall points closer to the ground truth, but it does not make the walls flatter.

[0101] According to an embodiment of the present disclosure, in the iterative nearest wall method, P may be replaced by W The points in the floor plan are pulled to the nearest floor plan plane rather than the nearest floor plan point. In this method, the floor plan 300 is composed of a set of planes {π f} indicates that. For W For each point p, find its nearest floor plan point q(p), and the distance to the corresponding wall plane π f (q(p)) is estimated. These distances are averaged to obtain the wall term:

[0102]

[0103] In this strategy, the nearest point needs to be found at each step, which makes the cost function optimization very slow. Another major disadvantage is that P points belonging to the same wall W Two points in the cloud may be pulled to different floor plan 300 planes, particularly in areas where walls intersect.

[0104] According to an embodiment of the present disclosure, in the fixed nearest wall method, in order to accelerate the cost function optimization process, P can be established. W The correspondence between the points in and the wall planes of the floor plan 300 remains unchanged during the optimization of the cost function.

[0105] First, according to P W The normal to the point P W The points are clustered and a vertical wall plane is fitted, i.e., for each cluster of points, a vertical plane is fitted so that the deviation of the cluster points from the plane is minimized. Thus, for each cluster, a wall plane is defined. The wall plane is then matched to the floor plan 300 wall plane, assuming that the wall plane π and the floor plan wall plane π f If the wall plane π and the floor plan wall plane π correspond to each other f Close to each other and parallel.

[0106] For the wall plane π from P W For each point p, create a plane π that matches that point and the wall plane π f Therefore, the cost function optimization can be performed on a set π of (p, π), where the initial position of π relative to p is estimated once and remains fixed during the cost function optimization. The point-plane distance can be calculated for each pair in π, and such distances are summed to obtain the following wall term:

[0107]

[0108] The correspondence established depends on P W The mutual assignment of points in the floor plan 300 and the wall planes can prevent two nearby points from being assigned to different planes and then pulled in different directions. In addition, when the correspondence is fixed, only the point-plane distance is estimated in each cost function optimization step, which makes this strategy much faster than the other two strategies.

[0109] The wall term of the loss function uses the weight coefficient λ walls . Similar to λ floor , this weight coefficient can be selected heuristically for each dataset.

[0110] Since the match between the actual (posed RGB-D scan 100) walls and the floor plan 300 walls may change during optimization, the loss minimization step (minimization of the three cost functions) and the alignment step are alternated as discussed above.

[0111] Embodiments of the present disclosure as described above implement optimization (refinement) of camera poses within a 3D scene scanned by at least one camera based on a pose RGB-D scan 100 and a floor plan 300. It should be noted that the points in a pose RGB-D scan 100 of a 3D scene (such as a room) are back-projections of two-dimensional (2D) points of image frames from an RGB-D image sequence into 3D space, which correspond to a given camera pose. Refining these 3D points (via camera pose calculation, i.e., as a function of the camera pose) can refine the camera pose itself.

[0112] In other words, the initial camera pose is used to calculate 3D points based on the pose RGB-D scan 100 as described above, and a three component loss function (loss function L) can be calculated. The loss function in the context of the present disclosure is a function of the camera pose. Embodiments of the present disclosure can minimize this loss function by finding a set of independent variables (camera poses) for which the loss function value is lowest. Optimization of the cost function (including the three loss function components as mentioned above) produces a new set of (refined) camera poses.

[0113] The possibility of realizing the intended use of the claimed system and method and of achieving the technical results described above will now be demonstrated on examples based on experimental data obtained by the inventors.

[0114] Through experiments on Redwood and our own RGB-D scan datasets, we demonstrate that our approach improves the accuracy of 3D reconstruction from RGB-D data.

[0115] Experiments to validate the proposed method have been conducted in the following manner: The results of several tracking algorithms are taken as initial data, and a floor plan-aware cost function optimization process is performed on these initial data.

[0116] Dataset

[0117] Since the floor plan-aware camera pose optimization problem has not been solved yet, there is no benchmark that can be directly used to experiment and evaluate the efficiency of any solution to this problem. This problem is addressed in two ways: additional annotation of existing RGB-D datasets and collecting new datasets.

[0118] Although there are a large number of SLAM datasets including pose RGB-D sequences, the lack of ground truth floor plans prevents experiments with them. However, the Redwood dataset (see Jaesik Park, Qian-Yi Zhou, and Vladlen Koltun, "Revisiting Color Point Cloud Registration", in ICCV Conference, 2017) proves suitable for verification. The dataset contains both pose RGB-D sequences and dense ground truth surfaces captured by different sensors (as non-limiting examples, Asus Xtion live camera and FARO Focus 3D x330HDR scanner). The ground truth surface allows to obtain floor plans independent of depth sensors and tracking results. In addition, unlike many other indoor SLAM datasets, Redwood contains large-scale data, including scenes with several rooms and a large number of partitions. The trajectory of the camera in this dataset has been obtained by its algorithm (see Jaesik Park, Qian-Yi Zhou, and Vladlen Koltun, "Revisiting Color Point Cloud Registration", in ICCV Conference, 2017).

[0119] However, since tracking methods are developing rapidly, newer SLAM is applied to raw RGB-D data to initialize the pose. A related technique (see, e.g., Zachary Teed and Jia Deng, "DROID-SLAM: Deep Visual SLAM for Monocular, Stereo, and RGB-D Cameras," Advances in Neural Information Processing Systems, 2021) was chosen because it shows state-of-the-art results on SLAM benchmarks and suffers from fewer failure cases than other methods. However, even this successful algorithm can sometimes be imprecise and needs improvement.

[0120] The second SMapper dataset used has been collected in experiments. It consists of five scenes of medium to large apartment and office environments. These scenes have been captured by a Samsung Galaxy S20+ smartphone with a built-in ToF depth sensor and Google ARCore tracking system. All 3D scenes are accompanied by images of their floor plans.

[0121] While Google ARCore technology is widely used for various 3D reconstruction applications including augmented reality, it is prone to errors that may not be noticeable during online execution, but appear when the complete estimated trajectory (i.e., a set or sequence of camera poses) is considered.

[0122] Figure 4 An exemplary SMapper scan optimization is shown.

[0123] refer to Figure 4 , the original scan 410 indicates the most obvious error: one of the rooms has been rotated relative to all the other scenes. According to an embodiment of the present disclosure, a scan 420 with floor items applied may indicate that the floor pull items make the floor smoother and reduce holes. A scan 430 with wall items applied may indicate that the wall pull allows the room to be put back in place but destroys the interior objects. A scan 440 with both floor items and wall items applied may be corrected for geometry.

[0124] measure

[0125] Two types of metrics are used for method validation. The first type of metrics measures the quality of the reconstructed point cloud. Since the SMapper dataset does not contain ground truth reconstructions, reference-free metrics are used: mean map entropy (MME), mean plane variance (MPV) (see, e.g., Jan Razlaw, David Droeschel, Dirk Holz, and Sven Behnke, "Evaluation of Sparse 3D Laser Scan Registration Methods," 2015 European Conference on Mobile Robots (ECMR), pp. 1-7, 2015), and mutual orthogonality metric (MOM) (for more information, see, e.g., Anastas IIa Kornilova and Gonzalo Ferrer, "Make your own benchmark: Reference-free translation metrics on registered point clouds," 2021). MME is the average entropy of points in its neighborhood. Both MPV and MOM estimate the flatness of the surface as it was scanned. The key difference between them is the planarity assumption: MPV assumes that most of the surface in the scan is planar, while MOM is not. Instead, MOM estimates a triplet of orthogonal planes covered by the scanned points, and MPV is calculated only for these points.

[0126] To compute MME and MPV, the point cloud is reconstructed by back-projecting the depth map. k , calculate the local vicinity W(p k )'s entropy h(p k ) and the corresponding plane error v(p k ). In order to calculate v(p k ), approximate a plane from 3D points and estimate the distance from each point to the plane. For MOM evaluation, the plane errors are not averaged over all points but only over points lying on three orthogonal planes. These planes are explicitly estimated for depth map backprojection and the MPVs of the selected points are averaged over the map.

[0127] These three metrics (MME, MPV, MOM) measure how structured a given acquired pose RGB-D scan is (high entropy of points and plane variance reflect the absence of noise and structure, while low entropy and plane variance confirm that the data is more structured and has less noise). That is, the smaller the value these metrics have, the higher the quality of the pose RGB-D scan.

[0128] In addition to these no-reference metrics, for the Redwood dataset, the nearest neighbor distance (NND) to the ground truth is calculated, which is the average distance from the reconstructed point to the nearest point on the ground truth surface. To calculate this distance, the reconstructed point cloud and the ground truth point cloud first need to be aligned. The deep global registration for relative pose estimation (for more information, see, e.g., Christopher Choy, Wei Dong, and Vladlen Koltun, “Deep Global Registration,” in CVPR Conference, 2020) method is used.

[0129] The second type of metric shows how close the scanned wall frame is to the 2D floor plan. For each 3D point marked as a wall, its vertical coordinate is eliminated and the distance between the resulting 2D point and all floor plan segments (s1, s2, ..., sn) is calculated. This distance is calculated as the Euclidean distance between a line and a point, but further checks whether the point projection is close to a segment. The nearest segment corresponding to the minimum point-segment distance is then selected and these distances are averaged over all points. This metric is called the nearest segment distance (NSD) and is as follows:

[0130]

[0131] In this equation, the function d(p,s) is defined as:

[0132]

[0133] c=ps 0 ,a=s 1 -s 0

[0134] Here (·,·) is the dot product, and (·X·) is the cross product.

[0135] result

[0136] To validate the proposed method, the above optimization terms are applied and the reconstructed results are compared. Tables 1 and 2 below show the comparison of applying different loss terms to the SMapper and Redwood datasets.

[0137] According to the experiments, even pure BA application improves the quality of RGB-D scans. The difference is especially significant on the SMapper dataset annotated with Google ARCore, which is fast but not completely accurate. However, the reconstruction quality obtained with Droid SLAM also improves after bundle adjustment. The other rows of the table correspond to the application of the pulling term and confirm further improvements. This is definitely expected for F2P, which makes the floor flatter and therefore reduces the entropy and planar variance. The changes in the reconstruction are Figure 5 and Figure 6 Shown in.

[0138] Figure 5 An exemplary Redwood scan optimization is shown. The original scan 510 indicates that the floor is uneven. The corrected scan 520 indicates that the floor is flat after optimization, according to an embodiment of the present disclosure.

[0139] Figure 6 An exemplary Smapper scan optimization is shown. The original scan 610 indicates that the loop closure failed, resulting in bifurcations of the floor and furniture. According to an embodiment of the present disclosure, the corrected scan 620 indicates that the bifurcations disappear, and the reconstruction error regions 611, 613 can be corrected to corrected regions 621, 623.

[0140] However, W2P aims to bring the wall closer to the floor plan, and straightening is a secondary goal in this term. However, wall pulling also improves the value of the metric. In addition, experiments show that although the floor and wall are pulled in different directions and can be prevented from converging with each other, the joint use of the two pulling terms further improves the quality.

[0141] Regarding the floor plan distance, pure BA and floor pulling do not optimize it, but the introduction of the wall pulling term significantly reduces the distance. According to Tables 1 and 2, the best floor plan distance is achieved when the two terms are applied, however, the difference between the methods with and without floor pulling is insignificant. It is expected that the NSD metric of W2P is lower because W2P pulls the walls to the floor plan.

[0142] Figure 7 An exemplary SMapper scan optimization is shown.

[0143] According to an embodiment of the present disclosure, a scan 720 with floor items applied may indicate that the floor pull items make the floor smoother and reduce holes than the original scan 710. A scan 730 with wall items applied may indicate that the wall pulls allow the room to be put back in place but destroy the interior objects. A scan 740 with both floor and wall items applied may be corrected for geometry.

[0144] Figure 8 Visualization of the NSD metric for the wall point cloud W before and after camera pose refinement is provided.

[0145] refer to Figure 8 , the x-axis and y-axis reflect spatial coordinates (in meters). The darkness of the dots shows the proximity to the floor plan (darker, closer). The right bar shows the value of the distance from the dot to the floor plan (bright dots are far from the floor plan, about 1.2m, dark dots are close to the floor plan).

[0146] Figure 8The visualization of the metrics in shows this effect, with the refined graph 820 containing points that are closer to the floor plan (darker) than the original graph 810 . Figure 7 A bird's eye view of this scan aligned with the floor plan is shown in . The walls in the two bottom scans are clearly closer to the floor plan than in the top scan.

[0147]

Table 1

[0148] MME↓ MPV↓ MOM↓ NSD↓ Original Posture -3.53 30.01 81.55 28.23 BA -3.61 25.51 65.19 28.17 BA+F2P -3.62 25.01 61.62 28.49 BA+W2P -3.61 25.13 61.84 25.14 BA+F2P+W2P -3.63 24.86 59.08 25.10

[0149] Table 1 shows the ablation study results of the loss term on the SMapper dataset.

[0150] Here, BA corresponds to pure 3D bundle adjustment, F2P represents floor-to-plane pulling, and W2P represents wall-to-plan pulling.

[0151]

Table 2

[0152]

[0153]

[0154] Table 2 shows the ablation study results of the loss term on the Redwood dataset.

[0155] Here, BA corresponds to pure 3D bundle adjustment, F2P represents floor-to-plane pulling, and W2P represents wall-to-plan pulling.

[0156] In these experiments, the nearest wall was fixed as W2P terms. However, all three methods are compared to find out how much they differ. According to Table 3 provided below, fixed nearest plane pulling has demonstrated a significant advantage over the two other methods on the SMapper dataset. This is due to the lower quality of the initial data in this dataset, as Google ARCore, being an online tracker, is more error-prone and the geometry is more corrupted. Therefore, the alignment of the scanned wall and the floor plan wall plane based only on point distances can be wrong.

[0157] In this case, the fixed plane strategy considers more information and establishes a more stable alignment. Regarding the Redwood dataset (see Table 4 provided below), the initialization of the camera trajectory is very accurate. Therefore, the iterative plane strategy is sufficient for good convergence. The results of this method are a little better than the fixed plane method, but the difference is not significant. In addition to the quality of the scan in terms of its capacity, it is also considered how different wall pulling strategies affect the floor plan distance (see the last column in Tables 3 and 4). The closest point method is expected to show the best performance because it directly minimizes the distance to the floor plan. The other two strategies aim for more stable pulling and result in weaker corrections in exchange for better reconstruction quality.

[0158]

Table 3

[0159] MME↓ MPV↓ MOM↓ NSD↓ Closest point -3.59 25.45 63.81 16.60 Iteration Plane -3.60 25.50 63.88 24.18 Fixed plane -3.61 25.13 61.84 25.14

[0160] Table 3 shows the ablation study results for different wall-to-plan pulling strategies on the SMapper dataset.

[0161] Although the iterative plane and fixed plane methods show very similar evaluation results, the latter was chosen because it shows much faster performance. Table 5 below contains the measurements of the average computation time per million points for each term. This confirms the theoretical conclusion that the nearest neighbor search contributes significantly to the length of the cost function computation.

[0162]

Table 4

[0163]

[0164]

[0165] Table 4 shows the ablation study results for different wall-to-floor pulling strategies on the Redwood dataset.

[0166]

Table 5

[0167]

[0168] Table 5 shows the computation time for each cost function term for one million points.

[0169] Fig.10An example computer system that can be used to perform floor plan-aware camera pose refinement according to an embodiment of the present disclosure is shown. According to an embodiment of the present disclosure, one or more computer systems 1000 perform one or more steps of one or more methods described or shown herein. According to an embodiment of the present disclosure, one or more computer systems 1000 provide the functionality described or shown herein. According to an embodiment of the present disclosure, software running on one or more computer systems 1000 performs one or more steps of one or more methods described or shown herein, or provides the functionality described or shown herein. Specific embodiments include one or more parts of one or more computer systems 1000. In this document, references to computer systems may include computing devices, and vice versa, where appropriate. In addition, references to computer systems may cover one or more computer systems, where appropriate.

[0170] The present disclosure contemplates any suitable number of computer systems 1000. The present disclosure contemplates computer systems 1000 in any suitable physical form. As an example and not by way of limitation, computer system 1000 may be an embedded computer system, a system on a chip (SOC), a single board computer system (SBC) (e.g., a computer on a module (COM) or a system on a module (SOM)), a desktop computer system, a laptop or notebook computer system, an interactive kiosk, a mainframe, a computer system grid, a mobile phone, a personal digital assistant (PDA), a server, a tablet computer system, an augmented / virtual reality device, or a combination of two or more of these. Where appropriate, computer system 1000 may include: one or more computer systems 1000; be single or distributed; span multiple locations; span multiple machines; span multiple data centers; or reside in a cloud, which may include one or more cloud components in one or more networks.

[0171] Where appropriate, one or more computer systems 1000 may perform one or more steps of one or more methods described or illustrated herein without substantial spatial or temporal limitations. As an example and not by way of limitation, one or more computer systems 1000 may perform one or more steps of one or more methods described or illustrated herein in real time or in batch mode. Where appropriate, one or more computer systems 1000 may perform one or more steps of one or more methods described or illustrated herein at different times or in different locations.

[0172] According to an embodiment of the present disclosure, the computer system 1000 includes a processor 1002, a memory 1004, a storage 1006, an input / output (I / O) interface 1008, a communication interface 1010, and a bus 1012. Although the present disclosure describes and illustrates a specific computer system having a specific number of specific components in a specific arrangement, the present disclosure contemplates any suitable computer system having any suitable number of any suitable components in any suitable arrangement. According to an embodiment of the present disclosure, the processor 1002 includes hardware for executing instructions (such as instructions constituting a computer program). As an example and not by way of limitation, in order to execute instructions, the processor 1002 may retrieve (or fetch) instructions from an internal register, an internal cache, a memory 1004, or a storage 1006; decode and execute them; and then write one or more results to an internal register, an internal cache, a memory 1004, or a storage 1006. According to an embodiment of the present disclosure, the processor 1002 may include one or more internal caches for data, instructions, or addresses. Where appropriate, the present disclosure contemplates a processor 1002 that includes any suitable number of any suitable internal caches. As an example and not by way of limitation, the processor 1002 may include one or more instruction caches, one or more data caches, and one or more translation lookaside buffers (TLBs). The instructions in the instruction cache may be a copy of the instructions in the memory 1004 or storage 1006, and the instruction cache may speed up the retrieval of those instructions by the processor 1002.

[0173] The data in the data cache may be a copy of the data in the memory 1004 or storage 1006 for the instructions executed at the processor 1002 to operate on it; the result of the previous instruction executed at the processor 1002, for access by the subsequent instruction executed at the processor 1002 or for writing to the memory 1004 or storage 1006; or other suitable data. The data cache may speed up the read or write operation of the processor 1002. The TLB may speed up the virtual address translation of the processor 1002. According to an embodiment of the present disclosure, the processor 1002 may include one or more internal registers for data, instructions, or addresses. Where appropriate, the present disclosure contemplates a processor 1002 that includes any suitable number of any suitable internal registers. Where appropriate, the processor 1002 may include one or more arithmetic logic units (ALUs); be a multi-core processor; or include one or more processors 1002. Although the present disclosure describes and illustrates a specific processor, the present disclosure contemplates any suitable processor.

[0174] According to an embodiment of the present disclosure, the memory 1004 includes a main memory for storing instructions for execution by the processor 1002 or data for operation by the processor 1002. As an example and not by way of limitation, the computer system 1000 can load instructions from the storage 1006 or another source (such as, for example, another computer system 1000) to the memory 1004. Then, the processor 1002 can load the instructions from the memory 1004 to an internal register or an internal cache. In order to execute the instructions, the processor 1002 can retrieve the instructions from the internal register or the internal cache and decode them. During or after executing the instructions, the processor 1002 can write one or more results (which can be intermediate or final results) to the internal register or the internal cache. Then, the processor 1002 can write one or more of these results to the memory 1004. According to an embodiment of the present disclosure, the processor 1002 only executes instructions in one or more internal registers or internal caches or in the memory 1004 (as opposed to the storage 1006 or elsewhere), and only operates data in one or more internal registers or internal caches or in the memory 1004 (as opposed to the storage 1006 or elsewhere).

[0175] One or more memory buses (which may each include an address bus and a data bus) may couple the processor 1002 to the memory 1004. The bus 1012 may include one or more memory buses, as described below. According to an embodiment of the present disclosure, one or more memory management units (MMUs) reside between the processor 1002 and the memory 1004 and facilitate access to the memory 1004 requested by the processor 1002. According to an embodiment of the present disclosure, the memory 1004 includes a random access memory (RAM). Where appropriate, the RAM may be a volatile memory. Where appropriate, the RAM may be a dynamic RAM (DRAM) or a static RAM (SRAM). In addition, where appropriate, the RAM may be a single-port or multi-port RAM. The present disclosure contemplates any suitable RAM. Where appropriate, the memory 1004 may include one or more memory devices 1004. Although the present disclosure describes and illustrates a specific memory, the present disclosure contemplates any suitable memory.

[0176] According to an embodiment of the present disclosure, storage 1006 includes mass storage for data or instructions. As an example and not by way of limitation, storage 1006 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, storage 1006 may include removable or non-removable (or fixed) media. Where appropriate, storage 1006 may be inside or outside of computer system 1000. According to an embodiment of the present disclosure, storage 1006 is a non-volatile solid-state memory. According to an embodiment of the present disclosure, storage 1006 includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically variable ROM (EAROM), or a flash memory, or a combination of two or more of these. The present disclosure contemplates mass storage 1006 in any suitable physical form. Where appropriate, storage 1006 may include one or more storage control units that facilitate communication between processor 1002 and storage 1006. Where appropriate, storage 1006 may include one or more storages 1006. Although this disclosure describes and illustrates particular storages, this disclosure contemplates any suitable storages.

[0177] According to an embodiment of the present disclosure, the I / O interface 1008 includes hardware, software or both, providing one or more interfaces for communication between the computer system 1000 and one or more I / O devices. Where appropriate, the computer system 1000 may include one or more of these I / O devices. One or more of these I / O devices can implement communication between a person and the computer system 1000. As an example and not by way of limitation, the I / O device may include a keyboard, a keypad, a microphone, a monitor, a mouse, a printer, a scanner, a speaker, a static camera, a stylus, a tablet computer, a touch screen, a trackball, a camera, another suitable I / O device or a combination of two or more of these. The I / O device may include one or more sensors. The present disclosure contemplates any suitable I / O device and any suitable I / O interface 1006 for them. Where appropriate, the I / O interface 1008 may include one or more devices or software drivers that enable the processor 1002 to drive one or more of these I / O devices. Where appropriate, the I / O interface 1008 may include one or more I / O interfaces 1006. Although this disclosure describes and illustrates a particular I / O interface, this disclosure contemplates any suitable I / O interface.

[0178] According to an embodiment of the present disclosure, the communication interface 1010 includes hardware, software, or both that provide one or more interfaces for communication (such as, for example, packet-based communication) between the computer system 1000 and one or more other computer systems 1000 or one or more networks. As an example and not by way of limitation, the communication interface 1010 may include a network interface controller (NIC) or network adapter for communicating with an Ethernet or other wired-based network, or a wireless NIC (WNIC) or wireless adapter for communicating with a wireless network (such as a WI-FI network). The present disclosure contemplates any suitable network and any suitable communication interface 1010 for it.

[0179] As an example and not by way of limitation, the computer system 1000 may communicate with one or more parts of an ad hoc network, a personal area network (PAN), a local area network (LAN), a wide area network (WAN), a metropolitan area network (MAN), or the Internet, or a combination of two or more of these. One or more parts of one or more of these networks may be wired or wireless. As an example, the computer system 1000 may communicate with a wireless PAN (WPAN) (such as, for example, a Bluetooth WPAN), a WI-FI network, a WI-MAX network, a cellular phone network (such as, for example, a global system for mobile communications (GSM) network), or other suitable wireless networks, or a combination of two or more of these. Where appropriate, the computer system 1000 may include any suitable communication interface 1010 for any of these networks. Where appropriate, the communication interface 1010 may include one or more communication interfaces 1010. Although the present disclosure describes and illustrates a specific communication interface, the present disclosure contemplates any suitable communication interface.

[0180] According to an embodiment of the present disclosure, bus 1012 includes hardware, software, or both that connect components of computer system 1000 to each other. As an example and not by way of limitation, bus 1012 may include accelerated graphics port (AGP) or other graphics bus, enhanced industry standard architecture (EISA) bus, front side bus (FSB), HYPERTRANSPORT (HT) interconnect, industry standard architecture (ISA) bus, INFINIBAND interconnect, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnect (PCI) bus, PCI-Express (PCIe) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus, or another suitable bus or a combination of two or more of these buses. Where appropriate, bus 1012 may include one or more buses 1012. Although the present disclosure describes and illustrates a specific bus, the present disclosure contemplates any suitable bus or interconnect.

[0181] Methods and systems for floor plan-aware camera pose refinement are described above. They can be used to obtain accurate camera pose (i.e., position and orientation) information by refining the camera pose information for each given scan in a sequence of one or more RGB-D scans and refining (estimating) the camera trajectory in various 3D indoor scene scan generation scenarios.

[0182] It will be appreciated by those skilled in the art that the method can be implemented by various combinations of hardware and software devices, and any such specific combination does not limit the scope of the present disclosure. The above modules constituting the system of the present invention can be implemented in the form of separate hardware devices, or two or more modules can be implemented by one hardware device, or the system of the present invention can be implemented by one or more computers, processors (CPUs) such as general-purpose processors or special-purpose processors (such as graphics processors (GPUs)), or by one or more ASICs, FPGAs, logic elements, etc. Alternatively, one or more modules can be implemented as software devices, such as, for example, one or more programs, (one or more) computer program elements or (one or more) modules, which control one or more computers, CPUs, etc. to implement the method steps and / or operations described in detail above. These software devices can be embodied in one or more computer-readable media known to those skilled in the art, can be stored in one or more memories (such as ROM, RAM, flash memory, EEPROM, etc.), or, if necessary, for example, provided from a remote server via one or more wired and / or wireless network connections, the Internet, Ethernet connections, (one or more) LANs or other local or global computer networks.

[0183] Those skilled in the art will appreciate that only some possible examples of the techniques and materials and technical means of implementing the embodiments of the present disclosure are described above and shown in the accompanying drawings. The specific description of the embodiments of the present invention provided above is not intended to limit or define the legal protection scope of the present disclosure.

[0184] After carefully reading the above description with reference to the accompanying drawings, those skilled in the art may think of other embodiments that may be covered by the scope of the present disclosure, and all such obvious modifications, changes and / or equivalent substitutions are considered to be included within the scope of the present disclosure. All relevant technical references cited and discussed herein are incorporated by reference into the present disclosure where applicable.

[0185] While the present disclosure has been described and illustrated with reference to various embodiments thereof, it will be understood by those skilled in the art that various changes in form and specific details may be made therein without departing from the scope of the present disclosure which is defined only by the claims provided below and their equivalents.

Claims

1. A method for floor plan perception camera pose refinement, the method include: receiving a floor plan of a three-dimensional (3D) structure of a scene reflecting a previous structure of the scene (S910); receiving one or more imaging scans of the scene (S920); identifying a gravity direction with respect to the one or more imaging scans (S930); generating a boundary scan by filtering points in the one or more imaging scans whose horizontal projections are statistical outliers (S940); aligning the boundary scan with the floor plan (S950); extracting structural elements from the one or more imaging scans (S960); as well as A three-term cost function including a geometry term, a floor term, and a wall term is optimized by pulling points corresponding to the structural elements in the one or more imaging scans to corresponding points in the floor plan (S970).

2. The method according to claim 1, in, The three cost functions are formulated as: L=L geom +λ floor L floor +λ wallls L walls , Where L geom is a geometric term, L floor is the floor term, and L walls is the wall term, λ floor and λ walls are weight coefficients configured to make the contributions of all terms of the three-term cost function equal.

3. The method according to claim 1 or 2, in, The floor plan is a 3D floor plan obtained from a set of 3D points generated based on a vector map with walls depicted as segments.

4. The method according to any one of claims 1 to 3, in, The one or more imaging scans of the scene are posed one or more RGB-D scans comprising one or more RGB image frames, depth data, and camera pose information.

5. The method according to any one of claims 1 to 4, in, The floor plan is represented by a set of planes that approximate walls within the 3D scene, wherein pulling points in the one or more imaging scans to corresponding points in the floor plan comprises: pulling the points to the nearest floor plan plane by finding the nearest floor plan point for each point and estimating the distance to the corresponding wall plane; and The wall term L is obtained by averaging the estimated distances walls .

6. The method of any one of claims 1 to 5, wherein points in the one or more imaging scans are pulled to corresponding points in the floor plan. include: clustering a plurality of the points into one or more clusters of points based on their normals; fitting vertical wall planes of the one or more clusters of points by defining one or more vertical wall planes such that deviations of points in the one or more clusters from a given plane are minimized; Match the wall planes to the corresponding floor plan wall planes; For each pair of a given point cluster and the corresponding vertical wall plane, the point-plane distance is calculated; as well as The wall term L is obtained by summing the point-plane distances walls .

7. The method according to any one of claims 1 to 6, in, Aligning the boundary scan with the floor plan and optimizing the three cost functions alternate in an iterative manner.

8. A system (1000) for floor plan-aware camera pose refinement, the system include: Memory (1004); as well as At least one processor (1002) coupled to the memory, the at least one processor being configured under control of instructions retrieved from the memory (1004) to: receiving a floor plan of a three-dimensional (3D) structure of a scene, the floor plan reflecting a prior structure of the scene; receiving one or more imaging scans of the scene; identifying a gravity direction of the one or more imaging scans; generating a boundary scan by filtering points in the one or more imaging scans whose horizontal projections are statistical outliers; aligning the boundary scan with the floor plan; extracting structural elements from the one or more imaging scans; as well as A three-term cost function including a geometry term, a floor term, and a wall term is optimized by pulling points in the one or more imaging scans corresponding to the structural elements to corresponding points in the floor plan.

9. The system (1000) according to claim 8, in, The three cost functions are formulated as: L=L geom +λ floor L floor +λ wallls L walls , Where L geom is a geometric term, L floor is the floor term, and L walls is the wall term, λ floor and λ walls are weight coefficients configured to make the contributions of all terms of the three-term cost function equal.

10. The system (1000) according to claim 8 or 9, in, The floor plan is a 3D floor plan obtained from a set of 3D points generated based on a vector map with walls depicted as segments.

11. The system (1000) according to any one of claims 8 to 10, in, The one or more imaging scans of the scene are posed one or more RGB-D scans comprising one or more RGB image frames, depth data, and camera pose information.

12. The system (1000) according to any one of claims 8 to 11, in, The floor plan is represented by a set of planes that approximate walls within the 3D scene, wherein to perform pulling points in the one or more imaging scans to corresponding points in the floor plan, the at least one processor (1002) is configured to: pulling the points to the nearest floor plan plane by finding the nearest floor plan point for each point and estimating the distance to the corresponding wall plane; and The wall term L is obtained by averaging the estimated distances walls .

13. The system (1000) according to any one of claims 8 to 12, in, To perform pulling points in the one or more imaging scans to corresponding points in the floor plan, the at least one processor (1002) is configured to: clustering a plurality of the points into one or more clusters of points based on their normals; fitting vertical wall planes of the one or more clusters of points by defining one or more vertical wall planes such that deviations of points in the one or more clusters from a given plane are minimized; Match the wall planes to the respective floor plan wall planes; For each pair of a given point cluster and the corresponding vertical wall plane, the point-plane distance is calculated; as well as The wall term L is obtained by summing the point-plane distances walls .

14. A system according to any one of claims 8 to 14, in, The at least one processor (1002) is configured to iteratively alternate said aligning said boundary scan with said floor plan and said optimizing said three cost functions.

15. A computer readable medium having computer program code stored thereon, which, when executed by at least one processor, causes the at least one processor to perform the method according to any one of claims 1 to 7.