Abstract

With the rapid development of visual inspection technology, computer technology, and image processing technology, machine vision technology has become more and more mature, and the role of quality inspection and control in the steel industry is becoming more and more obvious and important. Defects on the surface of the strip are a key factor affecting the quality inspection process. Its inspection plays an extremely important role in improving the final quality. For a long time, traditional manual inspection methods cannot meet actual production needs, so in-depth research on steel surface defect inspection systems has become the consensus of today’s steel companies. The accuracy and low performance of traditional detection methods can no longer meet the needs of people and society. The surface defect detection method based on machine vision has the characteristics of high accuracy, fast processing speed, and intelligent processing, which is the main trend of surface defect detection. We select a steel plate; take the invariant moment features of the cracks, holes, scratches, oil stains, and other images on it; extract the data results; and analyze them. Then, we read the texture features of these defect images again, extract the data results, and analyze them. The experimental results prove that after the mean value filter and Gaussian filter process the image, the mean variance value MSE is relatively large (), and as the concentration of salt and pepper noise increases, the rate of increase of MSE increases obviously, and as the peak signal-to-noise ratio and the mean variance value MSE increase continuously (), the image distortion is more serious. The method designed in this paper is extremely effective. Improving the surface quality of steel is of great significance to improving market competitiveness.

1. Introduction

Ophthalmic diseases have more complex causes, more different diseases, and more variable conditions and belong to clinical ophthalmic diseases [1]. It will seriously affect the vision of the patient and may even cause blindness. Therefore, in order to effectively improve the vision of patients, the abovementioned various consequences must be effectively prevented. Due to the introduction of advanced technology and production technology, product quality and standard production technology have been significantly improved in recent decades. However, due to the extensive influence of many complex reasons, such as initial production habits and inspection methods, it is used as steel. A large part of the surface quality has not changed much. As an important raw material for modernization [2], steel plates are used in all aspects of social development, from bridge construction to aerospace machinery and many other essential fields. The quality of the metal plate is directly related to the reliability of public use and the safety of society and public industries [3]. Detecting and inspecting the surface defects of steel plates are currently the primary task of steel companies. The development of a cost-effective surface quality inspection system suitable for Chinese steel companies has become a top priority.

Defects on the surface of the strip are a key indicator for evaluating the quality of the film. The effective method of detecting defects has attracted people’s attention for a long time. Researchers at home and abroad have done a lot of work for this and achieved some results. Ohkubo et al. proposed a detection system that uses a laser as a scanning light source, a 12-sided reflective prism and a cylindrical mirror as an optical system, and a photomultiplier tube to receive the detection system [4, 5]. Liu et al. proposed the theory of eddy current testing and successfully used eddy current testing technology to detect metal barium, which opened up the research boom of eddy current testing in the application of metal surface defect detection [6]. Choudhary et al. have developed an online automatic detection system for surface defects of continuous casting billets, which has set off a research boom in infrared detection of surface defects [7]. Dombrowski et al. chose a fully programmable image digitizer and a fully programmable high-speed digital signal processor to process digital image signals and used the system for cold-rolled strip steel surface, edge cracks, and other edge tests [8]. Shu et al. conducted the research on the strip steel surface detection system which analyzes the CCD detection method and proposes some effective algorithms [9]. Hossam et al. use computer image processing technology and pattern recognition technology to perform image processing and defect classification algorithms and perform effective surface defect detection [10]. Therefore, the research on the key technology of the steel plate surface defect detection system based on artificial intelligence machine vision is of great significance.

The existing extraction methods are mainly aimed at normal retinal images, which are not universal; this paper adopts an improved maximum classification algorithm based on constant torque to solve the inefficient ground-to-ground detection problem, using gray scale and texture feature extraction methods, feature selection methods based on principal component analysis, and defect classification algorithms based on support carrier machines. Research on key technologies such as image processing and detection system classification and recognition has solved the problem of steel surface defect detection system. Defect segmentation takes a long time, there are many feature sizes, and the classification result is low.

2. Key Technologies of Steel Plate Surface Defect Detection System Based on Artificial Intelligence Machine Vision

2.1. Defect Image Preprocessing and Segmentation Technology
2.1.1. Image Denoising Analysis

Generally, we hope that the image captured by the camera is clear and noise-free [11]. Since optoelectronic noise will hinder the conversion of images from optical to electronic forms and electronic signal processing amplifiers will cause thermal noise interference, images will inevitably produce noise during this series of complex processing processes [12, 13]. After that, the method of comparative treatment was adopted, and the experimental group and the control group were compared with two different treatment methods. According to the relationship between noise and signal, it can be divided into additional noise and amplified noise [14].

(1) Types of Noise. The probability density function obeys a kind of noise with Gaussian distribution, and the one-dimensional probability density function is shown in the following formula:

Among them, is the gray value, is the mean value, and is the variance. Suppose a useful signal is and noise is and the output signal is under the influence of the noise signal, then

In multiplicative noise, the relationship is as follows:

Some infection spots with small gray values (close to black) or large gray values (close to white) appear in the image, and dark and bright spots similar to pepper and salt particles appear in the image, calculated as follows:

(2) Mean Filter. The filtering process of the mean is to make the window slide in the image, then find the average value of each pixel in its neighborhood, and finally replace the value of the center position of the window with the average value of each point in the window [1517]. Assuming an image of , an image is obtained after the mean filtering process is as shown in the following equation:

In the formula, is the predetermined neighborhood and is the total number of pixels contained in the neighborhood. The gray value of each pixel in the image is determined by the average value of the gray values of several pixels of contained in the predetermined neighborhood of . The area with a radius of 1 is expressed as

Formula (5) is expressed by convolution.

(3) Wiener Filter. Wiener filtering is an adaptive filter that minimizes the average square error between the original image and the restored image. The smaller the mean square error, the better the filtering effect of filtering noise [18, 19]. The mean and variance are

In the formula, is the field of each pixel, and its estimated formula is

In nanomaterials, when the particle size reaches a certain physical characteristic size, the energy levels of electrons adjacent to the metal Fermi plane change from an almost continuous state to a discrete state, while the nanoparticles have discontinuous, higher-occupancy molecules.

2.1.2. Filter Effect Evaluation and Result Analysis

After filtering the image, we must also evaluate the image quality [20]. Image quality mainly includes two aspects: one is the degree of difference between the image and the original standard image; the other is the ability of the image to provide information to individuals or machines from subjective and objective aspects. Commonly used indicators are the signal-to-noise ratio of PSNR and the normalized mean square error NMSE [21, 22]. They are expressed as follows:

2.1.3. Two-Dimensional Maximum Entropy Threshold

Assuming that the region and the region have different probability distributions, the posterior probability of the region and the region is used to normalize the probability of each region to make the partition entropy have additivity, and the threshold is set at , then

Then, the two-dimensional entropy of zone and zone is

The discriminant function that defines entropy is

2.2. Traditional Threshold Segmentation Technology

The so-called threshold segmentation technology is to use a threshold in the picture to divide the entire picture into two parts, a black part and a white part, with one part as the target object and the other part as the background object [2325]. Throughout the scientific frontier literature and books on nanoelectrocatalysts, the most mentioned word is energy. Energy is no longer a problem of a certain country but has become a problem of global concern. When a crisis occurs, there is no one. The country can take care of itself. The vast number of scientific researchers is working against clean energy. Based on Otsu threshold segmentation, an iterative threshold segmentation was proposed.

2.2.1. Otsu Threshold Segmentation Method

In the process of detecting data image defects, if you want to request the optimal threshold, you must cross all pixel values in the grayscale range and calculate the amount of change. When the amount of calculation is large, the output will be very low [26, 27]. At the same time, due to the influence of factors such as the gray level of the image itself and the noise interference that has not been eliminated, the best limit cannot be reached by using only the gray histogram, which will lead to very unsatisfactory processing results [28].

2.2.2. Iterative Threshold Segmentation Method

Compared with the Otsu threshold segmentation, it is not necessary to determine an optimal threshold for each picture, which has a certain degree of adaptability [29, 30]. The specific steps are as follows. First, determine a parameter T0 based on pictures and experience, and select a preliminary estimated threshold T1. Then, use T1 to divide the image into two parts.

2.3. Improved Threshold Segmentation Algorithm Based on Pixel Search

In the detection process of steel plate surface defects [31], some defects occupy fewer pixels and have a low signal-to-noise ratio. Due to the reflective characteristics of the steel plate surface, the background light is uneven, and the defect characteristics and the background gray value are not obvious. After the research of the previous section, it is found that the processing effect of traditional edge detection and threshold segmentation algorithms is not ideal [29, 32]. In order to improve the segmentation of weak steel plate surface defect features, this section explores the use of pixel search methods. Defect threshold segmentation is carried out, and the method of segmentation of weak defect images is combined in the segmentation process. As a result, it is found that the segmentation effect has certain advantages, which is of great help to the later feature extraction of steel plate defects [33].

Integrate the various small areas so that the steel plate defect target and background can be separated as a whole [34, 35]. Uveitis is a chronic inflammation. At present, glucocorticoids, nonsteroidal anti-inflammatory drugs, and immunosuppressive agents can effectively treat uveitis, but these drugs have difficulty reaching the retina to achieve a complete therapeutic effect. Therefore, treating uveitis remains a challenge. Recent studies have shown that nanocells can improve the solubility of drugs and increase the permeability of conjunctival epithelial cells through good hydrophilicity and high drug encapsulation potential. Finally, each defect target will not exist in the form of a pixel, and it must meet the gray level of the same area. Uniformity and connectivity must be achieved, so that the segmented defect images can better meet the needs of defect feature extraction.

In view of the small defect segmentation problem where the contrast between the defect target and the background is not obvious due to uneven illumination of the steel plate surface image and the reflection of the steel plate itself, the steel plate defect target segmentation algorithm proposed in this section fully considers the similarity of the defect target and the background pixel in the same area. Therefore, in the process of target segmentation, first, divide a small area; then, discharge whether there are defective targets in the small area; and finally, confirm whether the small defective target is a target [36, 37]. The specific implementation process of the target segmentation algorithm based on pixel search in the entire segmentation process is as follows:(1)The preprocessed steel plate surface image is divided into different small areas. In the small areas, each small area can be a background image or a combination of a background image and a defect target. It is better not to be all defective images(2)Calculate the variance of each small area, and arrange them in an ordered sequence in the order of variance(3)Set an initial threshold. If the variance change range is less than the initial threshold, the small area is determined to be a background image; if the variance change range is greater than the initial threshold, the small area is determined to have a defective target(4)If it is determined that there is a defective target in a small area, the threshold within the variance is determined adaptively; if it is greater than the threshold within the variance, it is determined as the defective target; and if it is less than the threshold within the variance, it is determined as the background image(5)After traversing each small area, each small area is divided into two parts: the defect target and the background. During the whole process, some backgrounds will be mistaken for the surface defect target of the steel plate, so it must be eliminated. The defect target has a certain path. Connected domains exist. This article takes the current pixel as the center and sets a window. If more than half of the pixels in this window are defective pixels, it is confirmed that the pixel is a defective point

3. Key Technologies of Steel Plate Surface Defect Inspection System

3.1. System Composition

The steel plate surface defect detection system based on machine vision is mainly composed of optical lighting system, industrial camera, image acquisition system, image processing system, terminal computer, and data management system [38]. The system consists of two parts: hardware system and software system. The system flow chart is shown as in Figure 1.

3.2. Test Subject

The three doctors with rich work experience in this hospital are comprehensively judged for judging the degree of treatment. If there is a dispute, the result can be selected through discussion. We can regard the gray level of an image as a two-dimensional gray density function; then, a gray matrix can be used to describe the image moment features. We select a steel plate; take the invariant moment features of the cracks, holes, scratches, oil stains, and other images on it; extract the data results; and analyze them. Then, we read the texture features of these defect images again, extract the data results, and analyze them. Taking the image of steel plate without bonding defects and adding different concentrations of salt and pepper noise as the research object, 4 kinds of filtering methods are used to denoise mixed experiments.

3.3. Experimental Method

There are many ways of data standard processing, but different data standardization methods will have a certain impact on the evaluation results of the system. For the positive index standardization method,

For the negative index standardization method,

After standardizing the data, using the principal component analysis of nonlinear logarithmic centering, the processing steps of logarithmic transformation and row vector centering are

3.4. Statistical Data Processing Method

SPSS23.0 software was used for data processing, and the count data was expressed as a percentage (%), is the number of data in this experiment, is the variance of all survey results, and indicates that the difference is statistically significant. The formula for calculating reliability is shown in the following equation:

4. Key Technology Research on Steel Plate Surface Defect Detection System

4.1. Evaluation Index System Based on Index Reliability Testing

Reliability refers to the stability and reliability of the questionnaire [39]. This article adopts the coefficient method created by L.J. Cronbach. The coefficient can be obtained by Reliability Analysis in SPSS software. It is generally believed that the coefficient above 0.8 indicates that the effect of the index setting is very good, and above 0.7 is also acceptable. Here, we analyze the reliability of each type of object, and the reliability index we choose for each type of object is slightly different. The results are shown in Table 1.

It can be seen from Table 1 that the data obtained from the surface defects of various steel plates has an acceptable influence on this experiment (), and the influence of the data around the defects on the surface of various steel plates is acceptable. Within the scope, meet the prerequisites for the start of the experiment.

4.2. Sample Feature Extraction Data Analysis
4.2.1. Invariant Moment Feature Extraction Data Analysis

Feature extraction, as a key link in the image processing process in the system, is an important process to ensure the practicability of the system and the accuracy of defect recognition [38]. We separately analyze the cracks, holes, scratches, and inclusion defects in the samples and their own, right shift. The left-shifted and transposed image extracts moment-invariant features. The extraction results are shown in Table 2. We make a line graph based on this result, as shown in Figure 2.

It can be seen from Figure 2 that the invariant moments of the same type of defects are not much different after they are themselves shifted left, shifted right, or transposed. The two groups of patients were compared at the end of the first course of treatment and at the end of the second course of treatment. The anxiety level of the experimental group is lower than that of the control group during half of the treatment. This conclusion is reliable, and there is no significant difference.

Feature extraction, as a key link in the image processing process in the system, is an important process to ensure the practicability of the system and the accuracy of defect recognition. We gather the moment invariant features extracted from different types of defects according to Table 2, and the results are shown in Figure 3.

It can be seen from Figure 3 that the invariant moments of different types of defects themselves, after shifting to the left, shifting right, or rotating, are quite different, which also verifies that the invariant moments have translation and rotation invariance. This also proves the accuracy of the median filtering algorithm system based on partial differentiation selected in this paper from the side. The new gray median value obtained by the algorithm can more accurately restore the original pixel value when there is no noise [40], and using the new gray the median degree value replaces the original noise points so that the algorithm can better retain the texture details of the image while filtering the noise.

4.2.2. Texture Feature Extraction of Defect Images

As a global feature, texture is a ubiquitous but difficult to describe possibility in images. The texture attribute refers to the law of change from pixel level to gray level in an image, which is an irregular but normal feature in the macroscopic view. We extracted the texture features of the cracks, holes, scratches, and inclusion defects in the samples, and the extraction results are shown in Table 3. We make a histogram based on this result, as shown in Figure 4.

It can be seen from Figure 4 that from the feature data extracted above, the difference between different features of different types or the same type is also very large. Because there is a unique sample, using this data for defect classification will cause the classifier to converge too late or even fail to converge, resulting in low classification accuracy or classification failure. Therefore, before classification, different methods should be selected according to needs. The exported attribute data has been standardized.

4.2.3. Standardized Processing of Characteristic Data

Here, our method is to standardize the extracted feature data. We choose the linear scale transformation method, the range transformation method, and the standard sample transformation method. These three methods are different. The standard values of the data after linear transformation are all in (within the range of 0, 1); when the positive and negative indicators are equalized to positive indicators, the optimal value is 1, the worst value is 0, and the larger the value, the better. When the maximum value of a positive indicator is 0, this method cannot be used to standardize the indicator; when the value of a reverse indicator is 0, this method cannot be used to standardize the indicator. The results are shown in Table 4. We make a radar chart based on this result, as shown in Figure 5.

It can be seen from Figure 5 that the values of the four indicators of the hole are all equal, so the standard sample transformation method and the range transformation method cannot be used, but the linear proportional transformation method can only be used; the values of the four indicators of the crack are all close to 0, so the range transformation method cannot be used and the linear scale transformation method can only use the standard sample transformation method; the values of the four indicators of abrasion are all close to 1; and you can choose to use the range transformation method and the linear proportional transformation method; the values are close to 1; you can choose to use the range transformation method and the linear scale transformation method.

4.3. Experimental Results Based on Image Denoising
4.3.1. Analyze according to Different Algorithm Experiments

Through four different strip steel surface defect detection system designs, work in the same environment at the same time to analyze the changes in detection accuracy. Data-type factors adopt independent sample -test, and the experimental results are shown in Table 5. We make an area map based on this result, as shown in Figure 6.

Figure 6 shows that the median filter and Gaussian filter have a particularly poor effect on salt and pepper noise. The middle filter can remove the salt and pepper noise in the middle, but it is not effective at the edges of the salt and pepper noise. The intermediate filter based on partial differentiation has the effect of salt and pepper noise, which is better. As the concentration of salt and pepper noise increases, the average Gaussian filter and filter are less capable of handling salt and pepper noise. Medium filtering still does not perform well in terms of edge noise. The medium filter based on partial differential has the best effect on the noise of salt and pepper.

4.3.2. Analyze according to the Signal-to-Noise Ratio and Variance Value

In order to compare different filtering effects more intuitively, this article uses signal-to-noise ratio and variance to evaluate the image quality after skipping. Comparing the maximum signal-to-noise ratio and image fluctuation after denaturation under different salt and pepper noise concentrations, it can be compared that the filtering effect studied in this paper is the best. Through experiments, the maximum signal-to-noise ratio and change value of each filter under different salt and pepper noise concentrations are obtained, as shown in Figure 6. We make a line chart based on this result, as shown in Figure 7.

It can be seen from Figure 7 that after processing the mean filter and Gaussian filter images, the average MSE fluctuation value is relatively large, and as the salt and pepper noise concentration increases, the growth rate of MSE increases significantly, and the signal-to-noise ratio also increases with the average fluctuation value. The increase in MSE continues to decrease, and image distortion becomes more serious. After performing intermediate filtering and adaptive filtering on the image, compared with the first two images, the image distortion is reduced, but the distortion is also more serious. After filtering the image, the image repayment effect is better.

5. Conclusions

An effective threshold segmentation algorithm for coefficient of variation is proposed. This algorithm overcomes the disadvantage of using only one threshold per iteration in repeated threshold segmentation. It also utilizes the sliding window used in adaptive threshold segmentation, which reduces the amount of calculation and improves detection efficiency. The system structure of the whole system is designed, and the system is divided into imaging module, fault detection software module, and storage management module. According to different principles of detection methods, different image capturing methods are given. The overall process of defect detection software is designed, and the design and implementation of basic software units are introduced in detail. This paper analyzes the design of the steel strip surface defect detection system based on machine vision. According to the application requirements of machine vision technology, based on the surface quality of strip steel, the detection of surface defects is adjusted and optimized for the design of this article. Experiments prove that the method designed in this paper is very effective. We hope that the research in this article can provide a theoretical basis for the design method of steel surface defect detection system based on machine vision.

At present, most retinal blood vessel extraction methods are mainly used for normal retinal images. Therefore, when applied to a large range of lesion images, it is difficult to accurately extract blood vessels due to the interference of lesions and other nonvascular structures, and a large number of nonvascular structures cannot be filtered. In addition, this article focuses on vascular bone extraction and vascular structure segmentation methods suitable for retinal imaging. Analyze the characteristics of defects, and find the entry point for detecting defects. According to the edge feature, uneven texture feature, and uneven defect feature, the defect detection method based on edge feature, the defect detection method based on unequal texture feature, and the defect detection method based on irregular feature are proposed. The techniques and theories on which this method relies are introduced and discussed.

The steel industry occupies an important position in China’s economic industry. It can be regarded as the main core of manufacturing. This is an intensive industry that has accumulated a lot of capital and energy. Although China produces a large amount of steel every year, the quality of various steel products in China is obviously not as good as that of developed countries. In the quality of steel products, the importance of surface quality is self-evident, but improving quality is always difficult. Improving the surface quality of steel is of great significance to improving market competitiveness. Accurate detection of steel plate surface defects and the establishment of a steel plate surface defect evaluation system are important conditions for improving the quality of steel plates. This article makes full use of the image data of steel surface defects and introduces artificial intelligence methods to classify and identify steel defects and target detection. It solves the problem of long iteration time of ant colony optimization algorithm and particle optimization algorithm. The algorithm is easy to fall into local optimization, improves the classification accuracy of the support machine, optimizes the optimization process, and is made of steel.

Data Availability

The data underlying the results presented in the study are available within the manuscript.

Conflicts of Interest

The authors declare that they have no conflicts of interest.