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 条
  • [1] Automatic HTML']HTML Code Generation from Mock-up Images Using Machine Learning Techniques
    Asiroglu, Batuhan
    Mate, Busra Rumeysa
    Yildiz, Eyyup
    Nalcakan, Yagiz
    Sezen, Alper
    Dagtekin, Mustafa
    Ensari, Tolga
    [J]. 2019 SCIENTIFIC MEETING ON ELECTRICAL-ELECTRONICS & BIOMEDICAL ENGINEERING AND COMPUTER SCIENCE (EBBT), 2019,
  • [2] GUIFetch: Supporting App Design and Development through GUI Search
    Behrang, Farnaz
    Reiss, Steven P.
    Orso, Alessandro
    [J]. 2018 IEEE/ACM 5TH INTERNATIONAL CONFERENCE ON MOBILE SOFTWARE ENGINEERING AND SYSTEMS (MOBILESOFT), 2018, : 236 - 246
  • [3] pix2code: Generating Code from a Graphical User Interface Screenshot
    Beltramelli, Tony
    [J]. PROCEEDINGS OF THE ACM SIGCHI SYMPOSIUM ON ENGINEERING INTERACTIVE COMPUTING SYSTEMS (EICS'18), 2018,
  • [4] Bunian S., 2021, P 2021 CHI C HUM FAC, P1
  • [5] Cascade R-CNN: Delving into High Quality Object Detection
    Cai, Zhaowei
    Vasconcelos, Nuno
    [J]. 2018 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2018, : 6154 - 6162
  • [6] Large-Scale Analysis of Framework-Specific Exceptions in Android Apps
    Fan, Lingling
    Su, Ting
    Chen, Sen
    Meng, Guozhu
    Liu, Yang
    Xu, Lihua
    Pu, Geguang
    Su, Zhendong
    [J]. PROCEEDINGS 2018 IEEE/ACM 40TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE), 2018, : 408 - 419
  • [7] Object Detection for Graphical User Interface: Old Fashioned or Deep Learning or a Combination?
    Chen, Jieshan
    Xie, Mulong
    Xing, Zhenchang
    Chen, Chunyang
    Xu, Xiwei
    Zhu, Liming
    Li, Guoqiang
    [J]. PROCEEDINGS OF THE 28TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE '20), 2020, : 1202 - 1214
  • [8] Chen K, 2019, Arxiv, DOI arXiv:1906.07155
  • [9] Chen S, 2019, 2019 IEEE 1ST INTERNATIONAL WORKSHOP ON ARTIFICIAL INTELLIGENCE FOR MOBILE (AI4MOBILE '19), P13, DOI [10.1109/ai4mobile.2019.8672718, 10.1109/AI4Mobile.2019.8672718]
  • [10] Gallery D.C.: Design search and knowledge discovery through auto-created GUI component gallery
    Chen C.
    Feng S.
    Xing Z.
    Liu L.
    Zhao S.
    Wang J.
    [J]. Proceedings of the ACM on Human-Computer Interaction, 2019, 3 (CSCW):