arXiv Analytics

Sign in

arXiv:2208.06658 [cs.CV]AbstractReferencesReviewsResources

ULDGNN: A Fragmented UI Layer Detector Based on Graph Neural Networks

Jiazhi Li, Tingting Zhou, Yunnong Chen, Yanfang Chang, Yankun Zhen, Lingyun Sun, Liuqing Chen

Published 2022-08-13Version 1

While some work attempt to generate front-end code intelligently from UI screenshots, it may be more convenient to utilize UI design drafts in Sketch which is a popular UI design software, because we can access multimodal UI information directly such as layers type, position, size, and visual images. However, fragmented layers could degrade the code quality without being merged into a whole part if all of them are involved in the code generation. In this paper, we propose a pipeline to merge fragmented layers automatically. We first construct a graph representation for the layer tree of a UI draft and detect all fragmented layers based on the visual features and graph neural networks. Then a rule-based algorithm is designed to merge fragmented layers. Through experiments on a newly constructed dataset, our approach can retrieve most fragmented layers in UI design drafts, and achieve 87% accuracy in the detection task, and the post-processing algorithm is developed to cluster associative layers under simple and general circumstances.

Related articles: Most relevant | Search more
arXiv:2406.12808 [cs.CV] (Published 2024-06-18)
Graph Neural Networks in Histopathology: Emerging Trends and Future Directions
arXiv:2403.12009 [cs.CV] (Published 2024-03-18, updated 2024-03-19)
Leveraging Spatial and Semantic Feature Extraction for Skin Cancer Diagnosis with Capsule Networks and Graph Neural Networks
arXiv:2209.05251 [cs.CV] (Published 2022-09-07)
Spotting Virus from Satellites: Modeling the Circulation of West Nile Virus Through Graph Neural Networks