An artificial intelligence-based textile printing and dyeing quality monitoring system
Through artificial intelligence technology, combined with SIFT algorithm and various analysis modules, the image matching error and offset problems in the textile printing and dyeing quality monitoring system are solved, the textile printing and dyeing quality is comprehensively evaluated, efficient quality monitoring and resource optimization are achieved, and product quality is improved. and production efficiency.
Patent Information
- Application Number
- CN202410404952.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-07
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-04-07
AI Technical Summary
The existing textile printing and dyeing quality monitoring system cannot accurately match multiple images into a complete image, has a high mismatch rate, ignores image offsets, resulting in inaccurate textile pattern positions, and only considers a single factor such as color difference, unable to comprehensively evaluate printing and dyeing quality, resulting in resource Waste and increased costs.
Adopt a textile printing and dyeing quality monitoring system based on artificial intelligence, including image acquisition module, image processing module, image offset correction analysis module, color difference index analysis module, pattern clarity index analysis module, color change index analysis module and quality assessment coefficient analysis module , extract feature points through the SIFT algorithm, analyze offset, color difference index, pattern clarity and color change index, calculate the printing and dyeing quality evaluation coefficient, and determine whether the textile printing and dyeing quality is qualified.
It achieves efficient matching and overall image acquisition of textile printing and dyeing images, accurately evaluates color difference and pattern clarity, finds abnormalities in the production process, reduces defective products, improves product quality and production efficiency, reduces costs, and enhances market competitiveness.
Smart Images

Figure CN118196068B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of textile printing and dyeing quality monitoring, and relates to a textile printing and dyeing quality monitoring system based on artificial intelligence. Background Art
[0002] With the rapid development of artificial intelligence technology, it has made significant progress in image recognition, pattern recognition, machine learning and other fields. These technologies provide new solutions for textile printing and dyeing quality monitoring. By training deep learning models, it can realize automatic recognition and classification of subtle defects and abnormal conditions in printing and dyeing images. At the same time, artificial intelligence technology can also realize real-time monitoring and early warning, helping production personnel to promptly discover and deal with quality problems, and improve production efficiency and quality stability.
[0003] Although the existing textile printing and dyeing quality monitoring system meets certain requirements, it still has limitations, which are specifically reflected in: 1. The existing technology cannot accurately match multiple images into a complete image. There is a high mismatch rate in the matching process, resulting in errors or distortions in the overall image obtained. This error may manifest as distortion or deformation of the shape, size, color and other features of the object in the image, which has a serious impact on key links such as quality monitoring and defect detection in the textile printing and dyeing industry.
[0004] 2. The existing technology often ignores the impact of image deviation on textile printing and dyeing. Image deviation will lead to inaccurate pattern position on textiles, misalignment, blur or overlap, etc., which will seriously affect the appearance quality and aesthetics of the product. Unqualified textiles also need to be scrapped, resulting in waste of resources.
[0005] 3. Existing technologies often only consider the impact of a single factor on the quality of textile printing and dyeing, such as only considering the color difference or color change of textile printing and dyeing images. Due to the failure to comprehensively evaluate the printing and dyeing quality, it may lead to waste of resources and increased costs in the production process. Modern consumers have increasingly diversified requirements for textiles, and it is difficult to win the market by only meeting one aspect of the demand. Summary of the invention
[0006] In view of this, in order to solve the problems raised in the above background technology, a textile printing and dyeing quality monitoring system based on artificial intelligence is proposed.
[0007] The purpose of the present invention can be achieved through the following technical solutions: The present invention provides a textile printing and dyeing quality monitoring system based on artificial intelligence, including: an image acquisition module: used to segment the textile according to the preset shooting area of the camera, and collect the printing and dyeing images of each textile in each segment area.
[0008] Image processing module: used to process the printing and dyeing images of each textile in each section area to obtain the qualified overall printing and dyeing images of each textile in each section area.
[0009] Image offset correction analysis module: used to analyze the horizontal offset and angular offset of each section of the qualified overall image of textile printing and dyeing in each section of the area, so as to obtain the offset of the qualified overall image of textile printing and dyeing in each section of the area, and then perform offset correction on the camera.
[0010] Color difference index analysis module: used to obtain the gray value of each pixel value of the overall image of textile printing and dyeing in each section through the overall image of textile printing and dyeing in each section, and analyze the color difference index of the overall image of textile printing and dyeing in each section
[0011] Pattern clarity index analysis module: used to obtain the resolution, color difference fluctuation, and edge sharpness of the qualified overall image of textile printing and dyeing in each section area, and analyze the pattern clarity index of the qualified overall image of textile printing and dyeing in each section area
[0012] Color change index analysis module: used to obtain the color component value of each section of the textile printing and dyeing qualified overall image, and analyze the color change index E of each section of the textile printing and dyeing qualified overall image n .
[0013] Quality assessment coefficient analysis module: used to analyze the textile printing and dyeing quality assessment coefficient through the color difference index, pattern clarity index and color change index of the qualified overall image of textile printing and dyeing in each section area.
[0014] Printing and dyeing quality judgment module: used to judge whether the printing and dyeing quality of textiles is qualified according to the printing and dyeing quality evaluation coefficient of textiles.
[0015] Database: used to store the standard center point coordinates of the overall image of textile printing and dyeing, the standard horizontal center line of the overall image of textile printing and dyeing, and the standard color component value of each pixel point of the overall image extracted from the database.
[0016] Preferably, the step of obtaining a qualified overall image of textile printing and dyeing in each section area comprises: extracting each feature point of each textile printing and dyeing image in each section area by using a SIFT algorithm, comparing each feature point of each textile printing and dyeing image in each section area with the corresponding feature points of its adjacent textile printing and dyeing image, screening the matching feature points corresponding to each feature point of each textile printing and dyeing image in each section area, forming the feature point groups in each textile printing and dyeing image in each section area, and then obtaining the coordinates of each feature point group in each textile printing and dyeing image in each section area. Where n represents the number corresponding to different regions, n = 1, 2, 3...N, where i represents the number corresponding to different feature point groups, i = 1, 2, 3...I, where j represents the number corresponding to different textile printing and dyeing images, j = 1, 2, 3...J, and analyzes the transformation matrix of each feature point group of each textile printing and dyeing image in each segment area. where θ nij represents the rotation angle of the i-th feature point group of the j-th textile printing and dyeing image in the n-th segment area, t nij represents the translation parameters of the i-th feature point group of the j-th textile printing and dyeing image in the n-th segment area, according to the equation group Analyze the rotation angle θ of each feature point group of each textile printing and dyeing image in each segment area nij and the translation parameter t nij .
[0017] The transformation matrix of each feature point group of each textile printing and dyeing image in each segment area is applied to each pixel point of each textile printing and dyeing image in each segment area, and it is transformed into the coordinate system of another image to complete the matching of each textile printing and dyeing image in each segment area, and then obtain the qualified overall image of textile printing and dyeing in each segment area.
[0018] Preferably, the analyzing of the horizontal deviation and the angular deviation of the qualified overall image of textile printing and dyeing in each section area comprises: obtaining the center point coordinates (x n ,y n ), extract the standard center point coordinates (x′, y′) of the qualified overall image of textile printing and dyeing through the database, analyze the horizontal deviation of the qualified overall image of textile printing and dyeing in each section area,
[0019] The edge detection algorithm is used to identify the edges of the qualified overall image of textile printing and dyeing in each segment area, and then the Hough transform is used to detect the straight lines of the qualified overall image of textile printing and dyeing in each segment area. All the straight lines detected by the Hough transform are traversed, and the straight line passing through the center point is extracted as the horizontal center line of the qualified overall image of textile printing and dyeing in each segment area, and the vector of the horizontal center line of the qualified overall image of textile printing and dyeing in each segment area is obtained according to any two points on the horizontal center line. The standard horizontal center line of the qualified overall image of textile printing and dyeing is extracted from the database, and the vector of the standard horizontal center line of the qualified overall image of textile printing and dyeing is obtained according to any two points on the standard horizontal center line Analyze the angular deviation of the qualified overall image of textile printing and dyeing in each section area,
[0020] Preferably, the specific formula for analyzing the deviation of the qualified overall image of textile printing and dyeing in each section area is: n =Δdn ·χ1+θ n ·χ2, where χ1 represents the textile printing and dyeing
[0021] χ1 represents the weight factor of the horizontal deviation of the overall image of the grid, χ2 represents the weight factor of the deviation angle of the overall image of the qualified textile printing and dyeing, and χ1+χ2=1.
[0022] Preferably, the offset correction of the camera includes: comparing the offset of the overall image of each section of textile printing and dyeing with a preset standard offset threshold; if the offset of the overall image of a section of textile printing and dyeing is greater than or equal to the preset standard offset threshold, the camera is offset corrected.
[0023] Preferably, the color difference index of the qualified overall image of textile printing and dyeing in each section area is analyzed, including: grayscale processing is performed on the qualified overall image of textile printing and dyeing in each section area to obtain its grayscale image, and then the grayscale value E′ of each pixel point in the qualified overall image of textile printing and dyeing in each section area is extracted. nd and the gray value E′ of each pixel corresponding to each adjacent pixel in the overall image of qualified textile printing and dyeing in each segment area ndf , where d represents the number of different pixels in the overall image of textile printing and dyeing, d = 1, 2, 3...D, where f represents the number of different adjacent pixels around the pixel, f = 1, 2, 3...F, analyze the color difference index of the overall image of textile printing and dyeing in each section Wherein ΔE′0 represents the allowable grayscale deviation value between a pixel point and its adjacent pixels in the set qualified overall image of textile printing and dyeing, D represents the total number of pixels in the qualified overall image of textile printing and dyeing, and F represents the total number of adjacent pixels around the pixel point.
[0024] Preferably, the analysis of the pattern clarity index of the qualified overall image of textile printing and dyeing in each section area includes: obtaining the total number P of pattern edge pixels in the qualified overall image of textile printing and dyeing in each section area through an image processing algorithm. n The total number of pixels T of the qualified overall image of textile printing and dyeing in each section area is obtained by calculating the width and height of the qualified overall image of textile printing and dyeing in each section area n , the gray value I corresponding to each pixel of each pattern in the qualified overall image of textile printing and dyeing in each section is obtained through the OpenCV library anb , where b represents the number of different pixel points corresponding to the pattern, b = 1, 2, 3...B, where a represents the number of different patterns in the overall image of qualified textile printing and dyeing, a = 1, 2, 3...A, the gradient of the grayscale image of the qualified overall image of textile printing and dyeing in each segment area is calculated by the Sobel gradient operator to obtain the horizontal gradient vector G′ of each edge pixel point corresponding to each pattern in the overall image of qualified textile printing and dyeing in each segment areanma and the vertical gradient component G″ nma , where m represents the number corresponding to different edge pixels in the pattern, m = 1, 2, 3...M, analyze the pattern clarity index of the overall image of textile printing and dyeing in each section Where R n The resolution index of the qualified overall image of textile printing and dyeing in the nth section area, σ n The color fluctuation index of the overall qualified image of textile printing and dyeing in the nth section area, A represents the total number of patterns in the overall qualified textile printing and dyeing image, B represents the total number of pixels corresponding to the pattern, and μ na It represents the average gray value of the pixel points of the ath pattern in the nth section of the overall image of textile printing and dyeing. Among them G n Indicates the edge sharpness index of the overall qualified image of textile printing and dyeing in the nth segment area, Where M represents the total number of different edge pixels in the pattern, and G nma It represents the gradient value of the mth edge pixel point of the ath pattern in the nth section of the qualified overall image of textile printing and dyeing. w1 represents a set weighting factor of a resolution index, w2 represents a set weighting factor of a color fluctuation index, w3 represents a set weighting factor of an edge sharpness index, and w1+w2+w3=1.
[0025] Preferably, the color change index of the overall image of the qualified textile printing and dyeing in each section area is analyzed, including: obtaining the color component value of each pixel point of the overall image of the qualified textile printing and dyeing in each section area through the OpenCV library, and the color component value includes a hue component value, a saturation component value, and a brightness component value, which are r nd , g nd 、h nd , extract the hue component value r′ from the standard color component value of each pixel of the qualified overall image from the database d , saturation component value g′ d and the brightness component value h′ d , analyze the color change index of the overall image of textile printing and dyeing in each section Ε″ nd It indicates the difference between the color component value of the dth pixel point in the qualified overall image of textile printing and dyeing in the nth section and the standard color component value.
[0026] Preferably, the specific formula for analyzing the printing and dyeing quality evaluation coefficient of the textile is: Wherein Ψ represents the printing and dyeing quality evaluation coefficient of the textile, α1 represents the weight factor of the set color difference index, α2 represents the weight factor of the set pattern clarity index, α3 represents the weight factor of the set color change index, and α1+α2+α3=1.
[0027] Preferably, the determining whether the printing and dyeing quality of the textile is qualified comprises: comparing the printing and dyeing quality assessment coefficient of the textile with a preset qualified quality assessment threshold; if the printing and dyeing quality assessment coefficient of the textile is greater than or equal to the preset qualified quality assessment threshold, the printing and dyeing quality of the textile is qualified; if the printing and dyeing quality assessment coefficient of the textile is less than the preset qualified quality assessment threshold, the printing and dyeing quality of the textile is unqualified.
[0028] Compared with the prior art, the beneficial effects of the present invention are as follows: (1) The textile printing and dyeing image matching and overall image acquisition method based on the SIFT algorithm of the present invention realizes the efficient acquisition of the overall image of textile printing and dyeing in each section area through the steps of accurately extracting feature points, screening matching feature point groups, analyzing transformation matrices, and accurately matching images, which provides strong technical support for quality monitoring and defect detection in the textile printing and dyeing industry, and also helps to timely discover problems in the production process, improve product quality and production efficiency, reduce production costs, and enhance the market competitiveness of enterprises.
[0029] (2) The present invention can accurately evaluate the color difference of the image by extracting the pixel values of the qualified overall image of textile printing and dyeing in each section area and calculating the color difference index between adjacent pixel points, which is helpful to find the problems such as color unevenness and defects in the image. It can timely find the abnormal situation in the production process and take corresponding treatment measures, which helps to reduce the production of defective products and avoid waste of resources, thereby improving production efficiency and economic benefits.
[0030] (3) The present invention extracts the resolution, contrast and edge sharpness of the qualified overall image of textile printing and dyeing in each section area to analyze the pattern clarity index of textile printing and dyeing in each section area. By analyzing the pattern clarity index, the influence of the printing and dyeing process on the pattern clarity can be deeply understood, which helps to guide production personnel to adjust the process parameters and improve the level and stability of the entire printing and dyeing process, thereby further improving the clarity of the pattern. In addition, the pattern clarity problem can be discovered and solved in time, which can avoid the generation of defective products and rework, and reduce production costs.
[0031] (4) The present invention can accurately calculate the difference by comparing the actual color component values of the qualified overall image of textile printing and dyeing in each section area with the standard color component values, thereby evaluating the color uniformity of the textile printing and dyeing image, and can promptly discover the color unevenness problem in the printing and dyeing process, so as to make timely adjustments and corrections. By promptly correcting the color unevenness problem, this can not only reduce production costs, but also improve product qualification rate and enhance the market competitiveness of enterprises.
[0032] (5) The present invention can timely discover deviations and problems in the production process by analyzing the horizontal and angular deviations of the qualified overall image of textile printing and dyeing in each section area, so as to adjust and optimize the production process in a targeted manner, improve production efficiency and product quality, and not only help discover problems, but also provide a strong basis for optimizing the production process, thereby improving production efficiency and reducing production costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0034] Figure 1 It is a schematic diagram of the connection of each module of the system of the present invention. DETAILED DESCRIPTION
[0035] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0036] See also Figure 1 As shown, the present invention provides a textile printing and dyeing quality monitoring system based on artificial intelligence, including: an image acquisition module, an image processing module, an image offset correction analysis module, a color difference index analysis module, a pattern clarity index analysis module, a color uniformity index analysis module, a quality assessment coefficient analysis module, a printing and dyeing quality judgment module and a database.
[0037] The image processing module is respectively connected to the image acquisition module and the image offset correction analysis module, the color difference index analysis module is respectively connected to the image offset correction analysis module, the quality assessment coefficient analysis module, and the database, the pattern clarity index analysis module is respectively connected to the image offset correction analysis module and the quality assessment coefficient analysis module, the color uniformity index analysis module is respectively connected to the image offset correction analysis module and the quality assessment coefficient analysis module, and the database is respectively connected to the image offset correction analysis module, the color difference index analysis module, and the color uniformity index analysis module.
[0038] The image acquisition module is used to segment the textile according to the preset shooting area of the camera, and to acquire the printing and dyeing image of each textile in each segment area.
[0039] Furthermore, the collecting of the printed and dyed images of each textile in each section area includes: when each section area appears in a preset shooting area of the camera, collecting the printed and dyed images of the textile in each section area through multiple angle cameras installed in the preset shooting area of the camera, to obtain the printed and dyed images of each textile in each section area.
[0040] The image processing module is used to process the printing and dyeing images of each textile in each section area to obtain a qualified overall printing and dyeing image of the textile in each section area.
[0041] Furthermore, the step of obtaining the qualified overall image of textile printing and dyeing in each section area includes:
[0042] The SIFT algorithm is used to extract the feature points of each textile printing and dyeing image in each segment area, and the feature points of each textile printing and dyeing image in each segment area are compared with the corresponding feature points of the adjacent textile printing and dyeing images. The matching feature points corresponding to the feature points of each textile printing and dyeing image in each segment area are selected, and the feature points are used to form the feature point groups in each textile printing and dyeing image in each segment area, and then the coordinates of each feature point group in each textile printing and dyeing image in each segment area are obtained. Where n represents the number corresponding to different regions, n = 1, 2, 3...N, where i represents the number corresponding to different feature point groups, i = 1, 2, 3...I, where j represents the number corresponding to different textile printing and dyeing images, j = 1, 2, 3...J, and analyzes the transformation matrix of each feature point group of each textile printing and dyeing image in each segment area. where θ nij represents the rotation angle of the i-th feature point group of the j-th textile printing and dyeing image in the n-th segment area, t nij represents the translation parameters of the i-th feature point group of the j-th textile printing and dyeing image in the n-th segment area, according to the equation group Analyze the rotation angle θ of each feature point group of each textile printing and dyeing image in each segment area nij and the translation parameter t nij .
[0043] The transformation matrix of each feature point group of each textile printing and dyeing image in each segment area is applied to each pixel point of each textile printing and dyeing image in each segment area, and it is transformed into the coordinate system of another image to complete the matching of each textile printing and dyeing image in each segment area, and then obtain the qualified overall image of textile printing and dyeing in each segment area.
[0044] As a preferred embodiment, the method for screening matching feature points corresponding to each feature point of the qualified overall image of textile printing and dyeing in each segment area is: obtaining the descriptor corresponding to each feature point, substituting the descriptor of each feature point of the qualified overall image of textile printing and dyeing in each segment area and the corresponding feature point of its adjacent textile printing and dyeing image into the Euclidean distance formula to obtain the similarity measure between the two descriptors, and comparing the similarity measure between any two descriptors with a preset similarity threshold; if the similarity measure between the two descriptors is less than the preset similarity threshold, the feature points corresponding to the two descriptors match.
[0045] The textile printing and dyeing image matching and overall image acquisition method based on the SIFT algorithm of the present invention realizes the efficient acquisition of the overall image of textile printing and dyeing in each section area through the steps of accurately extracting feature points, screening matching feature point groups, analyzing transformation matrices, and accurately matching images, which provides strong technical support for quality monitoring and defect detection in the textile printing and dyeing industry, and also helps to timely discover problems in the production process, improve product quality and production efficiency, reduce production costs, and enhance the market competitiveness of enterprises.
[0046] The image offset correction analysis module is used to analyze the horizontal offset and angular offset of each section of the qualified overall image of textile printing and dyeing in each section of the area through the qualified overall image of textile printing and dyeing in each section of the area, so as to obtain the offset of the qualified overall image of textile printing and dyeing in each section of the area, and then perform offset correction on the camera.
[0047] Furthermore, the analysis of the horizontal deviation and the angular deviation of the qualified overall image of textile printing and dyeing in each section area includes: obtaining the center point coordinates (x n ,y n ), extract the standard center point coordinates (x′, y′) of the qualified overall image of textile printing and dyeing through the database, analyze the horizontal deviation of the qualified overall image of textile printing and dyeing in each section area,
[0048] The edge detection algorithm is used to identify the edges of the qualified overall image of textile printing and dyeing in each segment area, and then the Hough transform is used to detect the straight lines of the qualified overall image of textile printing and dyeing in each segment area. All the straight lines detected by the Hough transform are traversed, and the straight line passing through the center point is extracted as the horizontal center line of the qualified overall image of textile printing and dyeing in each segment area, and the vector of the horizontal center line of the qualified overall image of textile printing and dyeing in each segment area is obtained according to any two points on the horizontal center line. The standard horizontal center line of the qualified overall image of textile printing and dyeing is extracted from the database, and the vector of the standard horizontal center line of the qualified overall image of textile printing and dyeing is obtained according to any two points on the standard horizontal center line Analyze the angular deviation of the qualified overall image of textile printing and dyeing in each section area,
[0049] Furthermore, the specific formula for analyzing the deviation of the qualified overall image of textile printing and dyeing in each section area is: n =Δd n ·χ1+θ n ·χ2, where χ1 represents the weight factor of the horizontal deviation of the overall image of the textile printing and dyeing qualification, χ2 represents the weight factor of the deviation angle of the overall image of the textile printing and dyeing qualification, and χ1+χ2=1.
[0050] It should be noted that, in one embodiment, χ1 can be set to 0.5, and χ2 can be set to 0.5. In the quality assessment of the overall qualified image of textile printing and dyeing, the horizontal offset and the offset angle are both key indicators for measuring the accuracy of the image position. The horizontal offset describes the degree of displacement of the image in the horizontal direction, while the offset angle reflects the degree of rotation of the entire image. Both are equally important for ensuring the match between the image and the standard or expected position. Therefore, the weight factors of the two are set to the same value.
[0051] The present invention can timely discover deviations and problems in the production process by analyzing the horizontal and angular deviations of the qualified overall image of textile printing and dyeing in each section area, so as to adjust and optimize the production process in a targeted manner, improve production efficiency and product quality, and not only help discover problems, but also provide a strong basis for optimizing the production process, thereby improving production efficiency and reducing production costs.
[0052] Furthermore, the offset correction of the camera includes: comparing the offset of the overall image of each section of textile printing and dyeing with a preset standard offset threshold; if the offset of the overall image of a section of textile printing and dyeing is greater than or equal to the preset standard offset threshold, the camera is offset corrected.
[0053] The color difference index analysis module is used to obtain the gray value of each pixel value of the overall image of the textile printing and dyeing in each section area through the overall image of the textile printing and dyeing in each section area, and analyze the color difference index of the overall image of the textile printing and dyeing in each section area.
[0054] Furthermore, the analysis of the color difference index of the qualified overall image of textile printing and dyeing in each section area includes: performing grayscale processing on the qualified overall image of textile printing and dyeing in each section area to obtain its grayscale image, and then extracting the grayscale value E′ of each pixel point in the qualified overall image of textile printing and dyeing in each section area nd and the gray value E′ of each pixel corresponding to each adjacent pixel in the overall image of qualified textile printing and dyeing in each segment area ndf , where d represents the number of different pixels in the overall image of textile printing and dyeing, d = 1, 2, 3...D, where f represents the number of different adjacent pixels around the pixel, f = 1, 2, 3...F, analyze the color difference index of the overall image of textile printing and dyeing in each section Wherein ΔE0′ represents the allowable grayscale deviation value between a pixel point and its adjacent pixels in the set qualified overall image of textile printing and dyeing, D represents the total number of pixels in the qualified overall image of textile printing and dyeing, and F represents the total number of adjacent pixels around the pixel point.
[0055] The present invention extracts the pixel values of the qualified overall image of textile printing and dyeing in each section area and calculates the color difference index between adjacent pixel points, so as to accurately evaluate the color difference of the image, help to find the problems such as color unevenness and defects in the image, and can timely find the abnormal situation in the production process and take corresponding treatment measures, which helps to reduce the generation of defective products and avoid waste of resources, thereby improving production efficiency and economic benefits.
[0056] The pattern clarity index analysis module is used to obtain the resolution, color difference fluctuation, and edge sharpness of the qualified overall image of textile printing and dyeing in each section area, and analyze the pattern clarity index of the qualified overall image of textile printing and dyeing in each section area.
[0057] Furthermore, the analysis of the pattern clarity index of the qualified overall image of textile printing and dyeing in each section area includes: obtaining the total number P of pattern edge pixels in the qualified overall image of textile printing and dyeing in each section area through an image processing algorithm. n The total number of pixels T of the qualified overall image of textile printing and dyeing in each section area is obtained by calculating the width and height of the qualified overall image of textile printing and dyeing in each section area n , the gray value I corresponding to each pixel of each pattern in the qualified overall image of textile printing and dyeing in each section is obtained through the OpenCV library anb, where b represents the number of different pixel points corresponding to the pattern, b = 1, 2, 3...B, where a represents the number of different patterns in the overall image of qualified textile printing and dyeing, a = 1, 2, 3...A, the gradient of the grayscale image of the qualified overall image of textile printing and dyeing in each segment area is calculated by the Sobel gradient operator to obtain the horizontal gradient vector G′ of each edge pixel point corresponding to each pattern in the overall image of qualified textile printing and dyeing in each segment area nma and the vertical gradient component G″ nma , where m represents the number corresponding to different edge pixels in the pattern, m = 1, 2, 3...M, analyze the pattern clarity index of the overall image of textile printing and dyeing in each section Where R n The resolution index of the qualified overall image of textile printing and dyeing in the nth section area, σ n The color fluctuation index of the overall qualified image of textile printing and dyeing in the nth section area, A represents the total number of patterns in the overall qualified textile printing and dyeing image, B represents the total number of pixels corresponding to the pattern, and μ na It represents the average gray value of the pixel points of the ath pattern in the nth section of the overall image of textile printing and dyeing. Among them G n Indicates the edge sharpness index of the overall qualified image of textile printing and dyeing in the nth segment area, Where M represents the total number of different edge pixels in the pattern, and G nma It represents the gradient value of the mth edge pixel point of the ath pattern in the nth section of the qualified overall image of textile printing and dyeing. w1 represents a set weighting factor of a resolution index, w2 represents a set weighting factor of a color fluctuation index, w3 represents a set weighting factor of an edge sharpness index, and w1+w2+w3=1.
[0058] It should be noted that, in one embodiment, w1 can be set to 0.4, w2 can be set to 0.3, and w3 can be set to 0.3. Resolution is a crucial factor in image quality assessment. High-resolution images can show more details and clarity, which is particularly important for the assessment of qualified overall images of textile printing and dyeing. Contrast describes the difference in light and dark in different areas of the image. Appropriate contrast can highlight the details and texture of the pattern, making the image more attractive. Edge sharpness reflects the clarity of edges and contours in the image. Higher edge sharpness can make the pattern more vivid and three-dimensional, thereby enhancing the overall visual effect.
[0059] The present invention extracts the resolution, contrast and edge sharpness of the qualified overall image of textile printing and dyeing in each section area to analyze the pattern clarity index of textile printing and dyeing in each section area. By analyzing the pattern clarity index, the influence of the printing and dyeing process on the pattern clarity can be deeply understood, which is helpful to guide production personnel to adjust the process parameters, improve the level and stability of the entire printing and dyeing process, thereby further improving the clarity of the pattern, and can timely discover and solve the problem of pattern clarity, which can avoid the generation of defective products and rework, and reduce production costs.
[0060] The color change index analysis module is used to obtain the color component value of the qualified overall image of textile printing and dyeing in each section area, and analyze the color change index E of the qualified overall image of textile printing and dyeing in each section area. n .
[0061] Furthermore, the color change index of the overall image of the qualified textile printing and dyeing in each section area is analyzed, including: obtaining the color component value of each pixel point of the overall image of the qualified textile printing and dyeing in each section area through the OpenCV library, and the color component value includes a hue component value, a saturation component value, and a brightness component value, which are r nd , g nd 、h nd , extract the hue component value r′ from the standard color component value of each pixel of the qualified overall image from the database d , saturation component value g′ d and the brightness component value h′ d , analyze the color change index of the overall image of textile printing and dyeing in each section Ε″ nd It indicates the difference between the color component value of the dth pixel point in the qualified overall image of textile printing and dyeing in the nth section and the standard color component value.
[0062] The present invention can accurately calculate the difference by comparing the actual color component values of the qualified overall image of textile printing and dyeing in each section area with the standard color component values, thereby evaluating the color uniformity of the textile printing and dyeing image, and can promptly discover the color unevenness problem in the printing and dyeing process, so as to make timely adjustments and corrections. By promptly correcting the color unevenness problem, this can not only reduce production costs, but also improve product qualification rate and enhance the market competitiveness of enterprises.
[0063] The quality assessment coefficient analysis module is used to analyze the textile printing and dyeing quality assessment coefficient through the color difference index, pattern clarity index and color change index of the qualified overall image of textile printing and dyeing in each section area.
[0064] Furthermore, the specific formula for analyzing the evaluation coefficient of the printing and dyeing quality of textiles is: Wherein Ψ represents the printing and dyeing quality evaluation coefficient of the textile, α1 represents the set weight factor of the color difference index, α2 represents the set weight factor of the pattern clarity index, α3 represents the set weight factor of the color uniformity index, and α1+α2+α3=1.
[0065] It should be noted that, in one embodiment, α1 can be set to 0.4, α2 can be set to 0.3, and α3 can be set to 0.3. Chromatic aberration is one of the most easily perceived features when people observe images or products. The color difference index can well reflect the consistency and accuracy of product color, and plays an important role in the overall quality assessment. Pattern clarity determines the fineness and recognizability of the pattern on the product surface, which is particularly important for products that need to display complex patterns or details. Compared with the color difference index, pattern clarity may not be the primary consideration. Color uniformity determines the uniformity and consistency of the color on the product surface, which is crucial to ensuring the overall aesthetics of the product. Compared with color difference, color uniformity may be slightly less important.
[0066] The present invention helps to improve the quality control level of the textile printing and dyeing industry through the application of quality assessment coefficient analysis. By accurately and comprehensively evaluating the printing and dyeing quality, it can help enterprises to promptly discover problems in the production process, adjust production parameters and processes, and improve product quality and competitiveness. At the same time, this also provides strong technical support for the standardization and normalization of the textile printing and dyeing industry.
[0067] The printing and dyeing quality determination module is used to determine whether the printing and dyeing quality of the textile is qualified according to the printing and dyeing quality evaluation coefficient of the textile.
[0068] Furthermore, the determination of whether the printing and dyeing quality of the textile is qualified includes: comparing the printing and dyeing quality assessment coefficient of the textile with a preset qualified quality assessment threshold; if the printing and dyeing quality assessment coefficient of the textile is greater than or equal to the preset qualified quality assessment threshold, the printing and dyeing quality of the textile is qualified; if the printing and dyeing quality assessment coefficient of the textile is less than the preset qualified quality assessment threshold, the printing and dyeing quality of the textile is unqualified.
[0069] The present invention greatly improves the efficiency and accuracy of determination by automatically determining the quality of textile printing and dyeing based on the evaluation coefficient. Compared with the traditional manual determination method, the module can avoid the interference of human factors, reduce the possibility of misjudgment and missed judgment, and ensure the objectivity and reliability of the determination result.
[0070] Database: used to store the standard center point coordinates of the overall image of textile printing and dyeing, the standard horizontal center line of the overall image of textile printing and dyeing, and the standard color component value of each pixel point of the overall image extracted from the database.
[0071] The data sources in the database of this embodiment are shown in Table 1 below.
[0072] Table 1
[0073]
[0074]
[0075] The above contents are merely examples and explanations of the concept of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the concept of the invention or exceed the scope defined by the present invention, they shall all fall within the protection scope of the present invention.
Claims
1. A textile printing and dyeing quality monitoring system based on artificial intelligence, Features: The system includes: Image acquisition module: used to segment the textile according to the preset shooting area of the camera, and collect the printing and dyeing images of each textile in each segment area; Image processing module: used to process the printing and dyeing images of each textile in each section area to obtain the qualified overall printing and dyeing images of the textile in each section area; Image offset correction analysis module: used to analyze the horizontal offset and angular offset of the qualified overall image of textile printing and dyeing in each section area through the qualified overall image of textile printing and dyeing in each section area, so as to obtain the offset of the qualified overall image of textile printing and dyeing in each section area, and then perform offset correction on the camera; Color difference index analysis module: used to obtain the gray value of each pixel value of the overall image of textile printing and dyeing in each section through the overall image of textile printing and dyeing in each section, and analyze the color difference index of the overall image of textile printing and dyeing in each section Pattern clarity index analysis module: used to obtain the resolution, color fluctuation, and edge sharpness of the qualified overall image of textile printing and dyeing in each section area, and analyze the pattern clarity index of the qualified overall image of textile printing and dyeing in each section area Color change index analysis module: used to obtain the color component value of each section of the textile printing and dyeing qualified overall image, and analyze the color change index E of each section of the textile printing and dyeing qualified overall image n ; Quality assessment coefficient analysis module: used to analyze the textile printing and dyeing quality assessment coefficient through the color difference index, pattern clarity index, and color change index of the qualified overall image of textile printing and dyeing in each section area; Printing and dyeing quality determination module: used to determine whether the printing and dyeing quality of textiles is qualified according to the printing and dyeing quality evaluation coefficient of textiles; Database: used to store the standard center point coordinates of the overall image of textile printing and dyeing, the standard horizontal center line of the overall image of textile printing and dyeing, and the standard color component value of each pixel point of the overall image extracted from the database; The step of obtaining a qualified overall image of textile printing and dyeing in each section area includes: The SIFT algorithm is used to extract the feature points of each textile printing and dyeing image in each segment area, and each feature point of each textile printing and dyeing image in each segment area is compared with the corresponding feature points of its adjacent textile printing and dyeing image, and the matching feature points corresponding to each feature point of each textile printing and dyeing image in each segment area are selected to form each feature point group in each textile printing and dyeing image in each segment area, and then the coordinates of each feature point group in each textile printing and dyeing image in each segment area are obtained. Where n represents the number corresponding to different regions, n = 1, 2, 3...N, where i represents the number corresponding to different feature point groups, i = 1, 2, 3...I, where j represents the number corresponding to different textile printing and dyeing images, j = 1, 2, 3...J, and analyzes the transformation matrix of each feature point group of each textile printing and dyeing image in each segment area. where θ nij represents the rotation angle of the i-th feature point group of the j-th textile printing and dyeing image in the n-th segment area, t nij represents the translation parameters of the i-th feature point group of the j-th textile printing and dyeing image in the n-th segment area, according to the equation group Analyze the rotation angle θ of each feature point group of each textile printing and dyeing image in each segment area nij and the translation parameter t nij ; Apply the transformation matrix of each feature point group of each textile printing and dyeing image in each segment area to each pixel point of each textile printing and dyeing image in each segment area, transform it into the coordinate system of another image, complete the matching of each textile printing and dyeing image in each segment area, and then obtain the qualified overall image of textile printing and dyeing in each segment area; The color difference index of the qualified overall image of textile printing and dyeing in each section area is analyzed, including: The grayscale image of the qualified overall image of textile printing and dyeing in each section area is processed to obtain its grayscale image, and then the grayscale value E′ of each pixel in the qualified overall image of textile printing and dyeing in each section area is extracted. nd and the gray value E′ of each pixel corresponding to each adjacent pixel in the overall image of qualified textile printing and dyeing in each segment area ndf , where d represents the number of different pixels in the overall image of qualified textile printing and dyeing, d = 1, 2, 3...D, where f represents the number of different phases around the pixel, The numbers corresponding to the adjacent pixels, f = 1, 2, 3...F, analyze the color difference index of the overall image of textile printing and dyeing in each section where ΔE 0 ′ represents the allowable grayscale deviation value between a pixel point and its adjacent pixels in the set qualified overall image of textile printing and dyeing, D represents the total number of pixels in the qualified overall image of textile printing and dyeing, and F represents the total number of adjacent pixels around the pixel point; The analysis of the pattern clarity index of the qualified overall image of textile printing and dyeing in each section area includes: The total number of pattern edge pixels P in the qualified overall image of textile printing and dyeing in each section is obtained by image processing algorithm n The total number of pixels T of the qualified overall image of textile printing and dyeing in each section area is obtained by calculating the width and height of the qualified overall image of textile printing and dyeing in each section area n , the gray value I corresponding to each pixel of each pattern in the qualified overall image of textile printing and dyeing in each section is obtained through the OpenCV library anb , where b represents the number of different pixel points corresponding to the pattern, b = 1, 2, 3...B, where a represents the number of different patterns in the overall image of qualified textile printing and dyeing, a = 1, 2, 3...A, the gradient of the grayscale image of the qualified overall image of textile printing and dyeing in each segment area is calculated by the Sobel gradient operator to obtain the horizontal gradient vector G′G″ of each edge pixel point corresponding to each pattern in the overall image of qualified textile printing and dyeing in each segment area nma and the gradient component nma in the vertical direction, where m represents the number corresponding to the different edge pixels in the pattern, m = 1, 2, 3...M, to analyze the pattern clarity index of the overall image of textile printing and dyeing in each section Where R n The resolution index of the qualified overall image of textile printing and dyeing in the nth section area, σ n The color fluctuation index of the overall qualified image of textile printing and dyeing in the nth section area, A represents the total number of patterns in the overall qualified textile printing and dyeing image, B represents the total number of pixels corresponding to the pattern, and μ na It represents the average gray value of the pixel points of the ath pattern in the nth section of the overall image of textile printing and dyeing. Among them G n Indicates the edge sharpness index of the overall qualified image of textile printing and dyeing in the nth segment area, Where M represents the total number of different edge pixels in the pattern, and G nma It represents the gradient value of the mth edge pixel point of the ath pattern in the nth section of the qualified overall image of textile printing and dyeing. w 1 Represents the weight factor of the set resolution index, w 2 Represents the weight factor of the set color fluctuation index, w 3 represents the set edge sharpness index weight factor, and w 1 +w 2 +w 3 =1; The analysis of the color change index of the qualified overall image of textile printing and dyeing in each section area includes: The OpenCV library is used to obtain the color component values of each pixel in the overall image of textile printing and dyeing in each section. The color component values include hue component value, saturation component value, and brightness component value, respectively. nd , g nd 、h nd , extract the hue component value r′ from the standard color component value of each pixel of the overall image from the database d , saturation component value g′ d and the brightness component value h′ d , analyze the color change index of the overall image of textile printing and dyeing in each section Ε″ nd It represents the difference between the color component value of the dth pixel point in the overall image of textile printing and dyeing in the nth section and the standard color component value. The specific formula for analyzing the evaluation coefficient of the printing and dyeing quality of textiles is: Where Ψ represents the textile printing and dyeing quality evaluation coefficient, α 1 Represents the weight factor of the set color difference index, α 2 Represents the weight factor of the set pattern clarity index, α 3 represents the weight factor of the set color change index, and α 1 +α 2 +α 3 =1.
2. According to claim 1, a textile printing and dyeing quality monitoring system based on artificial intelligence, Features: The analysis of the horizontal deviation and angular deviation of the qualified overall image of textile printing and dyeing in each section area includes: The center coordinates (x n ,y n ), extract the standard center point coordinates (x′, y′) of the qualified overall image of textile printing and dyeing through the database, analyze the horizontal deviation of the qualified overall image of textile printing and dyeing in each section area, The edge detection algorithm is used to identify the edges of the qualified overall image of textile printing and dyeing in each segment area, and then the Hough transform is used to detect the straight lines of the qualified overall image of textile printing and dyeing in each segment area. All the straight lines detected by the Hough transform are traversed, and the straight line passing through the center point is extracted as the horizontal center line of the qualified overall image of textile printing and dyeing in each segment area, and the vector of the horizontal center line of the qualified overall image of textile printing and dyeing in each segment area is obtained according to any two points on the horizontal center line. The standard horizontal center line of the qualified overall image of textile printing and dyeing is extracted from the database, and the vector of the standard horizontal center line of the qualified overall image of textile printing and dyeing is obtained according to any two points on the standard horizontal center line Analyze the angular deviation of the qualified overall image of textile printing and dyeing in each section area, 3. According to claim 2, a textile printing and dyeing quality monitoring system based on artificial intelligence, Features: The specific formula for analyzing the deviation of the qualified overall image of textile printing and dyeing in each section area is: n =Δd n · χ 1 +θ n · χ 2 , where χ 1 The weight factor representing the horizontal deviation of the overall image of textile printing and dyeing qualification, χ 2 represents the weight factor of the deviation angle of the overall image of textile printing and dyeing, and χ 1 +χ 2 =1.
4. The textile printing and dyeing quality monitoring system based on artificial intelligence according to claim 1, Features: The camera offset correction includes: The deviation of the overall image of textile printing and dyeing in each section is compared with the preset standard deviation threshold. If the deviation of the overall image of textile printing and dyeing in a section is greater than or equal to the preset standard deviation threshold, the camera is corrected for deviation.
5. The textile printing and dyeing quality monitoring system based on artificial intelligence according to claim 1, Features: The determination of whether the textile printing and dyeing quality is qualified includes: The printing and dyeing quality assessment coefficient of the textile is compared with the preset qualified quality assessment threshold. If the printing and dyeing quality assessment coefficient of the textile is greater than or equal to the preset qualified quality assessment threshold, the printing and dyeing quality of the textile is qualified; if the printing and dyeing quality assessment coefficient of the textile is less than the preset qualified quality assessment threshold, the printing and dyeing quality of the textile is unqualified.
