Abstract
This paper introduces a robust, learning-based pipeline for converting rasterized floorplan images into structured vector-graphics (CAD) representations. By combining a deep convolutional neural network for local junction detection with an integer programming (IP) framework for global geometric consistency, the authors achieve production-ready performance (~90% precision and recall), enabling the automatic generation of 3D "popup" models from 2D images.
Introduction
Architectural floorplans are essential for designing and remodeling spaces, but they are frequently distributed as raster images (like JPEGs or PNGs) in real estate listings or brochures. This rasterization process discards the underlying "vector" data—the precise coordinates of walls, the types of rooms, and the placement of doors.
Recovering this lost information is notoriously difficult because floorplans must satisfy strict high-level constraints (e.g., walls must form closed loops to create rooms). Previous attempts relied on brittle, hand-crafted heuristics like Hough transforms or edge-linking, which often fail when faced with the diverse visual styles and noise found in real-world documents. The authors aim to bridge the gap between raw pixels and structured, editable CAD models.
Methods
The authors propose a two-stage "stratified" approach that moves from pixels to intermediate junctions, and finally to global primitives.
- Junction Detection (Deep Learning): A neural network (based on a modified ResNet-152) processes the image to predict junction heatmaps (identifying corners, T-junctions, and endpoints) and semantic segmentation maps to classify room types and icons.
- Primitive Aggregation (Integer Programming): To ensure the final vector model is topologically sound, the system formulates an Integer Programming (IP) problem. The IP solver selects the most likely set of primitives (lines for walls/doors, boxes for icons) from the detected junctions while enforcing global constraints such as connectivity and loop closure. The system assumes a Manhattan World (axis-aligned) geometry to simplify the search space.
- 3D Reconstruction: Once the vector data is finalized, the system automatically extrudes walls and places 3D assets in icon boxes to create a 3D model.
Key Insights and Results
A core innovation is using junctions as the "glue." Instead of trying to detect long wall lines directly, the authors focus on local junctions, which are easier for CNNs to identify yet carry enough structural information to guide global reconstruction. To handle network errors, the system "hallucinates" alternative junction types at the same location and lets the global IP solver decide which one makes the most geometric sense.
The system achieves high accuracy, with roughly 90% precision and recall across wall junctions, openings, and room classifications. It vastly outperforms traditional heuristic methods, scoring 94.7% on wall junction accuracy compared to 74.9% for previous methods. The authors demonstrated the system's maturity by converting 100,000 production-level floorplan images into 3D popup models, a feat previously requiring significant manual labor.
Limitations and Future Work
The current system is restricted to axis-aligned geometry and cannot handle curved walls or diagonal architecture. Additionally, extreme variations in drawing styles or unusual icons can lead to semantic mis-recognition. Future work could integrate OCR (Optical Character Recognition) to read room labels or dimensions, providing additional grounding for the reconstruction.
Summary updated