A novel code generator for graphical user interfaces

被引:1
|
作者
Cai B. [1 ,2 ]
Luo J. [1 ,2 ]
Feng Z. [1 ,2 ]
机构
[1] School of Cyber Science and Engineering, Wuhan University, Wuhan
[2] Key Laboratory of Aerospace Information Security and Trusted Computing, Ministry of Education, Wuhan
基金
中国国家自然科学基金;
关键词
D O I
10.1038/s41598-023-46500-6
中图分类号
学科分类号
摘要
Graphical user interfaces (GUIs) are widely used in human–computer interaction, providing a convenient interface for operation. Automating the conversion of GUI design images into source code can significantly reduce the coding workload for front-end developers. Detecting elements in GUI images is a key challenge in achieving automatic GUI code generation and is crucial for tasks such as GUI automation and testing. However, current state-of-the-art methods do not fully consider the unique characteristics of GUI images and elements, and they lack the required high localization accuracy, resulting in low detection accuracy for GUI element boxes. In this paper, we propose GUICG, an automatic GUI code generator that combines deep neural networks with image processing techniques to efficiently detect GUI elements from GUI images and generate front-end code. We empirically investigate various deep learning approaches and image processing methods for GUI component detection. Based on a comprehensive understanding of their performance and characteristics, we design GUICG by fusing image processing with a deep learning-based target detection model, achieving state-of-the-art performance. GUICG outperforms existing methods in accuracy and F1 score for component detection tasks, while producing human-readable code with a logical structure. Furthermore, we conduct an ablation study to quantitatively assess the impact of each key element in GUICG. © 2023, The Author(s).
引用
收藏
相关论文
共 50 条
  • [31] GRAPHICAL USER INTERFACES AND VISUALLY DISABLED USERS
    POLL, LHD
    WATERHAM, RP
    IEEE TRANSACTIONS ON REHABILITATION ENGINEERING, 1995, 3 (01): : 65 - 69
  • [32] Test Automation for Graphical User Interfaces: A Review
    Ahmed, Abdulrahman
    2014 WORLD CONGRESS ON COMPUTER APPLICATIONS AND INFORMATION SYSTEMS (WCCAIS), 2014,
  • [33] Engineering Slidable Graphical User Interfaces with Slime
    Sluyters, Arthur
    Vanderdonckt, Jean
    Vatavu, Radu-Daniel
    Proceedings of the ACM on Human-Computer Interaction, 2021, 5 (EICS)
  • [34] A Linguistic Perspective to Develop Graphical User Interfaces
    Khaddam, Iyad
    Mezhoudi, Nesrine
    Vanderdonckt, Jean
    3RD INTERNATIONAL CONFERENCE ON CONTROL, ENGINEERING & INFORMATION TECHNOLOGY (CEIT 2015), 2015,
  • [35] Transparent checkpointing for applications with graphical user interfaces
    Czornack, Jan-Thomas
    Trinitis, Carsten
    Walter, Max
    SERVICE AVAILABILITY, 2006, 4328 : 140 - +
  • [36] Designing Graphical User Interfaces Integrating Gestures
    Beuvens, Francois
    Vanderdonckt, Jean
    SIGDOC '12: PROCEEDINGS OF THE 30TH ACM INTERNATIONAL CONFERENCE ON DESIGN OF COMMUNICATION, 2012, : 313 - 322
  • [37] A layout inference algorithm for Graphical User Interfaces
    Sanchez Ramon, Oscar
    Sanchez Cuadrado, Jesus
    Garcia Molina, Jesus
    Vanderdonckt, Jean
    INFORMATION AND SOFTWARE TECHNOLOGY, 2016, 70 : 155 - 175
  • [38] Adaptivity in graphical user interfaces: An experimental framework
    Encarnacao, LM
    COMPUTERS & GRAPHICS, 1995, 19 (06) : 873 - 884
  • [39] Analyzing stereotypes of creating Graphical User Interfaces
    Bacikova, Michaela
    Poruban, Jaroslav
    OPEN COMPUTER SCIENCE, 2012, 2 (03): : 300 - 315
  • [40] Input Contract Testing of Graphical User Interfaces
    Tuglular, Tugkan
    Belli, Fevzi
    Linschulte, Michael
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2016, 26 (02) : 183 - 215