A method for detecting surface color difference of dyed fabric based on spectral data

By combining wavelet denoising, multivariate scattering correction, and dye penetration uniformity index, the problems of surface scattering and uneven penetration in the color difference detection of dyed fabrics are solved, and color difference prediction with high accuracy and sensitivity is achieved.

CN123175901APending Publication Date: 2026-11-27ZHEJIANG YUEXIN PRINTING & DYEING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611660890.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-26
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies struggle to effectively compensate for differences in surface scattering wavelengths and uneven dye penetration in the detection of color differences in dyed fabrics, resulting in limited detection accuracy. This is especially true in online production environments where it is difficult to identify color differences caused by texture variations and uneven penetration.

Method used

By acquiring multispectral reflectance data, wavelet threshold denoising and multivariate scattering correction are performed. The surface scattering correction factor and dye penetration uniformity index are calculated. Color difference prediction is then performed by combining support vector regression model, taking into account both the surface scattering and internal penetration characteristics of the fabric.

Benefits of technology

It significantly improves the accuracy and robustness of color difference detection, effectively identifies color differences caused by texture scattering and uneven penetration, adapts to various fabric structures and dyeing processes, and enhances the sensitivity and consistency of the detection system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123175901A_ABST
    Figure CN123175901A_ABST
Patent Text Reader

Abstract

The application provides a kind of dyeing fabric surface color difference detection method based on spectral data, it is related to spectral analysis and textile quality detection technical field, method includes: obtaining the multispectral reflectance data of dyeing fabric surface and pre-processing to eliminate noise and scattering interference;Reflectivity difference at dye absorption peak valley area and absorption peak area wavelength based on pre-processing spectrum is used to modify surface texture scattering influence Surface scattering correction factor;Using the corrected spectrum extracts the feature vector related to dye concentration, and calculates the dye penetration uniformity index based on the discrete degree of absorption intensity, to measure the penetration uniformity of dye in fabric;Characteristic vector, scattering correction factor and penetration uniformity index are input into color difference prediction model to obtain predicted color difference value;It is compared with preset threshold value, to determine whether there is color difference defect.The application improves the accuracy and reliability of color difference detection by compensating surface scattering difference and quantifying penetration uniformity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of spectral analysis and textile quality testing technology, and in particular to a method for detecting color difference on the surface of dyed fabrics based on spectral data. Background Technology

[0002] In the detection of color difference on the surface of dyed fabrics, spectral measurement technology is widely used. Color consistency is determined by acquiring the fabric's reflectance spectrum and calculating color difference indices. However, fabrics are not ideal planes; their surfaces contain microscopic textures formed by the interweaving of yarns. These textures cause multi-angle scattering of light, resulting in the superimposed scattering signals unrelated to dye absorption in the spectral measurement results. Even after conventional preprocessing such as multivariate scattering correction or standard normal variable transformation, the scattering behavior of the fabric surface at different wavelengths still varies, especially between the dye absorption peaks and valleys. When this local scattering difference is ignored, the color features extracted from the spectrum inevitably contain biases introduced by the surface condition. This makes subsequent color difference calculations unable to accurately reflect the dye's color development state, leading to decreased accuracy in color difference detection and making it easy to misjudge normal spectral fluctuations caused by texture differences as color difference defects.

[0003] On the other hand, during the dyeing process, dye penetrates from the surface of the fabric into its interior, and the uniformity of this penetration directly affects the spatial consistency of the apparent color. Even if the surface reflectance spectra are similar, if the uniformity of dye penetration within the fabric differs, color differences may still be perceived in actual observation. These implicit color differences caused by uneven penetration are often difficult to identify through simple spectral reflectance measurements. Traditional spectroscopic detection methods do not quantitatively evaluate the uniformity of dye penetration and lack effective means to characterize the impact of variations in dye concentration distribution within the fabric on color stability. In online production environments, factors such as fabric tension and fluctuations in dye liquor concentration exacerbate uneven penetration. The input variables of conventional color difference detection models cannot perceive these internal structural differences, leading to significant deviations between predicted values ​​and visual evaluations for some color difference samples, thus limiting the reliability of the detection.

[0004] Furthermore, color measurement results are easily affected by random factors such as instrument noise and localized fabric pilling. Although simple smoothing or averaging can be performed, these methods often obscure subtle spectral features related to dye absorption while suppressing noise, weakening the ability to identify minute color differences. In summary, existing techniques struggle to simultaneously address the challenges of wavelength dependence of surface scattering, the quantitative lack of dye penetration uniformity, and the preservation of spectral characteristics under noisy conditions. Summary of the Invention

[0005] To address the technical problem of insufficient combined compensation for surface scattering wavelength differences and uneven dye penetration in existing dyed fabric color difference detection technologies, which limits detection accuracy, this invention provides a method for detecting surface color difference in dyed fabrics based on spectral data.

[0006] The technical solution provided by this invention is as follows: This invention provides a method for detecting color difference on the surface of dyed fabrics based on spectral data, comprising: S1: Acquire multispectral reflectance data of the dyed fabric surface within a preset wavelength range; S2: Preprocess the multispectral reflectance data to eliminate measurement noise and scattering interference, and obtain preprocessed spectral data; S3: Based on the preprocessed spectral data, calculate a surface scattering correction factor, which is a coefficient determined according to the reflectance difference at at least two different wavelengths in the preprocessed spectral data and used to correct the influence of fabric surface texture scattering on spectral measurements; S4: Using the preprocessed spectral data and the surface scattering correction factor, extract the spectral feature vector related to the dye concentration; S5: Calculate a dye penetration uniformity index based on the spectral feature vector. The dye penetration uniformity index is a value used to measure the uniformity of dye penetration and distribution within the fabric, determined based on the dispersion of multiple wavelength points characterizing dye absorption intensity in the spectral feature vector. S6: Input the spectral feature vector, the surface scattering correction factor, and the dye penetration uniformity index into the pre-established color difference prediction model to obtain the predicted color difference value; S7: Compare the predicted color difference value with the preset color difference threshold, and determine whether there is a color difference defect on the surface of the dyed fabric based on the comparison result.

[0007] Furthermore, the preprocessing described in step S2 includes: S201: Perform wavelet threshold denoising on the multispectral reflectance data to obtain denoised spectral data; S202: Perform multivariate scattering correction on the denoised spectral data to eliminate spectral baseline drift caused by non-uniform scattering from the fabric surface, and obtain the preprocessed spectral data.

[0008] Furthermore, the threshold used in wavelet thresholding denoising in step S201 is adaptively determined based on the noise variance of the spectral signal, specifically including: The variance of noise at each wavelength point in the multispectral reflectance data is estimated, and a wavelet coefficient threshold related to the decomposition scale is calculated based on the variance. The wavelet coefficients are then processed using this threshold to achieve denoising.

[0009] Furthermore, the determination of the surface scattering correction factor in step S3 includes: S301: Select the first wavelength Second wavelength ,in Located in the peak and valley region of fabric dye absorption, Located in the dye absorption peak region of the fabric; S302: Calculate the preprocessed spectral data in... and The reflectance ratio at a given location is used, and then normalized using the reflectance ratio of a standard white board at the same wavelength to obtain the surface scattering correction factor.

[0010] Furthermore, step S302 further includes: S3021: The surface scattering correction factor SCF is calculated using the following expression:

[0011] in For the preprocessed spectral data at wavelength Reflectivity at that location For standard whiteboards at wavelength The reflectivity at that location.

[0012] Furthermore, the calculation of the dye penetration uniformity index in step S5 includes: S501: Extract the absorption intensity values ​​of multiple wavelength points corresponding to the main absorption band of the dye from the spectral feature vector; S502: Calculate the coefficient of variation of the plurality of absorption intensity values, and use the coefficient of variation as the dye penetration uniformity index.

[0013] Further, the coefficient of variation CV in step S502 is calculated as follows:

[0014] in The standard deviation of the plurality of absorption intensity values, This is the average of the multiple absorption intensity values.

[0015] Furthermore, the color difference prediction model in step S6 is a support vector regression model, whose input vector is composed of the spectral feature vector, the surface scattering correction factor, and the dye penetration uniformity index.

[0016] Furthermore, the support vector regression-based model employs a radial basis function kernel, the hyperparameters of which are determined through grid search and cross-validation.

[0017] Furthermore, the preset color difference threshold mentioned in step S7 is dynamically set according to the fabric type, dye type, and preset tolerance requirements.

[0018] The beneficial effects of the technical solution provided by this invention include at least the following: (1) In this invention, by introducing a surface scattering correction factor, the local differences in fabric surface texture scattering at different wavelengths are specifically compensated based on the reflectance differences in the dye absorption peak and valley regions and absorption peak regions of the preprocessed spectral data, and by normalization using a standard white board. This processing, on the basis of eliminating baseline drift, further separates the coupling effect between surface scattering and dye absorption, so that the corrected spectrum can more realistically reflect the absorption characteristics of the dye itself, thereby providing the color difference prediction model with less interference from surface state, significantly improving the accuracy of color feature extraction, and effectively reducing color difference misjudgment caused by texture scattering fluctuations.

[0019] (2) In this invention, a dye penetration uniformity index is defined. This index utilizes the dispersion of multiple wavelength points characterizing dye absorption intensity in the spectral feature vector, and measures the uniformity of dye penetration distribution within the fabric using statistical measures such as the coefficient of variation. This index quantifies the previously difficult-to-measure internal dye concentration distribution differences into a calculable parameter, enabling the color difference prediction model to perceive implicit color changes caused by uneven penetration. This approach overcomes the shortcomings of traditional methods that only focus on surface spectral information and neglect penetration uniformity, significantly enhancing the ability to identify penetration-related color differences. It is particularly suitable for detecting color difference defects caused by dye liquor penetration fluctuations under dynamic production conditions.

[0020] (3) In this invention, the surface scattering correction factor and the dye penetration uniformity index are concatenated with the spectral feature vector to form an input vector, which is then input into a color difference prediction model based on support vector regression or a neural network. This joint input method integrates information from three dimensions: surface scattering state, internal penetration uniformity, and dye concentration characteristics, enabling the model to more comprehensively learn the complex mapping relationship from spectral measurement to color difference indices. Compared with the traditional method of using only the original spectrum or a simple corrected spectrum as input, this scheme significantly improves the accuracy and robustness of color difference prediction, and maintains good consistency when dealing with various fabric structures and dyeing processes.

[0021] (4) In this invention, the measurement noise is adaptively filtered out and the spectral intensity and baseline drift caused by the overall scattering difference of the fabric is eliminated through a combination of wavelet threshold denoising and multivariate scattering correction preprocessing. The threshold in wavelet denoising is adaptively determined according to the noise variance, which can effectively retain the subtle absorption features in the spectrum while suppressing noise, ensuring the data quality of subsequent scattering correction and feature extraction, and further improving the detection system's sensitivity to small color differences. Attached Figure Description

[0022] Figure 1 A schematic flowchart of a method for detecting color difference on the surface of dyed fabrics based on spectral data, provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of the preprocessing sub-steps of a method for detecting color difference on the surface of dyed fabrics based on spectral data, provided in an embodiment of the present invention. Figure 3 This is a schematic diagram illustrating the surface scattering correction factor calculation process of a method for detecting color difference on the surface of dyed fabrics based on spectral data, provided in an embodiment of the present invention. Figure 4 This is a schematic diagram of the dye penetration uniformity index calculation process for a method for detecting color difference on the surface of dyed fabrics based on spectral data, provided in an embodiment of the present invention. Detailed Implementation

[0023] This invention provides a method for detecting color difference on the surface of dyed fabrics based on spectral data. The processing flow includes spectral data acquisition, data preprocessing, calculation of innovative control parameters, feature extraction, application of a color difference prediction model, and defect determination. These steps are described in detail below.

[0024] First, acquire multispectral reflectance data of the dyed fabric surface within a preset wavelength range. Specifically, a multispectral imaging system or spectroradiometer can be used to perform spatial scanning or single-point measurements on the dyed fabric under test to obtain a set of reflectance values ​​at discrete wavelengths. The preset wavelength range generally covers the visible to near-infrared region, for example, 400 nm to 1000 nm, with wavelength intervals of 5 nm or 10 nm. This reflectance data forms the basis for subsequent analysis.

[0025] After acquiring the raw multispectral reflectance data, it is preprocessed to eliminate measurement noise and scattering interference caused by fabric surface texture, resulting in preprocessed spectral data. The goal of preprocessing is to retain as much spectral information as possible related to the absorption characteristics of the dye itself, while reducing variations caused by the physical structure of the fabric.

[0026] In one possible implementation, the preprocessing sequentially includes wavelet thresholding denoising and multivariate scattering correction. For example... Figure 2 As shown, wavelet thresholding denoising first decomposes the spectral signal into wavelets, estimates the noise variance based on the statistical characteristics of the wavelet coefficients at each level, and adaptively determines the threshold at each decomposition scale based on this variance. Specifically, the Daubechies wavelet basis can be used to decompose the spectral signal into five levels, and a soft thresholding method based on Stein's unbiased risk estimation is used for threshold selection. After this processing, high-frequency measurement noise is effectively suppressed, and the subtle absorption characteristics of the spectrum are preserved. It should be noted that the denoising method is not limited to wavelet methods.

[0027] In another implementation, Savitzky-Golay polynomial smoothing filtering can also be used to eliminate random noise through local polynomial fitting, thus obtaining smooth, denoised spectral data.

[0028] Following denoising, multiplicative scattering correction (MSC) is applied to the spectrum to eliminate spectral baseline drift and overall intensity variations caused by inhomogeneous scattering from the fabric surface. The basic principle of MSC is that it assumes a linear shift and multiplicative scattering effect between each sample spectrum and the ideal spectrum. Correction parameters are obtained and applied by regressing each spectrum to the average spectrum. After MSC processing, the spectral baselines become more consistent, significantly enhancing the comparability of absorbance information. It is understandable that, as an equivalent replacement for MSC, Standard Normal Variance (SNV) can be used, which removes global spectral differences caused by scattering by centering the mean and normalizing the variance of each spectrum. Through this combined preprocessing of denoising and scattering correction, preprocessed spectral data with a high signal-to-noise ratio and suppressed scattering effects are obtained.

[0029] Subsequently, a surface scattering correction factor is calculated based on the preprocessed spectral data. This factor is used to further correct for the subtle influence of fabric surface texture scattering on spectral measurements. It should be noted that although MSC or SNV has already corrected for scattering globally, the dye penetration state after fabric dyeing leads to differences in scattering behavior at different wavelengths, especially in the dye absorption peak and valley regions. Therefore, introducing a surface scattering correction factor to compensate for local wavelength scattering differences provides more accurate input for subsequent color difference prediction. This surface scattering correction factor is determined based on the reflectance differences at at least two different wavelengths in the preprocessed spectral data.

[0030] In a preferred embodiment, such as Figure 3 As shown, the first wavelength is selected. Second wavelength ,in Located in the peak and valley region of fabric dye absorption, that is, the wavelength band with high reflectivity and less affected by dye absorption, such as 560nm; The wavelength range located in the dye absorption peak region of the fabric, i.e., the band where reflectance decreases significantly due to dye absorption, is selected, for example, 660 nm. Then, the reflectance ratio of the preprocessed spectral data at these two wavelengths is calculated, and normalized using the reflectance ratio of a standard white board at the same wavelength, to obtain the surface scattering correction factor (SCF). The complete calculation method for SCF is as follows:

[0031] in, Represents preprocessed spectral data at wavelength The reflectance at that location is dimensionless. The standard whiteboard represents the wavelength The reflectance at that location is dimensionless. and These represent the two selected characteristic wavelengths, in nanometers. Standard white plate normalization eliminates the systematic bias introduced by wavelength variations in the instrument response, allowing the SCF to specifically reflect the scattering ratio changes caused by differences in fabric surface conditions. This method effectively separates the coupling effect between surface scattering and dye absorption, significantly improving the specificity and accuracy of scattering correction.

[0032] In another implementation, more wavelength pairs can be selected, such as using three or four wavelengths simultaneously to construct a multi-wavelength scattering baseline fitting model, and then extracting the scattering correction factor to adapt to scenarios with complex dye formulations and severe overlap of absorption bands.

[0033] Next, using preprocessed spectral data and a surface scattering correction factor (SCF), a spectral feature vector related to dye concentration is extracted. Specifically, the preprocessed spectrum can be directly multiplied by the SCF to obtain a scattering-compensated corrected spectrum, from which features are then extracted. There are several methods for feature extraction: one approach is to select reflectance or absorbance values ​​at several characteristic wavelengths sensitive to dye absorption to form a feature vector; another approach is to perform principal component analysis (PCA) on the corrected spectrum and take the scores of the first few principal components as the spectral feature vector. Regardless of the method used, the extracted feature vector must be able to adequately characterize the color development state of the dye on the fabric.

[0034] Subsequently, based on this spectral eigenvector, a dye penetration uniformity index is calculated. This index measures the uniformity of dye penetration and distribution within the fabric. During the dyeing process, dye molecules penetrate from the fabric surface into the interior. Uneven penetration leads to fluctuations in dye concentration in different micro-regions of the surface, resulting in color differences. The penetration uniformity index is determined based on the dispersion of multiple wavelength points characterizing dye absorption intensity in the spectral eigenvector.

[0035] In a preferred embodiment, such as Figure 4 As shown, absorption intensity values ​​at multiple wavelengths are extracted from the spectral feature vector corresponding to the main absorption band of the dye. For example, if reflectance values ​​are used, they can first be converted to apparent absorbance A = -log(R). Then, the coefficient of variation (CV) of these absorption intensity values ​​is calculated, and this coefficient of variation is used as the dye penetration uniformity index. The formula for calculating CV is as follows:

[0036] in The standard deviation of the plurality of absorption intensity values, The value is the average of the multiple absorption intensity values, both of which are dimensionless. The coefficient of variation reflects the relative dispersion of absorption intensity within the selected wavelength band. The smaller the value, the more consistent the dye penetration state at various points in space, and the higher the uniformity; the larger the value, the more uneven the penetration. By introducing this index, the microscopic differences in dye distribution within the fabric are quantified into a calculable parameter, providing crucial fabric structure information for color difference prediction.

[0037] In another embodiment, dispersion can also be measured using the range or interquartile range, but the coefficient of variation has better universality because it eliminates the influence of differences in dimensions and mean. When the range is selected, the permeability uniformity index is the difference between the maximum and minimum absorption intensities; when the interquartile range is selected, it is the difference between the third quartile and the first quartile. These methods can be replaced according to actual detection needs.

[0038] After obtaining the spectral feature vector, surface scattering correction factor, and dye penetration uniformity index, these three are input into a pre-established color difference prediction model to obtain the predicted color difference value. The color difference prediction model is pre-trained using a large number of samples with known color difference values, and its input vector is composed of the spectral feature vector, SCF, and CV.

[0039] In a preferred embodiment, the color difference prediction model employs a machine learning model based on Support Vector Regression (SVR). SVR can establish robust nonlinear mapping relationships under small sample conditions, making it particularly suitable for industrial applications where color difference data is often difficult to obtain in large quantities. The kernel function of the model is a Radial Basis Function (RBF). The hyperparameters of the RBF kernel, such as the penalty factor C and the kernel parameter γ, are determined through grid search and cross-validation to ensure the model's generalization performance. During training, the input vector of a standard dyed fabric sample is used as the independent variable, and the color difference value ΔE calculated by a spectrophotometer according to the CIELAB formula is used as the dependent variable to construct the regression model.

[0040] In another implementation, the color difference prediction model can also be a neural network-based regression model, such as a back propagation (BP) neural network or an extreme learning machine, where the number of nodes in the input layer is the same as the dimension of the input vector, the hidden layer activation function uses a sigmoid function, and the output layer is a continuous color difference value. Neural network models are particularly suitable for applications with a wide variety of dyes and large amounts of data. Alternatively, linear models such as partial least squares regression (PLSR) can be used to accommodate situations where dye concentration and spectral response exhibit good linearity.

[0041] Finally, the predicted color difference value is compared with the preset color difference threshold, and the presence of color difference defects on the surface of the dyed fabric is determined based on the comparison result. The preset color difference threshold can be dynamically set according to the fabric type, dye type, and preset tolerance requirements. For example, for silk fabrics with extremely high appearance requirements, the color difference threshold can be set to 0.5; for regular cotton fabrics, it can be set to 1.0. If the predicted color difference value is less than or equal to the threshold, the fabric surface color difference is deemed acceptable; otherwise, a color difference defect is determined to exist. By dynamically setting the threshold, the detection method can flexibly adapt to different production standards and product grades, avoiding misjudgments caused by a one-size-fits-all approach.

[0042] It should be noted that the above-mentioned preprocessing, scattering correction, feature extraction, uniformity evaluation and model prediction can all be automatically executed by computer programs or embedded systems, resulting in fast detection speed and good consistency.

[0043] Within the technical framework constructed in this scheme, microscopic compensation for fabric texture scattering is achieved through a surface scattering correction factor, and dye distribution variation is quantified using a dye penetration uniformity index. This enables the subsequent color difference prediction model to comprehensively perceive both surface and internal factors of the fabric. Compared to conventional detection methods that rely solely on the original spectrum, the accuracy of color difference prediction is significantly improved, especially in identifying latent color differences caused by uneven penetration. This method is widely applicable to online or offline detection of surface color differences in fabrics with various fiber materials, structures, and dyeing processes.

[0044] The above are merely specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. The scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for detecting color difference on the surface of dyed fabrics based on spectral data, characterized in that, include: S1: Acquire multispectral reflectance data of the dyed fabric surface within a preset wavelength range; S2: Preprocess the multispectral reflectance data to eliminate measurement noise and scattering interference, and obtain preprocessed spectral data; S3: Based on the preprocessed spectral data, calculate a surface scattering correction factor, which is a coefficient determined according to the reflectance difference at at least two different wavelengths in the preprocessed spectral data and used to correct the influence of fabric surface texture scattering on spectral measurements; S4: Using the preprocessed spectral data and the surface scattering correction factor, extract the spectral feature vector related to the dye concentration; S5: Calculate a dye penetration uniformity index based on the spectral feature vector. The dye penetration uniformity index is a value used to measure the uniformity of dye penetration and distribution within the fabric, determined based on the dispersion of multiple wavelength points characterizing dye absorption intensity in the spectral feature vector. S6: Input the spectral feature vector, the surface scattering correction factor, and the dye penetration uniformity index into the pre-established color difference prediction model to obtain the predicted color difference value; S7: Compare the predicted color difference value with the preset color difference threshold, and determine whether there is a color difference defect on the surface of the dyed fabric based on the comparison result.

2. The method for detecting color difference on the surface of dyed fabrics based on spectral data according to claim 1, characterized in that, The preprocessing described in step S2 includes: S201: Perform wavelet threshold denoising on the multispectral reflectance data to obtain denoised spectral data; S202: Perform multivariate scattering correction on the denoised spectral data to eliminate spectral baseline drift caused by non-uniform scattering from the fabric surface, and obtain the preprocessed spectral data.

3. The method for detecting color difference on the surface of dyed fabrics based on spectral data according to claim 2, characterized in that, The threshold used in wavelet thresholding denoising in step S201 is adaptively determined based on the noise variance of the spectral signal, specifically including: The variance of noise at each wavelength point in the multispectral reflectance data is estimated, and a wavelet coefficient threshold related to the decomposition scale is calculated based on the variance. The wavelet coefficients are then processed using this threshold to achieve denoising.

4. The method for detecting color difference on the surface of dyed fabrics based on spectral data according to claim 1, characterized in that, The determination of the surface scattering correction factor in step S3 includes: S301: Select the first wavelength Second wavelength ,in Located in the peak and valley region of fabric dye absorption, Located in the dye absorption peak region of the fabric; S302: Calculate the preprocessed spectral data in... and The reflectance ratio at a given location is used, and then normalized using the reflectance ratio of a standard white board at the same wavelength to obtain the surface scattering correction factor.

5. The method for detecting color difference on the surface of dyed fabrics based on spectral data according to claim 4, characterized in that, Step S302 further includes: S3021: The surface scattering correction factor SCF is calculated using the following expression: ; in For the preprocessed spectral data at wavelength Reflectivity at that location For standard whiteboards at wavelength The reflectivity at that location.

6. The method for detecting color difference on the surface of dyed fabrics based on spectral data according to claim 1, characterized in that, The calculation of the dye penetration uniformity index in step S5 includes: S501: Extract the absorption intensity values ​​of multiple wavelength points corresponding to the main absorption band of the dye from the spectral feature vector; S502: Calculate the coefficient of variation of the plurality of absorption intensity values, and use the coefficient of variation as the dye penetration uniformity index.

7. The method for detecting color difference on the surface of dyed fabrics based on spectral data according to claim 6, characterized in that, The coefficient of variation (CV) in step S502 is calculated as follows: ; in The standard deviation of the plurality of absorption intensity values, This is the average of the multiple absorption intensity values.

8. The method for detecting color difference on the surface of dyed fabrics based on spectral data according to claim 1, characterized in that, The color difference prediction model in step S6 is a support vector regression model, whose input vector is composed of the spectral feature vector, the surface scattering correction factor and the dye penetration uniformity index.

9. The method for detecting color difference on the surface of dyed fabrics based on spectral data according to claim 8, characterized in that, The support vector regression-based model employs a radial basis function kernel, the hyperparameters of which are determined through grid search and cross-validation.

10. The method for detecting color difference on the surface of dyed fabrics based on spectral data according to claim 1, characterized in that, The preset color difference threshold mentioned in step S7 is dynamically set according to the fabric type, dye type and preset tolerance requirements.