Abstract

A new method of texture detection for aluminum foil based on digital image processing technology is proposed. Top-hat transformation and image segmentation technology based on the connected domain are used to change the method of determining texture fraction by using human experience. Compared with the brightness method, pit detection method, and EBSD technology, this method can complete quantitative detection efficiently, automatically, and accurately, and reduce the detection time and manpower. It eliminates the instability of manual detection and ensures the accuracy of detection. By this method, the error of test results can be controlled within 1.6%, which is much better than 7.3% of the brightness method and 4% of the pitting method. It provides more accurate test results for the production process control of aluminum foil.

1. Introduction

Aluminum electrolytic capacitors are widely used in various types of products, including electronic products, electrical and mechanical products, home appliances, and other products. The advantages of aluminum electrolytic capacitors are light weight and low price. With the advent of the information age, the development of all walks of life brings new opportunities and challenges for capacitors. Smaller size, larger capacity, lower cost, higher frequency, and lower impedance are the trend of development. As the key material of aluminum electrolytic capacitors, cube texture volume fraction of the electrolytic capacitor aluminum foil has a great influence on its electrical properties. So it needs enough strong cube texture [16]. In order to meet the needs of electronic aluminum foil production, it is necessary to adjust and control the product process better, to increase the {100} cube texture proportion of the electronic aluminum foil [7, 8].

As the convenient methods, the bright crystal method, etch pit method, and EBSD technology are widely used in the measurement of recrystallized cube texture of a high-voltage electronic aluminum foil. The etch pit method has a small field of sampling detection. The selection of multiple sampling regions is easily influenced by manual operation. The detection results are large randomness and poor representativeness. In many cases, the sampling results greatly differ from the overall results. The bright crystal method is an indirect method to measure the cube texture in an aluminum foil. Due to the week corrosion resistance of the noncube texture, the surface of the crystals that belong to the noncube texture appears as white bright after etching. Then, the noncube texture can be obtained through calculating the number of white bright crystals [9]. In most production lines, the simple bright crystal method relies on human experience to determine the cube texture fraction using human eyes. Not only it is just a qualitative method, but also the person needs to have some experiences. Besides, it cannot give accurate detection results that are divided into several grades based on experience and the result accuracy is low [1012]. The results of the EBSD technology are accurate, but there are some problems such as complex sample preparation.

In view of this, in this paper, a machine vision platform is set up instead of the artificial recognition to measure the cube texture fraction in an aluminum foil with the bright crystal method. The brightness of the electronic aluminum foil with texture and without texture is not uniform. As the aluminum foil is light and easy to wrinkle, it will bring the perspective of light interference. The image segmentation processing technology based on top-hat transformation and connected region is proposed. Firstly, the digital morphology open operation is used to subtract the background from the original image to get the target to be analyzed. Then, the connected region segmentation is carried out to increase the accuracy in the target image. After conversion calculation, the quantitative detection of the cube texture in the electronic aluminum foil is realized.

2. Process and Principle of Measuring Cube Texture Fraction of Electronic Aluminum Foil Based on Image Processing

According to the characteristics of electronic foil images, the detection method including image acquisition, pretreatment, image segmentation, and feature extraction is proposed. Figure 1 shows the flow chart of the cube texture detection of electronic aluminum foil based on image processing [13].

2.1. Image Acquisition

The samples were taken from the commercial aluminum foils in different batches with the size of 75 mm × 50 mm. And they were etched with a specific reagent. The composition and dosage of reagents are shown in Table 1.

In this study, the image acquisition device of MER-1070-14U3M/C-L industrial digital camera combined with LM16JC10M lens was used. The focal length of the lens was 16 mm. The low-angle bar light source was selected, and the pixel size of the pictures was 3840 (H) × 2748 (V), so the accuracy can reach about 0.02 mm. The complete image is taken, and the bright white dots representing the noncube texture are clearly recorded.

2.2. Image Preprocessing

The black part of the image is the background, and the other part is the aluminum foil. The gray part is the cube texture, and the white bright part is the noncube texture. In order to meet the requirement of the threshold segmentation, the contrast enhancement is used to pretreat the images to enlarge the difference in light and darkness between different objects. The results are shown in Figure 2.

2.3. Separation of the Aluminum Foil from the Background

The background of the image is close to pure black; that is, the gray value (0–255) is close to 0. But the gray value of both the aluminum foil and the noncube texture is far greater than 0. Firstly, an appropriate threshold value is searched for the aluminum foil image to separate the aluminum foil in the image from the background. After binarization, the aluminum foil portion in the binarized aluminum foil image is white, and the nonaluminum foil portion is black.

The threshold required for binarization can be obtained by using the maximum between-class variance method [1214, 15]. For foil images I(x, y), the foil and background segmentation threshold is denoted as T. The ratio of pixels belonging to the aluminum foil to the image is denoted as ω0, and its average gray is recorded as μ0. The ratio of the background pixels to the total image is denoted as ω1, and its average gray is recorded as μ1. The total average gray level of the image is denoted as μ, and the variance between classes is recorded as . Assuming that the background of the image is dark, the size of the image is M × N, and then

Substituting (1) into (2) gives the equivalent formula:

The traversal method is used to obtain the threshold T that maximizes the variance between the two classes of aluminum foil images. Greater than the threshold is the foil area of the image, while less than the threshold is the background area.

2.4. Feature Extraction

After extracting the main body of the aluminum foil, the proportion of the noncube texture can be obtained.

2.4.1. Noncube Texture Extraction Based on Top-Hat Transformation

Noncube texture appears as a bright white spot in the image. Different parts of the aluminum foil are still uneven in illumination after the light source is adjusted. It is difficult to meet the demand for a certain threshold via experiments. In order to correct the impact of uneven illumination, the morphological top-hat transformation combined with the maximum between-class variance method is used to achieve adaptive segmentation of images and extract the noncube texture. The process is as follows:where x, y represents the position of the image pixel, and F(x, y) represents the entire image. B is the structural element, and G(x, y) is the output image. represents the morphological opening operation; that is, the image is corroded and swell with the structural elements of 15 × 15 [1618].

The output image G(x, y) is obtained after the morphological opening operation from the original image. Then, the second threshold for the binarization operation is determined using the maximum interclass variance method. The threshold value T is obtained when the between-species variance reaches the maximum. And the bright white spots representing the noncube textured parts can be initially separated from the nonuniform background after being binarized.

2.4.2. Reflective Removal Based on Connected Areas

The wrinkle of the aluminum foil causes the reflection in the process of image shooting. The reflection region would be separated in the binarization process as large white areas, which greatly affect the detection accuracy. So the large white areas need to be removed.

The flow chart is shown in Figure 3. Firstly, the connectivity area is marked by the eight-connectivity decision method [19]. That is, each pixel is connected to the adjacent eight pixels with the same gray value. And the number of pixels in each white connected area can be counted. Then, it is determined whether the number of pixels in each of the white connected regions is 10 times greater than the average number of pixels in a single white dot. At this time, the region is considered to be reflective part. The white connected region is removed when the area is larger than the preset threshold [2022]. The other parts appear black except that the noncube texture appears as a bright white spot in the image. The result is shown in Figure 4.

2.5. Calculation of Cube Texture Fraction

The number of pixels occupied by the extracted aluminum foil is S1; the number of pixels in the white area caused by the large-area reflected light is S2; the number of bright pixels representing the noncube texture is S3; the fraction of noncube texture is S3/(S1–S2); and the fraction R of the cube texture in the aluminum foil is obtained as follows:

3. Comparison and Discussion of Experimental Results

3.1. Comparison with the Bright Crystal Method

The bright crystal method utilizes the different corrosion resistance between the cube and no-cube texture. Because of the week corrosion resistance, the surface of the noncube texture is white bright after etching and the other area is cube texture. The texture identification can be obtained through the proportion of areas covered with different colors. The artificial result means that the artificial experience is used to judge the proportion of gray in the whole aluminum foil after etching. Four batches of aluminum foil were obtained from the industrial site and calibrated by human identification in the simple bright crystal method. In each batch, there are four samples that the texture fraction is estimated as 88%, 92%, 95%, and 97%, respectively. Using the present method for each batch of 4 samples, a total of 16 samples were tested as shown in Table 2:(1)The average cube texture fractions of several aluminum foils calibrated by human identification and image processing are basically the same.(2)However, there are some limitations of human identification. For example, the cube fraction of two aluminum foils in number 1 was identified as 95% and 97%. But the present method measured texture fraction was 98.51% and 98.33%, respectively.

In summary, the human eye recognition relies on the rich experience of the staff to judge so that it is not quantitative method and cannot give the result accurately. The method described in this paper based on image processing of texture measurement of the cube textured aluminum foil can achieve the quantification of detection results.

3.2. Comparison and Analysis with Etch Pit Method

The etch pit method uses different shapes and colors after the corrosion to measure the texture. The cube texture has almost same direction and gray color, while the noncube texture appeals irregular shape and black color. The result can be obtained via a metallurgical microscope [9].

For each of the aluminum foil samples, a detection field of view was randomly shifted in the range of 10 mm × 10 mm in the sample and the pixel size of the pictures was 2000 (H) × 2000 (V). A single field of view is shown in Figure 5(a). After binarization, the noncube texture in view can be obtained as shown in Figure 5(b).

The cube texture fraction of the sample was calculated according to the area method shown in formula (6). The arithmetic mean of the cube texture fraction of nine subsamples was calculated as the cube texture fraction of the aluminum foil. The results are shown in Table 2. There were 16 samples, and each sample is measured based on two different zones, which are chosen randomly. For example, in number 1-2 (Table 3), the first number 1 respects the batch number and the second number 2 respects the second detection in the same batch. The number 1 in Table 2 respects the batch number:

In the formula, A is the percentage of the cube texture of {100} crystal plane, ai is the cube orientation grain area of the i in view, and s is the total area of the detection field [11].

There are some differences between the two methods as shown in Tables 2 and 3. The result of the etch pit method for each sample is about 2% higher than the artificial result. The reason is that the etch pit method does not cover the entire field of view, and people tend to choose to have some noncube textures in the field of view, rather than having a cube texture in the field of view or a large number of noncube textures. In addition, due to the presence of defects such as impurities and dislocations, the surface pits are distorted. These factors can cause the statistical results to be too small [23]. Although the method described in this paper cannot reach the accuracy of the etch pit method under metallographic microscope, it can reflect the cube texture of the aluminum foil as well as the etch pit method. And it is a macro field of view that covers a large area and reflects a more comprehensive region. So the result is more representativeness.

3.3. Comparison and Analysis with EBSD Technology

Different samples with varying cube texture were tested by EBSD technology. The representative result is shown in Figure 6.

The electropolishing method was used to prepare samples. And then, the samples were kept in the vacuum experimental environment. The samples were tilted at 70°, and the accelerating voltage and working distance were selected according to the condition of the samples. The max deviation angle is set as 15°. The EBSD probe is inserted again to produce an EBSP pattern. Finally, the EBSD results were analyzed by HKL Channel 5 software. The statistical distribution (texture) of crystal orientation can be determined by statistical calculation. The results of cube texture detection based on different methods compared with EBSD are shown in Table 4.

The results of EBSD processing are more credible, but because of its complex sample preparation, it has not been widely used in industry. From the results in Table 3, the errors between other methods and EBSD for measuring cube texture content can be obtained. The comparison results show that the image processing method is far less than other methods, which shows that the proposed method has high reliability.

4. Conclusion

(1)The etch pit method can quantitatively detect the texture of the electronic aluminum foil with high accuracy. However, the sampling area is small, and the detection results obtained in many different sampling areas are easily affected by the sampling and analysis personnel’s operation level. Bright crystal method measures the texture of a material by observing the area of the noncorroded area. The noncorroded area is determined by the corrosion resistance of the different crystal planes of the recrystallized texture in the aluminum foil under certain chemical etching conditions. The image-based detection method described in this article can accurately and quantitatively give the results to reflect the overall texture of the detection sample.(2)From the average cube texture fraction in the experimental results, it can be seen that both the present method and the etch pit method can truly reflect the cube texture fraction of the aluminum foil. They all meet the needs of production accuracy. However, compared with the etch pit method, the detection range of present method is larger, which can avoid the influence of manual selection on the field of view. The results reflect more objectively and comprehensively. At the same time, compared with the simple bright crystal method, the quantitative analysis is realized by using machine vision instead of human, which is more accurate than the empirical classification results.(3)Texture fraction detection as a common indicator of quality control in industrial mass production, etch pit method, and the bright crystal method is the main method of texture detection. In particular, the bright crystal method has been popularized in China. In this paper, with the help of the light-crystallinity method, under the uneven brightness and reflection, an image segmentation processing technology based on top-hat transformation and connected region was proposed. Theoretical analysis and experimental results show that good segmentation results can be obtained. Therefore, the cube texture fraction detecting method of the electronic aluminum foil based on image processing has practical significance that is reliable and easy to implement. There is a bright future for the cube textures offline detection of the electronic aluminum foil.

Data Availability

The Blob data used to support the findings of this study are included within the supplementary information files.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

This research was supported by the National Key Technology R&D Program of the 12th Five-Year Plan of China (Grant no. 2015BAF30B01), the Fundamental Research Funds for the Central Universities (Grant no. FRF-BR-17-030A), the Open Foundation from the State Key Laboratory of Rolling and Automation, Northeastern University (Grant no. 2018RALKFKT003), and USTB-NTUT Joint Research Program (Grant no. TW2019013).

Supplementary Materials

The supplementary data are as follows: (1) The files named 88-1, 88-2, 88-3, and 88-4 are four photographs of an aluminum foil that has been manually calibrated with a texture content of 88%. And the file named 88 is the result of an EBSD experiment on this aluminum foil. (2) The files named 92-1, 92-2, 92-3, and 92-4 are four photographs of an aluminum foil that has been manually calibrated with a texture content of 92%. And the file named 92 is the result of an EBSD experiment on this aluminum foil. (3) The files named 95-1, 95-2, 95-3, and 95-4 are four photographs of an aluminum foil that has been manually calibrated with a texture content of 95%. And the file named 95 is the result of an EBSD experiment on this aluminum foil. (4) The files named 97-1, 97-2, 97-3, and 97-4 are four photographs of an aluminum foil that has been manually calibrated with a texture content of 97%. And the file named 97 is the result of an EBSD experiment on this aluminum foil. (Supplementary Materials)