Drawing architectural plan is a crucial step in the preservation of ancient Chinese building. This process is often time-consuming and typically carried out by skilled human. This paper presents a method for automatically extracting line art of building structures, which significantly enhances the efficiency of creating architectural plans. We first introduce a dataset of images featuring Huizhou-style ancient buildings. Each building image is then segmented into various components to identify the main structure. The SUPIR model can optionally be employed to enhance the component images with super-resolution. Moreover, we developed a split-and regroup algorithm specifically for the eave's component, which often presents challenges such as broken, tilted, or occluded roof tiles. Finally, we trained a line art extraction model using ControlNet and LoRA. The experiments demonstrate that our method yields more detailed images than existing algorithms.
|