A defect detection method and leather defect intelligent detection system

Through image acquisition and processing technology, combined with wavelet decomposition and unique coding labels, comprehensive detection of leather defects is achieved, solving the problems of inaccurate and incomplete detection in the existing technology, and improving the reliability and quality consistency of leather products. .

CN117830237BActive Publication Date: 2024-08-30XIDIS QUALITY INSPECTION TECH SERVICE (DONGGUAN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311770482.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-21
Publication Date
2024-08-30
Estimated Expiration
2043-12-21

AI Technical Summary

Technical Problem

Existing leather defect detection technology cannot accurately determine the leather qualification rate, defect detection is not comprehensive, poor image quality leads to inaccurate detection, and defect data cannot accurately correspond to leather.

Method used

Image acquisition, image processing and contrast detection methods are used, including skewness, clarity and distortion detection, to detect scratches, cracks, indentations and contamination. Combined with wavelet decomposition technology, multi-scale decomposition of leather images is carried out, and through Unique coding labels improve detection efficiency.

Benefits of technology

It improves the reliability and service life of leather products, ensures image quality, achieves more comprehensive and accurate defect detection, and can accurately judge the qualification rate and quality consistency of leather.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117830237B
    Figure CN117830237B
Patent Text Reader

Abstract

The present invention discloses a defect detection method and an intelligent leather defect detection system, which relate to the technical field of leather defect detection, in order to solve the accuracy of leather defect detection. The present invention performs scratch detection, crack detection, indentation detection and pollution detection, can find potential defects and problems of leather surface coating, improve the reliability and service life of leather products, and can judge the thickness, hardness, elasticity and wear resistance of leather by detecting the depth, shape and distribution of indentation, which helps to ensure the quality and consistency of leather products. The collected leather image is tested for skewness, clarity and distortion, which helps to eliminate blurred or unclear images, improve image quality, and improve the usability of images in subsequent processing and analysis. Wavelet decomposition can ensure that there is no information loss and redundant information in the signal during the decomposition process, and has good reconstruction ability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of leather defect detection, and in particular to a defect detection method and an intelligent leather defect detection system. Background Art

[0002] Leather defect detection is to discover and measure various defects and problems by observing and analyzing the leather surface.

[0003] The Chinese patent with publication number CN115170547A discloses a leather defect detection method, system and device, which mainly migrates a leather defect detection model pre-trained by an animal leather defect sample to another animal leather defect detection model, which can be used to solve the problem of insufficient data set and improve algorithm efficiency; and the defect detection method has high accuracy, stability and robustness. Although the above patent solves the problem of defect detection, there are still the following problems in actual operation:

[0004] 1. Failure to accurately judge the leather qualification rate based on the number of defects, resulting in financial losses for the company.

[0005] 2. Failure to conduct more comprehensive and in-depth testing results in incomplete leather defect detection.

[0006] 3. After the leather images are collected, no further image processing is performed on the collected images, resulting in poor image quality and inaccurate defect detection.

[0007] 4. Before the leather is inspected for defects, each piece of leather is not uniquely coded and labeled, which results in the problem that when defects are detected in the leather later, the defect detection data cannot be accurately matched with the defective leather. Summary of the invention

[0008] The purpose of the present invention is to provide a defect detection method and an intelligent leather defect detection system, which can perform scratch detection, crack detection, indentation detection and pollution detection, and can discover potential defects and problems of leather surface coating, thereby improving the reliability and service life of leather products. By detecting the depth, shape and distribution of indentations, the thickness, hardness, elasticity and wear resistance of the leather can be judged, which helps to ensure the quality and consistency of leather products. The collected leather images are tested for skewness, clarity and distortion, which helps to eliminate blurred or unclear images, improve image quality, and improve the usability of images in subsequent processing and analysis. Wavelet decomposition can ensure that there is no information loss and redundant information in the signal during the decomposition process, and has good reconstruction capabilities, which can solve the problems in the prior art.

[0009] To achieve the above object, the present invention provides the following technical solutions:

[0010] A defect detection method comprises the following steps:

[0011] S1: When leather is to be inspected for defects, the leather is placed on a defect detector, and the defect detection device collects images of the leather;

[0012] S2: performing image processing on the collected leather image, and marking the processed image as the target leather image;

[0013] S3: performing a comparative test on the target leather image and the standard leather image, wherein the comparative test includes scratch test, crack test, indentation test and contamination test, and marking the test results as target test data;

[0014] S4: The target detection data is subjected to leather qualification rate determination, and whether the leather is qualified finished leather is determined according to the determination result.

[0015] Preferably, the image acquisition of the leather on the defect detector in S1 is used for:

[0016] When the leather is placed on the defect detector, each leather is uniquely coded and numbered, wherein the unique code number includes the model of the leather, the detection time and a set of random numbers;

[0017] After the unique code number of the leather is formed, the image of the leather is captured by a camera device on the defect detector;

[0018] The captured image is matched to the unique coded number of the leather.

[0019] Preferably, after the unique code number of the leather is formed, an image of the leather is captured by a camera device on a defect detector, including:

[0020] Acquire first position information of a camera device on the defect detector and second position information of a leather display stand, and determine relative position information between the first position information and the second position information;

[0021] Acquire the dynamic movement trajectory of the leather in the leather display stand, and determine the dynamic posture trajectory of the leather in the leather display stand based on the dynamic movement trajectory and the posture of the leather;

[0022] Sampling the dynamic posture trajectory according to a preset sampling frequency to obtain a plurality of collected coarse images;

[0023] Based on the overall features of the leather, multiple collected coarse images are matched to obtain multiple groups of coarse image groups that can cover the overall features of the leather;

[0024] Based on the relative position information, obtaining the camera capture information of the camera device when capturing the leather according to the rough image group, and obtaining the time-angle sequence feature composed of the shooting time and the shooting angle of the camera device from the camera capture information;

[0025] Based on the camera shooting characteristics of the camera device, the time-angle sequence characteristics corresponding to each group of coarse image groups are evaluated, and the optimal coarse image group is selected according to the evaluation results;

[0026] Determine the target shooting time and target shooting angle of the leather by the camera device according to the optimal rough image group, and capture the leather according to the target shooting time and target shooting angle to obtain a plurality of captured images;

[0027] Based on the overall appearance features of the leather, feature verification is performed on the multiple captured images to determine whether all the captured images contain the overall appearance features of the leather;

[0028] If so, it is determined that the captured image is qualified and can be used as a leather image for subsequent image processing;

[0029] Otherwise, the captured image is determined to be unqualified and an early warning reminder is issued.

[0030] Preferably, the image processing for the image collected in S2 is used for:

[0031] The collected images are sequentially subjected to image quality processing and image transformation processing;

[0032] Among them, the image quality processing is to detect the skewness, clarity and distortion of the collected images respectively;

[0033] The skewness detection is to detect the edge information in the collected image by using the edge detection method, and calculate the skewness of the collected image according to the detected edge information;

[0034] The collected image skewness and the standard image skewness are numerically adjusted, wherein the numerical adjustment is that if the collected image skewness value is inconsistent with the standard image skewness value, the collected image skewness value is adjusted to be consistent with the standard image skewness value;

[0035] Then, the clarity of the acquired image after the skew adjustment is adjusted numerically;

[0036] Adjust the distortion value of the image whose clarity has been adjusted;

[0037] After the skewness, clarity and distortion are adjusted respectively, the first processed image data is obtained.

[0038] Preferably, the image processing for the collected image in S2 is also used for:

[0039] Performing image transformation processing on the first processed image data;

[0040] The first processed image data is converted from the wavelet domain to the frequency domain by wavelet decomposition, wherein the conversion from the wavelet domain to the frequency domain is performed by decomposing the first processed image data into a plurality of sub-bands;

[0041] Obtaining feature data of the first processed image data at different scales according to the sub-bands;

[0042] Performing coefficient processing on the first processed image data according to the feature data, wherein the coefficient processing is image enhancement processing;

[0043] After the coefficient processing is completed, the second processed image data is obtained, and the second processed image data is marked as the target leather image.

[0044] Preferably, the comparison detection between the target leather image and the standard leather image in S3 is used for:

[0045] Retrieving standard leather images from a database, wherein the standard leather images include a standard scratch-free image, a standard crack-free image, a standard indentation-free image, and a standard pollution-free image;

[0046] Perform image comparison detection on the target leather image and the standard scratch-free image;

[0047] Among them, the target leather image is subjected to scratch image recognition through edge detection method in image processing technology;

[0048] After the scratch image is identified, the scratch comparison is performed with the standard scratch-free image;

[0049] Identify whether there is a scratch area in the target leather image according to the comparison result;

[0050] If there is a scratch area, the length and position of the scratch area are marked, and the target leather image is marked as a first abnormal scratch image;

[0051] If there is no scratch area, the target leather image is marked as the first image without abnormal scratches.

[0052] Preferably, the comparison detection between the target leather image and the standard leather image in S3 is also used for:

[0053] The target leather image is subjected to crack recognition through morphology in image processing technology;

[0054] Among them, the target leather image is binarized by morphology;

[0055] After binarization processing, the crack image in the target leather image is obtained;

[0056] Compare the crack image with the standard crack-free image;

[0057] Judging whether there is a crack area in the target leather image according to the comparison result;

[0058] If there is a crack area, the shape and size of the crack area are marked, and the target leather image is marked as a first abnormal crack image;

[0059] If there is no crack area, the target leather image is marked as a first image without abnormal cracks;

[0060] The target leather image is subjected to indentation recognition through the gray-level co-occurrence matrix in image processing technology;

[0061] Among them, the texture features of leather in the target leather image are calculated by gray-level co-occurrence matrix;

[0062] After calculating the texture features, the indentation image is obtained;

[0063] Compare the indentation image with the standard non-indentation image;

[0064] Judging whether there is an indentation area in the target leather image according to the comparison result;

[0065] If there is an indentation area, the position and depth of the indentation area are marked, and the target leather image is marked as a first abnormal indentation image;

[0066] If there is no indentation area, the target leather image is marked as the first image without abnormal indentation.

[0067] Preferably, the comparison detection between the target leather image and the standard leather image in S3 is also used for:

[0068] The target leather image is subjected to pollution identification through color segmentation in image processing technology;

[0069] Among them, the target leather image is segmented by color through color segmentation;

[0070] After color segmentation, the contaminated image is obtained;

[0071] Contamination comparison between the contaminated image and the standard non-contaminated image;

[0072] Judging whether there is a contaminated area in the target leather image according to the comparison result;

[0073] If there is a contaminated area, the location and size of the contaminated area are marked, and the target leather image is marked as the first abnormal contaminated image;

[0074] If there is no contaminated area, the target leather image is marked as a first image without abnormal contamination;

[0075] The first non-abnormal contamination image, the first non-abnormal scratch image, the first non-abnormal crack image and the first non-abnormal indentation image are collectively referred to as qualified inspection images;

[0076] The first abnormal contamination image, the first abnormal scratch image, the first abnormal crack image and the first abnormal indentation image are collectively referred to as unqualified detection images;

[0077] Qualified detection images and unqualified detection images are collectively referred to as target monitoring data.

[0078] Preferably, judging the leather qualification rate of the target detection data in S4, and determining whether the leather is a qualified finished leather according to the judgment result, includes:

[0079] Determine whether there is unqualified test data based on the target test data;

[0080] If so, the leather needs to be tested for pass rate;

[0081] Otherwise, the leather is determined to be qualified finished leather;

[0082] When it is necessary to detect the qualified rate of leather, a first abnormal contamination image, a first abnormal scratch image, a first abnormal crack image and a first abnormal indentation image of the leather are obtained from the target detection data;

[0083] Based on the number of the first abnormal contamination image, the first abnormal scratch image, the first abnormal crack image and the first abnormal indentation image, a first qualified rate K1 of the leather is calculated according to the following formula;

[0084]

[0085] Wherein, n1 represents the number of first abnormal contamination images, α represents the contamination weight, which is (0, 1), n2 represents the number of first abnormal scratch images, β represents the scratch weight, which is (0, 1), n3 represents the number of first abnormal crack images, γ represents the scratch weight, which is (0, 1), n4 represents the number of first abnormal indentation images, δ represents the indentation weight, which is (0, 1), and n0 represents the total number of leather images;

[0086] Determining whether the first pass rate is greater than a first preset pass rate;

[0087] If so, further testing of the leather is required;

[0088] Otherwise, the leather is determined to be unqualified leather;

[0089] When further testing of the leather is required, the labeled data corresponding to the scratch test, crack test, indentation test and contamination test are obtained from the target test data, and the degree of scratch, crack, indentation and contamination is determined according to the labeled data;

[0090] Based on the degree of contamination, scratches, cracks and indentations, the second qualified rate K2 of the leather is calculated according to the following formula;

[0091]

[0092] Among them, A represents the pollution degree of leather, B represents the scratch degree of leather, C represents the crack degree of leather, D represents the indentation degree of leather, and G represents the comprehensive reference degree;

[0093] Determining whether the second qualified rate is greater than a second preset qualified rate;

[0094] If yes, the leather is confirmed to be qualified leather;

[0095] Otherwise, the leather is determined to be unqualified leather.

[0096] A leather defect intelligent detection system, comprising:

[0097] Defect detection and judgment module, used for:

[0098] Confirm the qualified images and unqualified images in the target monitoring data respectively;

[0099] Convert the number of qualified images into percentage;

[0100] Convert the data of unqualified images into percentages;

[0101] Among them, the percentage conversion is calculated based on the total number of photos captured by the leather;

[0102] The two sets of percentage converted data are obtained separately;

[0103] The judgment result differentiation module is used to:

[0104] Importing the number percentage of qualified images and the number percentage of unqualified images into factory leather rules, wherein the factory leather rules are extracted from a database;

[0105] According to the percentage range value corresponding to the qualified rate in the factory leather rules;

[0106] If the number percentage of qualified images is higher than the qualified rate in the factory leather rules, and the number percentage of unqualified images is lower than the qualified rate in the factory leather rules, the leather corresponding to the test image is qualified leather;

[0107] If the number percentage of qualified images is lower than the qualified rate in the factory leather rules, and the number percentage of unqualified images is higher than the qualified rate in the factory leather rules, the leather corresponding to the test image is unqualified leather.

[0108] Compared with the prior art, the present invention has the following beneficial effects:

[0109] 1. The defect detection method and intelligent leather defect detection system provided by the present invention detect the skewness, clarity and distortion of the collected leather images, which is helpful to eliminate blurred or unclear images and improve image quality, ensure the accuracy and reliability of the image, and improve the usability of the image in subsequent processing and analysis. Wavelet decomposition can ensure that there is no information loss and redundant information in the signal during the decomposition process, and has good reconstruction capability. Wavelet decomposition can decompose the image into multiple sub-bands, has multi-scale decomposition capability, and can simultaneously obtain image information in time and frequency.

[0110] 2. The defect detection method and intelligent leather defect detection system provided by the present invention can perform scratch detection, crack detection, indentation detection and pollution detection, so as to discover potential defects and problems of leather surface coating and take timely measures to repair and improve them, thereby improving the reliability and service life of leather products. By detecting the depth, shape and distribution of indentations, the thickness, hardness, elasticity and wear resistance of the leather can be determined, which helps to ensure the quality and consistency of leather products.

[0111] 3. The defect detection method and the intelligent leather defect detection system provided by the present invention perform ratio conversion according to the total number of photos captured of the leather, further improving the qualified and unqualified degree of the defect-detected leather. The qualified rate is judged by the judgment result differentiation module based on the percentage of qualified and unqualified detections. According to the qualified rate, it can be accurately judged whether the defect-detected leather can become leather that can be shipped out of the factory. BRIEF DESCRIPTION OF THE DRAWINGS

[0112] Figure 1 It is a schematic diagram of the overall method of the present invention;

[0113] Figure 2 It is a schematic diagram of the overall process of the present invention. DETAILED DESCRIPTION

[0114] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0115] In order to solve the problem in the prior art that the leather image is not further processed after being collected, resulting in poor image quality and inaccurate defect detection, please refer to Figure 1 and Figure 2 , the following technical solutions are provided in this embodiment:

[0116] A defect detection method comprises the following steps:

[0117] S1: When leather is to be inspected for defects, the leather is placed on a defect detector, and the defect detection device collects images of the leather;

[0118] Among them, uniquely coding the leather for defect detection can effectively improve the efficiency of defective leather query in the later stage;

[0119] S2: performing image processing on the collected leather image, and marking the processed image as the target leather image;

[0120] Among them, image processing of leather images can adapt to changes in images in different directions, better extract image features, help ensure the accuracy and reliability of images, and improve the usability of images in subsequent processing and analysis;

[0121] S3: performing a comparative test on the target leather image and the standard leather image, wherein the comparative test includes scratch test, crack test, indentation test and contamination test, and marking the test results as target test data;

[0122] Among them, performing scratch detection, crack detection, indentation detection and contamination detection helps ensure the quality and consistency of leather products;

[0123] S4: determining the leather qualification rate of the target detection data, and determining whether the leather is qualified finished leather according to the determination result;

[0124] Among them, the qualified rate can accurately determine whether the defective leather can become leather that can be shipped out of the factory.

[0125] For the image acquisition of leather on the defect detector in S1, it is used for:

[0126] When the leather is placed on the defect detector, each leather is uniquely coded and numbered, wherein the unique code number includes the model of the leather, the detection time and a set of random numbers;

[0127] After the unique code number of the leather is formed, the image of the leather is captured by a camera device on the defect detector;

[0128] The captured image is matched to the unique coded number of the leather.

[0129] Specifically, uniquely coding and labeling the leather that undergoes defect detection can effectively improve the efficiency of subsequent queries on defective leather. Among them, confirming the leather model can effectively ensure that different models of leather are subjected to different defect detections, confirming the detection time can effectively ensure that the leather is retrieved according to the detection time when defects occur in the leather, and confirming a set of random numbers can effectively ensure that each leather has an exclusive label, reducing the problem of search anomalies caused by repeated leather labels.

[0130] In one embodiment, after the unique code number of the leather is formed, an image of the leather is captured by a camera device on a defect detector, including:

[0131] Acquire first position information of a camera device on the defect detector and second position information of a leather display stand, and determine relative position information between the first position information and the second position information;

[0132] Acquire the dynamic movement trajectory of the leather in the leather display stand, and determine the dynamic posture trajectory of the leather in the leather display stand based on the dynamic movement trajectory and the posture of the leather;

[0133] Sampling the dynamic posture trajectory according to a preset sampling frequency to obtain a plurality of collected coarse images;

[0134] Based on the overall features of the leather, multiple collected coarse images are matched to obtain multiple groups of coarse image groups that can cover the overall features of the leather;

[0135] Based on the relative position information, obtaining the camera capture information of the camera device when capturing the leather according to the rough image group, and obtaining the time-angle sequence feature composed of the shooting time and the shooting angle of the camera device from the camera capture information;

[0136] Based on the camera shooting characteristics of the camera device, the time-angle sequence characteristics corresponding to each group of coarse image groups are evaluated, and the optimal coarse image group is selected according to the evaluation results;

[0137] Determine the target shooting time and target shooting angle of the leather by the camera device according to the optimal rough image group, and capture the leather according to the target shooting time and target shooting angle to obtain a plurality of captured images;

[0138] Based on the overall appearance features of the leather, feature verification is performed on the multiple captured images to determine whether all the captured images contain the overall appearance features of the leather;

[0139] If so, it is determined that the captured image is qualified and can be used as a leather image for subsequent image processing;

[0140] Otherwise, the captured image is determined to be unqualified and an early warning reminder is issued.

[0141] In this embodiment, the leather display stand can move parallely and rotatably, so as to obtain comprehensive data characteristics of the leather.

[0142] In this embodiment, the dynamic movement trajectory is the moving position feature of the leather, and the dynamic posture trajectory is the posture feature of the leather during the movement process.

[0143] In this embodiment, the coarse image is a coarse shot of the leather and is only used to identify overall features of the leather.

[0144] In this embodiment, there are multiple groups of rough images covering the overall features of the leather.

[0145] In this embodiment, the time-angle sequence feature is a sequence consisting of the time and shooting angles of multiple shots taken by the shooting device during the leather process.

[0146] The beneficial effect of the above design scheme is: based on the position information of the camera device on the defect detector and the position information of the leather display stand, the overall features of the leather are used as the judgment basis, and the camera shooting characteristics of the camera device are used as the optimization basis to select a reasonable way to capture the leather image, ensure the comprehensiveness of the features of the leather image, and provide a high-quality image foundation for further processing and defect detection of the leather image.

[0147] Image processing for images acquired in S2, for:

[0148] The collected images are sequentially subjected to image quality processing and image transformation processing;

[0149] Among them, the image quality processing is to detect the skewness, clarity and distortion of the collected images respectively;

[0150] The skewness detection is to detect the edge information in the collected image by using the edge detection method, and calculate the skewness of the collected image according to the detected edge information;

[0151] The collected image skewness and the standard image skewness are numerically adjusted, wherein the numerical adjustment is that if the collected image skewness value is inconsistent with the standard image skewness value, the collected image skewness value is adjusted to be consistent with the standard image skewness value;

[0152] Then, the clarity of the acquired image after the skew adjustment is adjusted numerically;

[0153] Adjust the distortion value of the image whose clarity has been adjusted;

[0154] After the skewness, clarity and distortion are adjusted respectively, the first processed image data is obtained.

[0155] Specifically, detecting the skewness of the collected leather image can ensure that the image is more accurate and reliable after the skew is corrected, detecting the clarity of the collected image can help eliminate blurry or unclear images and improve image quality, and detecting the distortion of the image can adjust the distortion of the image, reduce or eliminate the distortion of the image, help ensure the accuracy and reliability of the image, and improve the usability of the image in subsequent processing and analysis.

[0156] Image processing for images collected in S2 is also used for:

[0157] Performing image transformation processing on the first processed image data;

[0158] The first processed image data is converted from the wavelet domain to the frequency domain by wavelet decomposition, wherein the conversion from the wavelet domain to the frequency domain is performed by decomposing the first processed image data into a plurality of sub-bands;

[0159] Obtaining feature data of the first processed image data at different scales according to the sub-bands;

[0160] Performing coefficient processing on the first processed image data according to the feature data, wherein the coefficient processing is image enhancement processing;

[0161] After the coefficient processing is completed, the second processed image data is obtained, and the second processed image data is marked as the target leather image.

[0162] Specifically, performing wavelet decomposition on the image after skewness, clarity and distortion detection can ensure that there is no information loss and redundant information in the signal during the decomposition process, and has good reconstruction ability. Wavelet decomposition can decompose the image into multiple sub-bands, has the ability of multi-scale decomposition, and can simultaneously obtain the image information in time and frequency. Wavelet transform is directional and can adapt to the changes of the image in different directions, better extract the characteristics of the image, and at the same time, can effectively remove the noise in the image, which has a good effect on image denoising.

[0163] In order to solve the problem that in the prior art, when leather is inspected for defects, a more comprehensive and in-depth inspection is not carried out, which leads to incomplete inspection of leather defects, please refer to Figure 1 and Figure 2 , the following technical solutions are provided in this embodiment:

[0164] The comparison detection between the target leather image and the standard leather image in S3 is used for:

[0165] Retrieving standard leather images from a database, wherein the standard leather images include a standard scratch-free image, a standard crack-free image, a standard indentation-free image, and a standard pollution-free image;

[0166] Perform image comparison detection on the target leather image and the standard scratch-free image;

[0167] Among them, the target leather image is subjected to scratch image recognition through edge detection method in image processing technology;

[0168] After the scratch image is identified, the scratch comparison is performed with the standard scratch-free image;

[0169] Identify whether there is a scratch area in the target leather image according to the comparison result;

[0170] If there is a scratch area, the length and position of the scratch area are marked, and the target leather image is marked as a first abnormal scratch image;

[0171] If there is no scratch area, the target leather image is marked as the first image without abnormal scratches.

[0172] The target leather image is subjected to crack recognition through morphology in image processing technology;

[0173] Among them, the target leather image is binarized by morphology;

[0174] After binarization processing, the crack image in the target leather image is obtained;

[0175] Compare the crack image with the standard crack-free image;

[0176] Judging whether there is a crack area in the target leather image according to the comparison result;

[0177] If there is a crack area, the shape and size of the crack area are marked, and the target leather image is marked as a first abnormal crack image;

[0178] If there is no crack area, the target leather image is marked as a first image without abnormal cracks;

[0179] The target leather image is subjected to indentation recognition through the gray-level co-occurrence matrix in image processing technology;

[0180] Among them, the texture features of leather in the target leather image are calculated by gray-level co-occurrence matrix;

[0181] After calculating the texture features, the indentation image is obtained;

[0182] Compare the indentation image with the standard non-indentation image;

[0183] Judging whether there is an indentation area in the target leather image according to the comparison result;

[0184] If there is an indentation area, the position and depth of the indentation area are marked, and the target leather image is marked as a first abnormal indentation image;

[0185] If there is no indentation area, the target leather image is marked as the first image without abnormal indentation.

[0186] The target leather image is subjected to pollution identification through color segmentation in image processing technology;

[0187] Among them, the target leather image is segmented by color through color segmentation;

[0188] After color segmentation, the contaminated image is obtained;

[0189] Contamination comparison between the contaminated image and the standard non-contaminated image;

[0190] Judging whether there is a contaminated area in the target leather image according to the comparison result;

[0191] If there is a contaminated area, the location and size of the contaminated area are marked, and the target leather image is marked as the first abnormal contaminated image;

[0192] If there is no contaminated area, the target leather image is marked as a first image without abnormal contamination;

[0193] The first non-abnormal contamination image, the first non-abnormal scratch image, the first non-abnormal crack image and the first non-abnormal indentation image are collectively referred to as qualified inspection images;

[0194] The first abnormal contamination image, the first abnormal scratch image, the first abnormal crack image and the first abnormal indentation image are collectively referred to as unqualified detection images;

[0195] Qualified detection images and unqualified detection images are collectively referred to as target monitoring data.

[0196] Specifically, the target leather image is first subjected to scratch detection through edge detection. Edge detection can highlight local changes in the image, thereby providing scratch information of the image, effectively enhancing the edges in the image and making the edges more obvious, thereby improving the clarity and visual effect of the image. Scratch detection of leather can maintain the integrity and beauty of the leather surface. Scratches may cause bacteria to grow and damage the leather. Timely detection and repair of scratches can avoid bacterial growth and protect the leather from damage. The target leather image is subjected to indentation detection. Indentation detection can evaluate the quality of the leather. By detecting the depth, shape and distribution of the indentation, the thickness, hardness, elasticity and wear resistance of the leather can be determined, which helps to ensure the quality and consistency of leather products. Indentation detection can optimize the leather processing process. During the leather processing process, indentation is caused by factors such as pressure and temperature. By detecting and analyzing the indentation, processing parameters such as pressure, temperature and time can be adjusted to optimize the leather processing process and improve product quality. Crack detection of the target leather image can accurately measure and evaluate the crack conditions on the leather surface, avoiding the influence of human factors on the test results. A large number of leather samples can be quickly tested, improving the test efficiency and saving time and manpower. Crack detection can detect potential defects and problems in the leather surface coating, and timely measures can be taken to repair and improve them, thereby improving the reliability and service life of leather products. Contamination detection of the target leather image can more quickly detect whether there is uneven dyeing or foreign matter adhesion on the leather surface, further improving the production quality of leather.

[0197] In one embodiment, the target detection data is subjected to leather qualification rate determination in S4, and whether the leather is qualified finished leather is determined according to the determination result, including:

[0198] Determine whether there is unqualified test data based on the target test data;

[0199] If so, the leather needs to be tested for pass rate;

[0200] Otherwise, the leather is determined to be qualified finished leather;

[0201] When it is necessary to detect the qualified rate of leather, a first abnormal contamination image, a first abnormal scratch image, a first abnormal crack image and a first abnormal indentation image of the leather are obtained from the target detection data;

[0202] Based on the number of the first abnormal contamination image, the first abnormal scratch image, the first abnormal crack image and the first abnormal indentation image, a first qualified rate K1 of the leather is calculated according to the following formula;

[0203]

[0204] Wherein, n1 represents the number of first abnormal contamination images, α represents the contamination weight, which is (0, 1), n2 represents the number of first abnormal scratch images, β represents the scratch weight, which is (0, 1), n3 represents the number of first abnormal crack images, γ represents the crack weight, which is (0, 1), n4 represents the number of first abnormal indentation images, δ represents the indentation weight, which is (0, 1), and n0 represents the total number of leather images;

[0205] Determining whether the first pass rate is greater than a first preset pass rate;

[0206] If so, further testing of the leather is required;

[0207] Otherwise, the leather is determined to be unqualified leather;

[0208] When further testing of the leather is required, the labeled data corresponding to the scratch test, crack test, indentation test and contamination test are obtained from the target test data, and the degree of scratch, crack, indentation and contamination is determined according to the labeled data;

[0209] Based on the degree of contamination, scratches, cracks and indentations, the second qualified rate K2 of the leather is calculated according to the following formula;

[0210]

[0211] Among them, A represents the pollution degree of leather, B represents the scratch degree of leather, C represents the crack degree of leather, D represents the indentation degree of leather, and G represents the comprehensive reference degree;

[0212] Determining whether the second qualified rate is greater than a second preset qualified rate;

[0213] If yes, the leather is confirmed to be qualified leather;

[0214] Otherwise, the leather is determined to be unqualified leather.

[0215] In this embodiment, the degree of scratches, cracks, indentations and contamination is comprehensively determined based on size, depth, area, etc., and takes a value of (0, 1).

[0216] In this embodiment, the first preset pass rate is used for the initial judgment of the leather, and the second preset pass rate is used for the precise judgment of the match.

[0217] In this embodiment, the contamination weight, scratch weight, crack weight and indentation weight are preset according to the specific inspection of leather.

[0218] The beneficial effect of the above design scheme is: by conducting preliminary qualification inspection on the leather according to the number of bathing images, and further accurately conducting qualification inspection on the leather according to the labeled data, the accuracy of the final determination of the leather qualification rate is guaranteed, providing a basis for high-quality production of leather.

[0219] In order to solve the problem in the prior art that after the leather defects are determined, the qualified rate of the leather is not accurately judged according to the number of defects, thus causing capital loss to the enterprise, please refer to Figure 1 and Figure 2 , the following technical solutions are provided in this embodiment:

[0220] A leather defect intelligent detection system, comprising:

[0221] Defect detection and judgment module, used for:

[0222] Confirm the qualified images and unqualified images in the target monitoring data respectively;

[0223] Convert the number of qualified images into percentage;

[0224] Convert the data of unqualified images into percentages;

[0225] Among them, the percentage conversion is calculated based on the total number of photos captured by the leather;

[0226] The two sets of percentage converted data are obtained separately;

[0227] The judgment result differentiation module is used to:

[0228] Importing the number percentage of qualified images and the number percentage of unqualified images into factory leather rules, wherein the factory leather rules are extracted from a database;

[0229] According to the percentage range value corresponding to the qualified rate in the factory leather rules;

[0230] If the number percentage of qualified images is higher than the qualified rate in the factory leather rules, and the number percentage of unqualified images is lower than the qualified rate in the factory leather rules, the leather corresponding to the test image is qualified leather;

[0231] If the number percentage of qualified images is lower than the qualified rate in the factory leather rules, and the number percentage of unqualified images is higher than the qualified rate in the factory leather rules, the leather corresponding to the test image is unqualified leather.

[0232] Specifically, the defect detection judgment module converts the qualified and unqualified tests into percentages respectively. At the same time, the percentage conversion is performed based on the total number of photos captured of the leather, which further improves the qualified and unqualified degrees of the defective leather. The judgment result differentiation module judges the qualified and unqualified percentages respectively. According to the qualified rate, it can be accurately judged whether the defective leather can be shipped out of the factory. Among them, the degree and quantity of leather defects cannot be a rigid standard for shipment. When the qualified rate of the leather is higher than the standard and the unqualified rate is lower than the standard, the leather can also be shipped out of the factory.

[0233] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0234] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A defect detection method, It is characterized in that The steps include: S1: When leather is to be inspected for defects, the leather is placed on a defect detector, and the defect detection device collects images of the leather; S2: performing image processing on the collected leather image, and marking the processed image as the target leather image; S3: performing a comparative test on the target leather image and the standard leather image, wherein the comparative test includes scratch test, crack test, indentation test and contamination test, and marking the test results as target test data; S4: Determine the leather qualification rate of the target detection data, and determine whether the leather is qualified finished leather according to the determination result, including: Determine whether there is unqualified test data based on the target test data; If so, the leather needs to be tested for pass rate; Otherwise, the leather is determined to be qualified finished leather; When it is necessary to detect the qualified rate of leather, a first abnormal contamination image, a first abnormal scratch image, a first abnormal crack image and a first abnormal indentation image of the leather are obtained from the target detection data; Based on the number of the first abnormal contamination image, the first abnormal scratch image, the first abnormal crack image and the first abnormal indentation image, the first qualified rate K of the leather is calculated according to the following formula: 1 ; Among them, n 1 represents the number of the first abnormal contaminated images, α represents the contamination weight, which takes a value of (0, 1), and n 2 represents the number of the first abnormal scratch images, β represents the scratch weight, which takes the value of (0, 1), n 3 represents the number of the first abnormal crack images, γ represents the crack weight, which takes the value of (0, 1), n 4 represents the number of the first abnormal indentation images, δ represents the indentation weight, which takes values ​​of (0, 1), n 0 Represents the total number of images of leather; Determining whether the first pass rate is greater than a first preset pass rate; If so, further testing of the leather is required; Otherwise, the leather is determined to be unqualified leather; When further testing of the leather is required, the labeled data corresponding to the scratch test, crack test, indentation test and contamination test are obtained from the target test data, and the scratch degree, crack degree, indentation degree and contamination degree are determined according to the labeled data; Based on the degree of contamination, scratches, cracks and indentations, the second qualified rate K of the leather is calculated according to the following formula: 2 ; Among them, A represents the pollution degree of leather, B represents the scratch degree of leather, C represents the crack degree of leather, D represents the indentation degree of leather, and G represents the comprehensive reference degree; Determining whether the second qualified rate is greater than a second preset qualified rate; If yes, determine that the leather is qualified leather; Otherwise, the leather is determined to be unqualified leather.

2. A defect detection method according to claim 1, Features: For the image acquisition of leather on the defect detector in S1, it is used for: When the leather is placed on the defect detector, each leather is uniquely coded and numbered, wherein the unique code number includes the model of the leather, the detection time and a set of random numbers; After the unique code number of the leather is formed, the image of the leather is captured by a camera device on the defect detector; The captured image is matched to the unique coded number of the leather.

3. A defect detection method according to claim 2, Features: After the unique code number of the leather is formed, an image of the leather is captured by a camera device on the defect detector, including: Acquire first position information of a camera device on the defect detector and second position information of a leather display stand, and determine relative position information between the first position information and the second position information; Acquire the dynamic movement trajectory of the leather in the leather display stand, and determine the dynamic posture trajectory of the leather in the leather display stand based on the dynamic movement trajectory and the posture of the leather; Sampling the dynamic posture trajectory according to a preset sampling frequency to obtain a plurality of collected coarse images; Based on the overall features of the leather, multiple collected coarse images are matched to obtain multiple groups of coarse image groups that can cover the overall features of the leather; Based on the relative position information, obtaining the camera capture information of the camera device when capturing the leather according to the rough image group, and obtaining the time-angle sequence feature composed of the shooting time and the shooting angle of the camera device from the camera capture information; Based on the camera shooting characteristics of the camera device, the time-angle sequence characteristics corresponding to each group of coarse image groups are evaluated, and the optimal coarse image group is selected according to the evaluation results; Determine the target shooting time and target shooting angle of the leather by the camera device according to the optimal rough image group, and capture the leather according to the target shooting time and target shooting angle to obtain a plurality of captured images; Based on the overall appearance features of the leather, feature verification is performed on the multiple captured images to determine whether all the captured images contain the overall appearance features of the leather; If so, it is determined that the captured image is qualified and can be used as a leather image for subsequent image processing; Otherwise, the captured image is determined to be unqualified and an early warning reminder is issued.

4. A defect detection method according to claim 2, Features: Image processing for images acquired in S2, for: The collected images are sequentially subjected to image quality processing and image transformation processing; Among them, the image quality processing is to detect the skewness, clarity and distortion of the collected images respectively; The skewness detection is to detect the edge information in the collected image by using the edge detection method, and calculate the skewness of the collected image according to the detected edge information; The collected image skewness and the standard image skewness are numerically adjusted, wherein the numerical adjustment is that if the collected image skewness value is inconsistent with the standard image skewness value, the collected image skewness value is adjusted to be consistent with the standard image skewness value; Then, the clarity of the acquired image after the skew adjustment is adjusted numerically; Adjust the distortion value of the image whose clarity has been adjusted; After the skewness, clarity and distortion are adjusted respectively, the first processed image data is obtained.

5. A defect detection method according to claim 4, Features: Image processing for images collected in S2 is also used for: Performing image transformation processing on the first processed image data; The first processed image data is converted from the wavelet domain to the frequency domain by wavelet decomposition, wherein the conversion from the wavelet domain to the frequency domain is performed by decomposing the first processed image data into a plurality of sub-bands; Obtaining feature data of the first processed image data at different scales according to the sub-bands; Performing coefficient processing on the first processed image data according to the feature data, wherein the coefficient processing is image enhancement processing; After the coefficient processing is completed, the second processed image data is obtained, and the second processed image data is marked as the target leather image.

6. A defect detection method according to claim 5, Features: The comparison detection between the target leather image and the standard leather image in S3 is used for: Retrieving standard leather images from a database, wherein the standard leather images include a standard scratch-free image, a standard crack-free image, a standard indentation-free image, and a standard pollution-free image; Perform image comparison detection on the target leather image and the standard scratch-free image; Among them, the target leather image is subjected to scratch image recognition through edge detection method in image processing technology; After the scratch image is identified, the scratch comparison is performed with the standard scratch-free image; Identify whether there is a scratch area in the target leather image according to the comparison result; If there is a scratch area, the length and position of the scratch area are marked, and the target leather image is marked as a first abnormal scratch image; If there is no scratch area, the target leather image is marked as the first image without abnormal scratches.

7. A defect detection method according to claim 6, Features: The comparison detection between the target leather image and the standard leather image in S3 is also used for: The target leather image is subjected to crack recognition through morphology in image processing technology; Among them, the target leather image is binarized by morphology; After binarization processing, the crack image in the target leather image is obtained; Compare the crack image with the standard crack-free image; Judging whether there is a crack area in the target leather image according to the comparison result; If there is a crack area, the shape and size of the crack area are marked, and the target leather image is marked as a first abnormal crack image; If there is no crack area, the target leather image is marked as a first image without abnormal cracks; The target leather image is subjected to indentation recognition through the gray-level co-occurrence matrix in image processing technology; Among them, the texture features of leather in the target leather image are calculated by gray-level co-occurrence matrix; After calculating the texture features, the indentation image is obtained; Compare the indentation image with the standard non-indentation image; Judging whether there is an indentation area in the target leather image according to the comparison result; If there is an indentation area, the position and depth of the indentation area are marked, and the target leather image is marked as a first abnormal indentation image; If there is no indentation area, the target leather image is marked as the first image without abnormal indentation.

8. A defect detection method according to claim 6, Features: The comparison detection between the target leather image and the standard leather image in S3 is also used for: The target leather image is subjected to pollution identification through color segmentation in image processing technology; Among them, the target leather image is segmented by color through color segmentation; After color segmentation, the contaminated image is obtained; Contamination comparison between the contaminated image and the standard non-contaminated image; Judging whether there is a contaminated area in the target leather image according to the comparison result; If there is a contaminated area, the location and size of the contaminated area are marked, and the target leather image is marked as the first abnormal contaminated image; If there is no contaminated area, the target leather image is marked as a first image without abnormal contamination; The first non-abnormal contamination image, the first non-abnormal scratch image, the first non-abnormal crack image and the first non-abnormal indentation image are collectively referred to as qualified inspection images; The first abnormal contamination image, the first abnormal scratch image, the first abnormal crack image and the first abnormal indentation image are collectively referred to as unqualified detection images; Qualified detection images and unqualified detection images are collectively referred to as target monitoring data.

9. A leather defect intelligent detection system, applied in the defect detection method according to any one of claims 1 to 8, It is characterized in that include: Defect detection and judgment module, used for: Confirm the qualified images and unqualified images in the target monitoring data respectively; Convert the number of qualified images into percentage; Convert the data of unqualified images into percentages; Among them, the percentage conversion is calculated based on the total number of photos captured by the leather; The two sets of percentage converted data are obtained separately; The judgment result differentiation module is used to: Importing the number percentage of qualified images and the number percentage of unqualified images into factory leather rules, wherein the factory leather rules are extracted from a database; According to the percentage range value corresponding to the qualified rate in the factory leather rules; If the number percentage of qualified images is higher than the qualified rate in the factory leather rules, and the number percentage of unqualified images is lower than the qualified rate in the factory leather rules, the leather corresponding to the test image is qualified leather; If the number percentage of qualified images is lower than the qualified rate in the factory leather rules, and the number percentage of unqualified images is higher than the qualified rate in the factory leather rules, the leather corresponding to the test image is unqualified leather.

Citation Information

Patent Citations

  • Leather defect detection method, system and device

    CN115170547A

  • Car washer safety monitoring system and method based on car scene AI intelligent identification

    CN116935308A

  • High-reflection leather surface defect detection method based on double-mask guidance

    CN117078608A