Abstract
In this paper, we present an automatic system for the analysis and labeling of structural scenes, specifically floor plan drawings in Computer-aided Design (CAD) format. The proposed system applies a fusion strategy to detect and recognize various components of CAD floor plans, such as walls, doors, windows, and other ambiguous assets. Technically, a general rule-based filter parsing method is first adopted to extract effective information from the original floor plan. Then, an image-processing based recovery method is employed to correct information extracted in the first step. Our proposed method is fully automatic and operates in real-time. This analysis system provides high accuracy and has been evaluated on a public website that, on average, archives more than ten thousand effective uses per day and reaches a relatively high satisfaction rate.
1. Introduction
Converting Computer-Aided Design (CAD) floor plans into semantic digital models is a critical step for modern architectural workflows and interior design platforms. Despite the precision of CAD files, they are often cluttered with non-structural elements—furniture, annotations, and decorative patterns—that complicate automated parsing. Traditional algorithms frequently struggle with the variability of designer styles and the computational overhead required for real-time processing. This paper introduces a robust, real-time system designed to "clean" CAD files and identify core structural elements like walls, doors, and windows with high accuracy and zero manual intervention.
2. Challenges in CAD Digitalization
The task of digitizing structural scenes involves overcoming several technical hurdles. CAD drawings are not merely geometric collections; they are complex visual documents where structural information is often interleaved with noise.
As illustrated in Figure 1, these challenges span across noise removal, text extraction, vectorization, and symbol recognition. For instance, notation leading lines can be easily confused with wall lines, and text often overlaps with graphical symbols, making extraction difficult. The proposed system is designed to address these specific issues through a multi-stage fusion approach.
3. Methodology: The Fusion Strategy
The proposed system utilizes a "Fusion Strategy" that combines rule-based geometric filtering with image-processing verification across three main stages.
3.1 Data Standardization
Input data is first normalized by converting all units to millimeters and decomposing complex entities (e.g., blocks, polylines) into primitive lines and arcs. To handle CAD files containing multiple drawings, a clustering algorithm based on Euler distance is employed to segment individual floor plans automatically.
3.2 Geometric Filtering
A sequence of nine rule-based filters is applied to the vector data. These filters include gradient analysis to isolate orthogonal lines, gap-filling to correct drawing inaccuracies, and parallel line detection to identify potential wall and window boundaries.
3.3 Image-Parsing Wall Restoration
To prevent the over-aggressive deletion of structural segments by geometric filters, the system employs a rasterization-based "sanity check." The CAD drawing is converted into a high-resolution bitmap (4096x4096px). Using Connected Component Labeling, the system compares filtered vector results against the original pixel data. If a filtered "wall" aligns with original pixels, it is confirmed; conversely, the image-processing step can restore missing information where gaps were erroneously created.
4. Evaluation and Results
The system was evaluated using real-world production data from Kujiale.com, a leading interior design platform.
- Efficiency: The pipeline, optimized in Java, achieves a processing time of approximately 2.3 seconds per plan. This represents a 1,500x speedup over previous state-of-the-art methods that required up to an hour for similar tasks.
- Scalability: The system successfully processes complex plans containing over 35,000 line segments, maintaining stability under heavy load (80,000 to 98,000 requests per week).
- User Satisfaction: A study of 2,515 real-world uses yielded an average satisfaction score of 7.71/10, with an overall satisfaction rate of approximately 90%.
5. Conclusion and Future Work
The presented fusion system provides a scalable, real-time solution for CAD floor plan digitalization. By combining the precision of vector rules with the robustness of image-based verification, it bridges the gap between raw CAD data and semantic models. Future work will focus on improving the detection of curved (arc) walls and enhancing the system's resilience to unit definition errors in source files.
Summary updated