image2emmet: Automatic code generation from web user interface image

被引:4
|
作者
Xu, Yong [1 ]
Bo, Lili [1 ,2 ]
Sun, Xiaobing [1 ,2 ]
Li, Bin [1 ,2 ]
Jiang, Jing [3 ]
Zhou, Wei [4 ]
机构
[1] Yangzhou Univ, Sch Informat Engn, Yangzhou, Jiangsu, Peoples R China
[2] Nanjing Univ, State Key Lab Novel Software Technol, Nanjing, Peoples R China
[3] Beihang Univ, Sch Comp Sci & Engn, Beijing, Peoples R China
[4] Air Force Logist Univ, Aviat Serv Res Ctr, Xuzhou, Jiangsu, Peoples R China
基金
中国国家自然科学基金;
关键词
code generation; !text type='HTML']HTML[!/text]-CSS code; UI component; web development;
D O I
10.1002/smr.2369
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Web development usually follows with analyzing the functionality, designing the user interface (UI) prototype, implementing the UI by front-end (FE) developers and implementing the REpresentational State Transfer (RESTful) application programming interface (API) by back-end (BE) programmers. Unfortunately, web development is a tedious, cumbersome, and time-consuming task, which makes it a challenge for the FE programmers to work in an efficient way. In this paper, we propose an approach, image2emmet, to assist FE programmers in implementing the UI. First, we collect HyperText Markup Language, Cascading Style Sheets (HTML-CSS) dataset in an automatic and efficient way. The HTML-CSS dataset used for model training consists of HTML-CSS code and its display images. Second, the faster region-based convolutional neural network (CNN) (R-CNN) is utilized to detect the UI component. Finally, we build a model combining CNN and long short-term memory (LSTM) to transform the UI component into the HTML-CSS code. The empirical study demonstrates that image2emmet can achieve a precision of 80% on the UI component detection and 60% on the transformation of UI component into HTML-CSS code.
引用
收藏
页数:21
相关论文
共 50 条
  • [1] Code characterization for automatic user interface generation
    Kadlec, Jaroslav
    [J]. INNOVATIONS AND ADVANCED TECHNIQUES IN COMPUTER AND INFORMATION SCIENCES AND ENGINEERING, 2007, : 255 - 259
  • [2] Generation of user interface from characterized code
    Kadlec, Jaroslav
    Zemcik, Pavel
    [J]. WSCG 2010: POSTER PROCEEDINGS, 2010, : 9 - 12
  • [3] Automatic Generation of Second Image from an Image for Stereovision
    Deepu, R.
    Honnaraju, B.
    Murali, S.
    [J]. 2014 INTERNATIONAL CONFERENCE ON ADVANCES IN COMPUTING, COMMUNICATIONS AND INFORMATICS (ICACCI), 2014, : 920 - 927
  • [4] Automatic Code Generation with Business Logic by Capturing Attributes from User Interface via XML
    Rathod, Sunil D.
    [J]. 2016 INTERNATIONAL CONFERENCE ON ELECTRICAL, ELECTRONICS, AND OPTIMIZATION TECHNIQUES (ICEEOT), 2016, : 1480 - 1484
  • [5] Extending a User Interface Prototyping Tool with Automatic MISRA C Code Generation
    Mauro, Gioacchino
    Thimbleby, Harold
    Domenici, Andrea
    Bernardeschi, Cinzia
    [J]. ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2017, (240): : 53 - 66
  • [6] Web-based User Interface Modeling and Automatic Mobile Web App Generation Tool
    Choi, Kibong
    Kim, Saehwa
    [J]. PROCEEDINGS OF THE 2016 INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE: TECHNOLOGIES AND APPLICATIONS, 2016, 127
  • [7] Automatic Image Annotations By Mining Web Image Data
    Ding, Guiguang
    Wang, Jianmin
    Xu, Na
    Zhang, Lu
    [J]. 2009 IEEE INTERNATIONAL CONFERENCE ON DATA MINING WORKSHOPS (ICDMW 2009), 2009, : 152 - 157
  • [8] Automatic Web Image Annotation for Image Retrieval Systems
    Chang, Hsien-Tsung
    [J]. NEW ASPECTS OF SYSTEMS, PTS I AND II, 2008, : 670 - +
  • [9] Automated Image-Based User Interface Color Theme Generation
    Weingerl, Primoz
    [J]. APPLIED SCIENCES-BASEL, 2024, 14 (07):
  • [10] A user interface framework for image searching
    Brewer, OT
    [J]. STORAGE AND RETRIEVAL FOR IMAGE AND VIDEO DATABASES VII, 1998, 3656 : 573 - 580