Mobile QR Code QR CODE

2025

Reject Ratio

81.5%


  1. (School of Design and Art, Xinjiang University, Urumqi, 830046, China)
  2. (Journalism and Communication College, Xinjiang University, Urumqi, 830046, China)



Packaging pattern design, Relative coordinates, Regional content replacement, Traditional patterns

1. Introduction

Product packaging design is an indispensable part of modern business. It not only protects the product from damage and pollution, but also enhances its value and attractiveness by attracting consumer attention. As the continuous expansion of the consumer market and the growing demand for product packaging from consumers, packaging design possesses an increasingly essential influence on product marketing [1]. As an essential component of packaging design, packaging pattern design directly affects the image and brand value of products [2]. Zhuang brocade is a treasure of arts and crafts with a long history and exquisite technology, and is also a typical representative of China's unique excellent ethnic culture [3, 4]. Improving the application of traditional patterns in the modern packaging industry can better meet the development needs of the industry [5]. How to improve the efficiency and artistry of packaging pattern design has been an urgent issue to be addressed in the current packaging design field [6, 7]. In response to this issue, this study presents a packaging pattern design method on the ground of relative coordinates and regional content replacement. This is to improve the efficiency and artistry of packaging design, reduce packaging costs and environmental impact. Designers need to consider multiple factors such as appearance, texture, user experience, and brand image while meeting the basic functions of product protection and transportation. The research aims to solve the problems in existing packaging pattern design methods, and achieve efficient design of packaging patterns by introducing the concepts of relative coordinates and regional content replacement. The innovation of the research is as follows: (1) Utilizing computer image processing technology to automatically extract features of the color, texture, and organizational form of Zhuang brocade patterns. (2) Encode pattern elements into editable data formats. (3) Propose a pattern design algorithm based on relative coordinates and region content replacement to achieve automatic generation and customized design of Zhuang brocade patterns. The breakthrough contribution of the research lies in: (1) providing new ways for the protection and inheritance of Zhuang brocade, a traditional ethnic craft, through modern design methods. (2) The design methods and processes adopted by the research institute provide theoretical support and practical guidance for the modern design of other traditional patterns. (3) The technology proposed in the study can be directly applied to modern packaging design, improving design efficiency, reducing costs, and enriching the cultural elements of packaging design.

This study mainly contains four parts. The first part provides an overview of the research background and concludes the research in related fields. The second part elaborates on the packaging pattern design method that introduces relative coordinates and regional content replacement. The third part validated and analyzed the packaging pattern design method on the ground of relative coordinates and regional content replacement. The last part summarizes and prospects the entire research.

2. Related Works

The replacement of relative coordinate systems and regional content is a commonly used method in data processing and analysis, and has broad application value in fields such as cartography and geographic information systems. Lu Z et al. introduced a planar positioning sensing system (PSS) for some potentially floating surfaces. The PSS can get the desired position and angle information. Given the current method of utilizing IMU gyroscopes for positioning, the odometer data on these floating surfaces is inconsistent with real-time data in the world coordinate system. This study designed a new structure and obtained the position and angle information by solving the relevant encoders [8]. Wang L et al. proposed an analysis method for the harmonic interaction characteristics between directly driven wind turbines on the ground of $\alpha$-$\beta$ coordinates and relative gain arrays. Considering the digital delay of the inverter, capacitor current feedback active damping is adopted for surpassing the resonance of the LCL filter. Then, it adjusts the output current in the $\alpha$-$\beta$ coordinate system through a quasi proportional resonant controller, and combined with the topology of the direct drive wind farm, establishes the transfer function matrix of DDWF [9]. Salzo S et al. studied the block coordinate forward backward algorithm. This algorithm allows for different step sizes along block coordinates for fully utilizing the smoothing properties. In convex and infinite dimensional environments, the almost deterministic weak convergence of iterations and the asymptotic rate o (1/n) of the average value have been established [10]. The generator coordinate method starts with the variational construction of a set of non orthogonal mean field states. These states are usually projected onto states with good quantum numbers, resulting in a set of members that are similar to each other, sometimes reduced without seriously affecting the results. Therefore, Romero A M et al. proposed a greedy algorithm called Energy Transfer Orthogonality Process (ENTROP) for choosing subsets of important states. This method is on the ground of the selection of diagonal energy, orthogonality, and contributions to the matrix elements controlling neutrino free double $\beta$ decay. The shell model of Ge-76 decay and preliminary ab initio calculations of the matrix elements are provided, with quadrupole deformation parameters and isospin pairing strength as generator coordinates. Fast convergence significantly reduces the number of base states required for precise calculations [11]. Du LJ et al. proposed a fine-tuning method for the spatial distribution of mixed 3D ion systems in dual RF linear Paul traps for achieving effective sympathetic cooling. Through numerical simulation, the dual RF field matching, effective capture method, and transient process of intrinsic micro motion in mixed ion systems were quantitatively studied. The three-dimensional coupling characteristics between intrinsic micro motion and long-term motion of the ion system have been gotten. The study showcased that a reasonable low-frequency capture potential could generate ultra-low frequency pulling effects on ions with low mass to charge ratios. This is good for the dynamic coupling between ions with high mass to charge ratios [12].

The impact of packaging design on products is multifaceted, not only related to product sales and competitiveness, but also to brand image and consumer experience. Therefore, when designing packaging, multiple factors need to be considered in order to develop an excellent packaging design plan. Many scholars have conducted research on it. Lofgren K T et al. developed a health benefit package design method that makes a clear trade-off between improving health and providing financial risk protection. A mathematical optimization model was designed to balance the benefits of candidate interventions for public funding in terms of health and financial risk protection [13]. In order to achieve small package size, uniform performance, and high manufacturing efficiency, Jiang N et al. developed a chip level packaging technology by controlling the thickness of the phosphor film. Five LEDs with different thicknesses and four sides were prepared. Optical testing and thermal simulation were conducted to evaluate the performance of five samples. When the ratio of top film thickness to side film thickness approaches 2:1, the color temperature of chip level packaged LEDs will achieve optimal uniformity [14]. For reducing the utilization of non biodegradable petroleum based food packaging materials, it is meaningful for alleviating environmental pollution. Wen L et al. used a simple and effective method, using citric acid as a crosslinking agent, for designing a multifunctional food packaging film with biodegradability, anti fog and antibacterial properties. The obtained film exhibits many satisfactory and impressive characteristics [15]. In order to simultaneously address the potential issues of rotting food and packaging, as well as their impact on quality and consumer satisfaction, Accorsi R et al. proposed a new framework for analyzing food and packaging conditions under environmental stress in FSC using simulations. This framework consists of five research layers, namely the environment layer, FSC layer, visibility layer, simulation layer, and functional layer, connecting the on-site (i.e. operational physical environment) with the simulation environment [16]. Packaging is an important component of tobacco marketing, which affects product awareness and usage intention. Jeong M et al. utilized the variability of existing packaging to expand the evidence base. From 2017 to 2019, three online experiments were conducted on 774 young adult cigar smokers recruited by Amazon Türkiye Machinery Company in the past year. After viewing packaging images that vary due to taste descriptions and/or colors, participants rated them on the ground of their perception and purchase intention. The results show that differences in cigar packaging may have different consumer appeal even in cigars with the same taste. This indicates that packaging characteristics should be considered in cigar product regulation [17].

In summary, many experts have studied the application of coordinate replacement technology in data processing and analysis, as well as the impact of packaging design on various aspects of products. However, current research still has shortcomings such as insufficient application in packaging pattern design, low level of automation and customization of pattern generation, and lack of effective methods for combining traditional cultural elements with modern design technology. Therefore, this study proposes an improved packaging design method based on a planar positioning sensing system to address issues such as inconsistent positioning on floating surfaces, analysis of harmonic interaction characteristics of directly driven wind turbines, and dynamic adjustment of regional content in intelligent packaging. We hope that these methods can improve the adaptability, accuracy, and environmental friendliness of packaging design, and contribute to the technological progress and sustainable development of the packaging design field.

3. Pattern Feature Extraction Method and Pattern Design Method on the Ground of Relative Coordinates and Region Content Replacement Technology

This study organizes key features and extracts and organizes pattern features. When implementing pattern feature extraction and pattern design on the ground of relative coordinates and region content replacement technology, corresponding algorithm design and optimization need to be combined with specific application scenarios and requirements. This is to achieve the best pattern processing effect.

3.1. Feature Extraction Methods and Image Segmentation of Zhuang Brocade Patterns

It systematically collects and classifies representative patterns of Zhuang brocade, using computer image recognition and extraction methods. This can achieve fast and accurate extraction of Zhuang brocade patterns on the ground of their features, laying a preliminary research foundation for subsequent automatic generation and application of patterns. The pattern feature extraction process is shown in Fig. 1.

Fig. 1. Zhuang brocade feature extraction process.

../../Resources/ieie/IEIESPC.2026.15.3.334/fig1.png

As shown in Fig. 1, when extracting pattern features, the first step is to clarify the target object of pattern feature extraction, which usually involves systematic collection and classification of Zhuang brocade patterns to ensure the comprehensiveness and pertinence of the research. The steps of constructing extraction algorithms involve designing and developing algorithms that can accurately identify and quantify pattern features, including but not limited to color, texture, and organizational structure recognition. After the algorithm construction is completed, experiments are conducted to verify the effectiveness of the algorithm. The extraction algorithm will analyze the main colors and their distribution in the Zhuang brocade pattern, quantify the color space, and provide a color basis for subsequent design. Pattern feature extraction focuses on identifying and reproducing specific graphic elements of Zhuang brocade patterns. Organizational structure feature extraction focuses on the layout and combination of patterns, analyzing how patterns are organized and arranged in space. Through the collaborative work of three branches, comprehensively extract the key features of Zhuang brocade patterns. In the process of feature extraction, a dataset containing color, pattern, and organizational structure features will be gradually established as the basis for algorithm development and optimization. The color extraction process is shown in Fig. 2.

Fig. 2. Color feature extraction process for Zhuang brocade.

../../Resources/ieie/IEIESPC.2026.15.3.334/fig2.png

In Fig. 2, during the color extraction process, samples of any color were selected as examples, and the K-means algorithm was utilized for displaying the hexadecimal encoding and proportion of the main colors in the Zhuang brocade image in an intuitive pie chart. Using the K-means method to binarize the selected image, the main color tone is encoded in hexadecimal and matched with the color closest to the query result in the color dictionary to generate a scale map. This study uses the relative total variance model and Grab cut interactive image segmentation technology to address the impact of sample image blurring and complex textures on the extraction results in traditional pattern extraction. The color extraction process of the pattern is shown in Fig. 3.

Fig. 3. Zhuang brocade color extraction process.

../../Resources/ieie/IEIESPC.2026.15.3.334/fig3.png

To reduce the impact of the texture of the fabric on pattern information processing, a relative total variation model is utilized for achieving smooth extraction of fabric texture. The relative total variation formula for any point in image smoothing processing is shown in formula (1).

(1)
$ \sum_p \frac{\Phi_x(p)}{\Psi_x(p) + \varepsilon} + \frac{\Phi_y(p)}{\Psi_y(p) + \varepsilon}. $

In formula (1), $\varepsilon$ is a fixed constant with a value greater than 0, the function is to ensure that the values are always meaningful and to avoid calculation errors; $\Phi(\cdot)$ represents the contribution weight function; $\Psi(\cdot)$ representing texture feature functions; $p$ represents the point of analysis. Its function is for ensuring that the value is always meaningful to avoid calculation errors. The creation of even total and intrinsic variations in the $x$ and $y$ directions at any point $p$ in the graph is shown in formula (2).

(2)
$ \begin{cases} D_x(f_p) = \sum_{q \in R(p)} h_{p,q} \cdot |(\partial_x f)_q| \\ D_y(f_p) = \sum_{q \in R(p)} h_{p,q} \cdot |(\partial_y f)_q| \\ L_x(f_p) = \left| \sum_{q \in R(p)} h_{p,q} \cdot |(\partial_x f)_q| \right| \\ L_y(f_p) = \left| \sum_{q \in R(p)} h_{p,q} \cdot |(\partial_y f)_q| \right| \end{cases}. $

In formula (2), $R(p)$ is the region centered on $p$, and $q$ is any point in the variational region $R(p)$. $x$, $y$ is the partial differential of pixel $q$ in the $x$ and $y$ directions, and $h_{p,q}$ is the weight function defined in space. Its expression is shown in formula (3).

(3)
$ h_{p,q} \propto \frac{\exp(-((x_p - x_q)^2 + (y_p - y_q)^2))}{2\sigma^2}. $

In formula (3), $p_x$ and $p_y$ respectively represent the horizontal and vertical coordinates of point $p$, while $\sigma$ controls the spatial scale of the window. The RTV algorithm model is shown in formula (4).

(4)
$ \arg\min_f \sum_p \left[ (f_p - S_p)^2 + \lambda \cdot RTV(f_p) \right]. $

In formula (4), $S$ represents the input Zhuang brocade pattern, $f$ represents the extracted structure of the image, and $\lambda$ is a fixed regularization parameter, that is, the smoothness coefficient. The above model indicates that the degree of image smoothing processed by the relative total variation algorithm mainly depends on two parameters: the smoothness coefficient $\lambda$ and the spatial scale parameter $\sigma$. The algorithm used in image segmentation processing is the GrabCut algorithm, which requires users to manually label the areas to be segmented with rectangles. The connection between Zhuang brocade patterns and patterns, as well as between patterns and tissues, is not high. The GrabCut algorithm is used for selective local segmentation of Zhuang brocade patterns. Its operation first defines a rectangle $T$ containing the target in the image, with the outer region of the rectangle as the background region $T_B$ and the inner region of the rectangle as the foreground region $T_F \neq \emptyset$ and $T_U = T_B$; When the initialization label $a_n = 0$ of a pixel point $n$ in $T_B$ is considered as a background pixel, and when the initialization label $a_n = 1$ of a pixel $n$ in $T_U$ is considered as a possible target pixel; It uses the K-means clustering algorithm to cluster the foreground region $T_F$ and background region $T_B$ into $K$ classes, obtaining $K$ Gaussian mixture models (GMM); Using a Gaussian mixture model to model the background and foreground, two GMM parameters $\theta$ and DE with initial values $(\pi, \mu, \sigma)$ are obtained, where $\pi$ is the weight, $\mu$ is the mean vector, and $\sigma$ is the covariance matrix. The GMM component of each pixel in foreground $T_U$ is the RGB value of the target pixel $n$, and the $k_n$-th Gaussian component of pixel $n$, as shown in formula (5).

(5)
$ k_n := \arg\min_{k_n} D_n(a_n, k_n, \theta, z_n). $

It trains and learns GMM parameters for the given image data Z.

(6)
$ \theta := \arg\min_\theta U(a, k, \theta, z). $

The segmentation is performed using the maximum minimum retention algorithm to obtain the minimum energy as shown in formula (7).

(7)
$ \min_{(a_n, n \in T_U)} \min_k E(a, k, \theta, z). $

It optimizes the GMM model and segmentation results until the energy $E$ reaches a convergence state, thereby outputting high-quality images [18, 19]. After image preprocessing and segmentation, to objectively evaluate the accuracy of pattern segmentation, it is necessary to calculate the pixel accuracy $PA$, as shown in formula (8).

(8)
$ PA = \frac{\sum_{i=0}^k p_{ii}}{\sum_{i=0}^k \sum_{j=0}^k p_{ij}}. $

In formula (8), $p_{ij}$ serves as the total pixels with real pixel category $i$ predicted as category $j$, and $p_{ii}$ serves as the total pixels with real pixel category $i$ predicted as category $i$. Image binarization is a fundamental technique in image processing that preserves sufficient feature information. It is mainly on the ground of the grayscale characteristics of the image, dividing it into two parts: background and foreground, in order to achieve more precise image processing results. The main core idea is to find the maximum grayscale level $k$, and then divide the image into black and white colors that are greater than the threshold and less than the threshold. The specific algorithm principle is to treat grayscale image $F$ as a $M \times N$ matrix, where the pixel value is $(0, 255)$. The probability of a pixel having a grayscale of $i$ is shown in formula (9).

(9)
$ p_i = \frac{n_i}{n_0 + n_1 + \cdots + n_{255}}. $

Among them, the value of $\sum_{i=0}^{255} p_i$ is shown in formula (10).

(10)
$ \sum_{i=0}^{255} p_i = 1. $

The segmentation threshold for foreground and background is denoted as $k$, and the image is divided into $C_A$ and $C_B$ on the ground of the threshold. The calculation method for the global mean $m_G$ of the image is shown in formula (11).

(11)
$ \begin{cases} p_A(k) \times m_A(k) + p_B(k) \times m_B(k) = m_G \\ p_A(k) + p_B(k) = 1 \end{cases}. $

In formula (11), $p_A$ and $p_B$ are the classification probabilities of images $C_A$ and $C_B$, with grayscale means $m_A$ and $m_B$, respectively. The cumulative mean of grayscale level $K$ is $m$, and the expression of variance is shown in formula (12).

(12)
$ \sigma^2 = p_A(k) \times m_A(k) + p_B(k) \times (m_B(k) - m_G)^2. $

It brings formula (11) into formula (12), as shown in formula (13).

(13)
$ \sigma^2 = p_A(k)p_B(k)(m_A(k) - m_B(k))^2. $

It deforms formula (13) as shown in formula (14).

(14)
$ \sigma^2 = \frac{(m_G + p_A(k) - m)^2}{p_A(k)(1 - p_A(k))}. $

After obtaining the maximum threshold, the image is segmented by binarization, as shown in formula (15).

(15)
$ img(i, j) = \begin{cases} \max val, & \text{if } img(i, j) > threshold, \\ 0, & \text{otherwise.} \end{cases} $

3.2. Zhuang Brocade Pattern Design Algorithm on the Ground of Relative Coordinates and Regional Content Replacement

This study investigates the Zhuang brocade pattern design algorithm on the ground of graphic feature elements. It takes the Zhuang brocade pattern as the research object, establishes a Zhuang brocade pattern design method and process on the ground of relative coordinates and regional content replacement by encoding feature materials. This can achieve the exchange of pattern and organizational form target area content. It matches the color scheme of Zhuang brocade, generates multiple types of Zhuang brocade, and evaluates their style similarity. The research process of pattern design is shown in Fig. 4.

Fig. 4. Zhuang brocade pattern design process.

../../Resources/ieie/IEIESPC.2026.15.3.334/fig4.png

As shown in Fig. 4, the pattern encoding process is a key step in achieving automatic generation and customized design of Zhuang brocade patterns. The process is mainly divided into three independent sub processes, including color sample coding, pattern sample coding, and tissue sample coding. Color sample coding focuses on the colors and their proportions used in Zhuang brocade patterns. Establish a color sample library by quantifying and classifying colors. The library will contain the main colors and their corresponding hexadecimal values and proportions that appear in the Zhuang brocade pattern, providing reference for the color matching of the pattern. Pattern sample coding is the analysis and coding of specific graphic elements in Zhuang brocade patterns. Including extracting features such as shape, lines, and texture of patterns, and converting them into editable and reconfigurable data formats. Organizing sample coding involves the spatial arrangement and organizational structure of patterns. During the process, it is necessary to analyze how patterns are laid out in Zhuang brocade, including organizational forms such as repetition, symmetry, and rhythm, and encode them into data structures that can be processed by algorithms. The algorithm framework for replacing relative coordinates and regional content is shown in Fig. 5.

In Fig. 5, it can be seen that the Zhuang brocade pattern reconstruction algorithm generates corresponding mapping files by binary encoding each element. On this basis, the received pattern genes are decoded to obtain the corresponding pattern elements, and their localization is performed. This can make it consistent with the center coordinates of the pattern to be reconstructed, and use the position displacement method specified in the image to obtain the reconstructed pattern, and color it to obtain the final effect. In the algorithm framework, its running steps include: generating element encoding mapping files; Decoding; Pattern reconstruction and pattern coloring. Pattern reconstruction mainly involves reorganizing the extracted pattern patterns and organizational forms, using various combination methods to generate a novel Zhuang brocade pattern in batches [20]. The center point (CP) of the pattern is aligned with the CP of the organizational form to be embedded, thus completing the recombination of the pattern and organizational form. The process of pattern position matching is shown in Fig. 6.

Fig. 5. Algorithm framework for replacing regional content on the ground of relative coordinates.

../../Resources/ieie/IEIESPC.2026.15.3.334/fig5.png

Fig. 6 shows that in Fig. 6(a), when the pasted area does not exist or the coordinates are (0,0), it indicates that the top left corner (TLC) of the pattern coincides with the TLC of the prohibited image, and the pattern is pasted to the TLC of the organizational form; In Fig. 6(b), if the coordinates of the CPs of the organizational pattern area and the pasted area exist, then when the pasted area is the same as it, the upper left corner of the pattern is located at the CP of the pasted area, and the pattern and organizational attributes overlap; In Fig. 6(c), if the pattern image wants to be offset upwards, the CP of the pattern image will coincide with the CP of the pasted area. When using research methods for Zhuang brocade pattern design in practical scenarios, in the initial stage of technical operation, requirement analysis is first conducted to clarify design goals and expected effects. Using computer image recognition technology to extract features from Zhuang brocade patterns. Identification and classification of colors, patterns, and organizational structures. Encode the extracted features to form color sample encoding, pattern sample encoding, and tissue sample encoding. Develop pattern design algorithms based on encoded data, including the development and optimization of algorithms for pattern recombination, color matching, and style similarity evaluation. And through computer programs, multiple design schemes are automatically output to achieve the automatic generation of Zhuang brocade patterns. The automatically generated patterns are evaluated, including style similarity, color coordination, and pattern innovation. Select the solution that best meets the design objectives for further refinement and improvement. After user customization and final adjustment by the designer, the output of the Zhuang brocade pattern meets the requirements of modern packaging design.

Fig. 6. Pattern position matching process.

../../Resources/ieie/IEIESPC.2026.15.3.334/fig6.png

4. Application and Comparison of Zhuang Brocade Pattern Design Algorithms on the Ground of Relative Coordinates and Regional Content Replacement

It randomly selected colors, tissue morphology, and two different patterns from the samples and conducted experimental research on them. Then it compared the accuracy and convergence of the algorithm proposed in this article with commonly used algorithms for image rendering. Meanwhile, it analyzed the color extraction results in the characteristics of Zhuang brocade.

4.1. Analysis of the Application Effect of Zhuang Brocade Pattern Design Algorithm on the Ground of Relative Coordinates and Regional Content Replacement

For verifying the effect of pattern reconstruction, the study first decodes the selected patterns, calls the decode function, and passes a parameter code = “1000110100100100010”. The code is separated and searched for the corresponding code value in the imported mapping file code_map. json, and returns the color_group, organization structure, pattern A, and pattern B. Subsequently, pattern reconstruction and pattern coloring are performed. The color function is selected, and the reconstructed image obtained from the first two steps is combined with the color input. The resulting reconstructed pattern coloring scheme is shown in Fig. 7.

Fig. 7. Reconstruct pattern coloring scheme.

../../Resources/ieie/IEIESPC.2026.15.3.334/fig7.png

In Fig. 7, through case analysis, it is confirmed that using relative coordinates and regional content substitution methods with Zhuang brocade as the main feature element can effectively achieve automatic generation of Zhuang brocade patterns. On this basis, utilizing the color, pattern, organization and other characteristics of Zhuang brocade patterns, rapid generation of Zhuang brocade patterns can be achieved. We compared the reconstructed Zhuang brocade patterns with the collected samples and found that there were stylistic differences between them. On this basis, on the ground of user similarity evaluation, the style similarity of Zhuang brocade patterns is evaluated for testing the effectiveness of this method. The similarity evaluation of Zhuang brocade pattern styles was conducted using 30 users as subjects to evaluate the styles of 10 patterns. This survey consists of 30 people. There are three evaluation methods, namely “similar”, “dissimilar”, and “neutral”.

Table 1. Evaluation of style similarity for generating patterns.

Pattern number Ssimilar (%) Dissimilarity Neutrality
1 83.6 11.6 6.8
2 78.6 13.6 30.5
3 93.4 0 6.63
4 78.69 13.6 11.6
5 62.8 11.2 33.5
6 78.69 10.5 13.6
7 78.69 6.97 18.4
8 90.4 13.8 6.68
9 48.5 23.8 36.2
10 73.9 11.6 21.4

As shown in Table 1, the data displayed in the generated graphic style similarity evaluation table shows that 10 generated graphics were evaluated for style similarity, of which 9 were similar, accounting for 90%. By evaluating the style similarity of 10 generated patterns, an average level of 75.80% was obtained, indicating that participants with and without knowledge of Zhuang brocade had a higher level of identification with clothing patterns. The use of pattern genes to generate patterns, tissue morphological features, and color schemes effectively inherits the style and characteristics of Zhuang brocade. The convergence and accuracy of the algorithm proposed in this article were compared with the commonly used Bresenham algorithm for image rendering. The comparison results are shown in Fig. 8.

Fig. 8. Comparison of convergence and accuracy between the algorithm proposed in this article and the Bresenham algorithm.

../../Resources/ieie/IEIESPC.2026.15.3.334/fig8.png

Fig. 8 shows that compared to the Bresenham algorithm, the proposed algorithm consistently maintains significant advantages in accuracy and convergence at the same number of iterations. When the number of iterations reaches 200, the accuracy increases from 0.723 to 0.905, indicating a significant improvement in accuracy as the number of iterations increases. This indicates that the model gradually optimizes during the learning process and can better fit the training data.

4.2. Color extraction results in Zhuang brocade features

By calculating the proportion of each color in the image and creating a visual histogram, the proportion of each recognized color in the image can be clearly displayed. The proportion of color cluster pixels is shown in Table 2.

Table 2. Percentage of pixels in color cluster.

Serial number Color Color name Count Percentage
1 #2b314f Martinique 1427 12.5
2 #474a5f Trout 2689 23.2
3 #645d69 Salt box 2994 26.9
4 #7e6e75 Spicy pink 3077 26.1
5 #93848c Venus 1333 11.3

In Table 2, this image contains five main colors, each with its own name, pixel, and proportion. By viewing the data in the table, you can clearly understand the detailed information of each color, including their distribution and proportion in the image. This table presentation is very intuitive and allows for easy analysis and understanding of color information in images. After extracting colors from the image, the proportions of each color are shown in Fig. 9.

Fig. 9. The original image and chart of the proportion of each color in the image for color extraction.

../../Resources/ieie/IEIESPC.2026.15.3.334/fig9.png

In Fig. 9, the discount represents the standard values obtained from color extraction, with colors with RGB values of # 2b314f accounting for 12.5% of all colors; Colors with RGB values of # 474a5f account for 23.2% of all colors; Colors with RGB values of # 645d69 account for 26.9% of all colors; Colors with RGB values of # 7e6e75 account for 26.1% of all colors; Colors with an RGB value of # 93848c account for 11.3% of all colors. Fig. 9(a) shows the relationship between the size of each color region, with a small difference from the standard value; Fig. 9(b) shows that the color ratio obtained by using other methods for color extraction differs significantly from the standard value. The image segmentation algorithm manually marks the object segmentation area with a rectangle, uses the pattern outside the rectangle as the background, and segments the pattern inside the rectangle. The connectivity between Zhuang brocade patterns and patterns, as well as between patterns and tissues, is poor. It uses the GrabCut algorithm to perform local selection segmentation on four sample patterns A, B, C, and D, and calculates the pixel accuracy and intersection to union ratio of the segmentation results. Then, on the ground of pixel accuracy and intersection to union ratio as evaluation criteria. The outcomes obtained are shown in Fig. 10.

Fig. 10. Experimental sample segmentation results.

../../Resources/ieie/IEIESPC.2026.15.3.334/fig10.png

In Fig. 10, Fig. 10(a) shows the pixel accuracy of experimental samples A, B, C, and D obtained by using the GrabCut algorithm to extract pattern features, which are 0.991, 0.986, 0.965, and 0.989, respectively; In the results obtained from feature extraction of pattern patterns using other methods, the pixel accuracy of experimental samples A, B, C, and D were 0.726, 0.668, 0.703, and 0.619, respectively; Fig. 10(b) shows the results obtained by using the GrabCut algorithm to extract pattern features. The intersection to union ratios of experimental samples A, B, C, and D are 0.986, 0.819, 0.974, and 0.968, respectively; In the results obtained from feature extraction of pattern patterns using other methods, the intersection to union ratios of experimental samples A, B, C, and D were 0.736, 0.596, 0.527, and 0.688. The research results indicate that the GrabCut algorithm has good segmentation performance and can be further applied.

Table 3 compares the performance of the method based on relative coordinates and region content replacement proposed in the article with CNN based deep learning and GAN based generative adversarial network methods on multiple quantitative metrics. The pattern generation time of the article method is 0.83 seconds per pattern, which is faster than CNN based deep learning (1.17 seconds per pattern) and GAN based generative adversarial network methods (1.48 seconds per pattern). The color extraction accuracy of the article's method is 98.73%, which is higher than CNN based deep learning (96.53%) and slightly higher than GAN based generative adversarial network method (97.84%). In terms of algorithm convergence, the proposed method achieves convergence within 198 iterations, while CNN based deep learning and GAN based generative adversarial network methods require 243 and 307 iterations, respectively. The memory consumption of the article method is relatively low, only 2.37GB. In comparison, the memory consumption of CNN based deep learning and GAN based generative adversarial network methods are 4.83GB and 5.62GB, respectively.

Table 3. Quantitative comparison of different methods.

Comparing dimensions Methods in the article Deep learning based on CNN Generative adversarial network based on GAN
Pattern generation time (seconds/pattern) 0.83 1.17 1.48
Pattern similarity (%) 75.83 82.42 88.37
Algorithm convergence iteration times 198 243 307
Accuracy improvement rate (every 100 iterations) 0.092 0.093 0.094
Color extraction accuracy (%) 98.73 96.53 97.84
Pixel accuracy (%) 99.31 97.24 98.47
Computational Resource Usage (GFLOPS) 8.47 15.17 18.73
Memory consumption (GB) 2.37 4.83 5.62
Model size (MB) 153 218 299
Dataset demand (10000 sheets) 1.47 9.68 12.34

Table 4 provides a comparative analysis of the Zhuang brocade pattern design effect based on relative coordinates and regional content replacement, covering six samples and their average values in terms of color extraction accuracy, pattern segmentation accuracy, tissue morphology matching accuracy and overall design efficiency improvement. Percent performance on four key indicators. The highest color extraction accuracy is 0.9942 for Sample C, the lowest is 0.9675 for Sample B, and the average is 0.9819. The highest pattern segmentation accuracy is 0.9924 for Sample A, the lowest is 0.9819 for Sample D, and the average is 0.9886. The highest tissue morphology matching accuracy is 0.9813 for Sample C, the lowest is 0.9685 for Sample D, and the average is 0.9745. The highest overall design efficiency improvement percentage is 35.73% for Sample C, the lowest is 28.67% for Sample B, and the average improvement is 32.02%. The results show that this design method has significant effects in improving the efficiency of Zhuang brocade pattern design and the accuracy of key design links.

Table 4. Comparative analysis of Zhuang brocade pattern design effects based on relative coordinates and regional content replacement.

Sample Color extraction accuracy Pattern segmentation accuracy Organizational form matching accuracy Overall design efficiency improvement (%)
Sample A 0.9837 0.9924 0.9768 32.48
Sample B 0.9675 0.9862 0.9731 28.67
Sample C 0.9942 0.9936 0.9813 35.73
Sample D 0.9756 0.9819 0.9685 30.12
Sample E 0.9891 0.9874 0.9728 31.95
Sample F 0.9813 0.9902 0.9746 33.18
Average 0.9819 0.9886 0.9745 32.02

Table 5 presents the feature extraction of Zhuang brocade pattern and its design performance index analysis.

Table 5. Feature extraction of Zhuang brocade patterns and analysis of design performance indicators.

Sample ID Primary color accuracy Secondary color accuracy Pattern complexity (dots/unit area) Segmentation time (s) Reconstruction time (s) Matching error (pixels) Data transmission efficiency (MB/s)
Sample A 0.9724 0.9631 58.7 1.236 2.478 1.98 12.874
Sample B 0.9847 0.9516 63.4 1.187 2.392 2.31 12.543
Sample C 0.9786 0.9764 61.9 1.142 2.501 2.04 13.008
Sample D 0.9651 0.9583 57.6 1.267 2.453 2.19 12.686
Sample E 0.9912 0.9727 62.3 1.154 2.418 1.87 13.142
Sample F 0.9795 0.9608 60.8 1.197 2.364 2.15 12.762
Average 0.9786 0.9638 60.8 1.197 2.434 2.09 12.836

In terms of primary color accuracy, Sample E performed best, reaching 0.9912, while Sample D was relatively low, at 0.9651, and the average primary color accuracy was 0.9786. Sample E also had the highest secondary color accuracy, at 0.9727, while Sample B had the lowest secondary color accuracy, at 0.9516, and the average secondary color accuracy was 0.9638. In terms of pattern complexity, measured by the number of points per unit area, Sample B had the most complex pattern, at 63.4 points, while Sample D had the lowest pattern complexity, at 57.6 points, and the average pattern complexity was 60.8 points/unit area. The shortest segmentation time was Sample C, at 1.142 seconds, and the longest was Sample A, at 1.267 seconds, with an average segmentation time of 1.197 seconds. In terms of reconstruction time, Sample B has the shortest reconstruction time of 2.392 seconds, while Sample C has the longest reconstruction time of 2.501 seconds, with an average reconstruction time of 2.434 seconds. The matching error is in pixels. Sample E has the smallest matching error of 1.87 pixels, while Sample B has the largest matching error of 2.31 pixels, with an average matching error of 2.09 pixels. In terms of data transmission efficiency, Sample E has the highest data transmission efficiency of 13.142 MB/s, while Sample B has the lowest data transmission efficiency of 12.543 MB/s, with an average data transmission efficiency of 12.836 MB/s. These data show that different samples have differences in feature extraction and performance indicators of Zhuang brocade pattern design, but overall maintain high accuracy and efficiency.

Table 6 provides the performance distribution analysis of the designed methods based on relative coordinates and region content replacement. In terms of color extraction, the average color deviation is 1.8234, indicating that the accuracy of color extraction is high. The algorithm complexity is $O(n * \log(n))$, which means that the process has good efficiency when processing large-scale data. The performance of pattern segmentation shows that the pattern smoothness change rate is 12.47% and the pixel segmentation overlap rate (IOU) is 0.9312, showing the high accuracy of the segmentation process. The memory usage is 215.43MB and the execution time is 1.154 seconds, indicating that the segmentation process performs well in resource consumption and time efficiency. In the performance of region replacement, the memory usage is 198.35MB, the execution time is 1.987 seconds, and the pattern detail retention rate is 96.32%, indicating that the details of the pattern can be well maintained during the replacement process. The algorithm complexity is $O(n^3)$, suggesting that this step may require more computing resources when processing large-scale data. The performance analysis of pattern reconstruction shows that the average color deviation is 1.5647, the pattern smoothness change rate is 10.83%, the pixel segmentation overlap rate (IOU) is 0.9468, the memory usage is 325.28MB, the execution time is 2.417 seconds, and the pattern detail retention rate is 92.74%. The algorithm complexity is also $O(n * \log(n))$, indicating that the reconstruction process has an advantage in processing efficiency. In terms of overall performance (average), the average color deviation is 1.6941, the pattern smoothness change rate is 11.65%, the pixel segmentation overlap rate (IOU) is 0.9390, the memory usage is 210.93MB, the execution time is 1.574 seconds, and the pattern detail retention rate is 94.53%. These data show that the design method based on relative coordinates and regional content replacement has a balanced and efficient performance in terms of color accuracy, detail retention, resource consumption, and execution time.

Table 6. Performance distribution analysis of the design method based on relative coordinates and regional content replacement.

Metric category Average color deviation ($\Delta$E) Pattern smoothness change rate (%) Pixel segmentation overlap rate (IOU) Memory usage (MB) Execution time (s) Pattern detail retention rate (%) Algorithm complexity (O value)
Color extraction 1.8234 / / 102.64 0.738 / $O(n * \log(n))$
Pattern segmentation / 12.47 0.9312 215.43 1.154 / $O(n^2)$
Region replacement / / / 198.35 1.987 96.32 $O(n^3)$
Pattern reconstruction 1.5647 10.83 0.9468 325.28 2.417 92.74 $O(n * \log(n))$
Overall performance (average) 1.6941 11.65 0.9390 210.93 1.574 94.53 /

5. Conclusion

Considering the complexity and uniqueness of Zhuang brocade patterns, a Zhuang brocade pattern design algorithm on the ground of relative coordinates and regional content replacement is proposed. This algorithm achieves accurate recognition and automatic generation of Zhuang brocade patterns by analyzing their texture, color, and other features. The experiment showcases that the Zhuang brocade pattern design algorithm on the ground of relative coordinates and regional content replacement could markedly enhance the efficiency and quality of packaging pattern design. The accuracy of the experimental sample segmentation result is 0.993, indicating a good segmentation effect; 10 generated graphics were evaluated for style similarity, of which 9 were similar, accounting for 90%. By evaluating the style similarity of 10 generated patterns, an average level of 75.80% was obtained. This study offers a new solution to strengthen the efficiency and diversity of packaging pattern design by studying and applying the Zhuang brocade pattern design algorithm and pattern feature extraction method on the ground of relative coordinates and regional content replacement. There are still shortcomings in the research, such as the incomplete dataset of Zhuang brocade patterns, and more research and expansion of the dataset are needed in future work. This not only helps to optimize the packaging design process of Zhuang brocade, but also provides reference and inspiration for innovation in other types of packaging design.

Funding

The research is supported by: On campus cultivation project for philosophy and social sciences at Xinjiang University: Excavation, Sorting and Interpretation of Visual Elements of Ethnic Inclusion in Xinjiang Intangible Cultural Heritage No.: 50012300218; Excavation, collation and interpretation of ethnic integration visual elements in Xinjiang's intangible cultural heritage, it belongs to the phased achievements of this project, No.: 202221130014.

References

1 
P. Weber , J. Wolf , B. Stephan , M. Hauptmann , Experimental investigation towards the transport-optimized design of peelable polymer tray packaging, Packaging Technology and Science, Vol. 35, No. 7, pp. 529-541, 2022DOI
2 
J. Gomis-Fons , H. Schwarz , L. Zhang , N. Andersson , B. Nilsson , A. Catan , A. Solbrand , J. Stevebson , V. Chotteau , Model-based design and control of a small-scale integrated continuous end-to-endm Ab platform, Biotechnology Progress, Vol. 36, No. 4, pp. 2995-3008, 2020DOI
3 
P. Andrews-Speed , How may national culture shape public policy? The case of energy policy in China, The Energy Journal, Vol. 43, No. 3, pp. 257-274, 2022DOI
4 
J. Rice , L. Daouk-Yry , E. Hitti , It is time to consider national culture when designing team training initiatives in healthcare, BMJ Quality & Safety, Vol. 30, No. 5, pp. 412-417, 2021DOI
5 
X. Huang , X. Luo , L. Liu , Formation mechanism of egg white protein/$\kappa$-Carrageenan composite film and its application to oil packaging, Food Hydrocolloids, Vol. 105, No. 1, pp. 105780-105790, 2020DOI
6 
G. Lei , X. Li , A new approach to 3D pattern-making for the apparel industry: Graphic coding-based localization, Computers in Industry, Vol. 136, No. 4, pp. 103587-103597, 2022DOI
7 
Z. Li , B. Lin , R. Luan , Impact assessment of clean air action on total factor energy productivity: A three-dimensional analysis, Environmental Impact Assessment Review, Vol. 93, No. 5, pp. 106745-106756, 2022DOI
8 
Z. Lu , G. He , R. Wang , S. Wang , An orthogonal wheel odometer for positioning in a relative coordinate system on a floating ground, Applied Sciences, Vol. 11, No. 23, pp. 11340-11363, 2021DOI
9 
L. Wang , P. Han , S. Dou , Analysis and verification of harmonic interaction between DDWTs based on $\alpha\beta$ stationary coordinate system, IET Generation Transmission & Distribution, Vol. 14, No. 10, pp. 1893-1901, 2020DOI
10 
S. Salzo , S. Villa , Parallel random block-coordinate forward-backward algorithm: a unified convergence analysis, Mathematical Programming, Vol. 193, No. 4, pp. 225-269, 2020DOI
11 
A. M. Romero , J. M. Yao , B. Bally , T. R. Rodriguez , J. Engel , Application of an efficient generator-coordinate subspace-selection algorithm to neutrinoless double-$\beta$ decay, Physical Review C, Vol. 104, No. 5, pp. 52-59, 2021DOI
12 
L. J. Du , Y. S. Meng , Y. L. He , J. Xie , Tuning of relative spatial distributions of a two-component ion system to improve sympathetic cooling efficiency, Modern Physics Letters B, Vol. 35, No. 12, pp. 352-361, 2021DOI
13 
K. T. Lofgren , D. A. Watkins , S. T. Memirie , J. A. Salomon , S. Verguet , Balancing health and financial protection in health benefit package design, Health Economics, Vol. 30, No. 12, pp. 3236-3247, 2021DOI
14 
N. Jiang , H. Liu , J. Zou , C. Guo , W. Li , M. Shi , B. Yang , Y. Liu , B. Guo , Packaging design for improving the uniformity of chip scale package (CSP) LED luminescence, Microelectronics Reliability, Vol. 122, No. 2, pp. 114136-114242, 2021DOI
15 
L. Wen , Y. Liang , Z. Lin , Design of multifunctional food packaging films based on carboxymethyl chitosan/polyvinyl alcohol crosslinked network by using citric acid as crosslinker, Polymer, Vol. 230, pp. 124048-124061, 2021DOI
16 
R. Accorsi , M. Bortolini , M. Gamberi , B. Guidani , R. Manzini , M. Ronzoni , Simulating product-packaging conditions under environmental stresses in a food supply chain cyber-physical twin, Journal of Food Engineering, Vol. 320, No. 5, pp. 110930-110945, 2022DOI
17 
M. Jeong , O. Wackowski , K. Schroth , Influence of cigarillo packaging characteristics on young adults’ perceptions and intentions: findings from three online experiments, Tobacco Control, Vol. 32, No. 3, pp. 344-351, 2023DOI
18 
Y. Fang , B. Luo , T. Zhao , ST-SIGMA: Spatio-temporal semantics and interaction graph aggregation for multi-agent perception and trajectory forecasting, CAAI Transactions on Intelligence Technology, Vol. 7, No. 4, pp. 744-757, 2022DOI
19 
J. K. V. Niekerk , A. J. Fischer-Tlustos , L. L. Deikun , Effect of amount of milk replacer fed and the processing of corn in starter on growth performance, nutrient digestibility, and rumen and fecal fibrolytic bacteria of dairy calves, Journal of Dairy Science, Vol. 103, No. 3, pp. 2186-2199, 2020DOI
20 
E. K. Nesamalar , J. Satheeshkumar , T. Amudha , Influence of artificial intelligence in clinical and genomic diagnostics, Artificial Intelligence Theory, Models, and Applications, Vol. 65, No. 8, pp. 5-17, 2021DOI
Songyan Cui
../../Resources/ieie/IEIESPC.2026.15.3.334/au1.png

Songyan Cui obtained a Master of Arts degree in Journalism from Xinjiang University, China, in 2009, and a Master of Fine Arts degree from the Central Academy of Fine Arts, China, in 2018. He is currently an Associate Professor at the Department of Aesthetic Education (Art), School of Design and Art, Xinjiang University. His research has been published in more than ten internationally renowned peer-reviewed journals. His research interests include fine arts, digital advertising design, and packaging pattern design.

Yaxuan Qi
../../Resources/ieie/IEIESPC.2026.15.3.334/au2.png

Yaxuan Qi obtained her Ph.D. degree in design from Dongseo University, South Korea, in 2022, and holds a master’s degree in art from Beijing Institute of Technology. She is currently an associate professor in the Department of Advertising, School of Journalism and Communication, Xinjiang University. Her research areas include computer graphic design, advertising visual design, packaging design, and traditional cultural pattern design based on intangible cultural heritage.