arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2208.06658cs.CVcs.AI
收藏

ULDGNN:一种基于图神经网络的分段UI层检测器

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

Zhejiang University(浙江大学);Alibaba Group(阿里巴巴集团)

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

摘要:

虽然有些工作试图从UI屏幕截图智能地生成前端代码,但在Sketch(一种流行的UI设计软件)中使用UI设计草稿可能更方便,因为我们可以直接访问多模态UI信息,例如层类型,位置,大小和视觉图像。然而,如果所有层都参与代码生成,则碎片化的层可能会降低代码质量,而不会被合并成一个完整的部分。在本文中,我们提出了一个流水线自动合并碎片层。我们首先为UI草稿的层树构造一个图表示,并基于视觉特征和图神经网络检测所有碎片层。然后设计了一种基于规则的算法来合并碎片层。通过在一个新构建的数据集上的实验,我们的方法可以在UI设计草稿中检索到大多数碎片层,检测任务的准确率达到87%,并且开发了后处理算法来在简单和一般情况下对关联层进行聚类。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑