现代纺织技术 ›› 2023, Vol. 31 ›› Issue (4): 236-249.

• • 上一篇    下一篇

基于Snake-Net算法的刺绣针法识别

  

  1. 青岛大学纺织服装学院,山东青岛266071
  • 出版日期:2023-07-10 网络出版日期:2023-09-12
  • 作者简介:王敬雪(1997-),女,山东淄博人,硕士研究生,主要从事服饰数字化及感性评价方面的研究
  • 基金资助:
    青岛大学研究项目(JXGG2019080)

Embroidery stitch recognition based on Snake-Net algorithm

  1. College of Textile & Clothing, Qingdao University, Qingdao 266071, China
  • Published:2023-07-10 Online:2023-09-12

摘要: 为有效提取刺绣图像中针法的特征值,实现刺绣针法的分类识别,在分析刺绣针法特点的基础上,提出了点状针法、线状针法和块面状针法的三大针法分类,并以占主体的块面状针法中的齐针、抢针和套针3种础针法为处理对象,分析对比其针法特征,构建针法模型。针对刺绣针法图像进行图像纹理细节的增强处理,基于Harris 角点检测特征点和Canny轮廓筛选,对传统Snake算法进行改进,形成智能化HC-Snake模型,实现对目标轮廓的智能化识别并提取目标图像的纹理及颜色特征。通过数据的方差分析确定CONsd,IDMsd,Ea,Esd,ENTa,ENTsd,CORsd,SM和TM共9个特征参数,建立特征数据集。最后,建立神经网络分类模型,对针法样本进行分类,并对识别模型进行了实例验证。结果表明,该模型可以实现刺绣针法图像的分类,且分类准确率达到93.3%。

关键词: 刺绣针法, 针法模型, HC-Snake模型, 灰度共生矩阵, 颜色矩, BP神经网络

Abstract: The traditional embroidery is the intangible cultural heritage of the Chinese nation. and is vigorously promoted by the state. At present, most studies focus on the cultural heritage of embroidery and the application of embroidery in fashion products, while research for embroidery stitches is rarely found. In particular, the research on the recognition of embroidery stitches from the perspective of images is even less. Recognition for embroidery stitches is mostly done by experience, while few methods are available for intelligent recognition, which is not conducive to the digital protection of embroidery works.
In order to realize the intelligent recognition of embroidery stitches and promote the digital protection of embroidery, we firstly classify embroidery stitches as three classifications: point stitches, linear stitches and block stitches on the basis of analyzing the characteristics of embroidery stitches. Block stitches are the stitches whose proportion is the highest among the three classifications in the same embroidery works, while the flush stitches, the grabbing stitches and the overlapping stitches are three kinds of basic stitches which block stitches contain. With the three basic stitches as the processing objects, we analyze and compare the characteristics of these stitches, and construct the stitch model.
Secondly, the texture details of the embroidery stitch image are enhanced, and on this basis, the traditional Snake algorithm is improved. Based on Harris corner detection, corner points in the image are calculated to form a corner set. The Canny operator is used to detect the edge in the image, and the point set of the initial target contour is selected. Then, with the initial target contour as the center, the 5*5 template is used to cover the corner points, and the contour control points of Snake algorithm are determined, forming an intelligent HC-Snake model to realize the intelligent recognition of the target contour. The texture and color features of the target image including a total of 12 feature parameters such as the mean and standard deviation of contrast (CON), homogeneity (IDM), energy (E), entropy (ENT) and correlation (COR), the second-order color moments (SM) and third-order color moments (TM) are extracted by using the gray level co-occurrence matrix and color moments. Through the analysis of variance of the data, the significant degree of the influence of the stitch classification on each index is verified. It is found that the nine characteristic parameters including CONsd, IDMsd, Ea, Esd, ENTa, ENTsd, CORsd, SM and TM are significantly affected by the stitch classification, and they are identified as the characteristic indexes for classification, and a characteristic data set is established.
Finally, the BP neural network classification model is established, and the parameters of the neural network model are determined by comparative analysis, and the needle samples are classified and identified. With the help of confusion matrix, the accuracy and recall of the classification model are calculated to confirm the reliability of the model. In the meanwhile, the recognition model is verified by an example. The experimental results show that the model can realize the classification of embroidery stitch images, and the classification accuracy reaches 93.3%. 
The HC-Snake algorithm proposed in this paper can effectively improve the shortcomings of the traditional Snake algorithm in manually selecting control points, and make it more intelligent. The establishment of embroidery stitch recognition models is used for stitch recognition of ordinary network embroidery images, which improves the accuracy and applicability of the recognition model. The research results can be used to promote the digital protection of traditional embroidery.

Key words:  , embroidery stitches, stitch model, HC-Snake model, gray level mo-occurrence matrix, color moments, BP neural network

中图分类号: