高级检索
王存睿, 丁阳, 刘宇, 战国栋, 李泽东. 融合笔画语义和注意力机制的汉字字体生成算法[J]. 计算机辅助设计与图形学学报, 2022, 34(8): 1229-1237. DOI: 10.3724/SP.J.1089.2022.19125
引用本文: 王存睿, 丁阳, 刘宇, 战国栋, 李泽东. 融合笔画语义和注意力机制的汉字字体生成算法[J]. 计算机辅助设计与图形学学报, 2022, 34(8): 1229-1237. DOI: 10.3724/SP.J.1089.2022.19125
Wang Cunrui, Ding Yang, Liu Yu, Zhan Guodong, Li Zedong. Chinese Font Generation from Stroke Semantic and Attention Mechanism[J]. Journal of Computer-Aided Design & Computer Graphics, 2022, 34(8): 1229-1237. DOI: 10.3724/SP.J.1089.2022.19125
Citation: Wang Cunrui, Ding Yang, Liu Yu, Zhan Guodong, Li Zedong. Chinese Font Generation from Stroke Semantic and Attention Mechanism[J]. Journal of Computer-Aided Design & Computer Graphics, 2022, 34(8): 1229-1237. DOI: 10.3724/SP.J.1089.2022.19125

融合笔画语义和注意力机制的汉字字体生成算法

Chinese Font Generation from Stroke Semantic and Attention Mechanism

  • 摘要: 为辅助字体设计师提高计算机汉字字库开发效率,提出一种辅助字体设计的汉字字体生成算法,该算法可在小字体样本基础上生成风格相对一致的全字库字符图像.为了解决目前采用对抗生成网络(generative adversarial network,GAN)算法生成字体笔画黏连和结构错误问题,将笔画语义先验信息引入GAN模型,减少了笔画生成错误的问题;针对生成字体结构不完整与训练周期长的问题,在网络模型中增加了一种融合注意力机制的跳跃连接模块,利用该模块将编码器中特征投影到解码器,通过减少解码器的信息损失避免生成结构错误问题.采用公开的汉字字库数据集与pix2pix,zi2zi和DCFont算法进行对比实验,实验结果表明,文中算法能够生成更高质量的汉字字体,SSIM和损失函数均值均优于其他3种算法,最后给出算法的行业应用及适用范围.

     

    Abstract: In order to help designers develop computer Chinese fonts efficiently,a Chinese character font generation algorithm is proposed.The algorithm can generate full font character images with a relatively consistent style based on small font datasets.For the sake of solving problems in stroke adhesion and structural errors when using adversarial generative network(GAN),the prior information of stroke semantics is introduced to improve the deep neural network for alleviating wrong stroke generation.Moreover,a skip connection module equipped with attention mechanism is integrated in the network model to reduce incomplete font structure and training period.In this module,features in encoder can be projected to that in decoder,which is helpful in eliminating the information loss of the decoder so as to avoid generating structural errors.Comparative experiments between the proposed algorithm and other methods including pix2pix,zi2zi and DCFont are conducted on public Chinese font datasets.The results show the proposed algorithm is better that the others from the perspective of SSIM and average in loss function.The industry application and scope of our algorithm are given in finally.

     

/

返回文章
返回