GUIS2Code: A Computer Vision Tool to Generate Code Automatically from Graphical User Interface Sketches

被引:5
|
作者
Feng, Zhen [1 ]
Fang, Jiaqi [1 ]
Cai, Bo [1 ]
Zhang, Yingtao [1 ]
机构
[1] Wuhan Univ, Sch Cyber Sci & Engn, Minist Educ, Key Lab Aerosp Informat Secur & Trusted Comp, Wuhan, Peoples R China
关键词
Graphical user interface; Deep learning; Code generation;
D O I
10.1007/978-3-030-86365-4_5
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
It is a typical task for front-end developers to repetitively transform the graphical user interface model provided by the designer into code. Automatically converting the design draft provided by the designer into code can simplify the task of the front-end engineer and avoid a lot of simple and repetitive work. In this paper, we propose GUIS2Code using deep neural network, which is trained on the datasets of the design drafts to detect the UI elements of the input sketches and generate corresponding codes through the UI parser. Our method can generate code for three different platforms (i.e., iOS, Android, and Web). Our experimental results illustrates that GUIS2Code achieves an average GUI-component classification accuracy of 95.04% and generates code that can restore the target sketches more accurately while exhibiting reasonable code structure.
引用
收藏
页码:53 / 65
页数:13
相关论文
共 8 条
  • [1] Pseudogen: A Tool to Automatically Generate Pseudo-code from Source Code
    Fudaba, Hiroyuki
    Oda, Yusuke
    Akabe, Koichi
    Neubig, Graham
    Hata, Hideaki
    Sakti, Sakriani
    Toda, Tomoki
    Nakamura, Satoshi
    2015 30TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE), 2015, : 824 - 829
  • [2] pix2code: Generating Code from a Graphical User Interface Screenshot
    Beltramelli, Tony
    PROCEEDINGS OF THE ACM SIGCHI SYMPOSIUM ON ENGINEERING INTERACTIVE COMPUTING SYSTEMS (EICS'18), 2018,
  • [3] Code generation from a graphical user interface via attention-based encoder–decoder model
    Wen-Yin Chen
    Pavol Podstreleny
    Wen-Huang Cheng
    Yung-Yao Chen
    Kai-Lung Hua
    Multimedia Systems, 2022, 28 (1) : 121 - 130
  • [4] Code generation from a graphical user interface via attention-based encoder-decoder model
    Chen, Wen Yin
    Podstreleny, Pavol
    Cheng, Wen-Huang
    Chen, Yung-Yao
    Hua, Kai-Lung
    MULTIMEDIA SYSTEMS, 2022, 28 (01) : 121 - 130
  • [5] A Model for Automatic Code Generation from High Fidelity Graphical User Interface Mockups using Deep Learning Techniques
    Samir, Michel
    Elsayed, Ahmed
    Marie, Mohamed I.
    INTERNATIONAL JOURNAL OF ADVANCED COMPUTER SCIENCE AND APPLICATIONS, 2024, 15 (03) : 677 - 691
  • [6] image2emmet: Automatic code generation from web user interface image
    Xu, Yong
    Bo, Lili
    Sun, Xiaobing
    Li, Bin
    Jiang, Jing
    Zhou, Wei
    JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2021, 33 (08)
  • [7] Software design and code generation for the engineering graphical user interface of the ASTRI SST-2M prototype for the Cherenkov Telescope Array
    Tanci, Claudio
    Tosti, Gino
    Antolini, Elisa
    Gambini, Giorgio Francesco
    Bruno, Pietro
    Canestrari, Rodolfo
    Conforti, Vito
    Lombardi, Saverio
    Russo, Federico
    Sangiorgi, Pierluca
    Scuderi, Salvo
    SOFTWARE AND CYBERINFRASTRUCTURE FOR ASTRONOMY IV, 2016, 9913
  • [8] Y-GUI: A graphical user interface and pre-processor for the combined finite-discrete element code, Y2D, incorporating material heterogeneity
    Mahabadi, O. K.
    Grasselli, G.
    Munjiza, A.
    COMPUTERS & GEOSCIENCES, 2010, 36 (02) : 241 - 252