Machine learning-based object identification using scale drawings and 3D models

Through the spatial indexing system and machine learning model, objects in the construction site are automatically identified and tracked from videos, solving the time-consuming problem of traditional manual methods and achieving efficient construction progress monitoring and error detection.

CN115699098BActive Publication Date: 2024-10-18OPEN SPACE LABS INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202180037564.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-19
Publication Date
2024-10-18
Estimated Expiration
2041-04-19

AI Technical Summary

Technical Problem

Traditional methods of manually inspecting videos to count and measure objects in the environment are tedious and time-consuming, making it difficult to efficiently track the progress of construction projects.

Method used

Using a spatial indexing system, machine learning models and 3D models are used to automatically identify object types and locations from walkthrough videos, generate annotated scale maps, compare expected and actual object numbers, and track construction progress in real time.

Benefits of technology

It greatly reduces the time of manual marking and measurement, improves the accuracy and efficiency of construction progress tracking, and can automatically detect installation errors and provide progress reports.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115699098B_ABST
    Figure CN115699098B_ABST
Patent Text Reader

Abstract

The system automatically identifies objects in the environment based on a walkthrough video of the environment and an annotated floor plan. The annotated floor plan indicates the location and type of objects expected in the environment. The system receives the walkthrough video and generates a 3D model of the environment. The system applies a machine learning model to the walkthrough video to identify regions within the frame that capture objects. After identifying regions within the frame of the walkthrough video that include objects, the system modifies the corresponding regions of the 3D model to include the identified objects. For each identified object, the system determines the likelihood that the identified object exists at a location in the environment based on a comparison of the modified 3D model and the annotated floor plan.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims the benefit of U.S. Provisional Application Serial No. 63 / 032,452, filed May 29, 2020, which is incorporated herein by reference in its entirety. Technical Field

[0003] The present disclosure relates to identifying objects in an environment, and more particularly, to identifying objects in an environment using machine learning based on an annotated map and a three-dimensional model of the environment. Background Art

[0004] Traditionally, in order to determine the type and location of objects in an environment, a user captures a walkthrough video of the environment and manually identifies and marks the objects in the walkthrough video. For example, at a construction site, various tasks are performed simultaneously on different parts of a building project, and it is difficult to track the progress of each aspect of the building project to determine whether the building project is tracked to completion on time. A general contractor may wish to monitor the progress of a construction site by capturing a walkthrough video of the construction site that records the conditions of the construction site. The general contractor can then visually inspect the walkthrough video and identify the installed objects (e.g., lamps, cabinets, windows, drywall, paint, cement) by identifying the objects present in the image. The general contractor can periodically capture new walkthrough videos and determine additional objects that have been installed to track the progress of the construction project over time. However, manually inspecting the video to count and measure objects is tedious and time-consuming. Summary of the invention

[0005] The spatial indexing system receives a scale map of the environment annotated with locations of objects expected in the environment. Objects are associated with object types, and the spatial indexing system determines the location and type of the object associated with each object expected in the environment based on the scale map. The spatial indexing system also determines, for each object type, a total number of objects expected in the environment. The spatial indexing system also receives a walkthrough video captured by the video capture system as the video capture system moves through the environment along a camera path. The walkthrough video includes a sequence of image frames describing the conditions of the environment at a given time.

[0006] The spatial indexing system performs an object quantization operation to identify the object type and location of the object captured in the image frame of the walkthrough video, thereby automatically estimating the number of objects for each object type in the environment when the walkthrough video is captured. In order to estimate the number, the spatial indexing system generates a three-dimensional (3D) model of the environment including the objects identified in the image frame. The spatial indexing system uses a machine learning model to determine the location and object type of each identified object in the 3D model. The spatial indexing system determines a probability for each identified object, wherein the probability indicates the likelihood that an object of the object type exists in the environment. When the probability is greater than a predetermined threshold, the spatial indexing system determines that the identified object exists in the environment. Based on the probability, the spatial indexing system determines an estimated number of each object type in the 3D model. For each object type, the estimated number of the object type can be compared with the expected total number of the object type and presented to the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] Figure 1 A system environment of a spatial index system according to one embodiment is shown.

[0008] Figure 2A A block diagram of a camera path module is shown according to one embodiment.

[0009] Figure 2B A block diagram of a model generation module according to one embodiment is shown.

[0010] Figure 2C Shown is a block diagram illustrating a comparison of an annotated 3D model and a floor plan according to one embodiment.

[0011] Figure 3A-3E A portion of a model visualization interface provided by a model visualization module according to one embodiment is shown.

[0012] Figure 4A-4E A progress visualization interface provided by a progress visualization module according to one embodiment is shown.

[0013] Figure 5 is a flow chart illustrating an example method for automatic spatial indexing of frames using features in a floor plan, according to one embodiment.

[0014] Figure 6 is a flow chart illustrating an example method for aligning a camera path with a floor plan using a brute force search, according to one embodiment.

[0015] Fig. 7A is a flow chart illustrating an example method for aligning a camera path with a floor plan using a grid map of the floor plan, according to one embodiment.

[0016] Figure 7B An example of a floor plan according to one embodiment is shown.

[0017] Figure 7C An example of a grid map according to one embodiment is described.

[0018] Figure 8 is a flow chart illustrating an example method for progress tracking using walk-through videos, according to one embodiment.

[0019] Fig. 9 is a flow chart illustrating an example method for object search in a walk-through video, according to one embodiment. DETAILED DESCRIPTION

[0020] Ⅰ. Overview

[0021] The spatial indexing system receives an annotated scale map of a physical environment as input and determines the expected number of objects in the physical world. As the user moves through the environment of the physical world and records the conditions of the physical world, the user can capture images or videos of the environment in the physical world. The image data can be captured using a monocular or stereo camera, can be captured as a single photo or as a sequence of images from a video, and can be captured using a traditional or 360-degree camera. A scale map of the environment in the physical world (e.g., a floor plan) can be manually annotated by a person, or automatically annotated by a machine learning model with the location and size of objects expected in the environment. The annotated scale map provides the location and object type of objects expected in the environment, and the image data provides the location and object type of objects actually in the environment at a given time. Based on a comparison of the expected objects from the annotated scale map with the objects from the image data, the user can determine that the objects identified from the image data deviate from the expected objects. The spatial indexing system can determine the difference between the number of expected objects and the number of objects identified from the image data for different object types. The difference can be used to track the changes in the detected number relative to the expected number of objects over time.

[0022] Ⅱ. System Environment

[0023] Figure 1 FIG. 1 shows a system environment 100 for a spatial index system according to one embodiment. Figure 1 In the illustrated embodiment, system environment 100 includes video capture system 110, network 120, spatial indexing system 130, and client device 160. Figure 1 A single video capture system 110 and a single client device 160 are shown in FIG. 1 , but in some implementations, the spatial indexing system interacts with multiple video capture systems 110 and multiple client devices 160 .

[0024] As the video capture system 110 moves along the camera path, the video capture system 110 collects one or more of frame data, motion data, lidar data, and position data. Figure 1 In the illustrated embodiment, the video capture system 110 includes a 360-degree camera 112, a motion sensor 114, and a position sensor 116. The video capture system 110 is implemented as a device having a form factor suitable for moving along a camera path. In one embodiment, the video capture system 110 is a portable device that a user physically moves along the camera path, such as a wheeled cart, or a device mounted on or integrated into an object worn by the user's body (e.g., a backpack or a helmet). In another embodiment, the video capture system 110 is mounted on or integrated into a vehicle. The vehicle can be, for example, a wheeled vehicle (e.g., a wheeled robot) or an aircraft (e.g., a quadruped drone), and can be configured to travel autonomously along a preconfigured route or be controlled in real time by a human user.

[0025] As the video capture system 110 moves along the camera path, the 360-degree camera 112 collects frame data by capturing a sequence of 360-degree frames. As mentioned herein, a 360-degree frame is a frame having a field of view covering a 360-degree field of view. The 360-degree camera 112 can be implemented by arranging multiple non-360-degree cameras in the video capture system 110 so that they are pointed at varying angles relative to each other, and configuring the 360-degree cameras to capture frames of the environment from their respective angles approximately simultaneously. The image frames can then be combined to form a single 360-degree frame. For example, the 360-degree camera 112 can be implemented by capturing frames substantially simultaneously from two 180° panoramic cameras pointing in opposite directions.

[0026] The image frame data captured by the video capture system 110 may also include a frame timestamp. The frame timestamp is data corresponding to the time at which each frame was captured by the video capture system 110. As used herein, frames are captured substantially simultaneously if they are captured within a threshold time interval of each other (e.g., within 1 second, within 100 milliseconds, etc.).

[0027] In one embodiment, the 360-degree camera 112 captures a 360-degree video, and the image frames in the 360-degree video are image frames of the walkthrough video. In another embodiment, the 360-degree camera 112 captures a sequence of still frames separated by fixed time intervals. The walkthrough video as a sequence of frames can be captured at any frame rate (e.g., a high frame rate (e.g., 60 frames per second) or a low frame rate (e.g., 1 frame per second)). Generally, the walkthrough video captured as a sequence of frames at a higher frame rate produces a more robust result, while the walkthrough video captured as a sequence of frames at a lower frame rate allows for reduced data storage and transmission. When the 360-degree camera 112 is capturing image frame data, the motion sensor 114 and the position sensor 116 collect motion data and position data, respectively. The motion sensor 114 may include, for example, an accelerometer and a gyroscope. The motion sensor 114 may also include a magnetometer that measures the direction of the magnetic field around the video capture system 110.

[0028] The location sensor 116 may include a receiver for a global navigation satellite system (e.g., a GPS receiver) that determines the latitude and longitude coordinates of the video capture system 110. In some embodiments, the location sensor 116 additionally or alternatively includes a receiver for an indoor positioning system (IPS) that determines the location of the video capture system based on signals received from transmitters placed at known locations in the environment. For example, multiple radio frequency (RF) transmitters that transmit RF fingerprints are placed throughout the environment, and the location sensor 116 also includes a receiver that detects the RF fingerprints and estimates the location of the video capture system 110 within the environment based on the relative strength of the RF fingerprints.

[0029] Although Figure 1 The video capture system 110 shown includes a 360-degree camera 112, a motion sensor 114, and a position sensor 116, but in other embodiments, some components 112, 114, 116 may be omitted from the video capture system 110. For example, one or both of the motion sensor 114 and the position sensor 116 may be omitted from the video capture system. Figure 1 10 is described with a video capture system 110 having a 360-degree camera 112, but the video capture system 110 may alternatively include a camera with a narrow field of view. Although not shown, in some embodiments, the video capture system 110 may also include a laser radar system that emits a laser beam and generates 3D data representing the surrounding environment based on measured distances to points in the surrounding environment. Based on the 3D data, a 3D model (e.g., a point cloud) of the surrounding environment can be generated. The 3D data captured by the laser radar system can be synchronized with the image frames captured by the 360-degree camera 112.

[0030] In some embodiments, the video capture system 110 is implemented as a computing device (e.g., Fig. 9 ), the computing device also includes a storage device for storing captured data and a communication interface for sending the captured data to the spatial indexing system 130 via the network 120. In one embodiment, the video capture system 110 stores the captured data locally as the system 110 moves along the camera path, and sends the data to the spatial indexing system 130 after the data collection has been completed. In another embodiment, the video capture system 110 sends the captured data to the spatial indexing system 130 in real time as the system 110 moves along the camera path.

[0031] The video capture system 110 communicates with other systems via the network 120. The network 120 may include any combination of local area networks and / or wide area networks using wired and / or wireless communication systems. In one embodiment, the network 120 uses standard communication technologies and / or protocols. For example, the network 120 includes communication links using technologies such as Ethernet, 802.11, Worldwide Interoperability for Microwave Access (WiMAX), 3G, 4G, Code Division Multiple Access (CDMA), Digital Subscriber Line (DSL), etc. Examples of networking protocols for communicating via the network 120 include Multi-Protocol Label Switching (MPLS), Transmission Control Protocol / Internet Protocol (TCP / IP), Hypertext Transfer Protocol (HTTP), Simple Mail Transfer Protocol (SMTP), and File Transfer Protocol (FTP). The network 120 may also be used to deliver push notifications through various push notification services, such as APPLE Push Notification Service (APN) and GOOGLE Cloud Messaging (GCM). The data exchanged on the network 110 may be represented using any suitable format, such as Hypertext Markup Language (HTML), Extensible Markup Language (XML), or JavaScript Object Notation (JSON). In some embodiments, all or some of the communication links of network 120 may be encrypted using any suitable technique or techniques.

[0032] The spatial indexing system 130 receives image frames and other data collected by the video capture system 110, performs a spatial indexing process to automatically identify the captured image frames and the spatial location of each of the images to align the image frames to an annotated floor plan of the environment, constructs a 3D model of the environment, and provides a visualization interface that allows the client device 160 to view the captured image frames at their corresponding locations within the 3D model. The spatial indexing system 130 may be used to automatically quantify objects in the environment based on the image frames and other data collected by the video capture system 110. When the environment is a construction site, the spatial indexing system 130 may track the progress of the construction based on the determined number of objects in the image frames, and compare the determined number to the expected number of objects in the environment for each object type indicated in the annotated floor plan of the environment. Figure 1 In the illustrated embodiment, the spatial indexing system 130 includes a camera path module 132, a camera path storage 134, a floor plan storage 136, a model generation module 138, a model storage 140, a model visualization module 142, an expected quantity determination module 144, annotated 3D model generation module 146, a quantity estimation module 148, a progress determination module 150, a progress visualization module 152, a training module 154, and a training data storage 156.

[0033] The camera path module 132 receives image frames in the walkthrough video and other data collected by the video capture system 110 as the system 110 moves along the camera path, and determines a camera path based on the received frames and data. In one embodiment, the camera path is defined as a 6D camera pose for each frame in the walkthrough video as a sequence of frames. The 6D camera pose for each frame is an estimate of the relative position and orientation of the 360-degree camera 112 when the image frame was captured. The camera path module 132 can store the camera path in a camera path memory 134.

[0034] In one embodiment, the camera path module 132 uses a SLAM (simultaneous localization and mapping) algorithm to simultaneously (1) determine an estimate of the camera path by inferring the position and orientation of the 360-degree camera 112, and (2) model the environment using direct methods or using landmark features extracted from the walkthrough video as a sequence of frames (such as Oriented FAST and Rotated BRIEF (ORB), Scale Invariant Feature Transform (SIFT), Speeded Up Robust Features (SURF), etc.). The camera path module 132 outputs a vector of six-dimensional (6D) camera poses over time, with one 6D vector for each frame in the sequence (three for localization and three for orientation), and the 6D vectors can be stored in the camera path storage device 134. Referring to FIG. Figure 2A Embodiments of the camera path module 132 are described in detail.

[0035] The spatial indexing system 130 may also include a floor plan storage 136 that stores one or more floor plans, such as floor plans of an environment captured by the video capture system 110. As mentioned herein, a floor plan is a scaled two-dimensional (2D) graphical representation of an environment (e.g., a portion of a building or structure) from a top-down perspective. In an alternative embodiment, the floor plan may be a 3D model of the construction to be completed rather than a 2D diagram. The floor plan is annotated to specify the location, size, and object type of physical objects expected in the environment after the construction is completed. In some embodiments, the floor plan is manually annotated by a user associated with the client device 160 and provided to the spatial indexing system 130. In other embodiments, the spatial indexing system 130 annotates the floor plan using a machine learning model that is trained using a training data set of annotated floor plans to identify the location, size, and object type of physical objects expected in the environment. Each physical object is associated with an object type such as a door, window, wall, staircase, lamp, and cabinet. The object type may be associated with a construction material such as drywall, paint, cement, brick, and wood. Different parts of a building or structure may be represented by separate floor plans. For example, in the construction example above, the spatial index system 130 may store separate floor plans for each floor, unit, or substructure. In some embodiments, a given part of a building or structure may be represented by multiple floor plans, each corresponding to a different trade, such as mechanical, electrical, or plumbing.

[0036] The model generation module 136 generates a 3D model of the environment. As mentioned herein, a 3D model is an immersive model of the environment generated using image frames from a walkthrough video of the environment, the relative position of each image frame (as indicated by the 6D pose of the image frame), and (optionally) the absolute position of each image frame on a floor plan of the environment. The model generation module 136 aligns the image frames with the annotated floor plan. Because the 3D model is generated using image frames aligned with the annotated floor plan, the 3D model is also aligned with the annotated floor plan. In one embodiment, the model generation module 136 receives a sequence of frames and their corresponding camera paths (e.g., a 6D pose vector specifying a 6D pose for each frame in the walkthrough video as a sequence of frames) from the camera path module 132 or the camera path memory 134, and extracts a subset of the image frames in the sequence and their corresponding 6D poses to be included in the 3D model. For example, if the walkthrough video as a sequence of frames is a video captured at 30 frames per second, the model generation module 136 subsamples the image frames by extracting frames and their corresponding 6D poses at intervals of 0.5 seconds. Figure 2BEmbodiments of the model generation module 136 are described in detail. The model generation module 138 may use methods such as structure from motion (SfM), simultaneous localization and mapping (SLAM), monocular depth map generation, or other methods for generating a 3D representation of the environment based on image frames in a walkthrough video. In some embodiments, the model generation module 138 may receive lidar data from the video capture system 110 and generate a 3D point cloud. After generating the 3D model, the model generation module 138 stores the 3D model in the model storage 140. The model storage 140 may also store the walkthrough video used to generate the 3D model in the model storage 140.

[0037] The model visualization module 142 provides a visualization interface to the client device 160. The visualization interface allows the user to view the 3D model in two ways. First, the visualization interface provides a 2D overhead map representing the corresponding floor plan of the environment from the floor plan storage 136. The 2D overhead map is an interactive interface in which each relative camera position indicated on the 2D map is interactive, so that clicking on a point on the map navigates to the portion of the 3D model corresponding to the selected point in space. Second, the visualization interface provides a first-person view of the extracted 360-degree frame, which allows the user to pan and zoom around the image frame and navigate to other frames by selecting waypoint icons within the image frame that represent the relative positions of other frames. The visualization interface provides a first-person view of the frame after the user selects an image frame in the 2D overhead map or in the first-person view of a different frame.

[0038] The expected number determination module 144 accesses the annotated floor plan of the environment and identifies objects expected in the environment. The expected number determination module 144 determines instances where objects appear in the annotated floor plan, each object being associated with a location and an object type within the environment. After identifying the objects in the annotated floor plan, the expected number determination module 144 determines the total number of objects expected in the environment for each object type when construction is complete. The expected number determination module 144 can use a machine learning model trained by the training module 144 based on the training data of the annotated floor plan to identify the locations where objects appear in the annotated floor plan and the object types of the identified objects. For each object type that the user wishes to monitor, the expected number determination module 144 determines the total number of objects of the object type, as shown in the annotated floor plan. For example, for a given floor of a building, the user may wish to monitor the installation progress of windows, doors, windows, light fixtures, and walls, and the expected number determination module 144 determines the total number of windows, doors, windows, and walls that should be on the floor at the end of construction. For each object type that can be counted, the expected number determination module 144 can determine the total number of instances in which objects associated with the object type appear in the annotated floor plan. For example, the expected number determination module 144 performs text recognition or image recognition analysis on the annotated floor plan to determine the number of instances in which text or images representing the object type appear in the annotated floor plan.

[0039] In some embodiments, the object type can be associated with the total amount of construction materials expected to be used during construction based on the annotated environmental floor plan. For each object type that cannot be counted, such as paint, cement, and drywall, the expected quantity determination module 144 can add up the dimensions of the portions of the floor plan associated with the object type and determine the total amount of construction materials expected to be used. The annotated floor plan can include boundaries around different portions of the floor plan that use a specific type of construction material, and the expected quantity determination module 144 can determine the sum of the dimensions of the boundaries to determine the total amount of the type of construction material expected to be used to complete the construction. In a simpler implementation, the annotated floor plan can indicate the size of the material in linear feet, and the expected quantity determination module 144 can determine the expected quantity in linear feet or extrapolate the two-dimensional expected quantity in square feet based on known features about the building. For example, if the annotated floor plan indicates an expected length of 80 feet of drywall, the expected quantity determination module 144 can multiply the length by the known height of the wall to determine the two-dimensional expected quantity.

[0040] The annotated 3D model generation module 146 identifies objects captured in the image frames of the walkthrough video and modifies the 3D model generated by the model generation module 138 to include the identified objects. Each image frame of the walkthrough video is provided to a machine learning model, such as a neural network classifier, a nearest neighbor classifier, or other types of models configured to detect objects and identify the object type and the location of the object in the environment. The annotated 3D model generation module 146 can perform object detection, semantic segmentation, etc. to identify the object type and the pixel area representing the object in the image. Because the image frame is aligned with the floor plan, the annotated 3D model generation module 146 can determine the location within the environment where the object is detected. The machine learning model can be trained by the training module 154 and is trained based on training data including annotated image frames of historical environments stored in the training data storage 156. For each image frame, the machine learning model can output a classified image frame identifying the area where the object is detected, each area being associated with an object type.

[0041] After generating the 3D model and identifying the objects in the image frames, the annotated 3D model generation module 146 modifies the regions of the 3D model to include the identified objects. The 3D model of the environment can be combined with the classified image frames by projecting the classified image frames onto the 3D model. For details on the annotated 3D model generation module 146, refer to Figure 2C describe.

[0042] The quantity estimation module 148 estimates the quantity of each object type in the annotated 3D model by comparing it to the annotated floor plan of the environment. The annotated 3D model is compared to the annotated floor plan to determine areas of the 3D model classified with the object type (e.g., areas of the 3D model classified as "chassis") that overlap with areas of the annotated floor plan annotated with the object type (e.g., areas of the floor plan annotated as where the "chassis" is to be installed).

[0043] In one embodiment, to determine whether an object associated with an object type exists in the 3D model, the amount of overlap between an area of ​​the annotated floor plan labeled with the object type and a corresponding area of ​​the annotated 3D model classified with the object type is calculated. If the amount of overlap exceeds a predetermined threshold, the object type is considered to exist in the area on the 3D model. In another embodiment, a supervised classifier (e.g., a neural network classifier) ​​is trained by the training module 154 using the labeled data in the training data memory 156 to determine whether a specific object exists in an area on the annotated 3D model. Each instance in the labeled training data set may correspond to an environment and include an annotated 3D model modified to include an object that is identified in a walkthrough video of the environment and an annotated floor plan with a label indicating that an object exists at a location on the annotated floor plan. After training the supervised classifier, the quantity estimation module 148 applies the supervised classifier to the input annotated floor plan and the annotated 3D model to receive as output the probability of the object type existing at the area of ​​the annotated 3D model. The quantity estimation module 148 may compare the output probability with a predetermined threshold. When the probability associated with an object type for a given region is greater than a predetermined threshold, the quantity estimation module 148 determines that an object of the object type is present at the region. When the probability is below a predetermined threshold, the quantity module 148 determines that an object of the object type is not present at the region.

[0044] The benefit of using the comparison between the annotated 3D model and the annotated floor plan is that the noise in the 3D model can be reduced, which improves the accuracy of object detection and progress tracking in the construction. The quantity estimation module 148 does not include the classified areas of the annotated 3D model that do not match the annotated floor plan in the estimated quantity of the object type. For example, the annotated 3D model may incorrectly indicate that there is drywall on the floor due to noise, which may lead to an overestimation of the amount of drywall used during construction. However, the drywall on the ground is not included in the estimated amount because the annotated floor plan indicates that there should be no drywall on the ground. Another benefit of using the comparison between the annotated 3D model and the annotated floor plan is the ability to detect installation errors. If there is a misalignment between the updated 3D model and the annotated floor plan that exceeds a predetermined threshold, the misalignment can be marked for manual review by a human operator. For example, if the 3D model indicates that a wall is constructed where there should not be a wall according to the annotated floor plan, an error can be marked.

[0045] In another embodiment, a supervised classifier is trained by training module 154 using a training set in training data storage 156, where each instance is associated with an environment and includes an unannotated 3D model generated from a walkthrough video of the environment, an annotated floor plan with labels indicating the presence of objects at locations on the annotated floor plan, and a set of image frames from the walkthrough video where locations marked with objects on the annotated floor plan are visible. In this embodiment, the 3D model from model generation module 138 is used as input with the walkthrough video and the annotated floor plan. Figure 1 The supervised classifier outputs the probability of the object type present at the region of the annotated 3D model.

[0046] Another benefit of using a comparison between an annotated 3D model and an annotated floor plan rather than using a comparison between two-dimensional image frames from a walk-through video is that the annotated 3D model can verify the location of objects detected in the image frames. For example, the annotated floor plan indicates that at the end of construction, there should be a first wall at a first distance from a reference point and a second wall parallel to the first wall at a second distance from the reference point. The first distance is less than the second distance, so that at the end of construction, the second wall is not visible from the reference point because it is blocked by the first wall. If the image frame captured from the reference point during construction includes drywall, the spatial indexing system 130 may not be able to determine whether the drywall is part of the first wall or the second wall because the image frame does not include depth information. However, using the annotated 3D model, the spatial indexing system 130 can distinguish between the two walls.

[0047] When determining that an object is present in a location on the annotated 3D model as expected in the floor plan, historical information can also be used to bias the quantity estimation module 148, especially when the quantity estimation module 148 is used to quantify objects in the same location at different times. In one embodiment, a Markov model is used to model the probability of an object being present in a location on the annotated 3D model over time. For example, the presence of "drywall" in a location on the 3D model on one day can bias the system to identify "drywall" in the same location on a subsequent day, while reducing the probability of "frame" being present in the location on a subsequent day. Such probabilities can be learned from training data or estimated by a person based on real-world constraints (e.g., the installation of "frame" usually precedes the installation of "drywall") and provided to the system.

[0048] The progress determination module 150 calculates the installation progress of the object types indicated in the annotated floor plan. For each object type expected to be used during construction, the progress determination module 150 calculates the installation progress by dividing the number of objects of the object type in the annotated 3D model determined by the quantity estimation module 148 by the total number of objects of the expected object type determined by the expected quantity determination module 144. For object types associated with construction materials, the areas in the annotated 3D model that are determined to have been installed with the construction material (e.g., drywall) and the corresponding areas in the annotated floor plan are divided into tiles or cells. For each tile or cell, a score is calculated based on the overlap between the area on the annotated floor plan of the cell or tile and the corresponding area in the annotated 3D model of the cell or tile. If the score exceeds a predetermined threshold, the amount of material defined by the tile or cell is considered to be present at that location on the floor plan. To calculate the installation progress of an object type associated with a construction material, the number of units or tiles of that material type found to exist on the annotated 3D model is divided by the total number of units or tiles of the particular material type expected as indicated in the annotated floor plan.

[0049] The progress visualization module 152 provides a visualization interface to the client device 160 to present the construction progress. The progress visualization module 152 allows the user to view the progress made over time for different object types and for different parts of the environment. Figure 4A and 4E Describes an example of a visualization interface.

[0050] Client device 160 is any computing device that can connect to network 120, such as a smartphone, tablet computer, laptop computer. Client device 160 displays an interface to a user on a display device such as a screen and receives user input to interact with the interface. Fig. 9 An example implementation of a client device is depicted by computer system 900 in FIG.

[0051] IV. Overview of Camera Path Generation

[0052] Figure 2A According to an embodiment Figure 1 1 is a block diagram of a camera path module 132 of the spatial indexing system 130 shown in FIG. The camera path module 132 receives input data captured by the video capture system 110 (e.g., a sequence of 360 degree frames 212, motion data 214, and position data 223) and generates a camera path 226. Figure 2A In the illustrated embodiment, the camera path module 132 includes a simultaneous localization and mapping (SLAM) module 216 , a motion processing module 220 , and a path generation and alignment module 224 .

[0053] The SLAM module 216 receives the sequence of 360 degree frames 212 and executes the SLAM algorithm to generate a first estimate 218 of the camera path. Before executing the SLAM algorithm, the SLAM module 216 may perform one or more pre-processing steps on the image frames 212. In one embodiment, the pre-processing steps include extracting features from the image frames 212 by converting the sequence of 360 degree frames 212 into a sequence of vectors, where each vector is a feature representation of a corresponding frame. In particular, the SLAM module may extract SIFT features, SURF features, or ORB features.

[0054] After extracting the features, the preprocessing step may also include a segmentation process. The segmentation process segments the walkthrough video as a sequence of frames into segments based on the quality of the features in each image frame. In one embodiment, the feature quality in a frame is defined as the number of features extracted from the image frame. In this embodiment, the segmentation step classifies each frame as having high feature quality or low feature quality based on whether the feature quality of the image frame is above or below a threshold, respectively (i.e., frames with feature quality above the threshold are classified as high quality, while frames with feature quality below the threshold are classified as low quality). Low feature quality may be caused by, for example, excessive motion blur or low lighting conditions.

[0055] After classifying the image frames, the segmentation process segments the sequence such that consecutive frames with high feature quality are combined into segments, while frames with low feature quality are not included in any segment. For example, assume that the camera path travels along a poorly lit corridor into and out of a series of well-lit rooms. In this example, the image frames captured in each room may have high feature quality, while the image frames captured in the corridor may have low feature quality. As a result, the segmentation process segments the walkthrough video, which is a sequence of frames, such that each consecutive sequence of frames captured in the same room is segmented into a single segment (resulting in a separate segment for each room), while the image frames captured in the corridor are not included in any segment.

[0056] After the pre-processing step, the SLAM module 216 executes a SLAM algorithm to generate a first estimate 218 of the camera path. In one embodiment, the first estimate 218 is also a vector of 6D camera poses over time, with one 6D vector for each frame in the sequence. In embodiments where the pre-processing step includes segmenting the walk-through video as a sequence of frames, the SLAM algorithm is executed separately for each segment to generate a camera path segment for each frame segment.

[0057] The motion processing module 220 receives the motion data 214 collected as the video capture system 110 moves along the camera path and generates a second estimate 222 of the camera path. Similar to the first estimate 218 of the camera path, the second estimate 222 can also be represented as a 6D vector of the camera pose over time. In one embodiment, the motion data 214 includes acceleration and gyroscope data collected by an accelerometer and a gyroscope, respectively, and the motion processing module 220 generates the second estimate 222 by performing a dead reckoning process on the motion data. In embodiments where the motion data 214 also includes data from a magnetometer, the magnetometer data can be used in addition to or instead of the gyroscope data to determine changes in the orientation of the video capture system 110.

[0058] The data generated by many consumer-grade gyroscopes includes a time-varying bias (also known as drift) that, if not corrected, can affect the accuracy of the second estimate 222 of the camera path. In embodiments where the motion data 214 includes all three types of data described above (accelerometer, gyroscope, and magnetometer data), the motion processing module 220 can use the accelerometer and magnetometer data to detect and correct for such bias in the gyroscope data. Specifically, the motion processing module 220 determines the direction of the gravity vector from the accelerometer data (which generally points in the direction of gravity) and uses the gravity vector to estimate two dimensions of the tilt of the video capture system 110. At the same time, the magnetometer data is used to estimate the heading bias of the gyroscope. Because the magnetometer data can be noisy, particularly when used in a building whose internal structure includes steel beams, the motion processing module 220 can calculate and use a rolling average of the magnetometer data to estimate the heading bias. In various embodiments, the rolling average can be calculated over a time window of 1 minute, 5 minutes, 10 minutes, or some other period.

[0059] The path generation and alignment module 224 combines the first estimate 218 and the second estimate 222 of the camera path into a combined estimate 226 of the camera path. In embodiments where the video capture system 110 also collects position data 223 while moving along the camera path, the path generation module 224 may also use the position data 223 when generating the camera path 226. If a floor plan of the environment is available, the path generation and alignment module 224 may also receive the floor plan 257 as input and align the combined estimate of the camera path 216 to the floor plan 257. Figure 5 , Figure 6 7 depict example techniques for combining the first estimate 218 and the second estimate 222 and aligning the camera path to the floor plan.

[0060] V. Overview of Model Generation

[0061] Figure 2B According to an embodiment Figure 1 1 is a block diagram of the model generation module 138 of the spatial indexing system 130 shown. The model generation module 138 receives the camera path 226 generated by the camera path module 132, along with the sequence of 360-degree frames 212 captured by the video capture system 110, the floor plan 257 of the environment, and information about the 360-degree camera 254. The output of the model generation module 138 is a 3D model 266 of the environment. In the illustrated embodiment, the model generation module 138 includes a route generation module 252, a route filtering module 258, and a frame extraction module 262.

[0062] The route generation module 252 receives the camera path 226 and the 360-degree camera information 254 and generates one or more candidate route vectors 256 for each extracted frame. The 360-degree camera information 254 includes a camera model 254A and a camera height 254B. The camera model 254A is a model that maps each 2D point in the 360-degree frame (i.e., as defined by a pair of coordinates that identify a pixel within the image frame) to a 3D ray representing the direction of sight from the 360-degree camera to the 2D point. In one embodiment, the spatial index system 130 stores a separate camera model for each type of camera supported by the system 130. The camera height 254B is the height of the 360-degree camera relative to the floor of the environment when capturing the walk-through video as a sequence of frames. In one embodiment, it is assumed that the 360-degree camera height has a constant value during the image frame capture process. For example, if the 360-degree camera is mounted on a hat worn on the user's body, the height has a constant value equal to the sum of the user's height and the height of the 360-degree camera relative to the top of the user's head (both quantities can be received as user input).

[0063] As referred to herein, a route vector for an extracted frame is a vector that represents a spatial distance between the extracted frame and one of the other extracted frames. For example, a route vector associated with an extracted frame has a tail at the extracted frame and a head at the other extracted frame, such that adding the route vector to the spatial position of its associated frame produces the spatial position of the other extracted frame. In one embodiment, the route vector is calculated by performing vector subtraction to calculate the difference between the three-dimensional positions of two extracted frames, as indicated by their respective 6D pose vectors.

[0064] Referring to the model visualization module 142, the route vector of the extracted frame is used later after the model visualization module 142 receives the 3D model 266 and displays the first-person view of the extracted frame. When displaying the first-person view, the model visualization module 142 presents a waypoint icon (in the image frame) at a location in the image frame that represents the location of another frame (e.g., the image frame at the head of the route vector). Figure 3BIn one embodiment, the model visualization module 140 determines the location within the image frame at which to render the waypoint icon corresponding to the route vector using the following equation:

[0065] P icon =M proj *(M view ) -1 *M delta *G ring

[0066] In this equation, Mproj is the projection matrix containing the parameters of the 360-degree camera projection function used for rendering, Mview is the isometric matrix representing the position and orientation of the user relative to his or her current frame, Mdelta is the route vector, Gring is the geometry of the mesh model (a list of 3D coordinates) representing the waypoint icon being rendered, and Picon is the geometry of the icon within the first-person view of the image frame.

[0067] Referring again to the route generation module 138, the route generation module 252 can calculate a candidate route vector 256 between each pair of extracted frames. However, displaying a separate waypoint icon for each candidate route vector associated with a frame can result in a large number of waypoint icons (e.g., dozens) being displayed in the frame, which can overwhelm the user and make it difficult to discern between the individual waypoint icons.

[0068] To avoid displaying too many waypoint icons, route filtering module 258 receives candidate route vectors 256 and selects a subset of route vectors to be displayed, with route vectors 260 represented by corresponding waypoint icons in the first-person view. Route filtering module 256 can select displayed route vectors 256 based on various criteria. For example, candidate route vectors 256 can be filtered based on distance (e.g., only route vectors with a length less than a threshold length are selected).

[0069] In some embodiments, route filtering module 256 also receives a floor plan 257 of the environment, and also filters candidate route vectors 256 based on features in the floor plan. In one embodiment, route filtering module 256 uses features in the floor plan to remove any candidate route vectors 256 that pass through a wall, which results in a set of displayed route vectors 260 that point only to locations visible in the image frame. This can be done, for example, by extracting a frame patch of the floor plan from an area of ​​the floor plan surrounding the candidate route vector 256, and submitting the image frame patch to a frame classifier (e.g., a feed-forward, deep convolutional neural network) to determine whether a wall is present within the patch. If a wall is present within the patch, the candidate route vector 256 passes through the wall and is not selected as one of the displayed route vectors 260. If a wall is not present, the candidate route vector does not pass through the wall, and can be selected as one of the displayed route vectors 260 based on any other selection criteria (e.g., distance) considered by module 258.

[0070] Image frame extraction module 262 receives the sequence of 360 degree frames and extracts some or all of the image frames to generate extracted frames 264. In one embodiment, the sequence of 360 degree frames is captured as frames of a 360 degree walk-through video, and image frame extraction module 262 generates a separate extracted frame for each frame. Figure 1 As described, the image frame extraction module 262 may also extract a subset of the walk-through video, which is a sequence of 360-degree frames 212. For example, if the walk-through video is captured as a sequence of 360-degree frames 212 at a relatively high frame rate (e.g., 30 or 60 frames per second), the image frame extraction module 262 may extract a subset of image frames at regular intervals (e.g., two frames per second of the video) so that a more manageable number of extracted frames 264 are displayed to the user as part of the 3D model.

[0071] Floor plan 257, displayed route vector 260, camera path 226, and extracted frames 264 are combined into 3D model 266. As described above, 3D model 266 is a representation of the environment that includes a set of extracted frames 264 of the environment, the relative position of each image frame (as shown in the 6D pose in camera path 226). Figure 2B In the illustrated embodiment, the 3D model also includes a floor plan 257 , the absolute position of each image frame on the floor plan, and displayed route vectors 260 for some or all of the extracted frames 264 .

[0072] VI. Comparison of the Annotated 3D Model and the Floor Plan

[0073] Figure 2CA block diagram illustrating a comparison of an annotated 3D model 280 and a floor plan 257 according to one embodiment is shown. The annotated 3D model generation module 146 receives as input the 3D model 266 generated by the model generation module 138 and the 360-degree frame 212 of the walk-through video captured by the video capture system 110. The annotated 3D model generation module 144 includes an object identifier module 274 and a 3D model annotation module 278, and outputs an annotated 3D model 280. The object identifier module 274 identifies the objects captured in the 360-degree frame 212. The object identifier module 274 can be a machine learning model, such as a neural network classifier, a nearest neighbor classifier, or other types of models configured to identify object types and object locations in an input image frame. The object identifier module 274 can also perform object detection, semantic segmentation, etc. to identify the type and location of objects in the image. The object identifier module 274 outputs a classified image frame 276 identifying regions where objects are detected, each region being associated with an object type.

[0074] The 3D model 266 and the classified frames 276 are provided to a 3D model annotation module 278, which modifies the 3D model 266 to include the objects in the classified frames 276. The 3D model annotation module 278 may project the classified frames 276 onto the 3D model 266. The 3D model 266 may be combined with the classified frames 276 by projecting each classified pixel in each classified frame to its corresponding point in the 3D model 255 using the calibrated camera model. The classification of a point in the 3D model may be determined by combining the classifications of all relevant pixels from each classified frame 276 (e.g., using a linear combination of the classification probabilities).

[0075] The annotated 3D model 280 and the annotated floor plan 257 are provided as inputs to the quantity estimation module 148. The quantity estimation module 148 determines an estimated quantity of each object type in the annotated 3D model 280 based on a comparison with the floor plan 257. The quantity estimation module 148 determines the likelihood that objects associated with the object type exist. The expected quantity determination module 144 then determines an expected quantity of objects of each object type that should be in the environment when construction is complete. The estimated quantity and expected quantity are provided to the progress determination module 150, which determines the construction progress of each object type by comparing the estimated quantity of the object type installed with the expected quantity of the object type that is expected to be installed at the end of construction.

[0076] VII. Model Visualization Interface - Example

[0077] Figure 3A-3E FIG. 4 shows a portion of a model visualization interface provided by a model visualization module according to an embodiment. Figure 1 As described in , the model visualization interface allows a user to view each of the captured images at its corresponding location within the 3D model of the environment.

[0078] Figure 3A-3E Continuing with the example of the general contracting company from above. As the framing is completed on the construction site, the general contractor captures a sequence of images within each unit to create a record of the work that will soon be hidden by the installation of drywall. The captured images are provided as input to the camera path module 132, which generates a vector of 6D camera poses (one 6D pose for each image). The 6D camera poses are provided as input to the model visualization module 142, which provides a 2D representation of the relative camera position associated with each image. The user can view the representation by viewing the visualization interface provided by the model visualization module 142 using a client device 160, and the user can navigate to different images in the sequence by selecting icons on the 2D overhead perspective map. After the user has selected an icon for an image in the 2D overhead perspective map, the visualization interface displays a first-person view of the image that the user can pan and zoom. The first-person view also includes waypoint icons representing the locations of other captured images, and the user can navigate to a first-person view of one of these other images by selecting the waypoint icon for the image. As described above with respect to Figure 2B As described, each waypoint icon is presented based on a route vector pointing from an image being displayed to another image. Figure 3A shows an example of a 2D top-down perspective map, Figure 3B An example of a first-person view is shown. Figure 3B In the first-person view shown, the waypoint icons are blue circles.

[0079] Returning to the general contracting company example, two months after the images were recorded, a problem was discovered in one of the units that required inspection of electrical work hidden within one of the walls. Traditionally, inspecting this electrical work would have required removing drywall and other finished finishes to expose the work, a very expensive operation. However, as an alternative, the general contractor was able to access a visualization interface and use a 2D overhead map perspective to identify the location within the building where the problem was discovered. The general contractor can then click on that location to view the imagery taken at that location. In this example, the imagery was taken at the location where the problem was discovered. Figure 3C Image shown.

[0080] In one embodiment, the visualization interface also includes a split screen view that displays a first image on one side of the screen and a second image on the other side of the screen. For example, this can be used to create a side-by-side view of two images captured at the same location at different times. The two views can also be synchronized so that the zoom / orientation can be adjusted in one view while the zoom / orientation is adjusted in the other view.

[0081] exist Figure 3D and 3E , a general contractor has used a split-screen view to create a side-by-side view that displays an image taken from a day after drywall installation on the right, and an image taken from an earlier date (e.g., a day before drywall installation) on the left. By using the visualization interface to "go back in time" and view the electrical work before it was covered with drywall, the general contractor can inspect electrical issues while avoiding the need for expensive drywall removal. Furthermore, because the spatial indexing system 130 can automatically index the location of each captured image without requiring the user to perform any manual annotations, the process of capturing and indexing images consumes less time and can be performed regularly, such as several times a day or week.

[0082] VIII. Progress Visualization Interface — Example

[0083] Figure 4A-4E A progress visualization interface provided by a progress visualization module according to one embodiment is shown. Figure 4A-4E Continuing with the general contracting company example from above. While working on a project at a construction site, a user captures a walk-through video of the construction site and provides it to the spatial indexing system 130 to determine how much progress has been made for the object types being tracked. The user may capture the walk-through video periodically (e.g., daily, weekly) and request analysis of the construction progress over time. The spatial indexing system 130 presents the determined construction progress to the user in the visualization interface 400.

[0084] exist Figure 4A , a visualization interface 400 presents a construction progress for a wall by tracking the installation of insulation and drywall. The visualization interface includes a first interface 410 configured to present the number of installations completed with a bar graph for each object type and a second interface 420 configured to present the cumulative number of installations monitored over time represented as a line graph. The visualization interface 400 also includes a summary interface 430 showing an estimated number of installations compared to an expected total number of installations for each of the insulation and drywall. The summary interface 430 also includes an estimated target date for completing the installation based on the average installation rate for each object type.

[0085] exist Figure 4B, a visualization interface 400 includes a map 440 of a construction site and construction progress for object types, including layout, top rail, framing, insulation, drywall, and tape. The map 440 of the construction site may be a top-down view of an annotated 3D model of the environment. The locations of installed object types are shown in the map 440, and an estimated number of installed object types are shown in a summary 450 on the right side of the visualization interface. Figure 4B In the example shown, the progress of the wall installation is shown, but the user can interact with the visualization interface and request to view the progress of other types of tasks (e.g., electrical, flooring, painting, appliances, cabinets, etc.).

[0086] Figure 4C-4E is a table view of the wall installation progress with different display modes. Figure 4C Display in "Quantity" mode, Figure 4D Displayed in "status" mode, Figure 4E Displayed in "% Complete" mode. Visualization interface 400 includes a column for "Last Captured" or last date that a new walk-through video was provided, a column for "Tracking Status" indicating whether work is "Not Started," "In Progress," or "Complete." Visualization interface 400 also includes columns for tracking the progress of each object type (e.g., layout, framing, insulation, drywall, tape) that goes into building the wall. Visualization interface 400 includes results for each of levels 1 through 10 of the project as well as aggregated results for the entire project.

[0087] Although not shown, the visualization interface 400 may also display a report that includes expected objects that have not yet been installed. The report may indicate the location and object type of the missing expected objects. In some embodiments, the locations on the map 440 corresponding to the missing expected objects may be visually distinguished to highlight the portion of the construction site that still requires work. The report may be updated based on user input (e.g., a user may check for missing expected objects from the report after the report has been installed) or when the spatial index system 130 performs analysis on a new walk-through video.

[0088] IX. Other Applications of Spatial Indexes

[0089] The methods and systems described herein can also be used in environments other than construction. Automatically counting and measuring objects in the physical world is a core capability that can be applied to various real-world use cases. For example, the method can be applied to theft detection to monitor the presence and quantity of objects expected in a hotel room after the guest has checked out. After the guest has checked out and left the hotel room, a hotel maintenance worker can capture a walkthrough video of the hotel room, and use a spatial index system to determine whether the object captured in the walkthrough video matches the expected quantity. In another example, the method is used to maintain and manage facilities such as warehouses or stores to track the inventory of warehouses or stores. Workers or robots can use a spatial index system to periodically capture walkthrough videos and determine the quantity of object types in a warehouse or store. When the determined quantity is different from the expected quantity, the spatial index system can mark the difference for inventory management.

[0090] Ⅹ. Spatial Indexing of Frames Based on Floor Plan Features

[0091] As described above, the visualization interface can provide a 2D top-down perspective map that displays the location of each frame in the floor plan of the environment. In addition to being displayed in the top view, the floor plan of the environment can also be used as part of the spatial indexing process to determine the location of each frame.

[0092] Figure 5 is a flow chart illustrating an example method 500 for automatically spatially indexing frames using features in a floor plan according to one embodiment. In other embodiments, the method 500 may include additional, fewer, or different steps, and Figure 5 The steps shown in may be performed in a different order. For example, method 400 may be performed without obtaining (530) a floor plan, in which case a combined estimate of the camera paths is generated (540) without using features in the floor plan.

[0093] The spatial indexing system 130 receives 510 a walkthrough video as a sequence of frames from the video capture system 110. As the video capture system 110 moves along a camera path through an environment (e.g., a floor of a construction site), image frames in the sequence are captured. In one embodiment, each of the image frames is captured by a 360-degree camera on the video capture system (e.g., the 360-degree camera described above with respect to FIG. 1 ). Figure 1 The 360 ​​degree camera 112 described above captures 360 degree frames of video. In another embodiment, each image frame has a narrower field of view, such as 90 degrees.

[0094] The spatial indexing system 130 generates 520 a first estimate of the camera path based on the walkthrough video as a sequence of frames. The first estimate of the camera path can be represented, for example, as a six-dimensional vector that specifies the 6D camera pose for each frame in the sequence. In one embodiment, components of the spatial indexing system 130 (e.g., as described above with reference to FIG. 5 ) are described in detail in the accompanying drawings. Figure 2A The SLAM module 216 described above performs a SLAM algorithm on the walkthrough video as a sequence of frames to simultaneously determine the 6D camera pose for each frame and generate a three-dimensional virtual model of the environment.

[0095] The spatial indexing system 130 obtains 530 a floor plan of the environment. For example, a plurality of floor plans (including a floor plan of the environment depicted in the received walk-through video as a sequence of frames) may be stored in the floor plan storage 136, and the spatial indexing system 130 accesses the floor plan storage 136 to obtain the floor plan of the environment. The floor plan of the environment may also be received from a user via the video capture system 110 or the client device 160 without being stored in the floor plan storage 136.

[0096] The spatial indexing system 130 generates 540 a combined estimate of the camera path based on the first estimate of the camera path and the physical objects in the floor plan. Figure 6 7 describe two example methods 600 , 700 of generating a combined estimate of the camera path 540 .

[0097] After generating 540 the combined estimate of the camera path, the spatial indexing system 130 generates 550 a 3D model of the environment. For example, the model generation module 138 generates the 3D model by combining the floor plan, the plurality of route vectors, the combined estimate of the camera path, and extracted frames from the walk-through video as a sequence of frames, as described above with respect to Figure 2B As described.

[0098] In some embodiments, the spatial indexing system 130 may also receive additional data (in addition to the walkthrough video as a sequence of frames) captured by the video capture system as it moves along the camera path. Figure 1 In embodiments where the spatial indexing system 130 receives additional data, the spatial indexing system 130 may also combine the additional data with the floor plan when generating 540 the combined estimate of the camera path. Figure 1 Use together.

[0099] In embodiments where the spatial indexing system 130 receives motion data and the walkthrough video as a sequence of frames, the spatial indexing system 130 may perform a dead reckoning process on the motion data to generate a second estimate of the camera path, as described above with respect to Figure 2AIn this embodiment, the step of generating 540 a combined estimate of the camera path includes filling in gaps in the first estimate of the camera path using portions of the second estimate. For example, gaps due to poor feature quality in some captured frames (which results in the SLAM algorithm being unable to produce a reliable 6D pose, as described above with respect to Figure 2A As described above, the first estimate of the camera path can be divided into camera path segments. In this case, the 6D poses from the second path estimate can be used to connect the segments of the first path estimate by filling the gaps between the segments of the first path estimate.

[0100] As described above, in some embodiments, method 500 may be performed without obtaining a floor plan 530, and a combined estimate 540 of the camera paths may be generated without using features in the floor plan. In one of these embodiments, the first estimate of the camera paths is used as the combined estimate of the camera paths without any additional data processing or analysis.

[0101] In another of these embodiments, a combined estimate of the camera path is generated 540 by generating one or more additional estimates of the camera path, calculating a confidence score for each 6D pose in each path estimate, and selecting the 6D pose with the highest confidence score for each spatial position along the camera path. For example, the additional estimates of the camera path may include one or more of: a second estimate using motion data, a third estimate using data from a GPS receiver, a fourth estimate using data from an IPS receiver, as described above. As described above, each estimate of the camera path is a vector of 6D poses describing the relative position and orientation of each frame in the sequence.

[0102] The confidence score of the 6D pose is calculated differently for each path estimate. For example, the confidence score of the above path estimate can be calculated in the following manner: the confidence score of the 6D pose in the first estimate (generated using the SLAM algorithm) represents the feature quality of the image frame corresponding to the 6D pose (e.g., the number of features detected in the image frame); the confidence score of the 6D pose in the second estimate (generated using the motion data) represents the noise level in the accelerometer, gyroscope and / or magnetometer data in the time interval before or after the time of the 6D pose, centered on the time of the 6D pose; the confidence score of the 6D pose in the third estimate (generated using GPS data) represents the GPS signal strength of the GPS data used to generate the 6D pose; and the confidence score of the 6D pose in the fourth estimate (generated using IPS data) represents the IPS signal strength (e.g., RF signal strength) of the IPS data used to generate the 6D pose.

[0103] After generating the confidence scores, the spatial indexing system 130 iteratively scans each estimate of the camera path and selects the 6D pose with the highest confidence score for each frame in the sequence and outputs the selected 6D pose as the 6D pose of the image frame in the combined estimate of the camera path. Because the confidence score for each path estimate is calculated differently, the confidence score for each path estimate can be normalized to a common scale (e.g., a scalar value between 0 and 1, where 0 represents the lowest possible confidence and 1 represents the highest possible confidence) before the iterative scanning process occurs.

[0104] Ⅺ. Camera Path Generation - Floor Plan Alignment with Brute Force Search

[0105] Figure 6 is a flow chart illustrating a method 600 for generating a combined camera path with a floor plan using a brute force search according to one embodiment. In other embodiments, the method 600 may include additional, fewer, or different steps, and Figure 6 The steps shown in can be performed in a different order.

[0106] Figure 6 The brute force search described in aligns an estimate of a camera path with a floor plan by generating multiple candidate camera paths (e.g., by applying different scaling, rotation, and translation operations to the camera path estimate) and selecting the candidate camera path with the highest consistency score relative to features on the floor plan. As described above, in some embodiments, the first estimate of the camera path can be divided into multiple camera path segments (e.g., due to poor feature quality in some captured frames). In these embodiments, a brute force search can be performed separately on each camera path segment to align each camera path segment with the floor plan. After aligning each camera path segment with the floor plan, the spatial indexing system can then use other data such as motion data to fill in gaps in the camera path between the aligned camera path segments. The combination of the aligned camera path and the filled gaps is then output as a combined camera path.

[0107] For ease of description, the brute force search is described below for camera path segments. However, the brute force search may also be performed on the entire first path estimate. For example, in some embodiments, the first estimate of the camera path is not divided into segments (e.g., because each frame in the sequence of 360-degree frames includes features of sufficiently high quality). In these embodiments, the brute force search is performed on the entire first path estimate. Figure 6 The brute force search described in is performed to align the first path estimate with the floor plan. In these embodiments, the result of the brute force search is output as a combined path estimate.

[0108] The spatial indexing system 130 generates 610 more candidate camera paths by applying various transformations, such as scaling, rotation, and translation operations, to the camera path segments.

[0109] The spatial indexing system 130 compares each candidate camera path to features in the floor plan and generates a consistency score for each candidate camera path 620. The consistency score of the candidate camera path indicates the degree of consistency between the candidate camera path and the floor plan.

[0110] In one embodiment, the consistency score is a weighted sum of four components. The first component represents the level of similarity between the candidate camera path and the features in the floor plan. For example, the first component can be calculated by generating an intersection score for each instance where the candidate camera path intersects a feature in the floor plan, and then combining the intersection scores (e.g., by adding them together). The intersection score represents the likelihood that the real-world camera path passes through the type of feature being intersected (e.g., a high intersection score is generated for an intersection with a door, while a low intersection score is generated for an intersection with a wall).

[0111] The second component and the third component are based on the location data received from the video capture system 110. The second component represents the degree of consistency between the candidate camera path and the data from the GPS receiver on the video capture system. For example, the second component is calculated by combining the distance between the location implied by the candidate camera path and the location specified by the location data at the same point in time. Meanwhile, the third component represents the degree of similarity between the candidate camera path and the data from the IPS receiver on the video capture system 110. The third component can be calculated in the same manner as the second component. In embodiments where the spatial indexing system 130 does not receive location data (or only receives one type of location data) from the video capture system 110, one or both of these components may be omitted from the consistency score.

[0112] The fourth component is generated by comparing features in the captured walk-through video as a sequence of frames to features from frames previously captured at the same location on the floor plan. In embodiments where the consistency score includes the fourth component, the spatial indexing system 130 stores the previously captured frames in association with their floorplan locations (e.g., as part of one of the models in the model memory 140).

[0113] After generating consistency scores for the candidate camera paths, the spatial indexing system 530 selects a candidate camera path based on the consistency scores. For example, the spatial indexing system 630 selects the candidate camera path with the highest consistency score.

[0114] Ⅹ. Camera Path Generation - Alignment of Floor Plan and Grid Map

[0115] Fig. 7A is a flow chart illustrating an example method 700 for generating a combined camera path using a grid map of a floor plan according to one embodiment. In other embodiments, the method 700 may include additional, fewer, or different steps, and Fig. 7A The steps shown in can be performed in a different order.

[0116] The spatial indexing system 130 generates 710 a grid map based on the floor plan. The grid map is a graph in which each node represents a spatial location on the floor plan, and each edge between two nodes specifies a transition score representing the traversability of the space between the two nodes. The transition score of the edge is determined based on the presence of a feature between the two nodes. For example, if there is a wall between the two nodes, the transition score of the edge between the two nodes is low to indicate that the camera path is unlikely to cross between the two nodes. Conversely, if there is a door between the two nodes, the transition score of the edge between the two nodes is high.

[0117] In one embodiment, the weights of the edges that pass through the wall are adjusted over time. For example, at a first time (e.g., in the early stages of construction, when the frame for the wall is not yet in place), the weights for these edges are assigned the same value as the weights for edges that pass through empty space in the room. At a second time (e.g., in an intermediate stage in construction, when the frame has been constructed, but the drywall is not yet in place), the weights for these edges are assigned reduced values ​​to indicate that physically passing through the wall is possible, but not common. At a third time (e.g., in a late stage of construction, when both the frame and the drywall are in place), the weights for these edges are assigned low values ​​to indicate that passing through the wall is physically impossible. The times corresponding to the first time, the second time, and the third time can be received from the client device 160 as user input, determined based on a construction schedule provided to the spatial index system 130, or by performing feature recognition on some or all of the image frames in the sequence to determine the construction progress on the wall.

[0118] In one embodiment, a computer vision feature classifier is used to detect the presence of a floor plan feature (such as a wall or door) between two nodes. In this embodiment, the feature classifier extracts frame features (e.g., SIFT SURG or ORB features) from a frame of the floor plan, and uses the image frame features to classify different features (e.g., walls and doors) that appear at various locations in the floor plan. For example, the feature classifier can be trained using training data comprising a plurality of manually annotated floor plans. In other embodiments, the presence of a feature between two nodes can be detected manually (e.g., by user input) or by using metadata within the floor plan.

[0119] Figure 7B An example of a floor plan is shown, Figure 7C An example of a grid map generated for this floor plan is shown. Figure 7C In the exemplary grid map shown, nodes are equally spaced in the horizontal and vertical directions so that the nodes and edges are used in a square two-dimensional grid. Edges with lower transition scores are Figure 7C The edges are shown with dashed lines, while the edges with higher transition scores are shown with thicker lines. Figure 7C As shown, the edge passing through the wall has a lower transition score, while the edge passing through the two doors has a higher transition score.

[0120] After generating 710 the grid map, the spatial indexing system 130 performs an iterative map matching algorithm to match the first estimate of the camera path to the grid map. For example, the map matching algorithm may be a hidden Markov model (HMM), a conditional random field (CRF), or some other type of map matching algorithm.

[0121] exist Fig. 7A In the illustrated embodiment, the spatial indexing system 130 performs map matching by executing a Markov process to iteratively identify nodes along a path through a grid map that match a first estimate of the camera path.

[0122] The iteration of the Markov process begins by identifying 720 a node along the camera path. When the process is initiated, the first node identified is the starting point of the camera path. The starting point may be provided as a user input or determined based on location data (e.g., GPS or IPS data) received from the video capture system 110.

[0123] Once the node is identified, the spatial index system 130 generates 730 scores for a plurality of other nodes in the grid map. In one embodiment, the spatial index system 130 scores each other node in the graph except for the identified node. In other embodiments, the spatial index system 130 scores a subset of the other nodes in the graph. For example, the spatial index system 130 scores each node that is separated from the identified node by less than a threshold number of edges (i.e., the spatial index system 130 scores nodes that are close to the identified node). This may be useful, for example, when the grid map includes a large number of nodes and edges, and the computational intensity is too high to score each other node.

[0124] A score is generated 730 based on a transition score for an edge between the identified node and another node. The score is further based on the direction of the first estimate of the camera path near the identified node. For example, if the first estimate of the camera path travels to the left near the identified node, a higher score is generated for edges connecting the identified node to its neighboring nodes to the left, and a lower score is generated for edges connecting the identified node to its neighboring nodes above, below, and to the right. The score is also based on the distance traveled by the first estimate of the camera path near the identified node. For example, if the next 6D pose vector on the camera path is 4 feet away, and the neighboring nodes in the grid map are separated by a distance of 2 feet, then the node separated from the identified node by two edges is assigned a higher score.

[0125] The spatial index system 130 uses the scores of each other node to select 740 one of the other nodes as the next node along the camera path. The selected node is designated as the newly identified node, and the steps of generating 730 scores of the other nodes and selecting 740 the next node in the camera path are repeated until nodes along the entire camera path are identified. The spatial index system 130 can then perform a Viterbi algorithm to identify the most likely path through the grid map based on the identified nodes. The identified path can then be provided as an output of the combined estimate of the camera path of step 440.

[0126] Ⅻ. Progress Tracking

[0127] Figure 88 is a flow chart illustrating an example method for progress tracking using a walk-through video according to one embodiment. A spatial indexing system accesses 810 a floor plan of a portion of a building, the floor plan identifying the location of one or more expected objects within the portion of the building. For each of a plurality of object types being tracked, the spatial indexing system determines 820 one or more expected objects of the object type in the building based on the accessed floor plan. The spatial indexing system receives 830 a video comprising a plurality of image frames from a camera system, wherein the video is captured as the camera system moves through the portion of the building. The spatial indexing system identifies 840 one or more objects in the plurality of image frames, wherein each of the one or more objects is associated with an object type and a location within the portion of the building, wherein the object is disposed at the location within the portion of the building. The spatial indexing system generates 850 a 3D model of the portion of the building from the plurality of image frames. For each identified object of the identified one or more objects, the spatial indexing system modifies 860 an area of ​​the 3D model corresponding to the location within the portion of the building in which the identified object is disposed to include the identified object. For each object type, the spatial indexing system determines 870 a probability that the identified object exists at the location within the portion of the building based on the modified 3D model and the accessed floor plan. For each object type, the spatial indexing system determines 880 a difference between one or more expected objects and one or more identified objects associated with a probability greater than a predetermined threshold. For each object type, the spatial indexing system modifies 890 an interface to present the determined difference.

[0128] XIII. Hardware Components

[0129] Fig. 9 is a block diagram illustrating a computer system 900 upon which embodiments described herein may be implemented. Figure 1 In the context of Fig. 9 The computer system 900 described in the embodiment of the present invention can be used to implement the video capture system 110, the spatial index system 130 and the client device 160. The video capture system 110, the spatial index system 130 or the client device 160 can also use the computer system 900 described in the embodiment of the present invention. Fig. 9 The above-mentioned computer system 900 is implemented by a combination of multiple computer systems 900. The computer system 900 may be, for example, a laptop computer, a desktop computer, a tablet computer, or a smart phone.

[0130] In one implementation, the system 900 includes processing resources 901, main memory 903, read-only memory (ROM) 905, storage device 907, and communication interface 909. The system 900 includes at least one processor 901 for processing information and a main memory 903, such as a random access memory (RAM) or other dynamic storage device, for storing information and instructions to be executed by the processor 901. The main memory 903 can also be used to store temporary variables or other intermediate information during the execution of instructions to be executed by the processor 901. The system 900 can also include a ROM 905 or other static storage device for storing static information and instructions for the processor 901. A storage device 907, such as a magnetic disk or optical disk, is provided for storing information and instructions.

[0131] The communication interface 909 can enable the system 900 to communicate with one or more networks (e.g., network 140) using a network link (wireless or wired). Using the network link, the system 900 can communicate with one or more computing devices and one or more servers. The system 900 can also include a display device 911, such as a cathode ray tube (CRT), LCD monitor, or television, for displaying graphics and information to a user. An input mechanism 913, such as a keyboard including alphanumeric keys and other keys, can be coupled to the system 900 for communicating information and command selections to the processor 901. Other non-limiting illustrative examples of the input mechanism 913 include a mouse, a trackball, a touch-sensitive screen, or cursor direction keys for communicating direction information and command selections to the processor 901, and for controlling cursor movement on the display device 911. Other examples of the input mechanism 913 include a radio frequency identification (RFID) reader, a barcode reader, a three-dimensional scanner, and a three-dimensional camera.

[0132] According to one embodiment, the techniques described herein are performed by the system 900 in response to the processor 901 executing one or more sequences of one or more instructions contained in the main memory 903. These instructions may be read into the main memory 903 from another machine-readable medium (e.g., storage device 907). Execution of the sequences of instructions contained in the main memory 903 causes the processor 901 to perform the processing steps described herein. In alternative implementations, hard-wired circuitry may be used in place of or in combination with software instructions to implement the examples described herein. Therefore, the described examples are not limited to any specific combination of hardware circuitry and software.

[0133] XIV. Additional Considerations

[0134] As used herein, the term "comprising" followed by one or more elements does not exclude the presence of one or more additional elements. The term "or" should be interpreted as a non-exclusive "or" (for example, "A or B" can mean "A", "B" or "A and B") rather than an exclusive "or". The article "a" or "an" refers to one or more instances of the following elements, unless a single instance is clearly specified.

[0135] The drawings and written description describe exemplary embodiments of the present disclosure and should not be construed as reciting essential features of the present disclosure.The scope of the present invention should be construed by any claims issued in a patent that incorporates this specification.

Claims

1. A method comprising: accessing a floor plan of a portion of a building, the floor plan identifying locations of one or more expected objects within the portion of the building, wherein the one or more expected objects are associated with one or more object types; for each object type, determining one or more expected objects of the object type in the portion of the building based on the accessed floor plan; receiving a video from a camera system, the video comprising a plurality of image frames captured as the camera system is moved through the portion of the building; identifying one or more objects in the plurality of image frames, each of the one or more objects being associated with an object type and a location within the portion of the building, wherein the objects are disposed at the location within the portion of the building; generating a three-dimensional (3D) model of the portion of the building from the plurality of image frames; for each identified object of the one or more identified objects, modifying a region of the 3D model to include the identified object, the region corresponding to the location within the portion of the building, wherein the identified object is arranged at the location in the portion of the building; determining, for each identified object of the one or more identified objects, a probability that the identified object is located at the location within the portion of the building by applying a machine learning model to the modified 3D model and the accessed floor plan; for each object type, determining a count difference between the number of the one or more expected objects and the number of the identified one or more objects associated with a probability greater than a predetermined threshold; as well as For each object type, an interface displayed to a user is modified to present the determined count differences.

2. The method of claim 1, wherein the 3D model is generated based on 3D information captured by a lidar system. 3 . The method of claim 2 , wherein the floor plan is annotated with dimensions of the one or more expected objects associated with at least one of the object types.

4. The method of claim 1 , wherein for each of the one or more identified objects, a probability that the identified object is located at the location is also determined based on one or more previously determined probabilities that the identified object is located at the location.

5. The method of claim 1 , wherein identifying the one or more objects in the plurality of image frames further comprises: For each image frame: Another machine learning model is applied to the image frame, and the other machine learning model is configured to determine the location and the object type associated with the object captured in the image frame, and classify pixels in the image frame based on the determined location and the object type.

6. A method according to claim 5, wherein the other machine learning model is trained based on a training data set including training image frames of a training environment, and the training image frames are annotated with the location of one or more objects captured in the training image frames and the object type associated with the one or more objects.

7. The method of claim 5, wherein the another machine learning model determines the location and object type associated with the object based on object detection and semantic segmentation.

8. The method of claim 5, wherein for each identified object of the one or more identified objects, modifying a region of the 3D model further comprises: The classified pixels in the image frame are projected to corresponding points in the 3D model.

9. The method of claim 1, wherein the machine learning model is configured to: identifying an expected object associated with the same object type and the same location as the identified object; determining an overlap between an area of ​​the accessed floor plan that includes the expected object and an area of ​​the 3D model that includes the identified object; and The probability that the identified object is located at the location is determined based on the overlap.

10. The method of claim 9, wherein the machine learning model is trained based on a training dataset comprising an annotated 3D model of a training environment and an annotated floor plan of the training environment.

11. The method of claim 9, wherein the machine learning model is trained based on a training dataset comprising an unannotated 3D model of a training environment, an annotated floor plan of the training environment, and one or more image frames of the training environment.

12. The method according to claim 1, further comprising: for each object type, comparing the total number of the one or more expected objects to the total number of the one or more objects identified that are associated with a probability greater than the predetermined threshold; as well as For each object type, the comparison of the total number of the one or more expected objects and the total number of the one or more objects identified that are associated with a probability greater than the predetermined threshold is presented.

13. The method of claim 12, wherein a change in a comparison of the total number of the one or more expected objects and the total number of the one or more identified objects associated with a probability greater than the predetermined threshold is presented as a function of time.

14. A method comprising: accessing an annotated scaled map of an environment, the annotated scaled map identifying locations of one or more expected objects within the environment, wherein the one or more expected objects are associated with one or more object types; for each object type, determining one or more expected objects based on the annotated scaled drawing; receiving a video including a plurality of image frames from a camera system; generating a three-dimensional 3D model of the environment based on the plurality of image frames; identifying one or more objects in the 3D model, each identified object of the one or more identified objects being associated with a region of the 3D model, the region corresponding to a location within the environment; determining, for each identified object of the one or more identified objects, a probability that the identified object is located at the location within the environment by applying a machine learning model to the 3D model and the annotated scale map; for each object type, determining a count difference between the number of the one or more expected objects and the number of the identified one or more objects associated with a probability greater than a predetermined threshold; as well as For each object type, the interface is modified to present the count differences.

15. The method of claim 14, wherein the environment is a building under construction and the expected objects are objects that are expected to be in the building after the construction is complete.

16. The method of claim 14, wherein the environment is a hotel room and the one or more expected objects are objects that are expected to be in the hotel room after a guest checks out of the hotel room.

17. The method of claim 14, wherein the environment is a store and the one or more expected objects are products in inventory of the store.

18. The method of claim 14, wherein the annotated scale drawing includes dimensions of the one or more expected objects associated with at least one object type.

19. The method of claim 14, wherein the machine learning model is configured to: identifying an expected object associated with the same object type and the same location as the identified object; determining an overlap between a size of the expected object and a size of the area of ​​the 3D model that includes the identified object; and The probability that the identified object is located at the location is determined based on the overlap.

20. A non-transitory computer-readable storage medium storing executable instructions, which, when executed by a hardware processor, cause the hardware processor to perform steps, the steps comprising: accessing an annotated scaled map of an environment, the annotated scaled map identifying locations of one or more expected objects within the environment, wherein the one or more expected objects are associated with one or more object types; for each object type, determining one or more expected objects based on the annotated scaled drawing; receiving a video including a plurality of image frames from a camera system; generating a three-dimensional 3D model of the environment based on the plurality of image frames; identifying one or more objects in the 3D model, each identified object of the one or more identified objects being associated with a region of the 3D model, the region corresponding to a location within the environment; determining, for each identified object of the one or more identified objects, a probability that the identified object is located at the location within the environment by applying a machine learning model to the 3D model and the annotated scale map; for each object type, determining a count difference between the number of the one or more expected objects and the number of the identified one or more objects associated with a probability greater than a predetermined threshold; as well as For each object type, the interface is modified to present the count differences.

Citation Information

Patent Citations

  • Automated spatial indexing of images based on floorplan features

    US20190005719A1

  • Method and apparatus for assigning image location and direction to a floorplan diagram based on artificial intelligence

    US20200074668A1