Fabric laser gray scale patterning method, system, apparatus, and storage medium
By establishing a gray box hybrid mathematical model to optimize laser processing parameters, the problem of fabric damage caused by uneven heat input in the formation of grayscale patterns on fabrics was solved, and a smooth transition between light and dark shades and rich grayscale effect on the fabric was achieved.
Patent Information
- Application Number
- CN202611290744.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-25
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2046-08-25
AI Technical Summary
Existing technologies struggle to create a smooth, layered grayscale effect with varying shades on fabrics, and the process can easily lead to burn-through or a decline in the fabric's mechanical properties.
By establishing a gray-box hybrid mathematical model, combining the surface energy density safety range and response surface model, the laser processing parameters are optimized to form a dynamic processing instruction set, which controls the laser equipment to perform variable parameter scanning and form a grayscale pattern on the fabric.
While ensuring the mechanical properties of the fabric, a smooth transition between light and dark shades and rich layers of grayscale patterns were achieved, avoiding fabric burn-through and degradation of mechanical properties.
Smart Images

Figure CN122839465B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of textile laser processing technology, and in particular to a method, system, device and storage medium for forming laser grayscale patterns on fabrics. Background Technology
[0002] With the development of laser processing technology, laser equipment is increasingly being used for cutting, marking, and pattern processing of textile fabrics. In traditional embroidery techniques such as Suzhou embroidery, the pattern to be embroidered is usually printed onto a base material such as silk gauze before embroidery to mark the outline, position, and color gradations of the pattern. Silk gauze is usually woven from raw silk and has characteristics such as low weight, thinness, and limited heat resistance. Therefore, when using lasers to form patterns, it is not only necessary to ensure that the processed area exhibits a recognizable color change, but also to avoid the laser's thermal effect causing the fabric to burn through or significantly degrade its mechanical properties.
[0003] Current laser printing methods for fabrics typically convert the pattern to be processed into a vector graphic, and control the movement of the laser head according to the contour path in the vector graphic. During the movement, the fabric is cut or marked according to pre-set laser power, scanning speed, and scanning spacing. Fixed processing parameters are generally used for the same contour line or the same processing area, resulting in contour marks or processing areas with relatively consistent colors on the fabric surface. When it is necessary to change the color depth of the processing area, the operator usually adjusts the laser power, scanning speed, or scanning spacing based on experience, and then observes the color development and damage of the fabric through trial processing to determine the appropriate processing parameters.
[0004] However, when it is necessary to reproduce the varying shades, rich layers, and smooth transitions of grayscale patterns found in traditional ink paintings or Suzhou embroidery on fabrics, different areas of the pattern need to exhibit different degrees of color variation. Existing contour processing methods using fixed parameters are insufficient to achieve the corresponding grayscale levels in each area. Furthermore, relying on manual adjustment of laser parameters to achieve different shades makes it difficult to accurately control the laser heat input. In particular, the suitable processing range for lightweight animal protein fiber fabrics such as silk is relatively narrow. Insufficient heat input leads to inadequate surface reaction, resulting in insufficient color development and difficulty in identifying the pattern; excessive heat input, on the other hand, can easily cause deep carbonization of the fibers, structural damage, decreased tensile strength, or even fabric burn-through. Therefore, how to determine matching laser processing parameters based on different grayscale levels in the pattern, while ensuring that the fabric's mechanical properties meet the usage requirements, in order to create a smooth and richly layered grayscale pattern on the fabric, has become a problem that needs to be solved. Summary of the Invention
[0005] This application provides a method, system, device, and storage medium for forming laser grayscale patterns on fabrics. It enables the formation of smooth, richly layered grayscale patterns by determining matching laser processing parameters based on different grayscale levels within the pattern, while ensuring the fabric's mechanical properties meet usage requirements. The technical solution provided in this application is as follows: In a first aspect, this application provides a method for forming a laser grayscale pattern on a fabric, the method comprising: Obtain the pattern to be processed, convert the pattern to be processed into a grayscale image, and extract the grayscale values corresponding to each position in the grayscale image; A gray box hybrid mathematical model is established for the target fabric. The gray box hybrid mathematical model includes physical constraints based on the safe range of surface energy density and a response surface model. The safe range of surface energy density is defined by the critical surface energy density for color development initiation as the lower limit and the critical surface energy density for mechanical damage as the upper limit. The response surface model is used to characterize the correspondence between laser processing parameters and the color difference and breaking strength of the target fabric. Based on the background color of the target fabric, each gray value is mapped to the corresponding target chromaticity difference. Constrained by the surface energy density safety range, the tensile strength safety threshold, and the effective design domain of the response surface model, the laser processing parameters corresponding to each target chromaticity difference are optimized using the gray box mixing mathematical model. The optimization results are then filtered based on the continuity of laser processing parameters between adjacent gray levels to determine the target laser processing parameters corresponding to each gray value. A dynamic processing instruction set is generated based on each position in the grayscale image and the corresponding target laser processing parameters. The laser processing equipment is then controlled to perform variable parameter scanning on the surface of the target fabric based on the dynamic processing instruction set to form a laser grayscale pattern on the fabric.
[0006] In one specific implementation, establishing the gray-box mixing mathematical model for the target fabric includes: The original breaking strength of the target fabric is obtained, and the breaking strength safety threshold is determined based on the original breaking strength and a preset mechanical safety retention coefficient. The first scan speed and the first scan interval for colorimetric initiation calibration, and the second scan speed and the second scan interval for mechanical damage calibration are determined respectively. At the first scanning speed and the first scanning interval, multiple laser powers that increase sequentially are set to perform gradient processing on the target fabric, and the color difference of each gradient-processed sample is obtained. The surface energy density corresponding to the first time when the average color difference reaches the preset minimum identifiable color difference threshold and the color difference of multiple repeatedly processed samples all reach the preset minimum identifiable color difference threshold is determined as the color development initiation critical surface energy density. At the second scanning speed and the second scanning interval, multiple laser powers that increase sequentially are set to perform gradient processing on the target fabric, and the breaking strength of each gradient-processed sample is obtained. The surface energy density corresponding to the first reduction of the breaking strength to the breaking strength safety threshold is determined as the critical surface energy density of mechanical damage. The surface energy density is determined by the following formula: ; in, For surface energy density, For laser power, For scanning speed, This represents the scanning interval.
[0007] In one specific implementation scheme, establishing the gray-box mixing mathematical model for the target fabric further includes: Within the safe range of surface energy density, multiple parameter levels are set using laser power, scanning speed, and scanning spacing as experimental factors, and each parameter level is dimensionlessly coded. A three-factor, three-level Box-Behnken experimental design was used to determine multiple combinations of laser processing parameters, and a center point repeat experiment was set up. The target fabric was laser processed according to each combination of laser processing parameters to obtain the breaking strength and color difference of each processed sample. Based on the laser processing parameter combinations and the corresponding fracture strength and chromaticity difference, second-order polynomial regression is performed to obtain the fracture strength response surface equation and the chromaticity difference response surface equation. The significance test and the lack-of-fit test are then performed on the fracture strength response surface equation and the chromaticity difference response surface equation. The response surface model is established based on the test results.
[0008] In one specific implementation scheme, the multi-objective optimization of the laser processing parameters corresponding to each target chromaticity difference based on the gray-box mixing mathematical model includes: Multiple candidate laser processing parameter combinations are generated within a preset optimization space consisting of laser power, scanning speed, and scanning spacing. The corresponding surface energy density is determined based on each candidate laser processing parameter combination. The corresponding predicted chromaticity difference and predicted fracture strength are determined through the response surface model. When the surface energy density corresponding to any candidate laser processing parameter combination exceeds the safe range of the surface energy density, the predicted fracture strength is lower than the safe threshold of the fracture strength, or the candidate laser processing parameter combination exceeds the effective design domain of the response surface model, an infinite penalty value is assigned to the candidate laser processing parameter combination and it is eliminated. With the optimization objectives of ensuring that the predicted chromatic difference covers the preset target chromatic difference range and increasing the predicted fracture strength, Pareto optimization is performed on the remaining candidate laser processing parameter combinations to obtain the Pareto front candidate parameter set.
[0009] In one specific implementation scheme, the filtering of multi-objective optimization results based on the continuity of laser processing parameters between adjacent gray levels includes: For the target chromaticity difference corresponding to the current gray level, candidate laser processing parameters are selected from the Pareto front candidate parameter set, where the difference between the predicted chromaticity difference and the target chromaticity difference does not exceed the preset chromaticity difference tolerance value and the predicted fracture strength is not lower than the fracture strength safety threshold value, thus obtaining the current candidate parameter set. The candidate laser processing parameter with the largest predicted fracture strength is determined from the current candidate parameter set and used as the absolute optimal parameter corresponding to the current gray level. Based on the absolute optimal parameter and the target laser processing parameter corresponding to the previous adjacent gray level, the evaluation value of each candidate laser processing parameter in the current candidate parameter set is determined by the following formula: ; Calculate the evaluation value of each candidate laser processing parameter in the current candidate parameter set, and determine the candidate laser processing parameter with the smallest evaluation value as the target laser processing parameter corresponding to the current gray level: ; in, These are the evaluation values for candidate laser processing parameters. The target laser processing parameters are the parameters corresponding to the current gray level. For the current candidate parameter set, These are the candidate laser processing parameters in the current candidate parameter set. The absolute optimal parameters are... These are the target laser processing parameters corresponding to the previous adjacent gray level. This is a color accuracy weighting coefficient. The continuity weighting coefficient is set by normalization based on the maximum allowable parameter step size of the laser processing equipment. It is used to reduce the changes in laser power, scanning speed and scanning spacing between adjacent gray levels, so that the changes in laser processing parameters can adapt to the dynamic following capability of the laser processing equipment.
[0010] In one specific implementation, mapping each grayscale value to a corresponding target chromaticity difference based on the background color of the target fabric includes: When the base color of the target fabric is light or white, the position with a grayscale value of 255 is determined as the unprocessed position, and the target color difference corresponding to the position with a grayscale value between 0 and 254 is determined according to the following formula: ; When the base color of the target fabric is dark or black, the position with a grayscale value of 0 is determined as the position not to be processed, and the target color difference corresponding to the position with a grayscale value greater than 0 and not greater than 255 is determined according to the following formula: ; in, For target chromaticity difference, Grayscale value To effectively process the lower limit of the chromaticity difference range, This is the upper limit of the effective processing color difference range.
[0011] In one specific implementation, extracting the grayscale values corresponding to each position in the grayscale image includes: Based on the pattern features of the pattern to be processed, select either pixel-by-pixel grayscale value extraction method or connected region grayscale value extraction method; When the pattern to be processed is a continuous tone pattern, the pixel-by-pixel grayscale value extraction method is used to extract the grayscale value corresponding to each pixel position in the grayscale image point by point. When the pattern to be processed is a flat pattern, the grayscale image is quantized at multiple levels, and the pixels quantized to the same grayscale level are divided into connected regions using an eight-connected labeling method. The average grayscale value of each pixel in each connected region is determined as the representative grayscale value of the corresponding connected region, and the representative grayscale value is used as the grayscale value of each position in the corresponding connected region.
[0012] Secondly, this application provides a fabric laser grayscale pattern forming system, which adopts the following technical solution: A fabric laser grayscale pattern forming system includes: A grayscale image extraction module is used to acquire the pattern to be processed, convert the pattern to be processed into a grayscale image, and extract the grayscale values corresponding to each position in the grayscale image; The gray box model building module is used to build a gray box hybrid mathematical model for the target fabric. The gray box hybrid mathematical model includes physical constraints and a response surface model based on the safe range of surface energy density. The safe range of surface energy density is defined by the critical surface energy density for color development as the lower limit and the critical surface energy density for mechanical damage as the upper limit. The response surface model is used to characterize the correspondence between laser processing parameters and the color difference and breaking strength of the target fabric. The laser parameter determination module is used to map each gray value to a corresponding target chromaticity difference based on the background color of the target fabric, and to perform multi-objective optimization of the laser processing parameters corresponding to each target chromaticity difference based on the gray box mixing mathematical model, constrained by the surface energy density safety range, the breaking strength safety threshold and the effective design domain of the response surface model. The module also filters the multi-objective optimization results based on the continuity of laser processing parameters between adjacent gray levels to determine the target laser processing parameters corresponding to each gray value. The dynamic processing control module is used to generate a dynamic processing instruction set based on each position in the grayscale image and the corresponding target laser processing parameters, and to control the laser processing equipment to perform variable parameter scanning on the surface of the target fabric according to the dynamic processing instruction set, so as to form a fabric laser grayscale pattern.
[0013] Thirdly, this application provides an electronic device, the device including a processor and a memory; the memory stores a program, the program being loaded and executed by the processor to implement a method for forming a fabric laser grayscale pattern as described in the first aspect.
[0014] Fourthly, this application provides a computer-readable storage medium storing a program that, when executed by a processor, is used to implement a method for forming a fabric laser grayscale pattern as described in the first aspect.
[0015] By converting the pattern to be processed into a grayscale image and extracting the grayscale values corresponding to each position, a gray-box hybrid mathematical model including surface energy density physical constraints and a response surface model is established. Then, based on the background color of the target fabric, different grayscale values are mapped to the corresponding target chromaticity differences. Under the constraints of the surface energy density safety range, the tensile strength safety threshold, and the effective design domain of the response surface model, multi-objective optimization is performed on the laser processing parameters corresponding to each target chromaticity difference. This establishes a clear correspondence between different grayscale values in the pattern and the color rendering degree of the target fabric and the laser processing parameters. Furthermore, the optimization results are filtered by the continuity of laser processing parameters between adjacent grayscale levels, and a dynamic processing instruction set is generated based on the target laser processing parameters corresponding to each position. This controls the laser processing equipment to perform variable parameter scanning, which not only enables different positions to form corresponding color rendering levels according to the pattern grayscale, but also limits the laser heat input and the tensile strength after processing to within a safe range, while reducing parameter abrupt changes between adjacent grayscale positions. Thus, while maintaining the mechanical properties of the target fabric, a fabric laser grayscale pattern with rich light and dark layers, smooth grayscale transitions, and stable color rendering is formed.
[0016] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, the preferred embodiments of this application are described in detail below with reference to the accompanying drawings. Attached Figure Description
[0017] Figure 1 This is a schematic flowchart of the fabric laser grayscale pattern formation method in the embodiments of this application.
[0018] Figure 2 This is a schematic diagram of the overall process of the fabric laser grayscale pattern formation method in the embodiments of this application.
[0019] Figure 3 These are comparison images of the macroscopic morphology of the target fabric surface under different laser powers in the embodiments of this application.
[0020] Figure 4 These are comparison images of the microstructure of the target fabric fibers under different laser processing parameters in the embodiments of this application.
[0021] Figure 5 This is a comparison chart of laser power changes before and after the continuity screening of adjacent grayscale laser processing parameters in the embodiments of this application.
[0022] Figure 6 This is a structural block diagram of the fabric laser grayscale pattern forming system in the embodiments of this application.
[0023] Figure 7 This is a block diagram of an electronic device for forming a fabric laser grayscale pattern in an embodiment of this application. Detailed Implementation
[0024] The specific embodiments of this application will be described in further detail below with reference to the accompanying drawings and examples. The following examples are used to illustrate this application, but are not intended to limit the scope of this application.
[0025] Optionally, this application uses the fabric laser grayscale pattern forming method provided in various embodiments as an example for description in electronic devices. The electronic device is a terminal or server. The terminal can be a computer, tablet computer, etc. This embodiment does not limit the type of electronic device.
[0026] Reference Figure 1 This is a flowchart illustrating a method for forming a laser grayscale pattern on a fabric according to an embodiment of this application. The method includes at least the following steps: Step S101: Obtain the pattern to be processed, convert the pattern to be processed into a grayscale image, and extract the grayscale values corresponding to each position in the grayscale image.
[0027] In step S101, the pattern to be formed on the surface of the target fabric is obtained, and the pattern is converted to grayscale. While maintaining the spatial relationship of the pattern, the grayscale values corresponding to different positions in the grayscale image are determined. The grayscale value characterizes the brightness of the corresponding position in the pattern; the smaller the grayscale value, the closer the corresponding position is to black; the larger the grayscale value, the closer the corresponding position is to white. By preserving the correspondence between grayscale values and image positions, the contours, brightness variations, and grayscale levels in the pattern can be accurately characterized.
[0028] Specifically, when the pattern to be processed is a color image, it is converted into an 8-bit grayscale image based on the red, green, and blue channel values of each pixel in the pattern. The grayscale conversion is performed according to the following formula: ; in, These are the grayscale values after pixel conversion. The red channel value of the pixel. This is the green channel value of the pixel. This represents the blue channel value of the pixel. The grayscale value ranges from 0 to 255, where 0 represents black and 255 represents white. When the pattern to be processed is already a grayscale image, the grayscale values at each location in the grayscale image are read directly, without needing to perform grayscale conversion again.
[0029] Based on the pattern characteristics of the pattern to be processed, either pixel-by-pixel grayscale value extraction or connected region grayscale value extraction is selected. Pattern characteristics mainly include whether the grayscale changes in the pattern are continuous and whether the pattern area is composed of relatively uniform color blocks. Using corresponding grayscale value extraction methods for different pattern characteristics can preserve subtle light and dark variations in continuous-tone patterns while reducing redundant parameter calculations for the same grayscale areas in flat-painted patterns.
[0030] When the pattern to be processed is a continuous-tone pattern, a pixel-by-pixel grayscale extraction method is used to extract the grayscale value corresponding to each pixel position in the grayscale image point by point. Continuous-tone patterns include ink wash patterns, gradient patterns, and patterns with continuous light and dark transitions. The pixel-by-pixel grayscale extraction method uses a single pixel as the processing unit, associating the coordinate position of each pixel with its corresponding grayscale value, so that subtle grayscale changes in the grayscale image are preserved, thereby accurately representing the gradients, washes, and light and dark transitions in the pattern to be processed.
[0031] When the pattern to be processed is a flat pattern, the grayscale image is quantized at multiple levels, and the pixels quantized to the same grayscale level are divided into connected regions using an eight-connected labeling method. The average grayscale value of each pixel in each connected region is determined as the representative grayscale value of the corresponding connected region, and the representative grayscale value is used as the grayscale value of each position in the corresponding connected region.
[0032] Specifically, multi-level grayscale quantization divides the continuous grayscale range from 0 to 255 into multiple discrete grayscale levels, the number of which is denoted as . For example, when dividing a continuous grayscale range into 10 grayscale levels, pixels with similar grayscale values are grouped into the same grayscale level. After grayscale quantization, taking the current pixel as the center, it is determined whether the eight pixels adjacent to the current pixel in the horizontal, vertical, and diagonal directions belong to the same grayscale level, and pixels that are interconnected and belong to the same grayscale level are grouped into the same connected region.
[0033] For each connected region, the average grayscale value of all pixels within the region is calculated, and this average value is used as the representative grayscale value of the corresponding connected region. Thus, all locations within the same connected region have the same grayscale value. This maintains the overall color block characteristics of the flat-painted pattern while reducing region segmentation and frequent parameter changes caused by minor grayscale fluctuations, thereby improving the grayscale extraction efficiency and region consistency of the flat-painted pattern.
[0034] Step S102: Establish a gray box hybrid mathematical model for the target fabric. The gray box hybrid mathematical model includes physical constraints based on the safe range of surface energy density and a response surface model. The safe range of surface energy density is defined by the critical surface energy density for color development as the lower limit and the critical surface energy density for mechanical damage as the upper limit. The response surface model is used to characterize the correspondence between laser processing parameters and the color difference and breaking strength of the target fabric.
[0035] In step S102, a gray-box hybrid mathematical model is established for the target fabric, consisting of physical constraints and experimental data compensation. Physical constraints define the parameter range within which the target fabric can stably develop color without causing excessive mechanical damage, based on the laser thermal input. The response surface model describes the nonlinear changes in the color difference and breaking strength of the target fabric when laser power, scanning speed, and scanning spacing change simultaneously within this parameter range. Thus, physical constraints first exclude laser processing parameters that result in insufficient color development or a high risk of fabric damage, and the response surface model then predicts the color development degree and mechanical properties corresponding to the retained parameters.
[0036] First, physical constraints based on the safe range of surface energy density are established. When lasers act on animal protein fiber fabrics such as silk, lower heat input causes the outer sericin of the fabric to melt, oxidize, or pyrolyze, resulting in a color at the processed location that differs from the fabric's base color. As the heat input continues to increase, the structure of the inner silk fibroin fibers is damaged, leading to a decrease in tensile strength. Therefore, the combined effects of laser power, scanning speed, and scanning spacing on heat input per unit area are uniformly characterized as surface energy density, and the safe range of surface energy density is defined using the color development initiation state and the mechanical damage state.
[0037] Specifically, the original breaking strength of the target fabric is obtained, and a breaking strength safety threshold is determined based on the original breaking strength and a preset mechanical safety retention factor. Specifically, the original breaking strength is multiplied by the preset mechanical safety retention factor to obtain the breaking strength safety threshold. The original breaking strength is the breaking strength measured in the target fabric before laser processing, and the preset mechanical safety retention factor is used to limit the proportion of mechanical properties that must be retained after laser processing. For example, when the preset mechanical safety retention factor is 80%, the breaking strength safety threshold is 80% of the original breaking strength.
[0038] After determining the safety threshold for fracture strength, a first scanning speed and a first scanning interval are determined for color development initiation calibration, and a second scanning speed and a second scanning interval are determined for mechanical damage calibration. The first scanning speed and the first scanning interval are used to define the scanning conditions during the color development initiation calibration process, while the second scanning speed and the second scanning interval are used to define the scanning conditions during the mechanical damage calibration process. The two sets of scanning conditions are determined according to the material properties of the target fabric and the range of laser processing parameters, and the two sets of scanning conditions may use the same or different scanning speeds and scanning intervals.
[0039] Subsequently, at the first scanning speed and the first scanning interval, multiple laser powers with progressively increasing values are set to perform gradient processing on the target fabric, and the color difference of each gradient-processed sample is obtained. The surface energy density corresponding to the first time when the average color difference reaches the preset minimum identifiable color difference threshold and the color difference of multiple repeatedly processed samples all reach the preset minimum identifiable color difference threshold is determined as the color development initiation critical surface energy density.
[0040] In this study, the same target fabric, scanning speed, and scanning spacing were used for the processed samples corresponding to each laser power. Only the laser power was varied, ensuring that the color difference between different samples was mainly caused by the change in laser power. Multiple repeatedly processed samples were prepared for each laser power, and the color difference of each repeatedly processed sample relative to the unprocessed target fabric was measured using a spectrophotometer. When multiple repeatedly processed samples all reached the minimum distinguishable color difference threshold, it indicated that the corresponding heat input had caused the target fabric to form a stable and repeatable color development state.
[0041] Furthermore, at the second scanning speed and the second scanning interval, multiple laser powers with sequentially increasing values are set to perform gradient processing on the target fabric, and the fracture strength of each gradient-processed sample is obtained. The surface energy density corresponding to the first reduction of the fracture strength to the fracture strength safety threshold is determined as the critical surface energy density for mechanical damage.
[0042] The tensile strength of samples processed at each gradient was measured using a tensile testing machine, and the results were compared with the safety threshold for tensile strength. When the tensile strength first decreased to the safety threshold, it indicated that further increasing the heat input per unit area would cause the mechanical properties of the target fabric to fall below the preset safety requirements. Therefore, the area energy density corresponding to this state was taken as the upper limit of the safety range of area energy density.
[0043] Surface energy density is determined by the following formula: ; in, For surface energy density, For laser power, For scanning speed, The scanning distance is the area between the laser and the scanning distance. As the laser power increases, the surface energy density increases accordingly; as the scanning speed increases, the laser's interaction time per unit area decreases, and the surface energy density decreases accordingly; as the scanning distance increases, the scanning path density per unit area decreases, and the surface energy density also decreases.
[0044] Therefore, the energy density of the color development initiation critical surface is denoted as... The energy density at the critical surface of mechanical damage is denoted as... The following physical constraints are obtained: ; in, This is the lower limit of the safe range for surface energy density. Below this limit, the target fabric is unlikely to form a stable and clear color. This is the upper limit of the safe range for surface energy density. If the density exceeds this limit, the breaking strength of the target fabric may be lower than the safety requirement.
[0045] In one specific embodiment, the target fabric has a weight of approximately 30 g / m². 2 The black silk fabric has a preset minimum distinguishable color difference threshold of 8 and a preset mechanical safety retention factor of 80%. When the first scanning speed is 3000 mm / s, the first scanning interval is 0.12 mm, and the laser power is 9 W, the surface energy density is 0.025 J / mm². 2 The target fabric began to show stable color development, with an average color difference of approximately 8.4. Therefore, 0.025 J / mm 2The critical surface energy density for color development was determined. When the second scanning speed was 2800 mm / s, the second scanning interval was 0.10 mm, and the laser power was 10.2 W, the surface energy density was approximately 0.036 J / mm². 2 The breaking strength of the target fabric is close to the safety threshold of 117 N, therefore 0.036 J / mm 2 The critical surface energy density for mechanical damage was determined. The safe range for the surface energy density corresponding to this embodiment is 0.025 J / mm². 2 Up to 0.036J / mm 2 .
[0046] After establishing the physical constraints, a response surface model was further developed within the safe range of surface energy density. Since the chromaticity difference of the target fabric is not solely determined by surface energy density, even with the same or similar surface energy densities, different combinations of laser processing parameters—laser power, scanning speed, and scanning spacing—will still result in different color development states and breaking strengths. Therefore, the response surface model preserves the variation characteristics and interaction relationships of the three laser processing parameters.
[0047] Specifically, within the safe range of surface energy density, multiple parameter levels were set using laser power, scanning speed, and scanning spacing as experimental factors, and each parameter level was dimensionlessly coded. Dimensionless coding transforms the three experimental factors with different units and numerical ranges into a unified coding range, enabling the main effects, interaction effects, and secondary effects of each experimental factor to be analyzed in the same regression equation.
[0048] A three-factor, three-level Box-Behnken experimental design was used to determine multiple combinations of laser processing parameters. A center-point repeat experiment was set up, and the target fabric was laser-processed according to each parameter combination to obtain the breaking strength and color difference of each processed sample. The three factors were laser power, scanning speed, and scanning spacing, with the three parameter levels corresponding to low, medium, and high levels of each experimental factor, respectively. The center-point repeat experiment was used to reflect the degree of fluctuation in experimental results under the same processing parameters and to estimate experimental error.
[0049] In one specific implementation, 17 sets of laser processing tests were conducted, including 5 sets of center point repetition tests. After each set of tests, the breaking strength of the processed sample was measured using a tensile testing machine, and the color difference between the processed sample and the unprocessed target fabric was measured using a spectrophotometer, thereby forming experimental data corresponding to the laser processing parameter combination, breaking strength, and color difference.
[0050] Based on the combination of laser processing parameters and the corresponding fracture strength and chromaticity difference, second-order polynomial regression was performed to obtain the fracture strength response surface equation and the chromaticity difference response surface equation. The significance test and the lack of fit test were performed on the fracture strength response surface equation and the chromaticity difference response surface equation. The response surface model was established based on the test results.
[0051] Second-order polynomial regression includes linear terms for each experimental factor, interaction terms between different experimental factors, and quadratic terms for each experimental factor. The linear terms reflect the impact of changes in a single laser processing parameter on the response result; the interaction terms reflect the coupling effect caused by changes in two laser processing parameters; and the quadratic terms reflect the nonlinear trend of the response result as the laser processing parameters change. The significance test is used to determine the explanatory power of the regression equation as a whole and each regression term for the response result, while the lack-of-fit test is used to determine whether there is a significant systematic bias between the regression equation and the experimental data.
[0052] In one specific embodiment, the dimensionless coded values corresponding to laser power, scanning speed, and scanning spacing are respectively denoted as... , and The encoding range is -1 to 1. The fracture strength response surface equation obtained based on experimental data is: ; The chromaticity difference response surface equation is: ; in, The fracture strength predicted by the response surface model. The chromaticity difference predicted by the response surface model. This is the dimensionless coded value corresponding to the laser power. The dimensionless encoded value corresponding to the scanning speed. This is the dimensionless encoded value corresponding to the scan interval.
[0053] When controlling laser processing equipment to perform processing, dimensionless encoded values are converted into actual laser processing parameters according to the following relationship: ; ; ; in, This refers to the actual laser power, expressed in W. This refers to the actual scanning speed, expressed in mm / s. This represents the actual scanning spacing, in mm.
[0054] After the above processing, the gray-box hybrid mathematical model possesses both physical boundary screening and experimental response prediction capabilities. When the surface energy density corresponding to any combination of laser processing parameters is lower than the critical surface energy density for color development, the parameter combination is deemed insufficient in color development; when the corresponding surface energy density is higher than the critical surface energy density for mechanical damage, the parameter combination is deemed to pose a risk of mechanical damage; when the surface energy density is within a safe range, the response surface model predicts the color difference and breaking strength of the target fabric based on the laser power, scanning speed, and scanning spacing, thereby achieving a synergistic characterization of the fabric's color development effect and mechanical properties.
[0055] Step S103: Based on the background color of the target fabric, map each gray value to the corresponding target chromaticity difference. With the surface energy density safety range, the breaking strength safety threshold, and the effective design domain of the response surface model as constraints, perform multi-objective optimization of the laser processing parameters corresponding to each target chromaticity difference based on the gray box mixing mathematical model. Then, based on the continuity of laser processing parameters between adjacent gray levels, filter the multi-objective optimization results to determine the target laser processing parameters corresponding to each gray value.
[0056] In step S103, a continuous mapping relationship between grayscale values and target color difference is first established based on the background color of the target fabric, so that different brightness levels in the grayscale image are converted into different color rendering levels that need to be formed on the surface of the target fabric. Subsequently, using the surface energy density safety range, breaking strength safety threshold, and response surface model established in step S102, the laser processing parameters are constrained and optimized to obtain candidate parameters that take into account both the color rendering range and the mechanical properties of the fabric. On this basis, the candidate parameters are further screened by combining the parameter continuity between adjacent grayscale levels to reduce the abrupt changes in laser power, scanning speed, and scanning spacing during continuous processing, and finally, the correspondence between each grayscale value and the target laser processing parameters is established.
[0057] First, the mapping direction between the grayscale value and the target chromaticity difference is determined based on the background color of the target fabric. The target chromaticity difference represents the color difference between the laser-processed location and the unprocessed target fabric; the larger the target chromaticity difference, the more obvious the visual difference between the processed location and the fabric's background color. Since light-colored and dark-colored fabrics exhibit different color development directions after laser treatment, negative and positive correlation mapping relationships are used respectively.
[0058] When the target fabric has a light or white base color, the position with a grayscale value of 255 is designated as the unprocessed position, and the target chromaticity difference corresponding to the positions with grayscale values between 0 and 254 is determined according to the following formula: ; When the target fabric has a light or white base color, the unprocessed fabric base color corresponds to the white position in the grayscale image. When the grayscale value is 255, the laser processing equipment turns off the laser output at the corresponding position to preserve the original base color of the target fabric. The smaller the grayscale value, the closer the corresponding position is to black in the grayscale image, and the greater the target color difference is, resulting in a more obvious color rendering.
[0059] When the target fabric has a dark or black background, the position with a grayscale value of 0 is designated as the position to be left unprocessed, and the target chromaticity difference corresponding to the position with a grayscale value greater than 0 and not greater than 255 is determined according to the following formula: ; in, For target chromaticity difference, Grayscale value To effectively process the lower limit of the chromaticity difference range, This is the upper limit of the effective processing range of color difference.
[0060] When the target fabric has a dark or black background, the laser's thermal effect creates contrasting colors on the fabric surface, such as light-colored, yellowish, or slightly carbonized. Therefore, a pure black location with a grayscale value of 0 corresponds to the unprocessed fabric background, and the laser processing equipment shuts off the laser output at that location. The higher the grayscale value, the closer the corresponding location is to white, and the greater the target color difference obtained through mapping. Thus, target fabrics with different background colors can all achieve a consistent visual representation based on the brightness and darkness relationships in the grayscale image.
[0061] The effective processing color difference range is determined based on the color difference range within which the target fabric can stably develop color. When the color difference is below the lower limit of the range, the visual difference between the processing position and the fabric's base color is small, and the pattern is prone to appearing unclear. When the color difference is above the upper limit of the range, further increasing the color development may require increasing the laser thermal input, thereby increasing the risk of mechanical damage to the fabric. In one specific embodiment, [the following is a description of a specific implementation, which is not directly related to the previous sentence and can be omitted]. Set to 10, Setting it to 20 ensures that the grayscale value mapping result falls within the effective color rendering range.
[0062] After completing the target chromaticity difference mapping, candidate laser processing parameters are generated and constrained based on a gray-box hybrid mathematical model. Multiple candidate laser processing parameter combinations are generated within a predefined optimization space consisting of laser power, scanning speed, and scanning spacing. The corresponding surface energy density is determined based on each candidate laser processing parameter combination, and the corresponding predicted chromaticity difference and predicted fracture strength are determined using a response surface model.
[0063] The preset optimization space is formed by the value ranges of laser power, scanning speed, and scanning spacing. Each candidate laser processing parameter combination includes a laser power value, a scanning speed value, and a scanning spacing value. For any candidate laser processing parameter combination, the surface energy density is first calculated based on the laser power, scanning speed, and scanning spacing. Then, the dimensionless encoded values of the corresponding parameters are input into the response surface model to obtain the predicted chromaticity difference and predicted fracture strength.
[0064] Subsequently, hard constraints were applied to candidate laser processing parameter combinations using the surface energy density safety range, the fracture strength safety threshold, and the effective design domain of the response surface model. The surface energy density safety range was used to exclude parameter combinations with insufficient color development or excessive heat input; the fracture strength safety threshold was used to exclude parameter combinations whose mechanical properties after processing did not meet the requirements; and the effective design domain of the response surface model was used to avoid mathematical extrapolation outside the coverage of experimental data.
[0065] When the surface energy density corresponding to any candidate laser processing parameter combination exceeds the safe range of surface energy density, the predicted fracture strength is lower than the safe threshold of fracture strength, or the candidate laser processing parameter combination exceeds the effective design domain of the response surface model, an infinite penalty value is assigned to the candidate laser processing parameter combination and it is discarded.
[0066] In one specific implementation, the above hard constraint judgment is carried out using the following penalty function: ; in, The penalty value corresponding to the candidate laser processing parameter combination. The predicted fracture strength is output by the response surface model. The safety threshold for fracture strength, The surface energy density corresponding to the candidate laser processing parameter combinations. The critical surface energy density for color development initiation. The energy density at the critical surface of mechanical damage. , and These are the dimensionless coded values corresponding to laser power, scanning speed, and scanning spacing, respectively.
[0067] When a candidate laser processing parameter combination simultaneously satisfies all three constraints, the penalty value is 0, and the corresponding parameter combination enters the feasible parameter set. When any constraint is not satisfied, the penalty value becomes positive infinity, and the corresponding parameter combination is directly excluded. This approach ensures that parameter optimization is always performed within the range where the experimental model is effective and fabric processing is safe, avoiding the selection of parameter combinations with excessively low breaking strength or excessively high heat input based solely on color difference optimization.
[0068] After obtaining candidate laser processing parameter combinations that meet the constraints, Pareto optimization is performed on the remaining candidate laser processing parameter combinations with the optimization objectives of making the predicted chromatic difference cover the preset target chromatic difference range and increasing the predicted fracture strength, to obtain the Pareto front candidate parameter set.
[0069] Among them, predicting chromatic difference coverage of the preset target chromatic difference range means that different parameter combinations in the Pareto front candidate parameter set can respectively form a range from... to Multiple color rendering levels; increasing predicted breaking strength means prioritizing parameter combinations with higher fabric mechanical properties while achieving the same or similar color rendering effect. Since there may be a mutual constraint between predicted color difference and predicted breaking strength, Pareto optimization does not pre-merge them into a single evaluation value. Instead, it retains parameter combinations that cannot be simultaneously surpassed by other parameter combinations in terms of either color rendering effect or mechanical properties, forming a Pareto front candidate parameter set.
[0070] Next, for the target chromatic difference corresponding to each gray level, a first screening is performed from the Pareto front candidate parameter set. For the target chromatic difference corresponding to the current gray level, candidate laser processing parameters are selected from the Pareto front candidate parameter set if the difference between the predicted chromatic difference and the target chromatic difference does not exceed the preset chromatic difference tolerance value and the predicted fracture strength is not lower than the fracture strength safety threshold, thus obtaining the current candidate parameter set.
[0071] The filtering criteria are represented by the following relationship: ; ; in, These are the candidate laser processing parameters corresponding to the current grayscale level. The chromaticity difference is predicted by the response surface model based on candidate laser processing parameters. The target chromaticity difference corresponding to the current gray level. To preset the allowable color difference value, This represents the predicted fracture strength corresponding to the candidate laser processing parameters. In one specific embodiment, the preset color difference tolerance value is set to 0.5 color difference units or 1 color difference unit.
[0072] Within the current candidate parameter set, the candidate laser processing parameter with the highest predicted breaking strength is determined as the absolute optimal parameter corresponding to the current gray level. The absolute optimal parameter characterizes the combination of parameters that allows the target fabric to retain high breaking strength while satisfying the allowable range of the current target chromaticity difference; denoted as […]. .
[0073] If only absolutely optimal parameters are selected for each gray level individually, the laser power, scanning speed, and scanning spacing corresponding to different gray levels may experience significant jumps. When the laser processing equipment continuously executes parameter commands along the scanning path, large parameter jumps can easily exceed the dynamic following capabilities of the galvanometer mechanism and laser control components, resulting in actual output lag, local color development deviations, or streaks. Therefore, based on the absolutely optimal parameters, a parameter continuity constraint between adjacent gray levels is further introduced.
[0074] Based on the absolute optimal parameter and the target laser processing parameter corresponding to the previous adjacent gray level, the candidate laser processing parameters in the current candidate parameter set are continuously evaluated, and the evaluation value of each candidate laser processing parameter is determined by the following formula: ; Calculate the evaluation value of each candidate laser processing parameter in the current candidate parameter set, and determine the candidate laser processing parameter with the smallest evaluation value as the target laser processing parameter corresponding to the current gray level: ; in, These are the evaluation values for candidate laser processing parameters. The target laser processing parameters are the parameters corresponding to the current gray level. For the current candidate parameter set, These are the candidate laser processing parameters in the current candidate parameter set. For the absolutely optimal parameters, These are the target laser processing parameters corresponding to the previous adjacent gray level. This is a color accuracy weighting coefficient. The continuity weighting coefficients are used to characterize the deviation of candidate laser processing parameters from the absolute optimal parameters. The first term in the evaluation function characterizes the degree of deviation of candidate laser processing parameters from the target laser processing parameters of the previous adjacent gray level. The continuity weighting coefficients are normalized based on the maximum allowable parameter step size of the laser processing equipment. This reduces the changes in laser power, scanning speed, and scanning spacing between adjacent gray levels, allowing the changes in laser processing parameters to adapt to the dynamic following capability of the laser processing equipment.
[0075] The first term in the evaluation function is used to evaluate the deviation between the candidate laser processing parameters and the absolute optimal parameters. When As the value increases, the screening results become closer to the absolutely optimal parameters corresponding to the current gray level, which is beneficial for maintaining the accuracy of target color difference reproduction and fabric breaking strength. The second term in the evaluation function is used to evaluate the degree of change between the candidate laser processing parameters and the target laser processing parameters corresponding to the previous adjacent gray level. When When the value is increased, the filtering results place greater emphasis on the smooth changes in parameters between adjacent gray levels.
[0076] Before conducting a continuity evaluation, the variations in laser power, scanning speed, and scanning spacing are normalized based on the maximum permissible parameter step size corresponding to the laser processing equipment. This allows variations in parameters of different dimensions to be compared within the same evaluation function, and a continuity weighting coefficient is set accordingly. The maximum permissible parameter step size is determined based on the dynamic response capabilities of the galvanometer mechanism, laser power adjustment component, and scanning control component. By standardizing the variation scale of different laser processing parameters and introducing a continuity weighting coefficient into the evaluation function, the variations in laser power, scanning speed, and scanning spacing between adjacent gray levels are reduced, enabling the changes in laser processing parameters to adapt to the dynamic following capability of the laser processing equipment.
[0077] For the first gray level in the scanning path, since there is no target laser processing parameter corresponding to the previous adjacent gray level, the absolute optimal parameter is directly determined as the target laser processing parameter corresponding to this gray level. Starting from the second gray level, both the absolute optimal parameter and the target laser processing parameter corresponding to the previous adjacent gray level are considered simultaneously, and the continuity screening of the entire scanning path is completed sequentially.
[0078] After the above processing, each grayscale value corresponds to a set of target laser processing parameters consisting of laser power, scanning speed, and scanning spacing. Each target laser processing parameter not only produces a color rendering degree that matches the corresponding grayscale value, but also satisfies the safety constraints of surface energy density, breaking strength, and the effective design domain of the response surface model. At the same time, it adapts the parameter changes between adjacent grayscale levels to the dynamic response capability of the laser processing equipment, thereby taking into account grayscale reproduction accuracy, fabric mechanical properties, and continuous processing stability.
[0079] Step S104: Generate a dynamic processing instruction set based on each position in the grayscale image and the corresponding target laser processing parameters, and control the laser processing equipment to perform variable parameter scanning on the surface of the target fabric according to the dynamic processing instruction set to form a fabric laser grayscale pattern.
[0080] In step S104, each position in the grayscale image is associated with the target laser processing parameters determined in step S103, and a dynamic processing instruction set is generated according to the instruction format of the laser processing equipment. The dynamic processing instruction set is used to simultaneously define the laser processing position and the corresponding laser power, scanning speed, and scanning spacing, so that the laser processing equipment dynamically switches processing parameters according to the grayscale changes of the pattern during the scanning process, thereby forming corresponding color rendering degrees at different positions on the surface of the target fabric.
[0081] Specifically, the coordinates of each position to be processed on the surface of the target fabric are determined based on the coordinate relationship of the grayscale image, and the target laser processing parameters corresponding to each grayscale value are obtained. For continuous tone patterns, the coordinates of each pixel position are associated with the corresponding target laser processing parameters; for flat-painted patterns, each position within the same connected region is associated with the target laser processing parameters corresponding to the representative grayscale value of that connected region. For the non-processed positions determined in step S103, the laser output state of the corresponding position is set to off to preserve the original background color of the target fabric.
[0082] After associating the position coordinates with the target laser processing parameters, the position coordinates are sorted according to the preset scanning path, and the position coordinates, laser output status, laser power, scanning speed, and scanning interval are encapsulated into corresponding processing instructions. Multiple processing instructions are arranged in scanning order to form a dynamic processing instruction set, so that each processing instruction corresponds to a processing position or a continuous processing area on the target fabric surface.
[0083] When executing the dynamic processing instruction set, the laser processing equipment controls the movement of the laser head or galvanometer mechanism according to the position coordinates defined by the processing instructions, and loads the target laser processing parameters when it reaches the corresponding processing position. When the grayscale value corresponding to adjacent positions changes, the laser processing equipment switches the laser power, scanning speed, and scanning interval according to the dynamic processing instruction set; when adjacent positions correspond to the same grayscale value, the current target laser processing parameters are maintained for continuous scanning. Since the target laser processing parameters corresponding to adjacent grayscale levels have been continuously filtered in step S103, the parameter switching amplitude can adapt to the dynamic response capability of the laser processing equipment, reducing output lag and streaks caused by parameter abrupt changes.
[0084] During variable-parameter scanning, laser power is used to adjust the laser energy output per unit time, scanning speed is used to adjust the laser's duration of action at the corresponding position, and scanning spacing is used to adjust the distribution density of the scanning path within a unit area. These three parameters together determine the surface energy density at the corresponding position of the target fabric, causing different gray values to produce different degrees of thermal effect and color development reaction.
[0085] For animal protein fiber fabrics such as silk, laser thermal action within a safe range of surface energy density causes slight melting, oxidation, or pyrolysis of the sericin on the fiber surface, creating a color effect distinct from the fabric's base color while reducing thermal damage to the inner silk fibroin fiber structure. Different laser processing parameters create different color differences at each processing location, while unprocessed areas retain their original base color, thus forming variations in shade on the target fabric surface corresponding to the brightness and darkness of the grayscale image.
[0086] After all processing instructions are completed, different positions on the surface of the target fabric will display a color rendering degree that matches the corresponding gray value. The color change between adjacent positions remains continuous and smooth, thus forming a fabric laser grayscale pattern with multiple gray levels, light and dark transitions and shading layers.
[0087] In summary, combining Figure 2 This application first converts the pattern to be processed into a grayscale image and extracts the grayscale values corresponding to each position. Then, it establishes a gray-box hybrid mathematical model for the target fabric, consisting of surface energy density physical constraints and a response surface model. The safe range of surface energy density is limited by the critical surface energy density for color development initiation and the critical surface energy density for mechanical damage. The response surface model characterizes the correspondence between laser power, scanning speed, and scanning spacing and the chromaticity difference and breaking strength of the target fabric. Based on the background color of the target fabric, different grayscale values are mapped to the corresponding target chromaticity difference. Under the joint constraints of the safe range of surface energy density, the safe threshold of breaking strength, and the effective design domain of the response surface model, multi-objective optimization and continuity screening of adjacent grayscale level parameters are performed on the laser processing parameters to obtain the target laser processing parameters corresponding to each grayscale value. This generates a dynamic processing instruction set and controls the laser processing equipment to perform variable-parameter scanning on the surface of the target fabric.
[0088] By first converting the grayscale values of the pattern into target chromaticity differences with clear color rendering meaning, and then using a gray-box mixing mathematical model to inversely determine the laser processing parameters, a quantitative correspondence is established between the color rendering degree at each location on the fabric surface and the grayscale levels of the pattern. This results in a distinct, richly layered, and smoothly transitioning grayscale halo effect. Simultaneously, the safe range of surface energy density can exclude parameter combinations with insufficient or excessive heat input, the safe threshold of breaking strength can limit the loss of mechanical properties caused by processing, and the response surface model can predict the color rendering effect and breaking strength corresponding to different parameter combinations within the safe range. Combined with parameter continuity screening between adjacent grayscale levels and dynamic variable parameter scanning, output lag, streaks, and local color rendering deviations caused by parameter abrupt changes can also be reduced. This allows lightweight fabrics such as silk to form clear, stable, and continuously layered laser patterns while maintaining mechanical properties that meet usage requirements.
[0089] Furthermore, by mapping the pattern grayscale values to the corresponding target chromaticity differences, and under the joint constraints of the surface energy density safety range, the tensile strength safety threshold, and the effective design domain of the response surface model, multi-objective optimization is performed on laser power, scanning speed, and scanning spacing. This ensures that different grayscale positions can obtain laser processing parameters that match the target color rendering level. Simultaneously, by filtering the parameter continuity between adjacent grayscale levels, color rendering deviations and streaks caused by parameter abrupt changes during continuous scanning are reduced. This results in a grayscale pattern with smooth transitions between light and dark shades, rich layers, and high fidelity on the fabric surface. On this basis, the surface energy density safety range can eliminate parameter combinations of insufficient color rendering and excessive heat input, and the tensile strength safety threshold further limits fiber structure damage, allowing lightweight fabrics such as silk to achieve clear color rendering while maintaining the mechanical properties required for use. Moreover, laser processing utilizes the oxidation, pyrolysis, and slight carbonization reactions of animal protein fibers generated by heating to directly form color differences, eliminating the need for chemical dyes and washing processes. This reduces pollution while also creating grayscale patterns with significant contrast on dark fabric surfaces.
[0090] The following is a description of the experimental data used to verify this application: To verify the effect of laser power variation on the color development degree of the target fabric while keeping the scanning speed and scanning spacing constant, and to provide macroscopic experimental evidence for determining the energy density of the color development initiation critical surface, multiple laser powers with progressively increasing values were used to perform single-factor gradient processing on the target fabric. For example... Figure 3 As shown, Figure 3 Comparison of macroscopic morphology of target fabric surface under different laser powers. Figure 3 Numbered 1 to 5 correspond to laser powers of 7.8W, 9W, 10.2W, 11.4W, and 12.6W, respectively. As the laser power increases, the surface of the target fabric gradually changes from near its original base color to grayish-white and then light yellow, and the color difference between the processed and unprocessed areas increases accordingly. Based on the surface morphology and color difference detection results of each processed sample, the parameter combination corresponding to the initial formation of a stable and repeatable identifiable color difference in the target fabric was determined, and the surface energy density corresponding to this parameter combination was defined as the critical surface energy density for color development initiation.
[0091] Furthermore, to obtain the experimental data required for establishing the response surface model, within the safe range of surface energy density, a three-factor, three-level Box-Behnken experimental design was used to determine 17 combinations of laser processing parameters, with laser power, scanning speed, and scanning spacing as experimental factors. The target fabric was then processed according to each combination of laser processing parameters, and the breaking strength and color difference of each processed sample were measured. Table 1 shows the Box-Behnken experimental parameters and test results, recording the laser power, scanning speed, scanning spacing, breaking strength, and color difference for each experimental group. Based on the experimental data in Table 1, second-order polynomial regression was performed to establish the breaking strength response surface equation and the color difference response surface equation.
[0092] Table 1. Box-Behnken Test Parameters and Results
[0093] To verify the limiting effect of the safe range of surface energy density and the safe threshold of tensile strength on the thermal damage of target fabric fibers, under the same conditions of target fabric, laser processing equipment, and color development requirements, comparative processing was conducted using laser processing parameters without gray-box hybrid mathematical model constraints and target laser processing parameters determined based on the gray-box hybrid mathematical model. Figure 4 As shown, Figure 4 Comparison of the microstructure of target fabric fibers under different laser processing parameters. Figure 4 The upper image shows the fiber microstructure obtained using laser processing parameters without gray box mixing mathematical model constraints. The fabric fiber surface shows obvious pores and irregular melt structures, indicating that the high heat input has caused significant damage to the fiber structure. Figure 4 The lower image shows the fiber microstructure obtained using target laser processing parameters determined by a gray-box hybrid mathematical model. The weave structure and surface contour of the fabric fibers remain relatively intact, with only slight molten bonding forming on the fiber surface. The above comparison demonstrates that by constraining the laser processing parameters within a safe range for surface energy density and a safe threshold for fracture strength, it is possible to reduce damage to the fabric fiber structure caused by excessive heat input while achieving the target color rendering effect.
[0094] Furthermore, as a preferred method, to verify the color development effect and mechanical properties of the target laser processing parameters determined based on the gray-box mixing mathematical model in actual processing, a laser power of 10.2W, a scanning speed of 3000mm / s, and a scanning interval of 0.11mm were selected. The target fabric was repeatedly processed, and the breaking strength and color difference of each processed sample were measured. Table 2 shows the processing verification results of the target laser processing parameters. As shown in Table 2, the breaking strength obtained from multiple repeated processing ranged from 116N to 119N, with an average breaking strength of 117.6N; the color difference ranged from 14.67 to 14.98, with an average color difference of 14.82. The fluctuation range of each measurement result was small, indicating that the target laser processing parameters determined by the gray-box mixing mathematical model can maintain the breaking strength of the target fabric within a preset safe range while forming the corresponding color development effect, and have good processing repeatability.
[0095] Table 2. Verification results of laser processing parameters for the target.
[0096] To verify the impact of continuous parameter selection on the smoothness of parameter changes in adjacent grayscale levels, a grayscale test image transitioning from a dark to a light region was set up. Specifically, the grayscale value of pixels 1 to 25 in the processing path was 20, and the grayscale value of pixels 26 to 50 was 220. The laser power corresponding to each pixel position was determined using both methods: without parameter continuity selection and with parameter continuity selection. Figure 5 As shown, Figure 5 This chart compares the laser power changes before and after continuous parameter selection for adjacent gray levels. The gray dashed line represents the laser power change without parameter continuity selection. Between the 25th and 26th pixel positions, the laser power changes abruptly from approximately 10.10W to approximately 9.15W, forming a significant abrupt jump. The black solid line represents the laser power change after selecting parameters based on continuity between adjacent gray levels. Under the condition of satisfying the corresponding target chromaticity difference, the laser power forms a gradual transition at the boundary between the two gray areas, dispersing the power change between adjacent pixel positions. Therefore, continuous parameter selection for adjacent gray levels can reduce the instantaneous jump in parameters at gray level change locations, making dynamic processing commands more adaptable to the parameter following capabilities of laser processing equipment, and reducing the risk of output lag, local color deviation, and streaks during parameter switching.
[0097] Figure 6 This is a structural block diagram of a fabric laser grayscale pattern forming system provided in one embodiment of this application. The system includes at least the following modules: The grayscale image extraction module is used to acquire the pattern to be processed, convert the pattern to be processed into a grayscale image, and extract the grayscale values corresponding to each position in the grayscale image; The gray box model building module is used to build a gray box hybrid mathematical model for the target fabric. The gray box hybrid mathematical model includes physical constraints based on the safe range of surface energy density and a response surface model. The safe range of surface energy density is defined by the critical surface energy density for color development as the lower limit and the critical surface energy density for mechanical damage as the upper limit. The response surface model is used to characterize the correspondence between laser processing parameters and the color difference and breaking strength of the target fabric. The laser parameter determination module is used to map each gray value to the corresponding target chromaticity difference based on the background color of the target fabric. It performs multi-objective optimization of the laser processing parameters corresponding to each target chromaticity difference based on the gray box mixing mathematical model, constrained by the safe range of surface energy density, the safe threshold of breaking strength, and the effective design domain of the response surface model. The multi-objective optimization results are then filtered based on the continuity of laser processing parameters between adjacent gray levels to determine the target laser processing parameters corresponding to each gray value. The dynamic processing control module is used to generate a dynamic processing instruction set based on each position in the grayscale image and the corresponding target laser processing parameters, and to control the laser processing equipment to perform variable parameter scanning on the surface of the target fabric according to the dynamic processing instruction set, so as to form a laser grayscale pattern on the fabric.
[0098] For relevant details, please refer to the above method implementation examples.
[0099] Figure 7 This is a block diagram of an electronic device provided in one embodiment of this application. The device includes at least a processor 701 and a memory 702.
[0100] Processor 701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. Processor 701 may be implemented in at least one hardware form selected from DSP (Digital Signal Processor), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 701 may also include a main processor and a coprocessor. The main processor is used to perform processing such as grayscale image conversion, grayscale value extraction, gray-box mixing mathematical model establishment, laser processing parameter optimization, and dynamic processing instruction set generation. The coprocessor is used to assist in image processing or model calculation. In some embodiments, processor 701 also integrates a GPU (Graphics Processing Unit), which is used to perform grayscale image processing and parallel parameter calculation. In other embodiments, processor 701 also includes an AI (Artificial Intelligence) processor, which is used to perform model calculation and multi-objective optimization related computational operations.
[0101] The memory 702 may include one or more computer-readable storage media, which are non-transitory storage media. The memory 702 may also include high-speed random access memory and non-volatile memory, including one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 702 stores at least one instruction, which is loaded and executed by the processor 701 to implement the fabric laser grayscale pattern forming method provided in the embodiments of this application.
[0102] Optionally, this application also provides a computer-readable storage medium storing a program that is loaded and executed by a processor to implement the fabric laser grayscale pattern forming method of the above method embodiments.
[0103] Optionally, this application also provides a computer product including a computer-readable storage medium storing a program that is loaded and executed by a processor to implement the fabric laser grayscale pattern forming method of the above method embodiments.
[0104] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0105] The above embodiments merely illustrate several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A method for forming a laser grayscale pattern on a fabric, characterized in that, The method includes: Obtain the pattern to be processed, convert the pattern to be processed into a grayscale image, and extract the grayscale values corresponding to each position in the grayscale image; A gray box hybrid mathematical model is established for the target fabric. The gray box hybrid mathematical model includes physical constraints based on the safe range of surface energy density and a response surface model. The safe range of surface energy density is defined by the critical surface energy density for color development initiation as the lower limit and the critical surface energy density for mechanical damage as the upper limit. The response surface model is used to characterize the correspondence between laser processing parameters and the color difference and breaking strength of the target fabric. Based on the background color of the target fabric, each gray value is mapped to the corresponding target chromaticity difference. Constrained by the surface energy density safety range, the tensile strength safety threshold, and the effective design domain of the response surface model, the laser processing parameters corresponding to each target chromaticity difference are optimized using the gray box mixing mathematical model. The optimization results are then filtered based on the continuity of laser processing parameters between adjacent gray levels to determine the target laser processing parameters corresponding to each gray value. A dynamic processing instruction set is generated based on each position in the grayscale image and the corresponding target laser processing parameters. The laser processing equipment is then controlled to perform variable parameter scanning on the surface of the target fabric based on the dynamic processing instruction set to form a laser grayscale pattern on the fabric.
2. The method for forming a fabric laser grayscale pattern according to claim 1, characterized in that, The establishment of the gray box hybrid mathematical model for the target fabric includes: The original breaking strength of the target fabric is obtained, and the breaking strength safety threshold is determined based on the original breaking strength and a preset mechanical safety retention coefficient. The first scan speed and the first scan interval for colorimetric initiation calibration, and the second scan speed and the second scan interval for mechanical damage calibration are determined respectively. At the first scanning speed and the first scanning interval, multiple laser powers are set to perform gradient processing on the target fabric in successive increases, and the color difference of each gradient-processed sample is obtained. The surface energy density corresponding to the first time when the average color difference reaches the preset minimum identifiable color difference threshold and the color difference of multiple repeatedly processed samples all reach the preset minimum identifiable color difference threshold is determined as the color development initiation critical surface energy density. At the second scanning speed and the second scanning interval, multiple laser powers that increase sequentially are set to perform gradient processing on the target fabric, and the breaking strength of each gradient-processed sample is obtained. The surface energy density corresponding to the first reduction of the breaking strength to the breaking strength safety threshold is determined as the critical surface energy density of mechanical damage. The surface energy density is determined by the following formula: ; in, For surface energy density, For laser power, For scanning speed, This represents the scanning interval.
3. The method for forming a fabric laser grayscale pattern according to claim 2, characterized in that, The establishment of the gray-box hybrid mathematical model for the target fabric also includes: Within the safe range of surface energy density, multiple parameter levels are set using laser power, scanning speed, and scanning spacing as experimental factors, and each parameter level is dimensionlessly coded. A three-factor, three-level Box-Behnken experimental design was used to determine multiple combinations of laser processing parameters, and a center point repeat experiment was set up. The target fabric was laser-processed according to each combination of laser processing parameters to obtain the breaking strength and color difference of each processed sample. Based on the laser processing parameter combinations and the corresponding fracture strength and chromaticity difference, second-order polynomial regression is performed to obtain the fracture strength response surface equation and the chromaticity difference response surface equation. The significance test and the lack-of-fit test are then performed on the fracture strength response surface equation and the chromaticity difference response surface equation. The response surface model is established based on the test results.
4. The method for forming a fabric laser grayscale pattern according to claim 3, characterized in that, The multi-objective optimization of laser processing parameters corresponding to each target chromaticity difference based on the gray-box mixing mathematical model includes: Multiple candidate laser processing parameter combinations are generated within a preset optimization space consisting of laser power, scanning speed, and scanning spacing. The corresponding surface energy density is determined based on each candidate laser processing parameter combination. The corresponding predicted chromaticity difference and predicted fracture strength are determined through the response surface model. When the surface energy density corresponding to any candidate laser processing parameter combination exceeds the safe range of the surface energy density, the predicted fracture strength is lower than the safe threshold of the fracture strength, or the candidate laser processing parameter combination exceeds the effective design domain of the response surface model, an infinite penalty value is assigned to the candidate laser processing parameter combination and it is eliminated. With the optimization objectives of ensuring that the predicted chromatic difference covers the preset target chromatic difference range and increasing the predicted fracture strength, Pareto optimization is performed on the remaining candidate laser processing parameter combinations to obtain the Pareto front candidate parameter set.
5. The method for forming a fabric laser grayscale pattern according to claim 4, characterized in that, The filtering of multi-objective optimization results based on the continuity of laser processing parameters between adjacent gray levels includes: For the target chromaticity difference corresponding to the current gray level, candidate laser processing parameters are selected from the Pareto front candidate parameter set, where the difference between the predicted chromaticity difference and the target chromaticity difference does not exceed the preset chromaticity difference tolerance value and the predicted fracture strength is not lower than the fracture strength safety threshold, thus obtaining the current candidate parameter set; The candidate laser processing parameter with the largest predicted fracture strength is determined from the current candidate parameter set and used as the absolute optimal parameter corresponding to the current gray level. Based on the absolute optimal parameter and the target laser processing parameter corresponding to the previous adjacent gray level, the evaluation value of each candidate laser processing parameter in the current candidate parameter set is determined by the following formula: ; Calculate the evaluation value of each candidate laser processing parameter in the current candidate parameter set, and determine the candidate laser processing parameter with the smallest evaluation value as the target laser processing parameter corresponding to the current gray level: ; in, These are the evaluation values for candidate laser processing parameters. The target laser processing parameters are the parameters corresponding to the current gray level. For the current candidate parameter set, These are the candidate laser processing parameters in the current candidate parameter set. The absolute optimal parameters are... These are the target laser processing parameters corresponding to the previous adjacent gray level. This is a color accuracy weighting coefficient. The continuity weighting coefficient is set by normalization based on the maximum allowable parameter step size of the laser processing equipment. It is used to reduce the changes in laser power, scanning speed and scanning spacing between adjacent gray levels, so that the changes in laser processing parameters can adapt to the dynamic following capability of the laser processing equipment.
6. The method for forming a fabric laser grayscale pattern according to claim 1, characterized in that, The step of mapping each grayscale value to a corresponding target chromaticity difference based on the background color of the target fabric includes: When the base color of the target fabric is light or white, the position with a grayscale value of 255 is determined as the unprocessed position, and the target color difference corresponding to the position with a grayscale value between 0 and 254 is determined according to the following formula: ; When the base color of the target fabric is dark or black, the position with a grayscale value of 0 is determined as the position not to be processed, and the target color difference corresponding to the position with a grayscale value greater than 0 and not greater than 255 is determined according to the following formula: ; in, For target chromaticity difference, Grayscale value To effectively process the lower limit of the chromaticity difference range, This is the upper limit of the effective processing color difference range.
7. The method for forming a fabric laser grayscale pattern according to claim 1, characterized in that, Extracting the grayscale values corresponding to each position in the grayscale image includes: Based on the pattern features of the pattern to be processed, select either pixel-by-pixel grayscale value extraction method or connected region grayscale value extraction method; When the pattern to be processed is a continuous tone pattern, the pixel-by-pixel grayscale value extraction method is used to extract the grayscale value corresponding to each pixel position in the grayscale image point by point. When the pattern to be processed is a flat pattern, the grayscale image is quantized at multiple levels, and the pixels quantized to the same grayscale level are divided into connected regions using an eight-connected labeling method. The average grayscale value of each pixel in each connected region is determined as the representative grayscale value of the corresponding connected region, and the representative grayscale value is used as the grayscale value of each position in the corresponding connected region.
8. A fabric laser grayscale pattern forming system, characterized in that, include: A grayscale image extraction module is used to acquire the pattern to be processed, convert the pattern to be processed into a grayscale image, and extract the grayscale values corresponding to each position in the grayscale image; The gray box model building module is used to build a gray box hybrid mathematical model for the target fabric. The gray box hybrid mathematical model includes physical constraints and a response surface model based on the safe range of surface energy density. The safe range of surface energy density is defined by the critical surface energy density for color development as the lower limit and the critical surface energy density for mechanical damage as the upper limit. The response surface model is used to characterize the correspondence between laser processing parameters and the color difference and breaking strength of the target fabric. The laser parameter determination module is used to map each gray value to a corresponding target chromaticity difference based on the background color of the target fabric, and to perform multi-objective optimization of the laser processing parameters corresponding to each target chromaticity difference based on the gray box mixing mathematical model, constrained by the surface energy density safety range, the breaking strength safety threshold and the effective design domain of the response surface model. The module also filters the multi-objective optimization results based on the continuity of laser processing parameters between adjacent gray levels to determine the target laser processing parameters corresponding to each gray value. The dynamic processing control module is used to generate a dynamic processing instruction set based on each position in the grayscale image and the corresponding target laser processing parameters, and to control the laser processing equipment to perform variable parameter scanning on the surface of the target fabric according to the dynamic processing instruction set, so as to form a laser grayscale pattern on the fabric.
9. An electronic device, characterized in that, The device includes a processor and a memory; the memory stores a program that is loaded and executed by the processor to implement a method for forming a fabric laser grayscale pattern as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The storage medium stores a program that, when executed by a processor, is used to implement a method for forming a fabric laser grayscale pattern as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Fabric appearance high-precision three-dimensional reconstruction device and method
CN121582498A
Layer composition method, electronic device and storage medium
WO2025147901A1
