A method for detecting surface defects of rolled steel plates

Through high-precision line array scanning and line laser equipment combined with Mask R-CNN, principal component analysis method, and RANSAC algorithm, surface defects of rolled steel plates are automatically identified and located, which solves the problem of dependence on manual inspection and achieves efficient and accurate surface detection of rolled steel plates. Defect detection promotes the automation and intelligent development of steel slab production.

CN113393426BActive Publication Date: 2024-09-17NANJING YUNTONG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110564536.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-24
Publication Date
2024-09-17
Estimated Expiration
2041-05-24

AI Technical Summary

Technical Problem

Existing steel plate surface quality inspection relies on manual experience, resulting in poor detection timeliness and accuracy, high labor intensity, and high cost. Automated and intelligent detection methods are urgently needed to improve detection accuracy and efficiency.

Method used

High-precision line array scanning cameras and line laser scanning equipment are used to collect two-dimensional images and contour point cloud data, and the Mask R-CNN convolutional neural network, principal component analysis method, and RANSAC plane fitting algorithm are combined to automatically detect surface defects of rolled steel plates. Identification and positioning to improve detection efficiency and accuracy.

Benefits of technology

It achieves efficient, accurate and real-time online detection of surface defects in rolled steel plates, significantly improves detection accuracy and efficiency, reduces labor intensity and costs, and improves production quality and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113393426B
    Figure CN113393426B
Patent Text Reader

Abstract

The invention discloses a method for detecting surface defects of rolled steel plates, and relates to the technical field of defect detection of rolled steel plates. The detection method collects a two-dimensional image of the surface of a rolled steel plate by a high-precision linear array scanning camera and inputs it into a convolutional neural network detection model of Mask R-CNN for identification, thereby obtaining defect categories and defect areas on the image; the contour point cloud data of the surface of the rolled steel plate is used for principal component analysis and RANSAC plane fitting algorithm to identify defect points, and the defect points are subjected to Euclidean clustering to obtain defect locations on the surface of the rolled steel plate; finally, the intersection of the defect area and the defect location of the identified two-dimensional image is used as the final defect location. The method for detecting surface defects of rolled steel plates of the invention reduces labor costs and improves the accuracy of defect detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of rolled steel plate defect detection, and in particular to a rolled steel plate surface defect detection method. Background Art

[0002] In the past, steel plate surface quality inspection relied entirely on manual experience for inspection, which had problems such as high labor intensity, poor working environment, poor timeliness and accuracy. There is an urgent need for a detection method or equipment to replace manual inspection, improve the accuracy and precision of steel plate surface quality inspection, greatly reduce labor intensity and cost, improve production quality, promote the automation and intelligent development of steel plate production inspection, and promote the improvement of production quality and efficiency.

[0003] In recent years, vision-based inspection technology and equipment have gradually become an effective way to detect defects in industrial production, and have been widely used in the fields of automobile manufacturing, aerospace, machine tool processing, etc. Using visual inspection technology to replace the existing manual steel plate defect detection is an economically feasible method. Summary of the invention

[0004] In view of the problems existing in the prior art, the present invention provides a method for detecting surface defects of rolled steel plates. The method analyzes the two-dimensional image and contour point cloud data of the surface of the rolled steel plate to finally obtain the defect position of the surface of the rolled steel plate, thereby improving the detection efficiency and detection accuracy of the surface defects of the rolled steel plate.

[0005] In order to achieve the above object, the present invention adopts the following technical scheme: a method for detecting surface defects of a rolled steel plate, specifically comprising the following steps:

[0006] (1) A two-dimensional image of the surface of the rolled steel plate is collected by a high-precision linear array scanning camera, and the surface of the rolled steel plate is scanned by a high-precision line laser scanning device to obtain contour point cloud data;

[0007] (2) performing image denoising and histogram equalization processing on the two-dimensional image collected in step (1) to obtain preprocessed data;

[0008] (3) constructing a convolutional neural network detection model of Mask R-CNN and training the convolutional neural network detection model of Mask R-CNN, inputting the preprocessed data obtained in step (2) into the trained convolutional neural network detection model of Mask R-CNN, and identifying defect categories and defect areas on the two-dimensional image;

[0009] (4) using the principal component analysis method and the RANSAC plane fitting algorithm to identify defect points based on the contour point cloud data obtained in step (1), and performing Euclidean clustering on the defect points to obtain defect locations on the surface of the rolled steel plate;

[0010] (5) The intersection of the defect area of ​​the two-dimensional image identified in step (3) and the defect location obtained in step (4) is taken as the final defect location.

[0011] Furthermore, the convolutional neural network detection model of the Mask R-CNN includes a ResNet-FPN backbone network, a region proposal network and a prediction module connected in sequence; the ResNet-FPN backbone network is used to extract a multi-scale feature image in the preprocessed data; the region proposal network is used to extract the region of interest in the multi-scale feature image, and performs a pooling operation on the region of interest through the RoIAlign layer to convert the region of interest into an output vector of a fixed size; the prediction module uses a fully connected layer and a fully convolutional layer to perform target classification, bounding box prediction and mask segmentation on the output vector.

[0012] Furthermore, the training process of the convolutional neural network detection model of Mask R-CNN is specifically as follows:

[0013] (a) Collect images of the surface of rolled steel plates, perform image denoising and histogram equalization on the images, manually annotate the defective areas, and form an image dataset with the manually annotated images;

[0014] (b) The image dataset is input into the convolutional neural network detection model of Mask R-CNN for training. When the loss function L converges, the training of the convolutional neural network detection model of Mask R-CNN is completed.

[0015] Furthermore, the manually labeled content includes defect category labeling and defect area labeling.

[0016] Furthermore, the loss function L is specifically:

[0017] L=L class +L box +L mask

[0018] Among them, L class represents the target classification loss function, L box represents the boundary localization loss function, L mask represents the mask segmentation loss function.

[0019] Furthermore, step (4) specifically includes the following sub-steps:

[0020] (4.1) Scan the surface of the rolled steel plate using a high-precision line laser scanner to obtain contour point cloud data;

[0021] (4.2) Calculate the normal feature n of each contour point by principal component analysis p, compare the error with the reference normal Z = (0,0,1), and record the contour points whose error E exceeds the threshold as suspected defect points;

[0022] (4.3) Use the RANSAC plane fitting algorithm to perform plane fitting on the contour point cloud data, remove the point cloud within the fitted plane model, and retain the remaining point cloud;

[0023] (4.4) The intersection of the suspected defect points and the remaining point clouds is taken as the defect point set, and the defect point set is clustered by Euclidean clustering to obtain the defect location of the rolled steel plate surface.

[0024] Furthermore, the process of error comparison in step (4.2) is:

[0025] E = arccos(n p ·Z)

[0026] Furthermore, the process of step (4.3) is specifically as follows:

[0027] (A) Randomly select three points in the contour point cloud data and fit them into a plane model;

[0028] (B) Calculate the distance between all contour point cloud data and the fitted plane model, and count the number of contour point clouds with a distance less than a threshold;

[0029] (C) Repeat steps (A)-(B) until all point cloud contour data are fitted to the plane model. The plane model with the largest number of contour point clouds whose distance is less than the threshold is taken as the final plane model. The point clouds within the fitted plane model are removed and the remaining point clouds are retained.

[0030] Compared with the prior art, the present invention has the following beneficial effects: the present invention detects defects on the surface of rolled steel plates by using a high-precision linear array scanning camera and a high-precision line laser scanning device. On the one hand, the convolutional neural network detection model of Mask R-CNN is used to automatically identify and locate defects in the two-dimensional image acquired by the camera, which effectively improves the efficiency and accuracy of the detection of surface defects on rolled steel plates. On the other hand, the principal component analysis method and the RANSAC plane fitting algorithm are combined to identify the defect position of the contour point cloud data acquired by the laser scanning device, which ensures the robustness and real-time performance of the detection of surface defects on rolled steel plates. Finally, the defect areas identified in the two-dimensional image and the point cloud data are integrated, and the intersection of the two is used as the final defect position, which further improves the positioning accuracy of the surface defects on rolled steel plates. The surface defect detection method of rolled steel plates of the present invention can realize real-time online detection, with good timeliness, high detection accuracy and high detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 It is a flow chart of the method for detecting surface defects of rolled steel plates of the present invention;

[0032] Figure 2 It is a schematic diagram of defect detection on a collected two-dimensional image of the surface of a rolled steel plate in the present invention;

[0033] Figure 3 Schematic diagram of the structure of the convolutional neural network detection model of Mask R-CNN in the present invention;

[0034] Figure 4 It is a schematic diagram of defect detection on contour point cloud data scanned on the surface of a rolled steel plate in the present invention. DETAILED DESCRIPTION

[0035] The technical solution of the present invention is described in detail below in conjunction with the accompanying drawings.

[0036] like Figure 1 The present invention is a flow chart of a method for detecting surface defects of a rolled steel plate, which specifically comprises the following steps:

[0037] (1) A two-dimensional image of the surface of the rolled steel plate is collected by a high-precision linear array scanning camera, and the surface of the rolled steel plate is scanned by a high-precision line laser scanning device to obtain contour point cloud data; the two-dimensional image of the surface of the rolled steel plate and the contour point cloud data can be used together to perform surface defect detection and analysis of the rolled steel plate, thereby improving the accuracy of defect detection.

[0038] (2) The two-dimensional image collected in step (1) is subjected to image denoising and histogram equalization processing to obtain preprocessed data; the image denoising method adopted in the present invention is bilateral filtering processing, which not only takes into account the spatial position relationship of image pixels, but also takes into account the similarity of pixel values ​​between different pixels, so that the edge features of the image can be well preserved while removing noise.

[0039] (3) The present invention constructs a convolutional neural network detection model of Mask R-CNN, trains the convolutional neural network detection model of Mask R-CNN, inputs the preprocessed data obtained in step (2) into the trained convolutional neural network detection model of Mask R-CNN, and identifies the defect category and defect area on the two-dimensional image. Figure 2 It is a schematic diagram of defect detection on the collected two-dimensional image of the surface of the rolled steel plate in the present invention. The Mask R-CNN model can not only realize defect classification and positioning, but also perform pixel-level segmentation of the defect area.

[0040] like Figure 3The convolutional neural network detection model of Mask R-CNN used in the present invention includes a ResNet-FPN backbone network, a region proposal network RPN and a prediction module connected in sequence; the ResNet-FPN backbone network is used to extract multi-scale feature images from preprocessed data, and the ResNet-FPN backbone network is composed of a deep residual network ResNet, a feature pyramid network FPN and a reverse side connection. First, a multi-scale feature image C is extracted through the i-th stage convolution layer of the deep residual network ResNet i (1≤i≤5), and then in the feature pyramid network FPN, the feature map C5 is copied to P5, that is, P5=C5, and the multi-scale feature image C i (1≤i≤4) and the feature map P generated in the feature pyramid network FPN j+1 (j=i) The feature map P of the i-th stage generated by the side connection i (2≤i≤5), where P5=C5, and P6 is obtained by P5 through a 3×3 convolution with a step size of 2. In the reverse side connection added in the present invention, P2 is copied to N2, that is, N2=P2, and the feature map N generated in the reverse side connection is l (2≤l≤5) is subjected to a 3×3 convolution with a step size of 2, and is obtained with P j+1 (2≤j≤5) feature maps of the same size and P j+1 (2≤j≤5) are added to obtain the fusion feature map N l+1 (2≤l≤5), the number of convolution kernels for all convolution operations is 256. The region proposal network RPN is used to extract the region of interest RoI in the multi-scale feature image, and the RoIAlign layer is used to perform a pooling operation on the region of interest RoI, converting the region of interest RoI into an output vector of a fixed size; the prediction module uses the fully connected layer FC and the fully convolutional layer FCN to perform target classification, bounding box positioning and mask segmentation on the output vector, effectively improving the efficiency of target detection and segmentation.

[0041] The training process of the convolutional neural network detection model of Mask R-CNN in the present invention is specifically as follows:

[0042] (a) Collect images of the surface of rolled steel plates, perform image denoising and histogram equalization on the images, and then manually annotate the defect areas. The manually annotated images form an image dataset; the manual annotation content includes defect category annotation and defect area annotation.

[0043] (b) The image dataset is input into the convolutional neural network detection model of Mask R-CNN for training. When the loss function L converges, the training of the convolutional neural network detection model of Mask R-CNN is completed.

[0044] The loss function used in the present invention is specifically:

[0045] L=L class +L box +L mask

[0046]

[0047]

[0048]

[0049]

[0050]

[0051] Among them, L class represents the target classification loss function, L box represents the bounding box prediction loss function, L mask represents the mask segmentation loss function, N cls Used to normalize L class Item, p i represents the probability that the i-th anchor box is predicted as a foreground target, represents the true classification value of the i-th anchor, λ represents the balance parameter, and N reg Used to normalize L box Item, L reg represents the regression loss term, t i represents the predicted coordinates of the target bounding box, Represents the real coordinates of the target related to the positive sample anchor box, smooth L1 () represents the smooth L1 loss function defined in Fast R-CNN, m represents the size of the region of interest RoI, y ij represents the predicted mask value of pixel (i, j), k represents the category of the region of interest RoI, Represents the true mask value of pixel (i, j) in the kth category. The target classification loss, bounding box prediction loss, and mask segmentation loss together constitute the multi-task loss of the convolutional neural network detection model of Mask R-CNN. The supervised model automatically and efficiently learns the effective information in the image data, effectively improving the accuracy of defect detection.

[0052] (4) identifying defect points using the principal component analysis method and the RANSAC plane fitting algorithm on the contour point cloud data obtained in step (1), and performing Euclidean clustering on the defect points to obtain defect locations on the surface of the rolled steel plate; specifically, the method comprises the following sub-steps:

[0053] (4.1) Scan the surface of the rolled steel plate using a high-precision line laser scanner to obtain contour point cloud data;

[0054] (4.2) Calculate the normal feature n of each contour point by principal component analysis p , compare the error with the reference normal Z = (0,0,1), and record the contour points whose error E exceeds the threshold as suspected defect points;

[0055] E = arccos(n p ·Z)

[0056] (4.3) Use the RANSAC plane fitting algorithm to perform plane fitting on the contour point cloud data, remove the point clouds within the fitted plane model, and retain the remaining point clouds; the specific process is:

[0057] (A) Randomly select three points in the contour point cloud data and fit them into a plane model;

[0058] (B) Calculate the distance between all contour point cloud data and the fitted plane model, and count the number of contour point clouds with a distance less than a threshold;

[0059] (C) Repeat steps (A)-(B) until all point cloud contour data are fitted to the plane model. The plane model with the largest number of contour point clouds whose distance is less than the threshold is taken as the final plane model. The point clouds within the fitted plane model are removed and the remaining point clouds are retained.

[0060] (4.4) The intersection of the suspected defect points and the remaining point clouds is taken as the defect point set, and the defect point set is clustered by Euclidean clustering to obtain the defect location of the rolled steel plate surface.

[0061] like Figure 4 This is a schematic diagram of defect detection on contour point cloud data scanned on the surface of a rolled steel plate in the present invention. The principal component analysis method is used to extract suspected defect points in the point cloud data, and the RANSAC plane fitting algorithm is used to extract the remaining point clouds in the non-plane. Then, the intersection of the suspected defect points and the remaining point clouds is selected as the final defect point set, thereby effectively reducing the false detection rate of the algorithm and improving the robustness of the algorithm.

[0062] (5) The intersection of the defect area of ​​the two-dimensional image identified in step (3) and the defect location obtained in step (4) is taken as the final defect location. On the one hand, the convolutional neural network detection model is used to automatically identify and locate the defects in the two-dimensional image acquired by the camera, which effectively improves the efficiency and accuracy of the surface defect detection of the rolled steel plate. On the other hand, the principal component analysis method and the RANSAC plane fitting algorithm are combined to identify the defect location of the contour point cloud data acquired by the laser scanning device, which ensures the robustness and real-time performance of the surface defect detection of the rolled steel plate. Finally, the defect area identified in the two-dimensional image and the point cloud data is integrated, and the intersection of the two is taken as the final defect location, which further improves the positioning accuracy of the surface defects of the rolled steel plate.

[0063] The surface defect detection method of the steel plate of the present invention is used for surface defect detection of 100 steel plates, and the defect detection accuracy reaches more than 88.5%. Therefore, the surface defect detection method of the steel plate of the present invention can realize the accurate positioning of the surface defect of the steel plate and can improve the work efficiency.

[0064] It should be noted that the present invention is not limited to the above-mentioned specific implementation modes. For those skilled in the art, similar improvements, replacements and other operations can be performed on the above-mentioned technical solutions, which should also be included in the protection scope of the present invention.

Claims

1. A method for detecting surface defects of a rolled steel plate, characterized in that: The specific steps include: (1) A two-dimensional image of the surface of the rolled steel plate is collected by a high-precision linear array scanning camera, and the surface of the rolled steel plate is scanned by a high-precision line laser scanning device to obtain contour point cloud data; (2) performing image denoising and histogram equalization processing on the two-dimensional image collected in step (1) to obtain preprocessed data; (3) constructing a convolutional neural network detection model of MaskR-CNN and training the convolutional neural network detection model of MaskR-CNN, inputting the preprocessed data obtained in step (2) into the trained convolutional neural network detection model of MaskR-CNN, and identifying defect categories and defect areas on the two-dimensional image; (4) identifying defect points using the principal component analysis method and the RANSAC plane fitting algorithm on the contour point cloud data obtained in step (1), and performing Euclidean clustering on the defect points to obtain defect locations on the surface of the rolled steel plate; specifically, the method comprises the following sub-steps: (4.1) Scan the surface of the rolled steel plate using a high-precision line laser scanner to obtain contour point cloud data; (4.2) Calculate the normal feature n of each contour point by principal component analysis p , compare the error with the reference normal Z = (0,0,1), and record the contour points whose error E exceeds the threshold as suspected defect points; (4.3) Use the RANSAC plane fitting algorithm to perform plane fitting on the contour point cloud data, remove the point cloud within the fitted plane model, and retain the remaining point cloud; (4.4) The intersection of the suspected defect point and the remaining point cloud is taken as the defect point set, and the defect point set is clustered by Euclidean clustering to obtain the defect location of the rolled steel plate surface; (5) The intersection of the defect area of ​​the two-dimensional image identified in step (3) and the defect location obtained in step (4) is taken as the final defect location.

2. The method for detecting surface defects of rolled steel sheets according to claim 1, characterized in that: The convolutional neural network detection model of MaskR-CNN includes a ResNet-FPN backbone network, a region proposal network and a prediction module connected in sequence; the ResNet-FPN backbone network is used to extract multi-scale feature images in preprocessed data; the region proposal network is used to extract the region of interest in the multi-scale feature image, and perform a pooling operation on the region of interest through the RoIAlign layer to convert the region of interest into an output vector of a fixed size; the prediction module uses a fully connected layer and a fully convolutional layer to perform target classification, bounding box prediction and mask segmentation on the output vector.

3. The method for detecting surface defects of rolled steel sheets according to claim 2, characterized in that: The training process of the MaskR-CNN convolutional neural network detection model is as follows: (a) Collect images of the surface of rolled steel plates, perform image denoising and histogram equalization on the images, manually annotate the defective areas, and form an image dataset with the manually annotated images; (b) The image dataset is input into the convolutional neural network detection model of Mask R-CNN for training. When the loss function L converges, the training of the convolutional neural network detection model of Mask R-CNN is completed.

4. The method for detecting surface defects of rolled steel sheets according to claim 3, characterized in that: The manual annotation content includes defect category annotation and defect area annotation.

5. The method for detecting surface defects of rolled steel sheets according to claim 3, characterized in that: The loss function L is specifically: L=L class +L box +L mask Among them, L class represents the target classification loss function, L box represents the boundary localization loss function, L mask represents the mask segmentation loss function.

6. The method for detecting surface defects of rolled steel sheets according to claim 1, characterized in that: The process of error comparison in step (4.2) is: E=arccos(n p ·Z)。 7. The method for detecting surface defects of rolled steel sheets according to claim 1, characterized in that: The specific process of step (4.3) is as follows: (A) Randomly select three points in the contour point cloud data and fit them into a plane model; (B) Calculate the distance between all contour point cloud data and the fitted plane model, and count the number of contour point clouds with a distance less than a threshold; (C) Repeat steps (A)-(B) until all point cloud contour data are fitted to the plane model. The plane model with the largest number of contour point clouds whose distance is less than the threshold is taken as the final plane model. The point clouds within the fitted plane model are removed and the remaining point clouds are retained.