A cold-rolled steel coil surface defect detection and management system
By adjusting the camera height through edge detection and feedback control, and adjusting the conveying speed in combination with microwave detection and image quality assessment, the problem of inconsistent specifications and speed adjustment in cold-rolled steel coil surface defect detection is solved, and detection accuracy and efficiency are improved.
Patent Information
- Application Number
- CN202410069049.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-17
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-01-17
AI Technical Summary
The existing technology is difficult to detect steel coils of different specifications when detecting surface defects of cold-rolled steel coils and cannot adjust the conveying speed according to actual conditions, affecting detection efficiency and accuracy.
The edge detection module and camera height adjustment module are used to calculate the distance between the edge of the steel coil and the edge of the image through the edge detection algorithm, the feedback control algorithm is used to adjust the camera height, the microwave detection and machine learning algorithms are combined to identify defects, and the conveying speed is adjusted through image quality evaluation. Maximize detection efficiency.
It improves the accuracy and efficiency of defect detection, ensures the smooth detection of steel coils of different specifications, and maximizes the conveying speed while ensuring detection accuracy.
Smart Images

Figure CN118090773B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of defect detection, and in particular relates to a cold-rolled steel coil surface defect detection and management system. Background Art
[0002] Defect detection technology refers to the process of using various methods and technical means to detect and identify defects, defective areas or unqualified parts in products or materials. Visual inspection is usually used for defect detection on the surface of cold-rolled steel coils. Image processing and computer vision technology are used to analyze and process images or videos to identify defects or abnormal areas. Common methods include edge detection, feature extraction, target detection and classification, etc.
[0003] Among the existing patents, the technical solution disclosed in the document with publication number CN116363124A and titled A method for detecting steel surface defects based on deep learning includes: constructing an initial deep learning network model; the initial deep learning network model is a YOLOv4 model; the input of the Backbone network of the initial deep learning network model is a preprocessed image, and the output is a feature map; the input of the Neck network of the initial deep learning network model is the feature map, and the output is an adaptive feature fusion map; obtaining training samples; the training samples include defect data and defect labels on the steel surface; based on the training samples, training the initial deep learning network model to obtain a trained deep learning network model; inputting a steel surface image into the deep learning network model, and the model outputs the predicted defect location, defect type and confidence; another document with publication number CN114463300A points out the defect detection content on the steel surface. Although the above documents can meet the needs of steel surface defect detection in industrial production, they only perform defect detection through image analysis.
[0004] In combination with the above-mentioned documents and prior art, when defect detection is performed on the surface of steel, such as cold-rolled steel coils, cameras are usually set to quickly detect the surface of the cold-rolled steel coils during transportation to ensure the efficiency of the detection. However, when encountering large-sized cold-rolled steel coils or cold-rolled steel coils of different sizes in the same type of steel coils, the conventional solution is to use multiple cameras for splicing, or to use high-resolution large-pixel sensors to meet the needs of defect detection of large-sized steel coils, but the cameras or sensors need to be manually set to specific positions in advance, which is extremely inconvenient; in addition, the uniformly moving cold-rolled steel coils can be transported while performing defect detection to improve the detection efficiency, but there is no accurate basis for setting the cold-rolled steel coil conveying speed, or it is impossible to adjust to a maximum conveying value that does not affect the detection work according to the actual situation. Summary of the invention
[0005] 1. Technical issues to be resolved
[0006] In view of the shortcomings of the prior art, the present invention provides a cold-rolled steel coil surface defect detection and management system that can cope with various cold-rolled steel coils of different specifications, improves the accuracy of defect detection, and can maximize the conveying speed of the cold-rolled steel coils while ensuring detection accuracy, thereby improving the efficiency of the entire detection work.
[0007] (II) Technical solution
[0008] To achieve the above objectives, the present invention is implemented through the following technical solutions:
[0009] A cold-rolled steel coil surface defect detection and management system, comprising:
[0010] The edge detection module uses a camera to detect the cold-rolled steel coil in a moving state below, uses an edge detection algorithm to detect the edges on both sides of the cold-rolled steel coil, and outputs the detection results. The features are:
[0011] The camera height adjustment module controls the extension and contraction of the cylinder to adjust the camera height according to the detection results. Under the condition that the camera detects the edge of the cold-rolled steel coil, the distance between the edge of the steel coil and the edge of the image is calculated, and the camera height is further adjusted according to the preset distance threshold M. The feedback control algorithm is used to control the extension and contraction of the cylinder.
[0012] The defect recognition and verification module obtains real-time surface images of cold-rolled steel coils. After preprocessing and feature extraction and selection, it uses machine learning algorithms to train and obtain a classification model. The classification model is used to identify defects on the surface of cold-rolled steel coils. Microwave transceivers installed on both sides of the camera are then used to perform microwave detection and analysis. The existence of identified defects is verified based on the analysis results.
[0013] The speed adjustment module repeatedly conveys the cold-rolled steel coil with defects through the camera detection area under the condition that the identified defects exist. According to the established rule engine, the conveying speed of the cold-rolled steel coil is increased from V1 to V2, and the difference between V1 and V2 is Q. The speed is continuously increased at the interval Q until the identified defects do not exist. At this time, the conveying speed of the cold-rolled steel coil is V s , adjust the conveying speed of the cold-rolled steel coil to V s -Q;
[0014] The image evaluation module obtains the image captured by the camera at the current cold-rolled steel coil conveying speed, obtains the evaluation parameters of the image, builds an image quality analysis calculation model, generates an image quality evaluation value Lqe, and compares the image quality evaluation value Lqe with a preset standard threshold value, and outputs the comparison result;
[0015] The secondary speed regulation module, based on the comparison result between the image quality evaluation value Lqe and the standard threshold, issues a warning signal and executes the secondary speed regulation strategy when the image quality evaluation value Lqe exceeds the standard threshold. The conveying speed of the cold-rolled steel coil is increased from V s -Q continues to decrease, with the interval of each decrease being Q, until the image quality reaches the standard.
[0016] Furthermore, the process of calculating the distance between the edge of the steel coil and the edge of the image is as follows: obtain an image containing the cold-rolled steel coil, use OpenCV to process the image and perform calculations, pre-process the image, use the Canny edge detection algorithm to determine the edge of the image and the edge of the cold-rolled steel coil, select the corresponding edge points of the cold-rolled steel coil edge and the image edge, and use the Euclidean distance formula to calculate the straight-line distance between the two edge points, which is the distance between the edge of the steel coil and the edge of the image.
[0017] Furthermore, the process of using feedback control algorithm to control the extension and contraction of the cylinder is as follows:
[0018] S101, setting a target spacing: setting a target spacing according to a required spacing threshold M;
[0019] S102, obtaining the current spacing: calculating the actual spacing between the edge of the steel coil and the edge of the image;
[0020] S103, calculating error: comparing the target spacing with the actual spacing, and calculating the error as target spacing minus current spacing;
[0021] S104, designing a controller: Designing a controller for adjusting the extension and contraction of the cylinder according to the error, the controller adopts a PID controller, and generates a control signal according to the size, change rate and cumulative value of the error;
[0022] S105, adjusting the control signal: controlling the extension and retraction of the cylinder according to the control signal generated by the PID controller, and adjusting the extension and retraction speed and direction according to the size and direction of the control signal to accurately control the height of the camera;
[0023] S106, loop iteration: repeat the above steps S101 to S105 until the error calculated in S103 is zero.
[0024] Furthermore, the process of feature extraction and selection of the preprocessed cold-rolled steel coil surface image is as follows: in the preprocessed image, computer vision technology is used to extract features related to defects, and the features include color, texture, shape and size, and principal component analysis is used to achieve feature selection and dimensionality reduction from the extracted features.
[0025] Furthermore, the process of using a machine learning algorithm to train and obtain a classification model, and identifying defects on the surface of a cold-rolled steel coil through the classification model is as follows: using a labeled image dataset and using a support vector machine (SVM) to train a classification model, identifying defects on the surface of the cold-rolled steel coil through the trained classification model, inputting the preprocessed image into the classification model, and judging whether there are defects on the surface of the cold-rolled steel coil through the output result of the classification model; wherein the labeled image dataset includes several sample images of normal cold-rolled steel coil surfaces and defective cold-rolled steel coil surfaces.
[0026] Furthermore, the process of microwave detection and analysis using microwave transceivers installed on both sides of the camera is as follows: the microwave transceiver includes a microwave transmitter and a receiver. The microwave transmitter generates a microwave signal and irradiates it to the surface of the cold-rolled steel coil. The receiver receives the reflected or scattered microwave signal. The receiver transmits the signal to its built-in processing unit for analysis. The analysis process is as follows: defects will cause changes in the amplitude and phase characteristics of the microwave signal. Whether the cold-rolled steel coil has defects can be determined based on whether the changes occur.
[0027] Furthermore, the conveying speed V s Here, S=1, 2, ..., n, and n is a positive integer. S represents the number corresponding to the conveying speed, and the interval Q is a preset value.
[0028] Furthermore, the evaluation parameters include image resolution, contrast, and signal-to-noise ratio, where the signal-to-noise ratio is the ratio of the useful signal in the image to the noise in the image.
[0029] Furthermore, the formula for generating the image quality evaluation value Lqe is as follows:
[0030] ;
[0031] Wherein, Fb represents resolution, Db represents contrast, Xz represents signal-to-noise ratio, a1, a2, and a3 are preset proportional coefficients of resolution Fb, contrast Db, and signal-to-noise ratio Xz, respectively, and 1>a2>a3>a1>0, and G1 is a constant correction coefficient.
[0032] Furthermore, according to the comparison result between the image quality evaluation value Lqe and the standard threshold, if the image quality evaluation value Lqe does not exceed the standard threshold, it means that the image quality meets the standard, and the cold-rolled steel coil is rated according to V s -Q for uniform speed transportation.
[0033] (III) Beneficial effects
[0034] The present invention has the following beneficial effects:
[0035] 1. The present invention adopts an edge detection module and a camera height adjustment module that are used in conjunction with each other, uses an edge detection algorithm to obtain and calculate the distance between the edge of the cold-rolled steel coil in the image and the edge of the image, and adopts a feedback control algorithm. It can control the cylinder to drive the camera to move up and down according to a preset spacing threshold M to change the content covered in the image, ensure that the distance between the edge of the cold-rolled steel coil and the edge of the image reaches the preset spacing threshold M, so that the entire system can cope with various cold-rolled steel coils of different specifications, and ensure that the cold-rolled steel coil to be detected is completely entered into the image. At the same time, it also avoids the situation where the edge of the cold-rolled steel coil is out of the image during the transportation process to a certain extent, ensuring the smooth progress of the subsequent surface defect detection of the cold-rolled steel coil.
[0036] 2. The present invention detects image identification defects and uses microwave detection technology to verify whether defects exist, thereby improving the accuracy of defect detection by the system. In order to ensure detection efficiency during defect detection, the cold-rolled steel coil is always in a uniform conveying state. Under the condition of ensuring smooth microwave detection, various factors of the image are comprehensively considered to obtain an image quality evaluation value Lqe that accurately reflects the image quality, and the image quality evaluation value Lqe is compared with the standard threshold. According to the comparison result, the conveying speed of the cold-rolled steel coil is continuously adjusted for a second time, thereby ensuring smooth image detection. Under the premise of ensuring detection accuracy, the conveying speed of the cold-rolled steel coil can be maximized, thereby improving the efficiency of the entire detection work. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a schematic diagram of the modular structure of the present invention;
[0038] Figure 2 This is a schematic diagram of the structure of using a camera to detect a cold-rolled steel coil in a moving state in the present invention;
[0039] Figure 3 This is a flow chart of the steps of the cold-rolled steel coil surface defect detection management method in Example 2 of the present invention. DETAILED DESCRIPTION
[0040] The technical solutions in the embodiments of the present invention are clearly and completely described below in conjunction with the accompanying drawings.
[0041] Example 1: Figure 1~Figure 2As shown, this embodiment provides a cold-rolled steel coil surface defect detection and management system, which includes an edge detection module, a camera height adjustment module, a defect recognition and verification module, a speed adjustment module, an image evaluation module and a secondary speed regulation module, and the application scenario of the entire system is: the cold-rolled steel coil is located on the unwinding roller, and is continuously wound up by the winding roller under the drive of the winding roller, and the camera, cylinder, microwave transceiver and other equipment are located between the unwinding and winding rollers, and are all located in the upper area of the flatly transmitted cold-rolled steel coil, which is convenient for detection and management work, and the rotation speed of the winding roller determines the moving speed of the cold-rolled steel coil;
[0042] The edge detection module uses a camera to detect the cold-rolled steel coil in a moving state below, uses an edge detection algorithm to detect the edges on both sides of the cold-rolled steel coil, and outputs the detection results;
[0043] The camera uses a zoom camera, and the detection surface of the camera is always vertically downward and covers part of the cold-rolled steel coil in a moving state. The part of the cold-rolled steel coil to be detected remains flat, thereby facilitating subsequent detection operations;
[0044] Canny edge detection algorithm is one of the image processing algorithms. There are two results when performing detection work: the edge detection algorithm detects the edges of both sides of the cold-rolled steel coil or does not detect the edges of both sides of the cold-rolled steel coil;
[0045] The camera height adjustment module controls the extension and retraction of the cylinder to adjust the camera height according to the detection results. Under the condition that the camera detects the edge of the cold-rolled steel coil, the distance between the edge of the steel coil and the edge of the image is calculated, and the camera height is further adjusted according to the preset distance threshold M. The feedback control algorithm is used to control the extension and retraction of the cylinder to accurately control the cylinder according to the current distance and the target distance.
[0046] The process of calculating the distance between the edge of the steel coil and the edge of the image is as follows:
[0047] Acquire an image containing a cold-rolled steel coil; select an image processing software or programming language, such as Python or OpenCV, to process the image and perform calculations as needed; pre-process the image, such as resizing the image, denoising, and enhancing contrast operations to optimize image quality; determine the edge of the picture and the edge of the cold-rolled steel coil, during which an image processing algorithm, such as the Canny edge detection algorithm, is used to detect the edge in the image, thereby obtaining the coordinates of a series of edge points; select the corresponding edge points of the edge of the cold-rolled steel coil and the edge of the image to maintain consistency, for example, select the edge point on the left side of the cold-rolled steel coil and the edge point on the left side of the picture; calculate the distance between the edges, and use the Euclidean distance formula to calculate the straight-line distance between the two edge points; wherein the calculation formula of the Euclidean distance is: d=sqrt((x2-x1)^2+(y2-y1)^2); wherein (x1, y1) are the coordinates of the edge point of the cold-rolled steel coil, and (x2, y2) are the coordinates of the edge point of the image; convert the distance into units as needed, for example, converting from pixel distance to actual distance under the premise of knowing the relationship between the pixel size and the actual size of the image;
[0048] The feedback control algorithm is used to control the cylinder extension and retraction to ensure that the distance between the edge of the steel coil and the edge of the image is the preset distance threshold M. The following is an example of a basic feedback control algorithm for controlling the extension and retraction of the cylinder to achieve precise height adjustment. The specific process is as follows:
[0049] S101, setting a target spacing: setting a target spacing according to a required spacing threshold M;
[0050] S102, obtaining the current spacing: calculating the actual spacing between the edge of the steel coil and the edge of the image;
[0051] S103, calculating error: comparing the target spacing with the actual spacing, and calculating the error as target spacing minus current spacing;
[0052] S104. Design a controller: Design a controller to adjust the cylinder extension and retraction according to the error. The feedback controller used may be a proportional-integral-differential (PID) controller. The PID controller generates a control signal according to the size, rate of change and cumulative value of the error. The proportional (P) control term is proportional to the error and is used to quickly respond to the error change. The controller generates a proportional term adjustment signal according to the error size to control the speed of the cylinder extension and retraction. The integral (I) control term generates a control signal according to the cumulative value of the error to reduce the steady-state error and compensate for the continuous deviation, which can help the system reach the target spacing more accurately. The differential (D) control term generates a control signal according to the rate of change of the error to suppress the overshoot and oscillation of the system, so that the system can be adjusted to the target spacing more stably.
[0053] S105, adjusting the control signal: controlling the extension and retraction of the cylinder according to the control signal generated by the PID controller, and adjusting the extension and retraction speed and direction according to the size and direction of the control signal to accurately control the height of the camera;
[0054] S106, loop iteration: Repeat the above steps S101 to S105 until the actual spacing is close to the target spacing or the error meets the set accuracy requirement, that is, the error is zero.
[0055] Specifically, an edge detection module and a camera height adjustment module are used in conjunction with each other, and an edge detection algorithm is used to obtain and calculate the distance between the edge of the cold-rolled steel coil in the image and the edge of the image. A feedback control algorithm is used to control the cylinder to drive the camera to move up and down according to a preset distance threshold M to change the content covered in the image, thereby ensuring that the distance between the edge of the cold-rolled steel coil and the edge of the image reaches the preset distance threshold M, so that the entire system can cope with various cold-rolled steel coils of different specifications and ensure that the cold-rolled steel coil to be inspected is completely included in the image. At the same time, it also avoids the situation where the edge of the cold-rolled steel coil is out of the image during the transportation process to a certain extent, thereby ensuring the smooth progress of the subsequent surface defect detection of the cold-rolled steel coil.
[0056] The defect recognition and verification module obtains real-time surface images of cold-rolled steel coils. After preprocessing and feature extraction and selection, it uses machine learning algorithms to train and obtain a classification model. The classification model is used to identify defects on the surface of cold-rolled steel coils. Microwave transceivers installed on both sides of the camera are then used to perform microwave detection and analysis. The existence of identified defects is verified based on the analysis results.
[0057] The process of preprocessing the surface image of the cold-rolled steel coil is as follows: denoising, equalizing and contrast enhancement of the surface image of the cold-rolled steel coil to optimize the image quality and extract key information;
[0058] The process of feature extraction and selection for the pre-processed surface image of the cold-rolled steel coil is as follows: extracting defect-related features from the pre-processed image, using computer vision techniques such as edge detection, texture analysis, and shape description to capture the features of surface defects, and the features include color, texture, shape, and size; selecting the most discriminative features from the extracted features, and performing dimensionality reduction processing, which helps to reduce feature dimensions, improve computational efficiency, and prevent overfitting, and using principal component analysis to achieve feature selection and dimensionality reduction;
[0059] The process of using a machine learning algorithm to train and obtain a classification model, and identifying defects on the surface of a cold-rolled steel coil through the classification model is as follows: using a labeled image data set, using a machine learning or deep learning algorithm to train a classification model, the machine learning algorithm includes a support vector machine SVM, a random forest, and a deep learning algorithm is a convolutional neural network. The support vector machine SVM used in this application, the training goal of the model is to be able to accurately classify normal surfaces and defective surfaces; using the trained classification model to identify defects on the surface of the cold-rolled steel coil, the preprocessed image is input into the model, and the prediction output of the model is used to determine whether there are defects on the surface.
[0060] It should be noted that a labeled image dataset refers to an image dataset that has been annotated or marked, in which each image is attached with a corresponding category label. In this scenario, the image dataset includes image samples of the surface of steel coils, each of which is manually or automatically labeled as normal or defective. For the identification of surface defects of steel coils, it is necessary to prepare a training dataset first, which contains a large number of image samples, and each image is clearly labeled with its corresponding category, that is, normal or defective. This dataset contains a variety of steel coil surface images, covering various types and degrees of defects;
[0061] For example, a training dataset may contain image samples of normal surfaces and image samples of defective surfaces, where the image samples of normal surfaces are labeled as "normal" and the image samples of defective surfaces are labeled with different categories according to the type and degree of defects. In order to train an accurate classification model, the dataset needs to contain enough normal and defective samples so that the model can learn the characteristics and distinctions of each category.
[0062] The process of microwave detection and analysis using microwave transceivers installed on both sides of the camera is as follows: microwave detection usually uses a microwave transmitter and receiver of a specific frequency. The microwave transmitter generates a microwave signal and irradiates it to the surface of the steel coil. The receiver receives the reflected or scattered microwave signal. The receiver transmits the signal to its built-in processing unit for subsequent analysis. The analysis process is as follows: By comparing the normal microwave signal on the surface of the steel coil with the microwave signal in the defective area, the defects on the surface of the steel coil can be detected. The defects will cause changes in the amplitude and phase characteristics of the microwave signal. Based on these changes, it can be determined whether the cold-rolled steel coil has defects. It should be noted that the steel coils mentioned in this application refer to cold-rolled steel coils.
[0063] The speed adjustment module repeatedly conveys the cold-rolled steel coil with defects through the camera detection area under the condition that the identified defects exist. According to the established rule engine, the conveying speed of the cold-rolled steel coil is increased from V1 to V2, and the difference between V1 and V2 is Q. The speed is continuously increased at the interval Q until the identified defects do not exist. At this time, the conveying speed of the cold-rolled steel coil is V s , adjust the conveying speed of the cold-rolled steel coil to V s -Q;
[0064] The cold-rolled steel coil with defects is repeatedly conveyed through the detection area of the camera to detect whether the camera and microwave transceiver can still detect and verify the existing defects after adjusting the moving speed of the cold-rolled steel coil. The conveying speed V s Where S=1, 2, ..., n, and n is a positive integer, S represents the number of the corresponding conveying speed, and the interval Q is a preset value. It is only necessary to ensure that the conveying speed of the cold-rolled steel coil increases steadily in each adjustment.
[0065] The image evaluation module obtains the image captured by the camera at the current cold-rolled steel coil conveying speed and obtains the evaluation parameters of the image, including the resolution, contrast and signal-to-noise ratio of the image. The image quality analysis calculation model is built, and the image quality evaluation value Lqe is generated based on the evaluation parameters after dimensionless processing. The image quality evaluation value Lqe is compared with the preset standard threshold value and the comparison result is output;
[0066] Resolution refers to the number of pixels contained in each unit length of an image, and is often used to indicate the clarity and detail expression of an image. A higher resolution can provide more detail information, thereby improving image quality. For example, an image resolution of 1920*1080 means that the width is 1920 pixels and the height is 1080 pixels. After using a camera to capture a real-time image, use the corresponding API or library, such as OpenCV, to obtain the resolution.
[0067] Contrast refers to the degree of difference between brightness values in an image. A higher contrast can enhance the visual effect and detail of an image. Contrast is the contrast ratio, which represents the ratio between the brightness of the brightest part and the brightness of the darkest part. For example, a contrast ratio of 1000:1 means that the brightness of the brightest part is 1000 times that of the darkest part. Use image processing software or libraries, such as OpenCV or MATLAB in Python, to calculate the contrast ratio of an image by directly loading the image and using related functions or methods. The methods for calculating the contrast ratio include histogram equalization, contrast stretching, and CLAHE, i.e., contrast limited adaptive histogram equalization.
[0068] The signal-to-noise ratio is used to measure the proportional relationship between the signal and the noise in the image, specifically the ratio of the useful signal in the image to the noise in the image; for a known signal and noise model, the signal-to-noise of the image can be calculated using a theoretical formula. For the image in this application, the mean value of the signal and the standard deviation of the noise are calculated, and then the signal mean is divided by the standard deviation of the noise to obtain the signal-to-noise ratio;
[0069] The formula for generating the image quality evaluation value Lqe is as follows:
[0070] ;
[0071] Wherein, Fb represents resolution, Db represents contrast, Xz represents signal-to-noise ratio, a1, a2, and a3 are preset proportional coefficients of resolution Fb, contrast Db, and signal-to-noise ratio Xz, respectively, and 1>a2>a3>a1>0, a1+a2+a3=0.58, G1 is a constant correction coefficient, the specific value of which can be adjusted and set by the user, or generated by analytical function fitting, and the value range of G1 is 0~1;
[0072] It should be noted that images with higher resolution have better details and clarity, so the resolution is positively correlated with image quality, that is, the resolution is positively correlated with the image quality evaluation value; contrast is the degree of difference between brightness levels in an image, and a higher contrast helps to make the image more vivid and clear, so the contrast is positively correlated with image quality, that is, the contrast is positively correlated with the image quality evaluation value; the signal-to-noise ratio describes the proportional relationship between the useful signal and noise in an image, and the signal-to-noise ratio is usually positively correlated with the image quality evaluation value, that is, a higher signal-to-noise ratio corresponds to better image quality; the size of the coefficient is a specific value obtained by quantizing each parameter to facilitate subsequent comparison. The size of the coefficient depends on the amount of sample data and the preset proportional coefficient initially set by technical personnel in this field for each group of sample data. It can also be said that it is preset according to actual conditions, as long as it does not affect the proportional relationship between the parameter and the quantized value. The above description is also adopted for the preset proportional coefficient and constant correction coefficient described in other formulas.
[0073] The secondary speed regulation module compares the image quality evaluation value Lqe with the standard threshold. If the image quality evaluation value Lqe does not exceed the standard threshold, it means that the image quality meets the standard. The cold-rolled steel coil is adjusted according to V s -Q is uniformly transported. If the image quality evaluation value Lqe exceeds the standard threshold, it means that the image quality does not meet the standard, which is not conducive to defect detection. An early warning signal is issued and a secondary speed regulation strategy is implemented. The conveying speed of the cold-rolled steel coil is increased from V s -Q continues to decrease, and the interval of each decrease is Q, until the image quality reaches the standard. The conveying speed of the cold-rolled steel coil is adjusted according to the speed corresponding to the time when the image quality reaches the standard.
[0074] Specifically, by detecting image recognition defects and using microwave detection technology to verify whether defects exist, the accuracy of defect detection by the system is improved. In order to ensure detection efficiency during defect detection, the cold-rolled steel coil is always in a uniform conveying state. While ensuring smooth microwave detection, various factors of the image are comprehensively considered to obtain an image quality evaluation value Lqe that accurately reflects the image quality. The image quality evaluation value Lqe is compared with the standard threshold, and the conveying speed of the cold-rolled steel coil is continuously adjusted for a second time based on the comparison results, thereby ensuring the smoothness of image detection. While ensuring detection accuracy, the conveying speed of the cold-rolled steel coil can be maximized, thereby improving the efficiency of the entire detection work.
[0075] Example 2: Figure 3 As shown, based on Example 1, this embodiment also provides a cold-rolled steel coil surface defect detection and management method, including the following specific steps:
[0076] S1. Use a camera to detect the cold-rolled steel coil in a moving state below, use an edge detection algorithm to detect the edges on both sides of the cold-rolled steel coil, and output the detection results;
[0077] S2. According to the detection results, the cylinder is controlled to extend and retract to adjust the height of the camera. Under the condition that the camera detects the edge of the cold-rolled steel coil, the distance between the edge of the steel coil and the edge of the image is calculated, and the height of the camera is further adjusted according to the preset distance threshold M. The cylinder extension and retraction is controlled by a feedback control algorithm.
[0078] S3, obtain the real-time surface image of the cold-rolled steel coil, and after preprocessing and feature extraction and selection, use the machine learning algorithm to train and obtain the classification model, and use the classification model to identify the defects on the surface of the cold-rolled steel coil, and then use the microwave transceiver installed on both sides of the camera to perform microwave detection and analysis, and verify whether the identified defects exist based on the analysis results;
[0079] S4. Under the condition of verifying the existence of the identified defects, the cold-rolled steel coil with the defective part is repeatedly conveyed through the detection area of the camera. According to the established rule engine, the conveying speed of the cold-rolled steel coil is increased from V1 to V2, and the difference between V1 and V2 is Q. The speed is continuously increased at the interval Q until the identified defects are verified to be non-existent. At this time, the conveying speed of the cold-rolled steel coil is V s , adjust the conveying speed of the cold-rolled steel coil to V s -Q;
[0080] S5. Obtain an image captured by the camera at the current cold-rolled steel coil conveying speed, and obtain evaluation parameters of the image, build an image quality analysis calculation model, generate an image quality evaluation value Lqe, and compare the image quality evaluation value Lqe with a preset standard threshold, and output the comparison result;
[0081] S6. Based on the comparison result between the image quality evaluation value Lqe and the standard threshold, if the image quality evaluation value Lqe exceeds the standard threshold, an early warning signal is issued and a secondary speed regulation strategy is executed. The conveying speed of the cold-rolled steel coil is increased from V s -Q continues to decrease, and the interval of each decrease is Q, until the image quality meets the standard; if the image quality evaluation value Lqe does not exceed the standard threshold, it means that the image quality meets the standard, and the cold-rolled steel coil is rated according to V s -Q for uniform speed transportation.
[0082] In the application, the several formulas involved are all calculated by removing the dimensions and taking their numerical values. The formula is a formula obtained by collecting a large amount of data and performing software simulation to obtain the most recent real situation. The formula is set by technical personnel in this field according to actual conditions.
[0083] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, the above embodiments may be implemented in whole or in part in the form of a computer program product.
Claims
1. A cold-rolled steel coil surface defect detection and management system, characterized in that: include: The edge detection module uses a camera to detect the cold-rolled steel coil in a moving state below, uses an edge detection algorithm to detect the edges on both sides of the cold-rolled steel coil, and outputs the detection results; The camera height adjustment module controls the extension and contraction of the cylinder to adjust the camera height according to the detection results. Under the condition that the camera detects the edge of the cold-rolled steel coil, the distance between the edge of the steel coil and the edge of the image is calculated, and the camera height is further adjusted according to the preset distance threshold M. The feedback control algorithm is used to control the extension and contraction of the cylinder. The process of calculating the distance between the edge of the steel coil and the edge of the image is as follows: obtain an image containing the cold-rolled steel coil, use OpenCV to process the image and perform calculations, and after preprocessing the image, use the Canny edge detection algorithm to determine the edge of the image and the edge of the cold-rolled steel coil. After selecting the corresponding edge points of the cold-rolled steel coil edge and the image edge, use the Euclidean distance formula to calculate the straight-line distance between the two edge points, which is the distance between the edge of the steel coil and the edge of the image. The process of using the feedback control algorithm to control the extension and contraction of the cylinder is as follows: S101, setting a target spacing: setting a target spacing according to a required spacing threshold M; S102, obtaining the current spacing: calculating the actual spacing between the edge of the steel coil and the edge of the image; S103, calculating error: comparing the target spacing with the actual spacing, and calculating the error as target spacing minus current spacing; S104, designing a controller: Designing a controller for adjusting the extension and contraction of the cylinder according to the error, the controller adopts a PID controller, and generates a control signal according to the size, change rate and cumulative value of the error; S105, adjusting the control signal: controlling the extension and retraction of the cylinder according to the control signal generated by the PID controller, and adjusting the extension and retraction speed and direction according to the size and direction of the control signal to accurately control the height of the camera; S106, loop iteration: repeat the above steps S101 to S105 until the error calculated in S103 is zero; The defect recognition and verification module obtains real-time surface images of cold-rolled steel coils. After preprocessing and feature extraction and selection, it uses machine learning algorithms to train and obtain a classification model. The classification model is used to identify defects on the surface of cold-rolled steel coils. Microwave transceivers installed on both sides of the camera are then used to perform microwave detection and analysis. The existence of identified defects is verified based on the analysis results. The speed adjustment module repeatedly conveys the cold-rolled steel coil with defects through the camera detection area under the condition that the identified defects exist. According to the established rule engine, the conveying speed of the cold-rolled steel coil is increased from V1 to V2, and the difference between V1 and V2 is Q. The speed is continuously increased at the interval Q until the identified defects do not exist. At this time, the conveying speed of the cold-rolled steel coil is V s , adjust the conveying speed of the cold-rolled steel coil to V s -Q; The image evaluation module obtains the image captured by the camera at the current cold-rolled steel coil conveying speed, obtains the evaluation parameters of the image, builds an image quality analysis calculation model, generates an image quality evaluation value Lqe, and compares the image quality evaluation value Lqe with a preset standard threshold value, and outputs the comparison result; the evaluation parameters include image resolution, contrast, and signal-to-noise ratio, where the signal-to-noise ratio is the ratio of the useful signal in the image to the noise in the image; The formula for generating the image quality evaluation value Lqe is as follows: ; Wherein, Fb represents resolution, Db represents contrast, Xz represents signal-to-noise ratio, a1, a2, and a3 are preset proportional coefficients of resolution Fb, contrast Db, and signal-to-noise ratio Xz, respectively, and 1>a2>a3>a1>0, and G1 is a constant correction coefficient; The secondary speed regulation module, based on the comparison result between the image quality evaluation value Lqe and the standard threshold, sends out a warning signal and executes the secondary speed regulation strategy when the image quality evaluation value Lqe exceeds the standard threshold. The conveying speed of the cold-rolled steel coil is continuously reduced from Vs-Q, with the interval of each reduction being Q, until the image quality meets the standard.
2. A cold-rolled steel coil surface defect detection and management system according to claim 1, characterized in that: The process of feature extraction and selection for the preprocessed surface image of the cold-rolled steel coil is as follows: in the preprocessed image, computer vision technology is used to extract features related to defects, and the features include color, texture, shape and size, and principal component analysis is used to achieve feature selection and dimensionality reduction from the extracted features.
3. A cold-rolled steel coil surface defect detection and management system according to claim 2, characterized in that: The process of using a machine learning algorithm to train and obtain a classification model, and identifying defects on the surface of a cold-rolled steel coil through the classification model is as follows: using a labeled image dataset and using a support vector machine (SVM) to train a classification model, identifying defects on the surface of the cold-rolled steel coil through the trained classification model, inputting the preprocessed image into the classification model, and judging whether there are defects on the surface of the cold-rolled steel coil through the output result of the classification model; wherein the labeled image dataset includes several sample images of normal cold-rolled steel coil surfaces and defective cold-rolled steel coil surfaces.
4. A cold-rolled steel coil surface defect detection and management system according to claim 3, characterized in that: The process of microwave detection and analysis using microwave transceivers installed on both sides of the camera is as follows: the microwave transceiver includes a microwave transmitter and a receiver. The microwave transmitter generates a microwave signal and irradiates it to the surface of the cold-rolled steel coil. The receiver receives the reflected or scattered microwave signal. The receiver transmits the signal to its built-in processing unit for analysis. The analysis process is as follows: defects will cause changes in the amplitude and phase characteristics of the microwave signal. Whether the cold-rolled steel coil has defects can be determined based on whether the changes occur.
5. A cold-rolled steel coil surface defect detection and management system according to claim 4, characterized in that: In the conveying speed Vs, S=1, 2, ..., n, where n is a positive integer, S represents the number of the corresponding conveying speed, and the interval Q is a preset value.
6. A cold-rolled steel coil surface defect detection and management system according to claim 5, characterized in that: According to the comparison result between the image quality evaluation value Lqe and the standard threshold, if the image quality evaluation value Lqe does not exceed the standard threshold, it means that the image quality meets the standard, and the cold-rolled steel coil is rated according to V s -Q for uniform speed transportation.
