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

被引:1
作者
Chen, Yunnong [1 ,5 ]
Zhen, Yankun [4 ]
Shi, Chuning [2 ]
Li, Jiazhi [2 ]
Chen, Liuqing [2 ,3 ,5 ]
Li, Zejian [1 ,3 ,5 ]
Sun, Lingyun [2 ,3 ,5 ]
Zhou, Tingting [4 ]
Chang, Yanfang [4 ]
机构
[1] Zhejiang Univ, Sch Software Technol, Hangzhou 310027, Peoples R China
[2] Zhejiang Univ, Coll Comp Sci & Technol, Hangzhou 310027, Peoples R China
[3] Alibaba Zhejiang Univ Joint Res Inst Frontier Tech, Hangzhou 310027, Peoples R China
[4] Alibaba Grp, Hangzhou 311121, Peoples R China
[5] Zhejiang Singapore Innovat & AI Joint Res Lab, Hangzhou 310027, Zhejiang, Peoples R China
基金
国家重点研发计划; 中国国家自然科学基金;
关键词
User interface (UI) to code; UI design lint; UI layer merging; Object detection; TP39;
D O I
10.1631/FITEE.2200099
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
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.
引用
收藏
页码:373 / 387
页数:15
相关论文
共 31 条
  • [31] GUIGAN: Learning to Generate GUI Designs Using Generative Adversarial Networks
    Zhao, Tianming
    Chen, Chunyang
    Liu, Yuanning
    Zhu, Xiaodong
    [J]. 2021 IEEE/ACM 43RD INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2021), 2021, : 748 - 760