Infer floor plan from 59 photos
- Time limit
- 8 hours
Agent is asked to survey a single-storey home from 59 photos and draw its floor plan as an architectural sheet.
Agent Input
What the agent is given: the instruction and its input files.
You are the architect preparing the as-built drawing of a home. Survey it from the photos and draw its floor plan as a professional architectural sheet, /app/floorplan.dxf.
Inputs
/app/views/000.jpgto058.jpg: 59 photos of one single-story home, taken from a tripod at 22 standing positions. The positions cover every room, including its balcony and terrace, but not every room has a position inside it: a small room may be seen only from a neighboring room or through its doorway. At each position, level photos were taken in up to four directions 90 degrees apart; some directions were left out, so a position has between one and four photos and none look straight up or straight down. Each is a 3072 x 3072 px pinhole image with a 90 degree field of view across and up and down. The files are in random order, each photo on its own: which photos were taken at the same position, which way each one looks, and where the positions are is for you to work out./app/home_info.json: the surveyed net floor area of this home.- Net (usable) floor area: 1,690 sq ft (157.04 m2), the sum of the floor areas of all rooms, its balcony and terrace included, each measured between interior wall faces.
/app/standard/sample_floorplan.dxfand.png: a finished sheet of a different home, as an example of the kind of drawing wanted. It tells you nothing about the home in the photos.
The photos show the home furnished and fitted out. Draw the floor plan of the building itself, as it stood before any of that was installed: its walls, doors, windows and openings. You have to infer that plan from what the fit-out leaves visible.
Leave out everything that was added to the building, whether movable or fixed, and do not let it move a wall, a room boundary or a room size:
- loose contents: furniture, appliances, rugs, curtains and blinds;
- built-in joinery: wardrobes, cabinets, shelving, display units and counters, including any that stand inside a doorway or opening;
- decorative linings and features: wall panelling, padded, stone-clad or mirrored feature walls, and niches built out in front of a wall.
Draw each wall at the face of the wall itself, behind whatever lines it or stands against it. Draw each window at its full glazed length, including any part that curtains or a wardrobe cover. Where a wall, floor or window is hidden, work out where it must be from what the photos do show: the other side of the wall, its thickness where it is exposed, and how the ceiling, the floor and the neighboring rooms line up.
Three things are part of the building and are drawn:
- A fixed, full-height metal or timber screen that closes off a space is a wall.
- A sliding or framed glass door is a door across its whole frame, from the wall end on one side to the wall end on the other. Measure the frame, fixed panels included, not the clear gap beside a parked leaf, and do not count a leaf where it parks in front of a wall.
- Plumbing fixtures are drawn as set out under
P-FIXTbelow.
How many rooms the home has and what they are is for you to work out.
The drawing
Draw the plan as a US residential floor plan, following common US practice (National CAD Standard / AIA layer names, imperial units, feet-and-inches dimensions) in the manner of the sample sheet. Someone holding only your DXF must be able to take off, by measuring the drawing and reading its text:
- every wall, with its length and position;
- every door (the entrance door included), cased opening and window, with its position and width;
- every room, with its boundary, name, clear dimensions and floor area;
- every plumbing fixture, with its type and position;
- the overall size of the building, and its gross and net floor areas.
Use your professional judgment for what is a room. As a guide: spaces that flow into each other with no wall or door between them (an open living, dining and kitchen area) are one room; corridors, balconies, terraces and walk-in closets are rooms; wardrobes and built-in cabinets are part of the room they open into.
So the sheet can be measured, keep to these layers. Model space is full size in inches ($INSUNITS = 1), as seen from above and not mirrored, with the walls parallel to the sheet edges. Orientation: draw the plan so that, as seen on the sheet, the kitchen is at the top of the home, the terrace and the balcony run along the bottom, and the foyer is to the right of the living room.
| Layer | Content |
|---|---|
A-WALL | Wall bodies as closed LWPOLYLINEs at a typical residential thickness, cut through at every door, opening and window. A railing, balustrade or low parapet is not a wall body. |
A-DOOR | Door symbols in the wall cuts. A cased opening has none. |
A-GLAZ | Window glazing lines in the wall cuts, running the length of the window. Glass doors are doors. |
A-AREA | One closed LWPOLYLINE per room along the interior faces of its walls. Where two rooms meet at an opening, the boundary runs across it in line with the wall faces. A free-standing column or pier stays inside the boundary, drawn as a wall body. |
A-AREA-BNDY | A line along each open side of a balcony or terrace, on the room boundary there. A side is open when only a railing, balustrade or low parapet closes it, with open air above: it is not a wall and gets no wall body. A side closed up to the ceiling by wall or glass is a wall or a window as usual. |
A-AREA-IDEN | Inside each room boundary: the room name (BEDROOM 2, KITCHEN, HALL...), its clear size (10'-5 1/2" x 8'-0 1/2": the overall width and depth of the room boundary, also when the room is not a rectangle) and its area (84 SQ FT). |
A-ANNO-DIMS | DIMENSION entities, at least 8, each showing the distance it measures: the overall width and the overall depth of the building, and strings that locate the walls and the openings in the exterior walls. |
A-ANNO-TEXT | The title, which includes the words FLOOR PLAN; the scale; and the GROSS and NET floor areas in SQ FT. |
P-FIXT | One block reference (INSERT) per plumbing fixture, drawn in plan at the fixture's real size and place. The block's name begins with the fixture's type: TOILET, LAVATORY, SINK, BATHTUB, SHOWER or WASHER. Nothing else goes on this layer. |
Draw every plumbing fixture the photos show, one block reference each. A fixture's position is the center of its block reference as it lies on the sheet.
TOILET: a toilet.LAVATORY: a wash basin in a bathroom, or one that serves a bathroom from just outside it. One per bowl: a double vanity has two.SINK: a kitchen, bar, laundry or utility sink. One per sink, however many bowls it has.BATHTUB: a bathtub.SHOWER: a shower, placed at the center of its enclosure or, where it has none, of the floor area it wets.WASHER: a washing machine or dryer standing on the floor. A machine stacked on another is not drawn separately.
Vanity counters, cabinets, kitchen appliances, water heaters and floor drains are not plumbing fixtures here. The sample sheet shows no plumbing fixtures; draw yours as described here.
Work only from the files provided: do not look for this home, its listing or its floorplan online.
You have 28800 seconds to complete this task.

Grading & Reference Solution
How the submission is scored, and a human expert-authored reference solution.
Gates
The sheet is there, reads as a DXF and has rooms.
- Sheet present · /app/floorplan.dxf exists.
- DXF reads · ezdxf opens it; $INSUNITS in inches, feet, mm, cm or m; curves can be flattened.
- Room boundaries · ≥ 1 closed LWPOLYLINE on A-AREA; none self-intersecting or zero-area.
Scored Categories
Key rooms paired by most overlap; each unmatched drawn room counts as a failed room.
- Room area×11 · Drawn room area vs. key (sub-rooms the key joins by open passage combined).
- Room shape×11 · Intersection over union with the key room, after aligning the sheet to the key.
- Room name×11 · A-AREA-IDEN name the key accepts; bedroom/office, living/dining, hall/foyer, storage/laundry, balcony/garden swap.
Key wall faces ≥ 0.60 m vs. nearest same-facing drawn face; extra walls ≥ 0.65 m fail.
- Wall offset×66 · Across-wall distance, drawn face midpoint to key wall line.
- Wall shift×66 · Along-wall distance between drawn and key wall midpoints.
- Wall length×66 · Drawn wall length vs. key.
Key doorways, inside (D01 ...) and outside (E01 ...), not shower or W.C.; extra doors fail.
- Door position×13 · Distance between drawn and key doorway midpoints.
- Door width×13 · Drawn doorway width vs. key.
Key outside or balcony windows vs. A-GLAZ lines on their line; extra windows fail.
- Window length×7 · Total drawn glazing on the window line (panes joined) vs. key glazed length.
- Window span×7 · Share of the key window covered by drawn glazing.
Key fixtures paired one to one with P-FIXT blocks; extra fixtures fail.
- Fixture found×13 · A drawn block within the fixture's location limit.
- Fixture location×13 · Distance between drawn and key fixture centres.
- Fixture type×13 · Block name starts with a type the key accepts (sink as lavatory where allowed).
Room graph of doorways and shared walls.
- Doorway connections · Jaccard overlap of door-joined room pairs, drawn vs. key.
- Connectivity graph · Correlation of per-room doorway counts with the key.
- Door density · Door-joined pairs per possible room pair, as a ratio of the key's.
- Shared-wall adjacency · Jaccard overlap of room pairs sharing ≥ 1 m of wall (pairs near 1 m not graded).
Dimensions, room labels, area block and drafting.
- Dimensions · ≥ 8 on A-ANNO-DIMS, text within 1/2 inch; overall width and depth (±6 inches); ≥ 70 % of outside windows located.
- Room labels · Size label within 1 inch of width and depth; area label within 2 % or 1 sq ft.
- Floor area block · GROSS and NET SQ FT on A-ANNO-TEXT; NET vs. drawn rooms, GROSS vs. drawn building.
- Drafting · FLOOR PLAN title and scale on A-ANNO-TEXT; walls on A-WALL, ≤ 2 % of room area; ≥ 50 % of room edge backed.

Sample Model Trials
- Rooms: Balcony: overlaps the true room by 77% (needs 85%)
- Walls: 28 of 66 walls misplaced or the wrong length, up to 0.25 m out of line
- + 5 more failed checks
- Rooms: Bathroom: area -13% (2.2 m² vs 2.5 m²); overlaps the true room by 80% (needs 85%)
- Walls: 32 of 66 walls misplaced or the wrong length, up to 1.35 m out of line
- + 4 more failed checks
- Rooms: Bedroom: area +12% (26.8 m² vs 24.0 m²); overlaps the true room by 84.8% (needs 85%)
- Rooms: Balcony: area -11% (20.0 m² vs 22.4 m²); overlaps the true room by 74% (needs 85%)
- + 29 more failed checks
Reference Agent Output Failed Checks