A fiber impurity detection method based on machine vision

Through the two-stage detection method of machine vision combined with quaternion wavelet transform and deep learning framework, the reliability and accuracy problems of manual detection in textile fiber impurity detection are solved, efficient and accurate impurity identification and detection are achieved, and errors are reduced. Detection and missed detection rates.

CN118154617BActive Publication Date: 2024-08-30HEZE TEXTILE FIBER INSPECTION INST
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410589951.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-13
Publication Date
2024-08-30
Estimated Expiration
2044-05-13

AI Technical Summary

Technical Problem

Existing textile fiber impurity detection methods rely on manual detection, resulting in low reliability and consistency of results, which cannot meet the production requirements of high efficiency and high output. In addition, ordinary denoising methods can easily blur image details or cause block artifacts, affecting detection. Accuracy. Traditional methods based on artificially designed rules or feature designs cannot fully cover impurities, resulting in high false detection or missed detection rates.

Method used

A fiber impurity detection method based on machine vision is used, combined with quaternion wavelet transform, improved generalized cross-validation function and diffusion coefficient function for image denoising. A segmentation network and a decision-making network are designed for two-stage detection. The segmentation network performs pixel-level semantic segmentation. , the decision-making network combines global information for analysis, adaptively generates optimal threshold parameters, and extracts different direction and scale feature information of fiber images.

Benefits of technology

Real-time monitoring of product surface impurities is achieved, reducing labor costs, improving product quality and production efficiency, retaining fiber image details and edge information, improving the accuracy and precision of impurity detection, and reducing false detection and missed detection rates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118154617B
    Figure CN118154617B
Patent Text Reader

Abstract

The present invention belongs to the field of machine vision, and specifically discloses a fiber impurity detection method based on machine vision, the method comprising: obtaining a fiber high-definition image, denoising the fiber high-definition image, and detecting fiber impurities. The present invention uses machine vision to detect impurities, which can reduce labor costs, improve product quality and production efficiency; adopts a partial differential equation image denoising method based on a diffusion function, combined with quaternion wavelet transform, improved generalized cross-validation function and new diffusion coefficient function, which can adaptively generate the optimal threshold parameter and remove noise in the soft threshold function; adopts a segmentation-based deep learning framework, designs a segmentation network and a decision network for two-stage detection, improves the network's ability to capture small details, and achieves more accurate impurity detection and identification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of machine vision, and in particular to a fiber impurity detection method based on machine vision. Background Art

[0002] Textile fiber impurity detection is a very important link in textile production, which can help manufacturers reduce defective rates and costs and improve product competitiveness. Manual detection of textile fiber impurities is easily affected by the subjective consciousness of personnel, resulting in low reliability and consistency of detection results, which cannot meet the production requirements of high efficiency and high output; existing common denoising methods are prone to blurring image details, or causing block artifacts in the image, and there are sharp edges in the fiber image. Common denoising methods are not effective, affecting the accuracy of subsequent impurity detection; traditional impurity detection methods are usually based on manually designed rules, thresholds or specific feature designs for detection, which may not be able to fully cover all situations of impurities, reducing the accuracy of detection, resulting in high false detection rate or high missed detection rate. Summary of the invention

[0003] In view of the above situation, in order to overcome the defects of the prior art, the present invention provides a fiber impurity detection method based on machine vision. In view of the technical problem that the manual detection of textile fiber impurities in traditional technology is easily affected by the subjective consciousness of personnel, resulting in low reliability and consistency of detection results, and unable to meet the production requirements of high efficiency and high output, the present invention uses machine vision to detect impurities, which can help monitor the product surface in real time, identify and eliminate impurities, reduce labor costs, and improve product quality and production efficiency; in view of the technical problem that the existing common denoising methods are easy to blur the details of the picture, or cause block artifacts to appear in the picture, there are sharp edges in the fiber image, the common denoising methods are not effective, and the accuracy of subsequent impurity detection is affected, the present invention adopts a partial differential equation image denoising method based on diffusion function, combines quaternion wavelet transform, improved generalized cross validation function and new diffusion coefficient The number function can adaptively generate the optimal threshold parameter, remove noise in the soft threshold function, extract the feature information of different directions and scales in the fiber image, and retain the effective pixels; the traditional impurity detection method is usually based on artificially designed rules, thresholds or specific feature designs for detection, which may not be able to completely cover all situations of impurities, resulting in reduced detection accuracy, high false detection rate or high missed detection rate. The technical problem, the present invention adopts a segmentation-based deep learning framework, designs a segmentation network and a decision network for two-stage detection, the segmentation network performs pixel-level semantic segmentation on the fiber image, realizes a detailed analysis and understanding of the fiber image, and more accurately captures the subtle features in the image, the decision network combines the global information of the fiber image, further analyzes and integrates the segmentation results, improves the network's ability to capture small details, and realizes more accurate impurity detection and identification.

[0004] The technical solution adopted by the present invention is as follows: The present invention provides a fiber impurity detection method based on machine vision, which specifically comprises the following steps:

[0005] Step S1: Obtaining a high-definition image of the fiber, fixing a high-definition camera above a textile machine, and using the high-definition camera to capture a high-definition image of the textile fiber in real time;

[0006] Step S2: De-noising the fiber HD image, using quaternion wavelet transform to generate noise image coefficients, using a cross-validation function to generate an optimal threshold through a soft threshold function, defining a new diffusion function to retain the details and edge information in the fiber HD image, and obtaining a denoised image;

[0007] Step S3: Detect fiber impurities, establish a segmentation network and a decision network, the segmentation network locates the fiber impurities pixel by pixel, and the decision network performs binary image classification.

[0008] Furthermore, step S2, denoising the fiber high-definition image, specifically comprises the following steps:

[0009] Step S21: collecting a noise-free fiber image, applying Poisson noise to the noise-free fiber image using a Poisson probability distribution function, and generating a noise image;

[0010] Step S22: performing quaternion wavelet transform on the noise image, where the quaternion contains an amplitude and three angles, and the noise image is decomposed into low-pass wavelet coefficients and high-pass wavelet coefficients using the quaternion;

[0011] Step S23: reconstruct the low-pass wavelet coefficients and the high-pass wavelet coefficients, and use the low-pass wavelet coefficients and the high-pass wavelet coefficients to create a matrix, each column in the matrix is ​​a quaternion, and the low-pass wavelet coefficients and the high-pass wavelet coefficients of each quaternion are described by the magnitude and phase of the quaternion, and the amplitude matrix and the phase matrix of the quaternion coefficients are calculated;

[0012] Step S24: The high-pass wavelet coefficients are the same as the noise image coefficients. The variance of each sub-band level noise and the standard deviation of each sub-band level signal are calculated. The formula used is as follows:

[0013] ;

[0014] ;

[0015] In the formula, is the variance of the noise at each subband level, is the median of the high-pass wavelet coefficients, is the scaling factor, is the phase matrix of the high-pass wavelet coefficients, is the standard deviation of the signal at each subband level, represents the filter, , hour, is a low-pass filter, hour, is a high-pass filter, and are the number of rows and columns of the phase matrix, is the first Line The value of the column;

[0016] Step S25: Calculate the adaptive Bayesian threshold of each sub-band level. The adaptive Bayesian threshold of each sub-band level is the ratio of the variance of the noise of each sub-band level to the standard deviation of the signal of each sub-band level. The high-pass wavelet coefficient uses a soft threshold function to set the threshold. The formula used is as follows:

[0017] ;

[0018] In the formula, is the high-pass threshold coefficient of each sub-band level, is the adaptive Bayesian threshold at each subband level;

[0019] Step S26: define generalized cross validation to calculate the optimal threshold, the formula used is as follows:

[0020] ;

[0021] In the formula, is the optimal threshold, is the image size, is the number of high-pass threshold coefficients of each sub-band level that are 0;

[0022] Step S27: performing inverse quaternion wavelet transform using the amplitude and three angles to obtain a reconstructed image;

[0023] Step S28: designing a diffusion function, inputting the reconstructed image into the diffusion function, and generating a denoised image;

[0024] Furthermore, step S28 specifically includes the following steps:

[0025] Step S281: locate the edge in the reconstructed image, and use the Laplace operator for iterative optimization to calculate the gradient amplitude after iteration. The formula used is as follows:

[0026] ;

[0027] In the formula, yes The gradient magnitude after iterations is is the default size of the grid, and It's a pixel. is the pixel size after n iterations;

[0028] Step S282: define the pixel adaptive threshold function, the formula used is as follows:

[0029] ;

[0030] In the formula, It's a pixel The adaptive threshold function, is the grayscale variance of n iterations;

[0031] Step S283: Normalize the reconstructed image and design a diffusion function:

[0032] ;

[0033] In the formula, is the diffusion function, is the regularization parameter, is the normalized variance of the reconstructed image, It's a pixel Adaptive threshold function of ;

[0034] Step S284: input the reconstructed image into the diffusion function to generate a denoised image.

[0035] Furthermore, step S3, detecting fiber impurities, specifically comprises the following steps:

[0036] Step S31: Establish and initialize a segmentation network, which consists of 11 convolutional layers and 3 maximum pooling layers. The kernel size of the first nine convolutional layers is 9×9, and the kernel sizes of the last two convolutional layers are 15×15 and 1×1 respectively. Each convolutional layer is followed by a feature normalization layer and a nonlinear ReLU layer, and channels are allocated to each layer.

[0037] Step S32: Establish and initialize a decision network, which maps and connects the output of the last convolutional layer of the segmentation network with the single-channel segmentation output, including 3 maximum pooling layers and 3 convolutional layers, the kernel size of the convolutional layer is 5×5, and the decision network performs global maximum pooling and average pooling to generate intermediate neurons, which are combined with linear weights to obtain the final output neurons;

[0038] Step S33: collecting a textile fiber impurity image set, inputting the textile fiber impurity image set into a segmentation network, and independently training the segmentation network using regression with mean square error loss;

[0039] Step S34: After the segmentation network training is completed, the weights of the segmentation network are frozen, and the decision network is trained using the cross entropy loss function;

[0040] Step S35: The denoised image is input into the segmentation network, the segmentation network outputs a segmentation mask, the segmentation mask is transmitted to the decision network, and the decision network outputs an impurity detection result.

[0041] The beneficial effects achieved by the present invention using the above scheme are as follows:

[0042] (1) The present invention uses machine vision to detect impurities, which can help monitor the product surface in real time, identify and remove impurities, reduce labor costs, and improve product quality and production efficiency;

[0043] (2) The present invention adopts a partial differential equation image denoising method based on diffusion function, combined with quaternion wavelet transform, improved generalized cross-validation function and new diffusion coefficient function, which can adaptively generate the optimal threshold parameter, remove noise in the soft threshold function, extract feature information of different directions and scales in the fiber image, and retain valid pixels;

[0044] (3) The present invention adopts a segmentation-based deep learning framework and designs a segmentation network and a decision network for two-stage detection. The segmentation network performs pixel-level semantic segmentation on the fiber image to achieve detailed analysis and understanding of the fiber image and more accurately capture the subtle features in the image. The decision network combines the global information of the fiber image to further analyze and integrate the segmentation results, thereby improving the network's ability to capture small details and achieving more accurate impurity detection and identification. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 A flowchart of a fiber impurity detection method based on machine vision provided by the present invention;

[0046] Figure 2 This is a structural diagram of the segmentation network and decision network provided by the present invention.

[0047] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION

[0048] 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.

[0049] Example 1: See Figure 1 This embodiment provides a fiber impurity detection method based on machine vision, which specifically includes the following steps:

[0050] Step S1: Obtaining a high-definition image of the fiber, fixing a high-definition camera above a textile machine, and using the high-definition camera to capture a high-definition image of the textile fiber in real time;

[0051] Step S2: De-noising the fiber HD image, using quaternion wavelet transform to generate noise image coefficients, using a cross-validation function to generate an optimal threshold through a soft threshold function, defining a new diffusion function to retain the details and edge information in the fiber HD image, and obtaining a denoised image;

[0052] Step S3: Detect fiber impurities, establish a segmentation network and a decision network, the segmentation network locates the fiber impurities pixel by pixel, and the decision network performs binary image classification.

[0053] Through the above embodiments, in order to solve the technical problem that the manual detection of textile fiber impurities in traditional technology is easily affected by the subjective consciousness of personnel, resulting in low reliability and consistency of the detection results and unable to meet the production requirements of high efficiency and high output, the present invention uses machine vision for impurity detection, which can help monitor the product surface in real time, identify and eliminate impurities, reduce labor costs, and improve product quality and production efficiency.

[0054] Example 2: See Figure 1 This embodiment is based on the above embodiment. Step S2 is to denoise the fiber high-definition image. Specifically, the following steps are included:

[0055] Step S21: collecting a noise-free fiber image, applying Poisson noise to the noise-free fiber image using a Poisson probability distribution function, and generating a noise image;

[0056] Step S22: performing quaternion wavelet transform on the noise image, where the quaternion contains an amplitude and three angles, and the noise image is decomposed into low-pass wavelet coefficients and high-pass wavelet coefficients using the quaternion;

[0057] Step S23: reconstruct the low-pass wavelet coefficients and the high-pass wavelet coefficients, and use the low-pass wavelet coefficients and the high-pass wavelet coefficients to create a matrix, each column in the matrix is ​​a quaternion, and the low-pass wavelet coefficients and the high-pass wavelet coefficients of each quaternion are described by the magnitude and phase of the quaternion, and the amplitude matrix and the phase matrix of the quaternion coefficients are calculated;

[0058] Step S24: The high-pass wavelet coefficients are the same as the noise image coefficients. The variance of each sub-band level noise and the standard deviation of each sub-band level signal are calculated. The formula used is as follows:

[0059] ;

[0060] ;

[0061] In the formula, is the variance of the noise at each subband level, is the median of the high-pass wavelet coefficients, is the scaling factor, is the phase matrix of the high-pass wavelet coefficients, is the standard deviation of the signal at each subband level, represents the filter, , hour, is a low-pass filter, hour, is a high-pass filter, and are the number of rows and columns of the phase matrix, is the first Line The value of the column;

[0062] Step S25: Calculate the adaptive Bayesian threshold of each sub-band level. The adaptive Bayesian threshold of each sub-band level is the ratio of the variance of the noise of each sub-band level to the standard deviation of the signal of each sub-band level. The high-pass wavelet coefficient uses a soft threshold function to set the threshold. The formula used is as follows:

[0063] ;

[0064] In the formula, is the high-pass threshold coefficient of each sub-band level, is the adaptive Bayesian threshold at each subband level;

[0065] Step S26: define generalized cross validation to calculate the optimal threshold, the formula used is as follows:

[0066] ;

[0067] In the formula, is the optimal threshold, is the image size, is the number of high-pass threshold coefficients of each sub-band level that are 0;

[0068] Step S27: performing inverse quaternion wavelet transform using the amplitude and three angles to obtain a reconstructed image;

[0069] Step S28: Design a diffusion function, input the reconstructed image into the diffusion function, and generate a denoised image.

[0070] Example 3, see Figure 1This embodiment is based on the above embodiment, and step S28 specifically includes the following steps:

[0071] Step S281: locate the edge in the reconstructed image, and use the Laplace operator for iterative optimization to calculate the gradient amplitude after iteration. The formula used is as follows:

[0072] ;

[0073] In the formula, yes The gradient magnitude after iterations is is the default size of the grid, and It's a pixel. is the pixel size after n iterations;

[0074] Step S282: define the pixel adaptive threshold function, the formula used is as follows:

[0075] ;

[0076] In the formula, It's a pixel The adaptive threshold function, is the grayscale variance of n iterations;

[0077] Step S283: Normalize the reconstructed image and design a diffusion function:

[0078] ;

[0079] In the formula, is the diffusion function, is the regularization parameter, is the normalized variance of the reconstructed image, It's a pixel Adaptive threshold function of ;

[0080] Step S284: input the reconstructed image into the diffusion function to generate a denoised image.

[0081] Through the above embodiments, in order to solve the technical problems that the existing common denoising methods are easy to blur the details of the image, or cause block artifacts to appear in the image, there are sharp edges in the fiber image, the common denoising methods are not effective, and the accuracy of subsequent impurity detection is affected, the present invention adopts a partial differential equation image denoising method based on a diffusion function, combines quaternion wavelet transform, improved generalized cross validation function and new diffusion coefficient function, can adaptively generate the optimal threshold parameter, remove noise in the soft threshold function, extract feature information of different directions and scales in the fiber image, and retain valid pixels.

[0082] Example 4, see Figure 1 and Figure 2 This embodiment is based on the above embodiment, step S3, detecting fiber impurities, specifically includes the following steps:

[0083] Step S31: Establish and initialize a segmentation network, which consists of 11 convolutional layers and 3 maximum pooling layers. The kernel size of the first nine convolutional layers is 9×9, and the kernel sizes of the last two convolutional layers are 15×15 and 1×1 respectively. Each convolutional layer is followed by a feature normalization layer and a nonlinear ReLU layer, and channels are allocated to each layer.

[0084] Step S32: Establish and initialize a decision network, which maps and connects the output of the last convolutional layer of the segmentation network with the single-channel segmentation output, including 3 maximum pooling layers and 3 convolutional layers, the kernel size of the convolutional layer is 5×5, and the decision network performs global maximum pooling and average pooling to generate intermediate neurons, which are combined with linear weights to obtain the final output neurons;

[0085] Step S33: collecting a textile fiber impurity image set, inputting the textile fiber impurity image set into a segmentation network, and independently training the segmentation network using regression with mean square error loss;

[0086] Step S34: After the segmentation network training is completed, the weights of the segmentation network are frozen, and the decision network is trained using the cross entropy loss function;

[0087] Step S35: The denoised image is input into the segmentation network, the segmentation network outputs a segmentation mask, the segmentation mask is transmitted to the decision network, and the decision network outputs an impurity detection result.

[0088] Through the above embodiments, traditional impurity detection methods are usually based on manually designed rules, thresholds or specific feature designs for detection, which may not be able to completely cover all situations of impurities, resulting in reduced detection accuracy and high false detection rate or high missed detection rate. The present invention adopts a segmentation-based deep learning framework, designs a segmentation network and a decision network for two-stage detection, and the segmentation network performs pixel-level semantic segmentation on the fiber image to achieve detailed analysis and understanding of the fiber image and more accurately capture the subtle features in the image. The decision network combines the global information of the fiber image to further analyze and integrate the segmentation results, thereby improving the network's ability to capture small details and achieving more accurate impurity detection and identification.

[0089] Embodiment 5: This embodiment is based on the above embodiment. The high-definition camera described in Embodiment 1 is an industrial camera, and its specification parameter information is as follows:

[0090] Model: ME2P-2621-15U3M; Brand: Daheng Image; Resolution: 5120×5120; Frame rate: 15.1; Sensor: 1.1" GMAX0505 Global shutter CMOS; Pixel size: 2.5 microns; Pixel depth: 8bit, 12bit; Spectrum: black and white; Image data format: Mono8, Mono12.

[0091] 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.

[0092] 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.

[0093] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.

Claims

1. A fiber impurity detection method based on machine vision, characterized in that: The specific steps include: Step S1: Obtaining a high-definition image of the fiber, fixing a high-definition camera above a textile machine, and using the high-definition camera to capture a high-definition image of the textile fiber in real time; Step S2: De-noising the fiber HD image, using quaternion wavelet transform to generate noise image coefficients, using a cross-validation function to generate an optimal threshold through a soft threshold function, defining a new diffusion function to retain the details and edge information in the fiber HD image, and obtaining a denoised image; Step S3: Detect fiber impurities, establish a segmentation network and a decision network, the segmentation network locates the fiber impurities pixel by pixel, and the decision network performs binary image classification; Step S2, denoising the fiber high-definition image, specifically comprises the following steps: Step S21: collecting a noise-free fiber image, applying Poisson noise to the noise-free fiber image using a Poisson probability distribution function, and generating a noise image; Step S22: performing quaternion wavelet transform on the noise image, where the quaternion contains an amplitude and three angles, and the noise image is decomposed into low-pass wavelet coefficients and high-pass wavelet coefficients using the quaternion; Step S23: reconstruct the low-pass wavelet coefficients and the high-pass wavelet coefficients, and use the low-pass wavelet coefficients and the high-pass wavelet coefficients to create a matrix, each column in the matrix is ​​a quaternion, and the low-pass wavelet coefficients and the high-pass wavelet coefficients of each quaternion are described by the magnitude and phase of the quaternion, and the amplitude matrix and the phase matrix of the quaternion coefficients are calculated; Step S24: the high-pass wavelet coefficients are the same as the noise image coefficients, and the variance of each sub-band level noise and the standard deviation of each sub-band level signal are calculated; Step S25: Calculate the adaptive Bayesian threshold of each sub-band level, where the adaptive Bayesian threshold of each sub-band level is the ratio of the variance of the noise of each sub-band level to the standard deviation of the signal of each sub-band level, and the high-pass wavelet coefficient is set by a soft threshold function; Step S26: define generalized cross validation to calculate the optimal threshold, the formula used is as follows: ; In the formula, is the optimal threshold, is the image size, is the number of high-pass threshold coefficients of each sub-band level that are 0; Step S27: performing inverse quaternion wavelet transform using the amplitude and three angles to obtain a reconstructed image; Step S28: designing a diffusion function, inputting the reconstructed image into the diffusion function, and generating a denoised image; Step S28 specifically includes the following steps: Step S281: locate the edge in the reconstructed image, and use the Laplace operator for iterative optimization to calculate the gradient amplitude after iteration. The formula used is as follows: ; In the formula, yes The gradient magnitude after iterations is is the default size of the grid, and It's a pixel. is the pixel size after n iterations; Step S282: define the pixel adaptive threshold function, the formula used is as follows: ; In the formula, It's a pixel The adaptive threshold function, is the grayscale variance of n iterations; Step S283: Normalize the reconstructed image and design a diffusion function: ; In the formula, is the diffusion function, is the regularization parameter, is the normalized variance of the reconstructed image, It's a pixel Adaptive threshold function of ; Step S284: input the reconstructed image into the diffusion function to generate a denoised image.

2. The fiber impurity detection method based on machine vision according to claim 1, characterized in that: Step S3, detecting fiber impurities, specifically comprises the following steps: Step S31: Establish and initialize a segmentation network, which consists of 11 convolutional layers and 3 maximum pooling layers. The kernel size of the first nine convolutional layers is 9×9, and the kernel sizes of the last two convolutional layers are 15×15 and 1×1 respectively. Each convolutional layer is followed by a feature normalization layer and a nonlinear ReLU layer, and channels are allocated to each layer. Step S32: Establish and initialize a decision network, which maps and connects the output of the last convolutional layer of the segmentation network with the single-channel segmentation output, including 3 maximum pooling layers and 3 convolutional layers, the kernel size of the convolutional layer is 5×5, and the decision network performs global maximum pooling and average pooling to generate intermediate neurons, which are combined with linear weights to obtain the final output neurons; Step S33: collecting a textile fiber impurity image set, inputting the textile fiber impurity image set into a segmentation network, and independently training the segmentation network using regression with mean square error loss; Step S34: After the segmentation network training is completed, the weights of the segmentation network are frozen, and the decision network is trained using the cross entropy loss function; Step S35: The denoised image is input into the segmentation network, the segmentation network outputs a segmentation mask, the segmentation mask is transmitted to the decision network, and the decision network outputs an impurity detection result.

Citation Information

Patent Citations

  • Workpiece surface defect detection and segmentation method based on deep learning

    CN113362277A