A method comprising: at an electronic device having a processor: displaying a live camera feed comprising a sequence of images of a physical environment; obtaining a three-dimensional representation of the physical environment that was generated based on depth data and light intensity image data of the physical environment obtained during the displaying of the live camera feed; generating, using a neural network, a live preview of a preliminary two-dimensional floorplan of the physical environment based on the 3D representation of the physical environment; displaying the live preview of the preliminary 2D floorplan concurrently with the live camera feed; generating, based on the 3D representation, a final 2D floorplan of the physical environment, wherein generating the final 2D floorplan uses a different process than generating the live preview of the preliminary 2D floorplan; wherein the different process includes: classifying corners and small walls based on the 3D representation using a more computationally intensive neural network than the one used to generate the live preview; generating a transitional 2D floorplan based on the classified corners and small walls; determining refinements for the transitional 2D floorplan using a standardization algorithm; and generating the final 2D floorplan of the physical environment based on the determined refinements for the transitional 2D floorplan. displaying a live camera feed comprising a sequence of images of a physical environment; obtaining a three-dimensional representation of the physical environment that was generated based on depth data and light intensity image data of the physical environment obtained during the displaying of the live camera feed; generating, using a neural network, a live preview of a preliminary two-dimensional floorplan of the physical environment based on the 3D representation of the physical environment; displaying the live preview of the preliminary 2D floorplan concurrently with the live camera feed; generating, based on the 3D representation, a final 2D floorplan of the physical environment, wherein generating the final 2D floorplan uses a different process than generating the live preview of the preliminary 2D floorplan; wherein the different process includes: classifying corners and small walls based on the 3D representation using a more computationally intensive neural network than the one used to generate the live preview; generating a transitional 2D floorplan based on the classified corners and small walls; determining refinements for the transitional 2D floorplan using a standardization algorithm; and generating the final 2D floorplan of the physical environment based on the determined refinements for the transitional 2D floorplan. classifying corners and small walls based on the 3D representation using a more computationally intensive neural network than the one used to generate the live preview; generating a transitional 2D floorplan based on the classified corners and small walls; determining refinements for the transitional 2D floorplan using a standardization algorithm; and generating the final 2D floorplan of the physical environment based on the determined refinements for the transitional 2D floorplan.