Skip to content
Giacomo Mana
← All projects

plan2house

From a floor plan to a 3D house that can be explored in the browser.

Stack
  • Python
  • OpenCV
  • ONNX
  • Three.js
3D view of a flat with cut-away walls, room names and areas, and the list of rooms on the left.
Page generated from a floor plan of the CubiCasa5K test set (CC BY-NC-SA 4.0).
Black-and-white floor plan of a flat.Source floor plan
The same floor plan with walls, doors, windows and rooms coloured.Recognised elements
3D model of the flat seen from above.3D model
Sample images from the CubiCasa5K test set (CC BY-NC-SA 4.0).

What it does

  • Starts from the image of a floor plan, including scanned or photographed ones.
  • Recognises walls, doors, windows and rooms, with names and areas.
  • Generates a page with the 3D model, to explore and edit in the browser.

Technologies and setup

  • Python and OpenCV for image processing.
  • Neural networks to recognise the elements and OCR for the text, with open models.
  • 3D page in Three.js.
  • Processed locally on a CPU, with no external services.