Research on the extraction method of woven and embroidered artifacts'patterns based on genetic algorithm optimization of Canny operator
Weaving and embroidering are the craft of weaving,knitting or embroidering with cotton,linen,silk,wool and other textile materials.China is the starting point of the Silk Road,the birthplace of sericulture,silk reeling and silk weaving,and the exquisite skills of the weaving and embroidery industry enjoy a high reputation in the world.The patterns of woven and embroidered artifacts present historical,cultural and artistic values,highlight the formal beauty of plastic arts in traditional Chinese culture,and provide rich material resources for cultural and creative design.However,the traditional weaving and embroidering design mainly relies on manual pattern extraction,which has problems such as high cost,complicated steps,long cycle and low efficiency.To this end,this paper proposed an algorithm based on genetic algorithm to adaptively determine the optimal threshold value of Canny operator to automatically extract the patterns in the images of woven and embroidered artifacts,improve the extraction efficiency and effect,make the artifacts"live",and promote the inheritance and protection of traditional Chinese culture.To realize the automatic extraction of patterns from images of woven and embroidered artifacts,and solve the problem that traditional Canny operators need to manually determine the threshold for edge detection of images of woven and embroidered artifacts,and that the extraction efficiency is not high,the article,took the images of woven and embroidered artifacts as the research object,proposing a genetic algorithm to optimize the Canny operator for the extraction of patterns from woven and embroidered artifacts.Firstly,the paper analyzed the characteristics of the images of the woven and embroidered artifacts,and used bilateral filtering algorithm and mean drift algorithm to smooth the noisy original image;for the gray scale of the smoothed graph,it selected the genetic algorithm to solve the optimal threshold of Canny operator,and input the optimal threshold into Canny operator for the edge detection of the gray scale graph.Then,the paper expanded the morphology of the edge image,and automatically filtered out noise and incomplete pattern samples based on the area,length,and width of each connectivity domain.Finally,the algorithm was evaluated for the effect of extracting patterns and the algorithm's running time.Experiments show that the algorithm can accurately detect the real edges of the pattern in the image of the woven and embroidered artifacts,and the edges detected are clearer and more continuous than those detected by the other five traditional operators.In terms of pattern extraction precision and pixel accuracy(PA),it is better than the existing methods such as traditional Canny operators,hybrid frog jump adaptive Canny operator,Otsu maximum optimized Canny operator and so on.The algorithm is robust to the presence of folds that lead to pattern deformation in the woven and embroidered artifacts,and all the patterns are successfully extracted.The algorithm can effectively detect the real edges of the patterns in the image of woven and embroidered artifacts and complete the pattern extraction.Woven and embroidered artifacts contain deep cultural heritage and artistic value,and through pattern extraction,designers can integrate traditional cultural elements into modern design to create unique cultural and creative products.In this paper,the algorithm solves the problem that the traditional Canny operators need to determine the threshold value for the edge detection of woven and embroidered artifacts,and that the extraction efficiency is not high.In the process of cultural and creative design,the digitization of cultural and creative materials is the first step.In addition,the grasp and application of the knowledge of history and culture,artistic connotations,unique stories and symbolic meanings embedded in patterns can more accurately capture the essence of the culture and the emotional expression it represents.For this reason,it is of deeper significance and value to carry out research on the integration and mining of multimodal information such as patterns and knowledge in the future.
woven and embroidered artifactsgenetic algorithmCanny operatoredge detectionpattern extractionoptimal thresholding