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 条
  • [21] Evaluating graphical user interfaces for buildings
    Halmetoja, Esa
    Forns-Samso, Francisco
    JOURNAL OF CORPORATE REAL ESTATE, 2020, 22 (01) : 48 - 70
  • [22] GRAPHICAL USER INTERFACES FOR PROCESS DESIGN
    PREECE, P
    CHEMICAL ENGINEER-LONDON, 1990, (482): : 30 - 32
  • [23] User-centered design of graphical user interfaces
    Luostarinen, Riku
    Manner, Jukka
    Maatta, Juho
    Jarvinen, Risto
    MILITARY COMMUNICATIONS CONFERENCE, 2010 (MILCOM 2010), 2010, : 50 - 55
  • [24] User Experience in Using Graphical User Interfaces of Web Maps
    Cybulski, Pawel
    Horbinski, Tymoteusz
    ISPRS INTERNATIONAL JOURNAL OF GEO-INFORMATION, 2020, 9 (07)
  • [25] Real-world graphical user interfaces
    Masui, T
    Siio, I
    HANDHELD AND UBIQUITOUS COMPUTING, PROCEEDINGS, 2000, 1927 : 72 - 84
  • [26] Graphical user interfaces in an engineering educational environment
    Depcik, C
    Assanis, DN
    COMPUTER APPLICATIONS IN ENGINEERING EDUCATION, 2005, 13 (01) : 48 - 59
  • [27] Complex Components Abstraction in Graphical User Interfaces
    Teixeira-Faria, Pedro M.
    Rodeiro Iglesias, Javier
    HUMAN-COMPUTER INTERACTION: DESIGN AND DEVELOPMENT APPROACHES, PT I, 2011, 6761 : 309 - 318
  • [28] CLAM - AN OPEN SYSTEM FOR GRAPHICAL USER INTERFACES
    CALL, LA
    COHRS, DL
    MILLER, BP
    SIGPLAN NOTICES, 1987, 22 (12): : 277 - 286
  • [29] Detecting Behavior Anomalies in Graphical User Interfaces
    Avdiienko, Vitalii
    Kuznetsov, Konstantin
    Rommelfanger, Isabelle
    Rau, Andreas
    Gorla, Alessandra
    Zeller, Andreas
    PROCEEDINGS OF THE 2017 IEEE/ACM 39TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING COMPANION (ICSE-C 2017), 2017, : 201 - 203
  • [30] Printed embedded data graphical user interfaces
    Hecht, DL
    COMPUTER, 2001, 34 (03) : 47 - +