# US 2024/0005570 A1 · Floor Plan Extraction

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0005570 A1
- Document ID: US20240005570A1
- Status: Published application
- Kind: A1
- Application number: 17/855,513
- Filed: 2022-06-30
- Published: 2024-01-04
- Earliest claimed: 2022-06-30
- Assignees: PassiveLogic, Inc.
- Applicants: PassiveLogic, Inc.
- Inventors: Justin Meiners
- Web page: https://patentgrep.com/patent/US20240005570A1

## CPC

- G06T 11/23: using straight lines or curves
- G01C 15/00: Surveying instruments or accessories not provided for in groups G01C1/00 - G01C13/00
- G01C 21/383: {Indoor data}
- G06T 5/50: using two or more images, e.g. averaging or subtraction
- G06T 5/77: Retouching; Inpainting; Scratch removal
- G06T 7/13: Edge detection
- G06T 7/162: involving graph-based methods
- G06T 7/181: involving edge growing; involving edge linking
- G06T 7/73: using feature-based methods
- G01S 17/89: for mapping or imaging
- G06T 2200/24: involving graphical user interfaces [GUIs]
- G06T 2207/10024: Color image
- G06T 2207/10028: Range image; Depth image; 3D point clouds
- G06T 2207/20104: Interactive definition of region of interest [ROI]
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G01C: MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY (measuring liquid level G01F; radio navigation, determining distance or velocity by use of propagation effects, e.g. Doppler effects, propagation time, of radio waves, analogous arrangements using other waves G01S)
- G01S: RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES

## Abstract

A loop shape representing a floor plan is extracted from an imperfect or incomplete floor plan scan by applying building construction techniques to fill in missing information. The floor plan is shown to the user during all stages of assembly, allowing the user to make a purposeful mark on the display, changing how the incomplete scan is interpreted. Whenever a marking is placed the floor plan is regenerated.

## Claims

### Claim 1

A machine-implemented method for extracting a floor plan from an imperfect floor plan scan composed of known line segments, comprising:
using a processor to generate a more-optimized floor plan;
displaying, by a user device with 3-D depth scanner and a 2-D camera, the more-optimized floor plan;
receiving feedback indicative of accuracy of the more-optimized floor plan by use of the 3-D depth scanner and the 2-D camera; and
in response to the feedback, using the processor to adjust the more-optimized floor plan based on the feedback.

### Claim 2 (depends on 1)

The machine-implemented method of claim 1, wherein receiving feedback indicative of accuracy of the floor plan comprises receiving a wall marking from a reading from the 3-D depth scanner and the 2-D camera, the wall marking comprising multiple positions and multiple orientations of a location in 2-D and 3-D, the wall marking indicated on the user device by a user.

### Claim 3 (depends on 2)

The machine-implemented method of claim 2, wherein the processor processes the multiple positions and multiple orientations of a location in 2-D and 3-D to determine a directed line segment, and wherein the directed line segment is added to the known line segments.

### Claim 4 (depends on 3)

The machine-implemented method of claim 3, wherein the processor processes the multiple positions and multiple orientations of a location in 2-D and 3-D to determine a directed line segment further comprises using both depth scanner measurements and camera measurements to determine an average of the multiple positions and the multiple orientations.

### Claim 5 (depends on 4)

The machine-implemented method of claim 4, wherein applying a heuristic to the floor plan comprises:
for each line segment within the known line segments, extending the line segment by a known amount creating an extended line segment associated with the line segment with a same orientation, and creating a second line segment of a second size perpendicular to and touching the line segment;
adding the extended line segment and the second line segment to a set of extended line segments;
for each two extended line segments within the set of extended line segments, adding possible intersections whose line segment orientations are similar to a set of possible intersections, and finding a possible edge path between two line segments associated with the extended line segments;
creating a cost graph comprising a vertex set and an edge set, wherein the vertex set comprises vertices representing a midpoint of each line segment, and wherein the edge set comprises edges, each edge comprising an intersection within the set of possible intersections, a starting vertex of the intersection, an ending vertex of the intersection and a cost, wherein the cost includes length from the starting vertex to the ending vertex and aesthetic costs; and
iteratively:
in the cost graph, choose an edge with a lowest cost, giving a chosen edge;
add the chosen edge to a floor plan graph; and
delete each edge with the starting vertex equal to the chosen edge starting vertex;
until the floor plan graph forms a loop.

### Claim 6 (depends on 5)

The machine-implemented method of claim 5, wherein adding the chosen edge to the floor plan graph comprises adding the possible edge path between the two line segments to the floor plan graph.

### Claim 7 (depends on 6)

The machine-implemented method of claim 6, wherein finding a possible end path comprises:
determining a first angle between two nearest ends of the two line segments;
determining a second angle between a far end of a first of the two line segments and a far end of a second of the two line segments; and
when the first angle is below a first threshold amount and the second angle is below a second threshold amount joining the first of the two line segments and the second of the two line segments.

### Claim 8 (depends on 7)

The machine-implemented method of claim 7, wherein when the first angle is above the first threshold amount or the second line segment is above the second threshold amount then zig-zagging the two line segments.

### Claim 9 (depends on 8)

The machine-implemented method of claim 8, wherein zigzagging the two line segments comprises creating a new line segment perpendicular to and between the first of the two line segments and extending a near end of the two line segments to the new line segment.

### Claim 10 (depends on 9)

The machine-implemented method of claim 9, wherein the cost further comprises adding a weighting value to the cost.

### Claim 11

A system for extracting a floor plan from an imperfect floor plan scan composed of line segments, the system comprising: a memory; a processor in operable communication with the memory, and a LiDAR-enabled user device with a display, the processor configured to for extracting a floor plan from an imperfect floor plan scan composed of known line segments, comprising:
generating a more-optimized floor plan by applying a heuristic to the imperfect floor plan scan;
displaying, by the LiDAR-enabled user device, the more-optimized floor plan;
receiving feedback from a user using the LiDAR-enabled user device indicative of accuracy of the floor plan; and
in response to the feedback, adjusting the more-optimized floor plan based on the feedback.

### Claim 12 (depends on 11)

The system of claim 11, wherein a line segment comprises an orientation, and wherein the known line segments comprises line segments.

### Claim 13 (depends on 12)

The system of claim 12, wherein applying a heuristic to the imperfect floor plan scan comprises:
for each line segment within the known line segments, extending the line segment by a known amount creating an extended line segment associated with the line segment with a same orientation, and creating a second line segment of a second size perpendicular to and touching the line segment;
adding the extended line segment and the second line segment to a set of extended line segments;
for each two extended line segments within the set of extended line segments, adding possible intersections whose line segment orientations associated with the extended line segments are similar to a set of possible intersections, and finding a possible edge path between two line segments associated with the extended line segments;
create a cost graph comprising a vertex set and an edge set, wherein the vertex set comprises vertices representing a midpoint of each line segment, and wherein the edge set comprises edges, each edge comprising an intersection within the set of possible intersections, a starting vertex of the intersection, an ending vertex of the intersection and a cost, wherein the cost includes length from the starting vertex to the ending vertex and aesthetic costs; and
iteratively:
in the cost graph, choose an edge with a lowest cost, giving a chosen edge;
add the chosen edge to a floor plan graph; and
delete each edge with the starting vertex equal to the chosen edge starting vertex;
until the floor plan graph forms a loop.

### Claim 14 (depends on 13)

The system of claim 13, wherein receiving feedback from a user using the LiDAR-enabled user device indicative of accuracy of the floor plan comprises the display showing a portion of a structure corresponding to the imperfect floor plan scan, and receiving a purposeful mark made on the display.

### Claim 15 (depends on 14)

The system of claim 14, wherein the processor processes the purposeful mark to create a directed line segment, and adds the directed line segment to the known line segments.

### Claim 16 (depends on 15)

The system of claim 15, further comprising deleting dead ends when a.

### Claim 17

A non-transitory machine-readable storage medium configured with data and instructions which upon execution by at least one processor cause one or more devices to perform a method of extracting a floor plan from an imperfect floor plan scan composed of known line segments, the method comprising:
using a processor to generate a more-optimized floor plan by applying a heuristic to the imperfect floor plan scan;
displaying, by a LiDAR-enabled user device, the more-optimized floor plan;
receiving feedback indicative of accuracy of the floor plan by use of the LiDAR-enabled user device; and
in response to the feedback, using the processor to adjust the more-optimized floor plan based on the feedback.

### Claim 18 (depends on 17)

The non-transitory machine-readable storage medium of claim 17, wherein applying a heuristic to the imperfect floor plan scan comprises:
for each line segment within the known line segments, extending the line segment by a known amount creating an extended line segment associated with the line segment with a same orientation, and creating a second line segment of a second size perpendicular to and touching the line segment;
adding the extended line segment and the second line segment to a set of extended line segments;
for each two extended line segments within the set of extended line segments, adding possible intersections, whose line segment orientations associated with the extended line segments are similar, to a set of possible intersections, and finding a possible edge path between two line segments associated with the extended line segments;
create a cost graph comprising a vertex set and an edge set, wherein the vertex set comprises vertices representing a midpoint of each line segment, and wherein the edge set comprises edges, each edge comprising an intersection within the set of possible intersections, a starting vertex of the intersection, an ending vertex of the intersection and a cost, wherein the cost includes length from the starting vertex to the ending vertex and aesthetic costs; and
iteratively:
in the cost graph, choose an edge with a lowest cost, giving a chosen edge;
add the chosen edge to a floor plan graph; and
delete each edge with the starting vertex equal to the chosen edge starting vertex;
until the floor plan graph forms a loop.

### Claim 19 (depends on 18)

The non-transitory machine-readable storage medium of claim 18, wherein the LiDAR-enabled user device further comprises a display and wherein receiving feedback from a user using the LiDAR-enabled user device indicative of accuracy of the floor plan comprises the display showing a portion of a structure corresponding to the imperfect floor plan scan, and receiving a purposeful mark made on the display.

### Claim 20 (depends on 19)

The non-transitory machine-readable storage medium of claim 19, wherein the more-optimized floor plan is used to modify equipment location at a location represented by the imperfect floor plan scan.
