UI layers merger: merging UI layers via visual learning and boundary prior

Yunnong CHEN, Yankun ZHEN, Chuning SHI, Jiazhi LI, Liuqing CHEN, Zejian LI, Lingyun SUN, Tingting ZHOU, Yanfang CHANG

PDF(1311 KB)
PDF(1311 KB)
Front. Inform. Technol. Electron. Eng ›› 2023, Vol. 24 ›› Issue (3) : 373-387. DOI: 10.1631/FITEE.2200099
Orginal Article
Orginal Article

UI layers merger: merging UI layers via visual learning and boundary prior

Author information +
History +

Abstract

With the fast-growing graphical user interface (GUI) development workload in the Internet industry, some work attempted to generate maintainable front-end code from GUI screenshots. It can be more suitable for using user interface (UI) design drafts that contain UI metadata. However, fragmented layers inevitably appear in the UI design drafts, which greatly reduces the quality of the generated code. None of the existing automated GUI techniques detects and merges the fragmented layers to improve the accessibility of generated code. In this paper, we propose UI layers merger (UILM), a vision-based method that can automatically detect and merge fragmented layers into UI components. Our UILM contains the merging area detector (MAD) and a layer merging algorithm. The MAD incorporates the boundary prior knowledge to accurately detect the boundaries of UI components. Then, the layer merging algorithm can search for the associated layers within the components’ boundaries and merge them into a whole. We present a dynamic data augmentation approach to boost the performance of MAD. We also construct a large-scale UI dataset for training the MAD and testing the performance of UILM. Experimental results show that the proposed method outperforms the best baseline regarding merging area detection and achieves decent layer merging accuracy. A user study on a real application also confirms the effectiveness of our UILM.

Keywords

User interface (UI) to code / UI design lint / UI layer merging / Object detection

Cite this article

Download citation ▾
Yunnong CHEN, Yankun ZHEN, Chuning SHI, Jiazhi LI, Liuqing CHEN, Zejian LI, Lingyun SUN, Tingting ZHOU, Yanfang CHANG. UI layers merger: merging UI layers via visual learning and boundary prior. Front. Inform. Technol. Electron. Eng, 2023, 24(3): 373‒387 https://doi.org/10.1631/FITEE.2200099

RIGHTS & PERMISSIONS

2023 Zhejiang University Press
PDF(1311 KB)

Accesses

Citations

Detail

Sections
Recommended

/