# Research on Embroidery Feature Recognition Algorithm of Traditional National Costumes Based on Double-Layer Model

Authors: Hu Juan
Journal: Security and Communication Networks
 (2021)

---

## Abstract

In order to improve the visual communication ability of traditional national costume patterns, it is necessary to carry out image texture intelligent matching processing. A traditional national costume embroidery feature recognition algorithm based on a double-layer model is proposed. The traditional national costume pattern texture intelligent information acquisition model under the double-layer model is constructed to carry out texture imaging and feature segmentation of traditional national costume patterns, extract the texture histogram of traditional national clothing pattern and national design language, carry out texture segmentation and automatic matching under the two-layer model according to the histogram distribution, enhance and optimize the texture information of traditional national clothing pattern, extract the edge contour feature points of traditional national clothing pattern, and complete the embroidery feature recognition of traditional national clothing. The experimental results show that the designed recognition algorithm has high integrity and accuracy.


---

## Body

## 1. Introduction

With the development of modern traditional national costume design technology, the embroidery design of the traditional national costume is carried out under the computer vision environment. The composition and color of the traditional national costume are designed by using the creative idea of modern traditional national costume embroidery design so as to improve the color expression ability of traditional national costume and promote the balance, harmony, and unity of traditional national costume [1]. Traditional national costume design through visual communication makes the form of traditional national costume embroidery more in line with human visual experience and improves the aesthetic value of traditional national costume. The research on the visual communication optimization design technology of traditional national costume is based on the intelligent texture matching of traditional national costume embroidery [2, 3]; the double-layer model is used for the optimal design of traditional national clothing and the intelligent matching of pattern texture, so as to realize the perfect combination of pattern texture and traditional national clothing. The research on the embroidery feature recognition algorithm of traditional national clothing is of great significance in optimizing the embroidery design of clothing.Reference [4] transformed the traditional “Canta” embroidery into modern fashion design through “Cardi fabric.” For the garment industry, the existence of traditional elements in the design increases its demand and acceptance. Nowadays, technology plays a vital role in the development of fashion, but it has never been a substitute for the traditional elements applied to modern fashion design. Firstly, this paper studies the Kadi structure of Bangladesh from the perspective of its unique regional background and sociocultural environment. In addition to the traditional technology, the application of traditional fabrics in fashion design will enhance its sense of morality and beauty. The purpose of this study is to explore the traditional Kangda embroidery and revitalize it through the design process so as to preserve its characteristics, heritage, and practice. Through the analysis of mind map, emotion board, color board, style board, accessories board, fabric samples, and final sketches, the results of this study show a process from traditional art to modern fashion design. The results of this study will show the transformation of traditional Kanta embroidery, which will be adopted by Kadi fabric to produce a new trend in the design process in Bangladesh. The author also finishes the design by decorating the surface. Finally, the results of this study will have an impact on the upcoming new fashion industry and garment industry. Reference [5] puts forward the significance of national embroidery in the formation of modern clothing and studies the capsule method in the formation of modern clothing on the basis of Ukrainian basic embroidery. It is proved theoretically that the composition of geometric decoration is composed of decorative tunes. According to the use area, the “cross” technology is used to study isomorphic filling in “modern” style decoration. According to the traditional national costumes, a representative costume capsule was developed. Using the decoration setting scheme, the decoration scaling algorithm is established. Based on the above research, this paper proposes a feature recognition algorithm of traditional national clothing embroidery based on a double-layer model. The innovation of the research is to enhance and optimize the texture information of traditional national clothing patterns, extract the edge contour feature points of traditional national clothing patterns, and realize the embroidery feature recognition of traditional national clothing. Finally, simulation experiments are carried out to draw effective conclusions. Convolutional neural network (CNN) can extract high-dimensional features of images and has gray level invariance but does not have rotation invariance. Local binary model (LBP) is a feature extraction algorithm with rotation invariance, which can solve the rotation problem to some extent. To solve the above problems, reference [6] proposed a facial expression recognition algorithm based on CNN and LBP and compared it with other algorithms. In order to improve the computational efficiency of face recognition using feature vectors to describe facial images on photos and videos, reference [7] proposed the method of processing video sequence to aggregate the features generated by each video frame. A new hierarchical recognition algorithm is proposed.The remainder of this paper is organized as follows. Section2 introduces the embroidery feature recognition algorithm of traditional national costumes based on a double-layer model. Section 3 discusses intelligent matching optimization of embroidery characteristics of traditional national costumes. Section 4 discusses the experiment and analysis. Section 5 presents the conclusions of the study.


## 2. Embroidery Feature Recognition Algorithm of Traditional National Costumes Based on Double-Layer Model

### 2.1. Color Matching Principle of Embroidery Patterns of Traditional National Costumes

In the process of color matching of embroidery patterns of traditional national costumes, the set of pattern color feature points is extracted, the corresponding concentric coordinate system is constructed, respectively, the principal curvature of color feature points is calculated, the color description value is constructed, and the color invariants of embroidery patterns of traditional national costumes are extracted. Based on this, the color matching of embroidery patterns of traditional national costumes under the double-layer model is completed [8]. The double-layer model is shown in Figure 1.Figure 1
Double-layer model.Based on the double-layer model, the specific steps of color matching of embroidery patterns of traditional national costumes are as follows.It is assumed thatxz′ represents the color feature point set of traditional national clothing embroidery pattern [9, 10], ls′ represents the n color feature, hf′ represents the color space scale of the pattern, gs′ represents the category number of color features, sgg′ represents the vector of each color feature, kx′ represents the distribution probability of each color in the pattern, and gd′ represents the maximum observed value of each color distribution state in the pattern, Then, xz′ is calculated using formula (1):(1)xz′=gd′∓ls′nhf′×gs′∓sgg′∓kx′gd′.Assuming thatfcgv′ represents the center of lsduj′ and σn represents the scale corresponding to the feature point, the corresponding concentric coordinate system is constructed by formula (2):(2)Eaer′x,y=σn∗gsgi′fcgv′×lsduj′.In the formula,gsgi′ represents the subring area in the concentric circle.Assuming thatσshpp′ represents the initial embroidery color pattern of traditional national clothing [11, 12], ltip′ and kshpp′ represent the second-order partial derivative of Gaussian function, respectively, and gdh′, gyy′, and gxy′ represent convolution function, the principal curvature of color feature points is calculated by formula (3):(3)Hopi′x,y=σshpp′×k′shpp′ltip′×gdh′,gyy′,gxy′.Assuming thatex,y represents the coordinates of the maximum color feature points and kdho′ represents the Ji feature points contained in the i ring, the color descriptor is constructed by formula (4):(4)Easu′=Ji⊗kdho′ex,y⊗kdu′×Hopi′x,yEaer′x,y.Assuming thatμopp′ represents the approximate relationship between the color RGB component of the embroidery pattern of traditional national costumes and its Gaussian distance weighting and l′dg represents the color invariant of the j feature point in the i ring, the color invariant of the pattern is extracted by formula (5):(5)Etyi′=μopp′l′dg⊕Easu′∓Hopi′x,yxzvh′⊙Eaer′x,y.Assuming thatds represents the Euclidean distance using the feature descriptor [13, 14], udjp′ represents the 32-dimensional color information descriptor, and ldjp′ represents the weight parameters of the descriptor, the color matching of the embroidery pattern of traditional national clothing under the double-layer model is completed by using formula (6):(6)Elwer′=ldjp′⊕dsldjp′⊕udjo′.To sum up, we can explain the color matching principle of the traditional national clothing embroidery pattern and use this principle to extract and segment the embroidery features of traditional national clothing under the double-layer model.


### 2.2. Feature Extraction and Segmentation of Traditional National Clothing Embroidery

#### 2.2.1. Embroidery Feature Extraction of Traditional Ethnic Costumes

In order to realize the intelligent matching of the embroidery features of traditional national costumes based on the double-layer model, according to the above embroidery pattern color matching principle, first collect the visual information of the embroidery features of traditional national costumes [15], intelligently match the embroidery features of traditional national costumes and sample the visual features, intelligently match the embroidery features of traditional national costumes in the texture distribution area of the image, read the three-dimensional data feature of the embroidery features of traditional national costumes, form the raw file of the embroidery features of traditional national costumes [16], store the image in device memory, read the texture information of traditional national costume patterns, and match the texture of traditional national costume patterns according to the data information of traditional national costume patterns in device memory. The common geometric pattern characteristics of embroidery of traditional national costumes are shown in Table 1.Table 1
Common geometric pattern characteristics of embroidery of traditional national costumes.
Geometric pattern nameGeometric pattern sampleGeometric pattern featuresSharp rippleLoop patternE-patternBig swallow patternLongan patternVase patternWater drop patternAccording to the above geometric pattern characteristics of traditional national clothing embroidery, assuming that the pixel set distribution of traditional national clothing embroidery features isn and the feature amount of label category information of the output traditional national clothing embroidery features is Pn, the traditional national clothing texture point pair is matched according to the size and texture complexity of traditional national clothing patterns, and the texture distribution of embroidery characteristics of traditional national costumes is obtained:(7)Emij=∑k=0255emkij.In the formula,Emij represents the color information of row I and column J in the m-th image in the three-dimensional traditional national clothing embroidery feature data sampling sequence, and emkij represents the edge information of traditional national clothing pattern, carries out texture registration in combination with pixel frame distribution, and uses k-order moment feature statistics to fuse the traditional national clothing embroidery feature information for the pixels on each scale Ix. Take a sampling point in each subinterval to obtain the gray histogram Iy of the embroidery features of traditional national costumes. For n traditional national costume pattern labels, the information fusion expression of the color, texture, shape, and other features of the embroidery features of traditional national costumes is as follows:(8)cx,y=ΔxΔy∑WIx2∑WIxIy∑WIxIy∑WIy2ΔxΔy.Build an intelligent information acquisition model of embroidery features of traditional national costumes under the double-layer model [17], use the image automatic imaging technology for texture imaging and feature segmentation of traditional national costumes, and investigate the average energy of the window. In the spatial scale of embroidery features of traditional national costumes, it is (x, y, σ). The neighborhood frame strength is as follows:(9)H=Lxxx,σLxyx,σLxyx,σLyyx,σ.In the formula,Lxxx,σ is the embroidery feature of traditional national costumes, and Lxy and Lyy have similar meanings. According to the fusion results of the edge pixel set of the traditional national dress pattern, the multidimensional feature space reconstruction algorithm is realized, the traditional national dress embroidery feature information is collected, and the edge energy value of the regional distribution pixel Pi,j of the traditional national dress pattern is obtained. Based on this data input, the traditional national dress embroidery feature intelligent matching is carried out to realize feature extraction.


#### 2.2.2. Segmentation of Embroidery Characteristics of Traditional National Costumes

Image automatic imaging technology is used for texture imaging and feature segmentation of traditional national costume patterns, and the texture histogram of traditional national costume patterns is extracted. According to the known pixelx of the embroidery characteristics of traditional ethnic costumes, it is obtained that the maximum texture distribution intensity of the embroidery characteristics of traditional ethnic costumes meets Ix=1 and the regional template matching value of the image of traditional ethnic costumes is determined as(10)Itotal=LtotalIx×SSR.In the formula,Ltotal represents the distribution coefficient of clothing embroidery feature texture, and SSR represents the edge feature coefficient of clothing embroidery feature texture. The priority coefficient of embroidery feature output of traditional national costumes is determined by formula (10).Through the expression of two-dimensional function, the embroidery features of traditional national costumes are segmented, and the implementation process is shown in Figure2.Figure 2
Schematic diagram of the implementation process of embroidery feature segmentation of traditional national costumes.


## 2.1. Color Matching Principle of Embroidery Patterns of Traditional National Costumes

In the process of color matching of embroidery patterns of traditional national costumes, the set of pattern color feature points is extracted, the corresponding concentric coordinate system is constructed, respectively, the principal curvature of color feature points is calculated, the color description value is constructed, and the color invariants of embroidery patterns of traditional national costumes are extracted. Based on this, the color matching of embroidery patterns of traditional national costumes under the double-layer model is completed [8]. The double-layer model is shown in Figure 1.Figure 1
Double-layer model.Based on the double-layer model, the specific steps of color matching of embroidery patterns of traditional national costumes are as follows.It is assumed thatxz′ represents the color feature point set of traditional national clothing embroidery pattern [9, 10], ls′ represents the n color feature, hf′ represents the color space scale of the pattern, gs′ represents the category number of color features, sgg′ represents the vector of each color feature, kx′ represents the distribution probability of each color in the pattern, and gd′ represents the maximum observed value of each color distribution state in the pattern, Then, xz′ is calculated using formula (1):(1)xz′=gd′∓ls′nhf′×gs′∓sgg′∓kx′gd′.Assuming thatfcgv′ represents the center of lsduj′ and σn represents the scale corresponding to the feature point, the corresponding concentric coordinate system is constructed by formula (2):(2)Eaer′x,y=σn∗gsgi′fcgv′×lsduj′.In the formula,gsgi′ represents the subring area in the concentric circle.Assuming thatσshpp′ represents the initial embroidery color pattern of traditional national clothing [11, 12], ltip′ and kshpp′ represent the second-order partial derivative of Gaussian function, respectively, and gdh′, gyy′, and gxy′ represent convolution function, the principal curvature of color feature points is calculated by formula (3):(3)Hopi′x,y=σshpp′×k′shpp′ltip′×gdh′,gyy′,gxy′.Assuming thatex,y represents the coordinates of the maximum color feature points and kdho′ represents the Ji feature points contained in the i ring, the color descriptor is constructed by formula (4):(4)Easu′=Ji⊗kdho′ex,y⊗kdu′×Hopi′x,yEaer′x,y.Assuming thatμopp′ represents the approximate relationship between the color RGB component of the embroidery pattern of traditional national costumes and its Gaussian distance weighting and l′dg represents the color invariant of the j feature point in the i ring, the color invariant of the pattern is extracted by formula (5):(5)Etyi′=μopp′l′dg⊕Easu′∓Hopi′x,yxzvh′⊙Eaer′x,y.Assuming thatds represents the Euclidean distance using the feature descriptor [13, 14], udjp′ represents the 32-dimensional color information descriptor, and ldjp′ represents the weight parameters of the descriptor, the color matching of the embroidery pattern of traditional national clothing under the double-layer model is completed by using formula (6):(6)Elwer′=ldjp′⊕dsldjp′⊕udjo′.To sum up, we can explain the color matching principle of the traditional national clothing embroidery pattern and use this principle to extract and segment the embroidery features of traditional national clothing under the double-layer model.


## 2.2. Feature Extraction and Segmentation of Traditional National Clothing Embroidery

### 2.2.1. Embroidery Feature Extraction of Traditional Ethnic Costumes

In order to realize the intelligent matching of the embroidery features of traditional national costumes based on the double-layer model, according to the above embroidery pattern color matching principle, first collect the visual information of the embroidery features of traditional national costumes [15], intelligently match the embroidery features of traditional national costumes and sample the visual features, intelligently match the embroidery features of traditional national costumes in the texture distribution area of the image, read the three-dimensional data feature of the embroidery features of traditional national costumes, form the raw file of the embroidery features of traditional national costumes [16], store the image in device memory, read the texture information of traditional national costume patterns, and match the texture of traditional national costume patterns according to the data information of traditional national costume patterns in device memory. The common geometric pattern characteristics of embroidery of traditional national costumes are shown in Table 1.Table 1
Common geometric pattern characteristics of embroidery of traditional national costumes.
Geometric pattern nameGeometric pattern sampleGeometric pattern featuresSharp rippleLoop patternE-patternBig swallow patternLongan patternVase patternWater drop patternAccording to the above geometric pattern characteristics of traditional national clothing embroidery, assuming that the pixel set distribution of traditional national clothing embroidery features isn and the feature amount of label category information of the output traditional national clothing embroidery features is Pn, the traditional national clothing texture point pair is matched according to the size and texture complexity of traditional national clothing patterns, and the texture distribution of embroidery characteristics of traditional national costumes is obtained:(7)Emij=∑k=0255emkij.In the formula,Emij represents the color information of row I and column J in the m-th image in the three-dimensional traditional national clothing embroidery feature data sampling sequence, and emkij represents the edge information of traditional national clothing pattern, carries out texture registration in combination with pixel frame distribution, and uses k-order moment feature statistics to fuse the traditional national clothing embroidery feature information for the pixels on each scale Ix. Take a sampling point in each subinterval to obtain the gray histogram Iy of the embroidery features of traditional national costumes. For n traditional national costume pattern labels, the information fusion expression of the color, texture, shape, and other features of the embroidery features of traditional national costumes is as follows:(8)cx,y=ΔxΔy∑WIx2∑WIxIy∑WIxIy∑WIy2ΔxΔy.Build an intelligent information acquisition model of embroidery features of traditional national costumes under the double-layer model [17], use the image automatic imaging technology for texture imaging and feature segmentation of traditional national costumes, and investigate the average energy of the window. In the spatial scale of embroidery features of traditional national costumes, it is (x, y, σ). The neighborhood frame strength is as follows:(9)H=Lxxx,σLxyx,σLxyx,σLyyx,σ.In the formula,Lxxx,σ is the embroidery feature of traditional national costumes, and Lxy and Lyy have similar meanings. According to the fusion results of the edge pixel set of the traditional national dress pattern, the multidimensional feature space reconstruction algorithm is realized, the traditional national dress embroidery feature information is collected, and the edge energy value of the regional distribution pixel Pi,j of the traditional national dress pattern is obtained. Based on this data input, the traditional national dress embroidery feature intelligent matching is carried out to realize feature extraction.


### 2.2.2. Segmentation of Embroidery Characteristics of Traditional National Costumes

Image automatic imaging technology is used for texture imaging and feature segmentation of traditional national costume patterns, and the texture histogram of traditional national costume patterns is extracted. According to the known pixelx of the embroidery characteristics of traditional ethnic costumes, it is obtained that the maximum texture distribution intensity of the embroidery characteristics of traditional ethnic costumes meets Ix=1 and the regional template matching value of the image of traditional ethnic costumes is determined as(10)Itotal=LtotalIx×SSR.In the formula,Ltotal represents the distribution coefficient of clothing embroidery feature texture, and SSR represents the edge feature coefficient of clothing embroidery feature texture. The priority coefficient of embroidery feature output of traditional national costumes is determined by formula (10).Through the expression of two-dimensional function, the embroidery features of traditional national costumes are segmented, and the implementation process is shown in Figure2.Figure 2
Schematic diagram of the implementation process of embroidery feature segmentation of traditional national costumes.


## 2.2.1. Embroidery Feature Extraction of Traditional Ethnic Costumes

In order to realize the intelligent matching of the embroidery features of traditional national costumes based on the double-layer model, according to the above embroidery pattern color matching principle, first collect the visual information of the embroidery features of traditional national costumes [15], intelligently match the embroidery features of traditional national costumes and sample the visual features, intelligently match the embroidery features of traditional national costumes in the texture distribution area of the image, read the three-dimensional data feature of the embroidery features of traditional national costumes, form the raw file of the embroidery features of traditional national costumes [16], store the image in device memory, read the texture information of traditional national costume patterns, and match the texture of traditional national costume patterns according to the data information of traditional national costume patterns in device memory. The common geometric pattern characteristics of embroidery of traditional national costumes are shown in Table 1.Table 1
Common geometric pattern characteristics of embroidery of traditional national costumes.
Geometric pattern nameGeometric pattern sampleGeometric pattern featuresSharp rippleLoop patternE-patternBig swallow patternLongan patternVase patternWater drop patternAccording to the above geometric pattern characteristics of traditional national clothing embroidery, assuming that the pixel set distribution of traditional national clothing embroidery features isn and the feature amount of label category information of the output traditional national clothing embroidery features is Pn, the traditional national clothing texture point pair is matched according to the size and texture complexity of traditional national clothing patterns, and the texture distribution of embroidery characteristics of traditional national costumes is obtained:(7)Emij=∑k=0255emkij.In the formula,Emij represents the color information of row I and column J in the m-th image in the three-dimensional traditional national clothing embroidery feature data sampling sequence, and emkij represents the edge information of traditional national clothing pattern, carries out texture registration in combination with pixel frame distribution, and uses k-order moment feature statistics to fuse the traditional national clothing embroidery feature information for the pixels on each scale Ix. Take a sampling point in each subinterval to obtain the gray histogram Iy of the embroidery features of traditional national costumes. For n traditional national costume pattern labels, the information fusion expression of the color, texture, shape, and other features of the embroidery features of traditional national costumes is as follows:(8)cx,y=ΔxΔy∑WIx2∑WIxIy∑WIxIy∑WIy2ΔxΔy.Build an intelligent information acquisition model of embroidery features of traditional national costumes under the double-layer model [17], use the image automatic imaging technology for texture imaging and feature segmentation of traditional national costumes, and investigate the average energy of the window. In the spatial scale of embroidery features of traditional national costumes, it is (x, y, σ). The neighborhood frame strength is as follows:(9)H=Lxxx,σLxyx,σLxyx,σLyyx,σ.In the formula,Lxxx,σ is the embroidery feature of traditional national costumes, and Lxy and Lyy have similar meanings. According to the fusion results of the edge pixel set of the traditional national dress pattern, the multidimensional feature space reconstruction algorithm is realized, the traditional national dress embroidery feature information is collected, and the edge energy value of the regional distribution pixel Pi,j of the traditional national dress pattern is obtained. Based on this data input, the traditional national dress embroidery feature intelligent matching is carried out to realize feature extraction.


## 2.2.2. Segmentation of Embroidery Characteristics of Traditional National Costumes

Image automatic imaging technology is used for texture imaging and feature segmentation of traditional national costume patterns, and the texture histogram of traditional national costume patterns is extracted. According to the known pixelx of the embroidery characteristics of traditional ethnic costumes, it is obtained that the maximum texture distribution intensity of the embroidery characteristics of traditional ethnic costumes meets Ix=1 and the regional template matching value of the image of traditional ethnic costumes is determined as(10)Itotal=LtotalIx×SSR.In the formula,Ltotal represents the distribution coefficient of clothing embroidery feature texture, and SSR represents the edge feature coefficient of clothing embroidery feature texture. The priority coefficient of embroidery feature output of traditional national costumes is determined by formula (10).Through the expression of two-dimensional function, the embroidery features of traditional national costumes are segmented, and the implementation process is shown in Figure2.Figure 2
Schematic diagram of the implementation process of embroidery feature segmentation of traditional national costumes.


## 3. Intelligent Matching Optimization of Embroidery Characteristics of Traditional National Costumes

### 3.1. Texture Histogram Extraction of Embroidery Patterns of Traditional National Costumes

Based on the intelligent information collection of traditional national clothing embroidery features under the above two-tier model, the intelligent matching of traditional national clothing embroidery features is carried out, and an intelligent matching algorithm of traditional national clothing embroidery features based on a two-tier model is proposed. Taking the feature points of edge texture distribution as the center, the fuzzy feature distribution function of traditional national clothing embroidery features is calculated in the irregular texture distribution triangle region. In the gray neighborhood of traditional national clothing patterns, the spatial distribution of texture matching is obtained, and the length of clustering center is as follows:(11)dmnijx,y=∑k=−s+sθmijx+k,y+k−θnijx+k,y+k2s+12,m≠n,0,m=n.In the formula,m and n are the three-dimensional image projection numbers of the embroidery features of traditional national costumes, i and j are the feature matching points of the embroidery features of traditional national costumes, and θ is the regional rotation angle of the embroidery features of traditional national costumes. The three-dimensional reconstruction of the embroidery features of traditional national costumes is carried out by using Taubin smoothing operator, and the main direction feature component of the edge contour of the embroidery features of traditional national costumes is obtained, which is recorded as(12)Dmnijx,y=1,dmnijx,y≥mediandmnijx,y,0,else.In the formula,median is the expression of median operation. According to the sparsity of boundary pixels of traditional national costume patterns, the texture matching value WmDij is(13)WmDij=1,nmdij<α,0,else.In the formula,nmdij represents the edge pixel set of traditional national costume patterns, and α is the number ratio of all pixel points, which is set to 5%. The automatic image imaging technology is used for texture imaging and feature segmentation of traditional national costume patterns, the texture histogram of traditional national costume patterns is extracted, and the texture segmentation and automatic matching are carried out under the double-layer model according to the histogram distribution.


### 3.2. Intelligent Matching of Embroidery Characteristics of Traditional Ethnic Costumes

For the active contour component of the embroidery feature of traditional national clothing in the subgrid area,h is set as the edge pixel set of traditional national clothing pattern, and the adaptive block feature matching algorithm is used for window template matching. In the N×N window, with wi as the weighting vector, the center pixel set and edge pixel set of traditional national clothing pattern are obtained, which are expressed as follows:(14)Iifx,y=I×Gx,y,σi.In the formula,Gx,y,σi represents the polychromatic spectrum set of traditional national costume patterns. The feature segmentation is carried out according to the edge contour feature points of the image, and the fusion feature distribution of decorative patterns is obtained as follows:(15)fRz=fxzfyz=hx∗fzhy∗fz.In the formula,fz is the texture feature component of traditional national costume pattern, and ∗ is convolution operation. Calculate the edge information feature quantity of traditional national costume pattern, and get the optimized embroidery feature extraction output of traditional national costume as follows:(16)Si=∑jW×WIxj.In the formula,Ixj is the texture feature component of traditional national costume pattern, and W is convolution operation. Calculate the edge information feature quantity of traditional national costume pattern, and get the optimized embroidery feature extraction output of traditional national costume as follows:(17)wi,j=1Zi.In the formula,Zi represents the symbolic distance function of embroidery feature extraction of traditional national costumes, so that Hx,Hy is the small baud eigensolution of multiresolution traditional national costume patterns, and the chromatographic distribution matrix of the image is obtained as follows:(18)C=OTO∑HxtHxt∑HxtHyt∑HytHxt∑HytHyt.The extracted feature points of the edge contour of the decorative pattern are used as the input statistical information for texture matching, and the texture matching output is(19)O=USVT.In the formula,U is an N×N dimensional pixel training sample set matrix of traditional national costume patterns. To sum up, the intelligent matching of traditional national costume embroidery features based on the double-layer model is realized.


### 3.3. Color Optimization and Matching of Embroidery Patterns of Traditional National Costumes under the Double-Layer Model

#### 3.3.1. Color Invariant Feature Extraction of Embroidery Patterns of Traditional National Costumes

Color is a very important core factor in the embroidery design of traditional national costumes and plays a very core role in visual art. Color is the visual sensory effect of the eye stimulated by external light. At present, most traditional national costumes are too single in color matching and pay too much attention to unity and coordination in embroidery decoration design, so they cannot give the visual pleasure function that color should have. Therefore, in the process of color matching of traditional national costume embroidery pattern under the double-layer model, the affine invariant region of the pattern is constructed by Harris operator, the autocorrelation matrix of each pixel in the pattern is obtained, the response function of each pixel is given, the relevant affine invariant parameters are calculated, and all colors in the color space are clustered. The specific steps are detailed as follows:Assuming thatM represents the Gaussian window, Fdfp′ represents the convolution symbol, and Mdrg′ represents the autocorrelation matrix of each pixel x,y in the embroidery pattern of traditional national costumes, the affine invariant region of the pattern is constructed by(20)Rsdo′=x,y⊕Fdfp′Mdrg′×jdg′×M⊕Esdg′.In the above formula,jdg′ represents the response function of the corner and Esdg′ represents the measure of the corner.Assuming thatCx,y represents the nonmaximum value of corner response function, Mdrg′ is calculated by(21)Mdrg′=Cx,y×Kdfg′Ysdk″×Rsdo′∗okoj″.In the formula,Ysdk″ represents a constant and okoj″ represents a given measurement threshold.Assuming thatst″ represents the arbitrary curvature parameter in the color edge direction of the embroidery pattern of traditional national costumes and pxb1′ and pxb2′ represent the two line segments derived from the p′ edge direction of the corner, the relevant affine invariant parameters are calculated by(22)pi′=f∓p+q⊗pgyhikpsg′∓dsfh′∗st′×pxb1′×pxb2′p′.In the formula,fsgu′ represents the p′ adjacent edge of the corner, p+q represents the geometric matrix of feature extraction, pgyhik represents the center of gravity of the region, psg′ represents the intersection of two straight lines, and dsfh′ represents the order of the affine invariant region.HSV color space has the consistency of visual perception. Assuming thatfgsg′ represents the number of all colors in the HSV color space of traditional national clothing embroidery patterns, all colors are clustered into Nasd′ species, and Qwey′ represents the clustering process, then equation (10) is used to cluster all colors in the color space:(23)Sse′=Qwey′×Nasd′fgsg′×fsfg′×dafg′±li′×Rsdo′.In the formula,fsfg′ stands for the color book. Assuming that Easy′ represents the given division unit, ksgj′ represents the color ci′ set closest to the color, and dafj represents the distance between colors, the optimal color division quantization unit is obtained by(24)LR′=dafj″×ci′Eafy′×ksgj′li′∗Sse′∗Mdrg′.To sum up, it can be explained that, in the process of color matching of traditional national clothing embroidery pattern under the double-layer model, the pixel weight in the neighborhood window is obtained by using the basic visual elements, the visual characteristics of HSV color component distribution of pixel points of traditional national clothing embroidery pattern are obtained, and the invariant visual characteristics of traditional national clothing embroidery pattern color are extracted. The color clustering of landscape decorative patterns is carried out according to the distance between different types of colors, which lays a foundation for the optimal color matching of traditional national clothing embroidery patterns under the double-layer model.


#### 3.3.2. Identification of Embroidery Features of Traditional Ethnic Costumes

In order to better improve the color matching effect of traditional national clothing embroidery pattern under the double-layer model, based on the optimal division quantization unitLR′ of traditional national clothing embroidery pattern color clustering, the sad algorithm is used to obtain the color difference between the pattern center pixel and the neighborhood pixel, obtain the distance information between the center pixel and the neighborhood pixel, and weight the color difference. The color matching cost function is obtained, and the color matching of traditional national clothing embroidery pattern under the double-layer model is completed based on the calculation results. The specific steps are detailed as follows.Assuming thatIsdp′ represents the gray value of pixels and rp′, kp′, np′, rp, kp, and np represent the color components of central pixels and neighborhood pixels, respectively, based on the optimal division and quantization unit of color clustering of traditional national clothing embroidery patterns, the color difference between central pixels and neighborhood pixels of traditional national clothing embroidery patterns is obtained by sad algorithm, which is expressed by(25)Wrty″=rp′,kp′,np′∓rp,kp,npLR′⊕Isdp′⊕xp,ypxq,yq.In the formula,xp,yp and xq,yq represent the coordinates of the central pixel and the neighborhood pixel, respectively. Assuming that dfsg′ represents the number of pixels of each component of the pattern color, lji′ represents the value domain of the component, and kfjl′ represents the value domain of the sum of squares of the corresponding component differences, the distance information between the center pixel and the neighborhood pixel is expressed by (26)DC=kfjl′⊗lfj′dfksg′∗Wrty″.Assuming thatkfjl′ represents the color component weight type, kdhk″ represents the parallax position with the lowest matching cost, and Hsdo″ represents the neighborhood window weight of each color pixel, the color difference is weighted by(27)Wsdp′=Hsdo′⊕ldhk″kfik′×DC∗pdh′.In the formula,pdh′ represents the cumulative error to the pixel. Based on the calculation results of formula (27), the research on the embroidery feature recognition algorithm of traditional national clothing based on the double-layer model is completed.


## 3.1. Texture Histogram Extraction of Embroidery Patterns of Traditional National Costumes

Based on the intelligent information collection of traditional national clothing embroidery features under the above two-tier model, the intelligent matching of traditional national clothing embroidery features is carried out, and an intelligent matching algorithm of traditional national clothing embroidery features based on a two-tier model is proposed. Taking the feature points of edge texture distribution as the center, the fuzzy feature distribution function of traditional national clothing embroidery features is calculated in the irregular texture distribution triangle region. In the gray neighborhood of traditional national clothing patterns, the spatial distribution of texture matching is obtained, and the length of clustering center is as follows:(11)dmnijx,y=∑k=−s+sθmijx+k,y+k−θnijx+k,y+k2s+12,m≠n,0,m=n.In the formula,m and n are the three-dimensional image projection numbers of the embroidery features of traditional national costumes, i and j are the feature matching points of the embroidery features of traditional national costumes, and θ is the regional rotation angle of the embroidery features of traditional national costumes. The three-dimensional reconstruction of the embroidery features of traditional national costumes is carried out by using Taubin smoothing operator, and the main direction feature component of the edge contour of the embroidery features of traditional national costumes is obtained, which is recorded as(12)Dmnijx,y=1,dmnijx,y≥mediandmnijx,y,0,else.In the formula,median is the expression of median operation. According to the sparsity of boundary pixels of traditional national costume patterns, the texture matching value WmDij is(13)WmDij=1,nmdij<α,0,else.In the formula,nmdij represents the edge pixel set of traditional national costume patterns, and α is the number ratio of all pixel points, which is set to 5%. The automatic image imaging technology is used for texture imaging and feature segmentation of traditional national costume patterns, the texture histogram of traditional national costume patterns is extracted, and the texture segmentation and automatic matching are carried out under the double-layer model according to the histogram distribution.


## 3.2. Intelligent Matching of Embroidery Characteristics of Traditional Ethnic Costumes

For the active contour component of the embroidery feature of traditional national clothing in the subgrid area,h is set as the edge pixel set of traditional national clothing pattern, and the adaptive block feature matching algorithm is used for window template matching. In the N×N window, with wi as the weighting vector, the center pixel set and edge pixel set of traditional national clothing pattern are obtained, which are expressed as follows:(14)Iifx,y=I×Gx,y,σi.In the formula,Gx,y,σi represents the polychromatic spectrum set of traditional national costume patterns. The feature segmentation is carried out according to the edge contour feature points of the image, and the fusion feature distribution of decorative patterns is obtained as follows:(15)fRz=fxzfyz=hx∗fzhy∗fz.In the formula,fz is the texture feature component of traditional national costume pattern, and ∗ is convolution operation. Calculate the edge information feature quantity of traditional national costume pattern, and get the optimized embroidery feature extraction output of traditional national costume as follows:(16)Si=∑jW×WIxj.In the formula,Ixj is the texture feature component of traditional national costume pattern, and W is convolution operation. Calculate the edge information feature quantity of traditional national costume pattern, and get the optimized embroidery feature extraction output of traditional national costume as follows:(17)wi,j=1Zi.In the formula,Zi represents the symbolic distance function of embroidery feature extraction of traditional national costumes, so that Hx,Hy is the small baud eigensolution of multiresolution traditional national costume patterns, and the chromatographic distribution matrix of the image is obtained as follows:(18)C=OTO∑HxtHxt∑HxtHyt∑HytHxt∑HytHyt.The extracted feature points of the edge contour of the decorative pattern are used as the input statistical information for texture matching, and the texture matching output is(19)O=USVT.In the formula,U is an N×N dimensional pixel training sample set matrix of traditional national costume patterns. To sum up, the intelligent matching of traditional national costume embroidery features based on the double-layer model is realized.


## 3.3. Color Optimization and Matching of Embroidery Patterns of Traditional National Costumes under the Double-Layer Model

### 3.3.1. Color Invariant Feature Extraction of Embroidery Patterns of Traditional National Costumes

Color is a very important core factor in the embroidery design of traditional national costumes and plays a very core role in visual art. Color is the visual sensory effect of the eye stimulated by external light. At present, most traditional national costumes are too single in color matching and pay too much attention to unity and coordination in embroidery decoration design, so they cannot give the visual pleasure function that color should have. Therefore, in the process of color matching of traditional national costume embroidery pattern under the double-layer model, the affine invariant region of the pattern is constructed by Harris operator, the autocorrelation matrix of each pixel in the pattern is obtained, the response function of each pixel is given, the relevant affine invariant parameters are calculated, and all colors in the color space are clustered. The specific steps are detailed as follows:Assuming thatM represents the Gaussian window, Fdfp′ represents the convolution symbol, and Mdrg′ represents the autocorrelation matrix of each pixel x,y in the embroidery pattern of traditional national costumes, the affine invariant region of the pattern is constructed by(20)Rsdo′=x,y⊕Fdfp′Mdrg′×jdg′×M⊕Esdg′.In the above formula,jdg′ represents the response function of the corner and Esdg′ represents the measure of the corner.Assuming thatCx,y represents the nonmaximum value of corner response function, Mdrg′ is calculated by(21)Mdrg′=Cx,y×Kdfg′Ysdk″×Rsdo′∗okoj″.In the formula,Ysdk″ represents a constant and okoj″ represents a given measurement threshold.Assuming thatst″ represents the arbitrary curvature parameter in the color edge direction of the embroidery pattern of traditional national costumes and pxb1′ and pxb2′ represent the two line segments derived from the p′ edge direction of the corner, the relevant affine invariant parameters are calculated by(22)pi′=f∓p+q⊗pgyhikpsg′∓dsfh′∗st′×pxb1′×pxb2′p′.In the formula,fsgu′ represents the p′ adjacent edge of the corner, p+q represents the geometric matrix of feature extraction, pgyhik represents the center of gravity of the region, psg′ represents the intersection of two straight lines, and dsfh′ represents the order of the affine invariant region.HSV color space has the consistency of visual perception. Assuming thatfgsg′ represents the number of all colors in the HSV color space of traditional national clothing embroidery patterns, all colors are clustered into Nasd′ species, and Qwey′ represents the clustering process, then equation (10) is used to cluster all colors in the color space:(23)Sse′=Qwey′×Nasd′fgsg′×fsfg′×dafg′±li′×Rsdo′.In the formula,fsfg′ stands for the color book. Assuming that Easy′ represents the given division unit, ksgj′ represents the color ci′ set closest to the color, and dafj represents the distance between colors, the optimal color division quantization unit is obtained by(24)LR′=dafj″×ci′Eafy′×ksgj′li′∗Sse′∗Mdrg′.To sum up, it can be explained that, in the process of color matching of traditional national clothing embroidery pattern under the double-layer model, the pixel weight in the neighborhood window is obtained by using the basic visual elements, the visual characteristics of HSV color component distribution of pixel points of traditional national clothing embroidery pattern are obtained, and the invariant visual characteristics of traditional national clothing embroidery pattern color are extracted. The color clustering of landscape decorative patterns is carried out according to the distance between different types of colors, which lays a foundation for the optimal color matching of traditional national clothing embroidery patterns under the double-layer model.


### 3.3.2. Identification of Embroidery Features of Traditional Ethnic Costumes

In order to better improve the color matching effect of traditional national clothing embroidery pattern under the double-layer model, based on the optimal division quantization unitLR′ of traditional national clothing embroidery pattern color clustering, the sad algorithm is used to obtain the color difference between the pattern center pixel and the neighborhood pixel, obtain the distance information between the center pixel and the neighborhood pixel, and weight the color difference. The color matching cost function is obtained, and the color matching of traditional national clothing embroidery pattern under the double-layer model is completed based on the calculation results. The specific steps are detailed as follows.Assuming thatIsdp′ represents the gray value of pixels and rp′, kp′, np′, rp, kp, and np represent the color components of central pixels and neighborhood pixels, respectively, based on the optimal division and quantization unit of color clustering of traditional national clothing embroidery patterns, the color difference between central pixels and neighborhood pixels of traditional national clothing embroidery patterns is obtained by sad algorithm, which is expressed by(25)Wrty″=rp′,kp′,np′∓rp,kp,npLR′⊕Isdp′⊕xp,ypxq,yq.In the formula,xp,yp and xq,yq represent the coordinates of the central pixel and the neighborhood pixel, respectively. Assuming that dfsg′ represents the number of pixels of each component of the pattern color, lji′ represents the value domain of the component, and kfjl′ represents the value domain of the sum of squares of the corresponding component differences, the distance information between the center pixel and the neighborhood pixel is expressed by (26)DC=kfjl′⊗lfj′dfksg′∗Wrty″.Assuming thatkfjl′ represents the color component weight type, kdhk″ represents the parallax position with the lowest matching cost, and Hsdo″ represents the neighborhood window weight of each color pixel, the color difference is weighted by(27)Wsdp′=Hsdo′⊕ldhk″kfik′×DC∗pdh′.In the formula,pdh′ represents the cumulative error to the pixel. Based on the calculation results of formula (27), the research on the embroidery feature recognition algorithm of traditional national clothing based on the double-layer model is completed.


## 3.3.1. Color Invariant Feature Extraction of Embroidery Patterns of Traditional National Costumes

Color is a very important core factor in the embroidery design of traditional national costumes and plays a very core role in visual art. Color is the visual sensory effect of the eye stimulated by external light. At present, most traditional national costumes are too single in color matching and pay too much attention to unity and coordination in embroidery decoration design, so they cannot give the visual pleasure function that color should have. Therefore, in the process of color matching of traditional national costume embroidery pattern under the double-layer model, the affine invariant region of the pattern is constructed by Harris operator, the autocorrelation matrix of each pixel in the pattern is obtained, the response function of each pixel is given, the relevant affine invariant parameters are calculated, and all colors in the color space are clustered. The specific steps are detailed as follows:Assuming thatM represents the Gaussian window, Fdfp′ represents the convolution symbol, and Mdrg′ represents the autocorrelation matrix of each pixel x,y in the embroidery pattern of traditional national costumes, the affine invariant region of the pattern is constructed by(20)Rsdo′=x,y⊕Fdfp′Mdrg′×jdg′×M⊕Esdg′.In the above formula,jdg′ represents the response function of the corner and Esdg′ represents the measure of the corner.Assuming thatCx,y represents the nonmaximum value of corner response function, Mdrg′ is calculated by(21)Mdrg′=Cx,y×Kdfg′Ysdk″×Rsdo′∗okoj″.In the formula,Ysdk″ represents a constant and okoj″ represents a given measurement threshold.Assuming thatst″ represents the arbitrary curvature parameter in the color edge direction of the embroidery pattern of traditional national costumes and pxb1′ and pxb2′ represent the two line segments derived from the p′ edge direction of the corner, the relevant affine invariant parameters are calculated by(22)pi′=f∓p+q⊗pgyhikpsg′∓dsfh′∗st′×pxb1′×pxb2′p′.In the formula,fsgu′ represents the p′ adjacent edge of the corner, p+q represents the geometric matrix of feature extraction, pgyhik represents the center of gravity of the region, psg′ represents the intersection of two straight lines, and dsfh′ represents the order of the affine invariant region.HSV color space has the consistency of visual perception. Assuming thatfgsg′ represents the number of all colors in the HSV color space of traditional national clothing embroidery patterns, all colors are clustered into Nasd′ species, and Qwey′ represents the clustering process, then equation (10) is used to cluster all colors in the color space:(23)Sse′=Qwey′×Nasd′fgsg′×fsfg′×dafg′±li′×Rsdo′.In the formula,fsfg′ stands for the color book. Assuming that Easy′ represents the given division unit, ksgj′ represents the color ci′ set closest to the color, and dafj represents the distance between colors, the optimal color division quantization unit is obtained by(24)LR′=dafj″×ci′Eafy′×ksgj′li′∗Sse′∗Mdrg′.To sum up, it can be explained that, in the process of color matching of traditional national clothing embroidery pattern under the double-layer model, the pixel weight in the neighborhood window is obtained by using the basic visual elements, the visual characteristics of HSV color component distribution of pixel points of traditional national clothing embroidery pattern are obtained, and the invariant visual characteristics of traditional national clothing embroidery pattern color are extracted. The color clustering of landscape decorative patterns is carried out according to the distance between different types of colors, which lays a foundation for the optimal color matching of traditional national clothing embroidery patterns under the double-layer model.


## 3.3.2. Identification of Embroidery Features of Traditional Ethnic Costumes

In order to better improve the color matching effect of traditional national clothing embroidery pattern under the double-layer model, based on the optimal division quantization unitLR′ of traditional national clothing embroidery pattern color clustering, the sad algorithm is used to obtain the color difference between the pattern center pixel and the neighborhood pixel, obtain the distance information between the center pixel and the neighborhood pixel, and weight the color difference. The color matching cost function is obtained, and the color matching of traditional national clothing embroidery pattern under the double-layer model is completed based on the calculation results. The specific steps are detailed as follows.Assuming thatIsdp′ represents the gray value of pixels and rp′, kp′, np′, rp, kp, and np represent the color components of central pixels and neighborhood pixels, respectively, based on the optimal division and quantization unit of color clustering of traditional national clothing embroidery patterns, the color difference between central pixels and neighborhood pixels of traditional national clothing embroidery patterns is obtained by sad algorithm, which is expressed by(25)Wrty″=rp′,kp′,np′∓rp,kp,npLR′⊕Isdp′⊕xp,ypxq,yq.In the formula,xp,yp and xq,yq represent the coordinates of the central pixel and the neighborhood pixel, respectively. Assuming that dfsg′ represents the number of pixels of each component of the pattern color, lji′ represents the value domain of the component, and kfjl′ represents the value domain of the sum of squares of the corresponding component differences, the distance information between the center pixel and the neighborhood pixel is expressed by (26)DC=kfjl′⊗lfj′dfksg′∗Wrty″.Assuming thatkfjl′ represents the color component weight type, kdhk″ represents the parallax position with the lowest matching cost, and Hsdo″ represents the neighborhood window weight of each color pixel, the color difference is weighted by(27)Wsdp′=Hsdo′⊕ldhk″kfik′×DC∗pdh′.In the formula,pdh′ represents the cumulative error to the pixel. Based on the calculation results of formula (27), the research on the embroidery feature recognition algorithm of traditional national clothing based on the double-layer model is completed.


## 4. Analysis of Experimental Results

In order to verify the overall effectiveness of the traditional national clothing embroidery feature recognition algorithm based on the double-layer model, it is necessary to test the traditional national clothing embroidery features. The experimental platform for this test is Simulink, and the operating system is windows. On the MATLAB simulation platform, TurboC + + 3.0 is used to develop software programming, and the proposed algorithm is used to detect the effectiveness of pattern geometric pattern recognition. In order to visually present the recognition effect of the proposed algorithm, the proposed algorithm is compared with the algorithm in [4] and the algorithm in [5]. By identifying a pattern with a large number of geometric pattern features, the effectiveness of the proposed algorithm is detected. The pattern with a large number of geometric pattern features is shown in Figure 3.Figure 3
Pattern with a large number of geometric pattern features.Figure3 shows the pattern drawn with a large number of geometric patterns. The image pattern has distinct geometric pattern characteristics, including a large number of geometric patterns such as circle, triangle, and square, so it is of great research significance. Three algorithms are used to identify the geometric patterns in the image, respectively. The comparison results of different algorithms to identify the geometric patterns in the pattern in Figure 3 are shown in Table 2.Table 2
Comparison of geometric pattern recognition results of different algorithms.
Identification feature serial numberProposed algorithmReference [4] algorithmReference [5] algorithm12345678910Through the comparison results of pattern geometric patterns identified by different algorithms in Table2, it can be seen that the three algorithms can effectively identify the geometric patterns in the pattern in Figure 3, but the geometric patterns identified by the proposed algorithm have high integrity. The geometric patterns identified are the complete geometric patterns constituting the pattern and have a high definition. Although the geometric patterns in the pattern can be effectively identified by using the algorithm in [4] and the algorithm in [5], the integrity of the identified geometric pattern is low, and some solid patterns cannot be effectively identified. The proposed algorithm can accurately identify the color features of geometric patterns, while the other two algorithms cannot recognize the color of geometric patterns and the color errors of geometric patterns. The comparison results of pattern geometric pattern recognition effectively verify the recognition performance of the proposed algorithm, which shows that the proposed algorithm can effectively recognize pattern geometric pattern features and has high recognition accuracy. In order to further verify the recognition effectiveness of the proposed algorithm, another ten patterns with different numbers of geometric patterns and distinct geometric pattern characteristics are selected to detect the pattern geometric pattern recognition effects of the three algorithms. The comparison results of pattern geometric pattern recognition are shown in Table 3.Table 3
Recognition results of geometric patterns of different patterns.
Pattern serial numberProposed algorithmReference [4] algorithmReference [5] algorithmMorphological algorithm1353633342515254503626165634828286805757673786595961627104105107106812012112412291161171211191090899291Table 3 experimental results show that the number of geometric patterns accurately recognized by the proposed algorithm is higher than that of the other two algorithms, and the other two algorithms have more multirecognition problems. The parameterβi,jacc represents the activation intensity. The activation intensity is constant. The more accurate the activation intensity calculation is, the higher the accuracy of the feature recognition result is. The proposed recognition algorithm, the algorithm in [4], and the algorithm in [5] are used to calculate the parameter βi,jacc, respectively, and the calculated results are compared with the actual results. The comparison results are shown in Table 4. In addition, in order to more clearly understand the recognition results of geometric patterns of different patterns, we give the histogram of the results, as shown in Figure 4.Table 4
Test results of three different algorithms.
Number of iterationsActivation intensityProposed algorithmReference [4] algorithmReference [5] algorithmActual activation intensity145504045260606560370757070485708585590807590Figure 4
Recognition results of geometric patterns of different patterns.By analyzing Table4, it can be seen that the activation intensity obtained by the proposed recognition algorithm is consistent with the actual results, and the accuracy is 100%. Using the algorithm in reference [4], only the activation intensity obtained in the second of the five iterations is consistent with the actual results, and the accuracy is 20%. The activation intensity obtained by the algorithm in [5] in the third and fourth iterations is the same as the actual results, and the accuracy is 40%. Comparing the test results of three different algorithms, it can be seen that the recognition accuracy of traditional national clothing embroidery feature recognition algorithm based on the double-layer model is high. In addition, in order to more clearly understand the test results of three different algorithms, we give the histogram of the results, as shown in Figure 5.Figure 5
Test results of three different algorithms.


## 5. Conclusions and Prospects

### 5.1. Conclusion

The three algorithms can effectively recognize the geometric patterns in the pattern, but the geometric patterns recognized by the proposed algorithm have high integrity. The geometric patterns of the recognized pattern are the complete geometric patterns of the pattern and have a high definition. The number of geometric patterns accurately recognized by the proposed algorithm is higher than that of the other two algorithms, and the other two algorithms have more multirecognition problems. The recognition accuracy of traditional national clothing embroidery feature recognition algorithm based on the double-layer model is high.


### 5.2. Prospects

The following aspects can be further studied in the future:(1)
Aiming at the overall internal and external shape of traditional national costume embroidery, this paper analyzes other influencing factors of traditional national costume embroidery and deeply discusses the different cognitive results and matching degrees caused by different influencing factors. Therefore, different traditional national costume embroidery feature recognition factors need to be further compared and studied.(2)
In the process of data processing, it is determined that the influence of environmental factors can be completely eliminated, the influence can be reduced to a certain extent, and the experiment can be further studied and improved.(3)
During the experiment, the lines with the embroidery characteristics of traditional national costumes can be used. The design elements of the research object can be single-dimensional contour elements, removing the early elements such as color, material, and expression techniques. In future research, the most important design elements should be selected for analysis, and the most important single-dimensional elements should be found from a multidimensional perspective so as to improve the transformation of the design characteristics of traditional national clothing embroidery.


## 5.1. Conclusion

The three algorithms can effectively recognize the geometric patterns in the pattern, but the geometric patterns recognized by the proposed algorithm have high integrity. The geometric patterns of the recognized pattern are the complete geometric patterns of the pattern and have a high definition. The number of geometric patterns accurately recognized by the proposed algorithm is higher than that of the other two algorithms, and the other two algorithms have more multirecognition problems. The recognition accuracy of traditional national clothing embroidery feature recognition algorithm based on the double-layer model is high.


## 5.2. Prospects

The following aspects can be further studied in the future:(1)
Aiming at the overall internal and external shape of traditional national costume embroidery, this paper analyzes other influencing factors of traditional national costume embroidery and deeply discusses the different cognitive results and matching degrees caused by different influencing factors. Therefore, different traditional national costume embroidery feature recognition factors need to be further compared and studied.(2)
In the process of data processing, it is determined that the influence of environmental factors can be completely eliminated, the influence can be reduced to a certain extent, and the experiment can be further studied and improved.(3)
During the experiment, the lines with the embroidery characteristics of traditional national costumes can be used. The design elements of the research object can be single-dimensional contour elements, removing the early elements such as color, material, and expression techniques. In future research, the most important design elements should be selected for analysis, and the most important single-dimensional elements should be found from a multidimensional perspective so as to improve the transformation of the design characteristics of traditional national clothing embroidery.



---

*Source: 4620814-2021-11-12.xml*