Magnetic Ring Multi-Defect Stereo Detection System Based on Multi-Camera Vision Technology
간접 관련 화학·수지 · (21) 에폭시수지 (14) 드라이 필름(포토레지스트)(15) 디스플레이 패널재료
기본 정보
- 저자
- DOI
- 10.3390/s20020392
- 저널
- Sensors
- 발행년도
- 2020
- 발행기관
- Multidisciplinary Digital Publishing Institute
- 피인용수
- 11
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.3390/s20020392
- 토픽
- Surface Roughness and Optical Measurements
- OpenAlex ID
- W2998888794
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 화학·수지 · (21) 에폭시수지
- 부 분야
- (14) 드라이 필름(포토레지스트), (15) 디스플레이 패널재료
- R&D 측면
- 분석·모델링
- 확신도
- 0.70
- 근거 용어
- defect detection, vision technology, image processing, surface inspection, automated inspection
- 판단 근거
- 본 논문은 자기 링(Magnetic Ring)의 표면 결함을 머신 비전 기술로 검출하는 시스템에 관한 연구입니다. 코오롱인더스트리의 직접적인 제품은 아니나, 필름이나 전자재료(PCB 등) 제조 공정에서 필수적인 자동화 외관 검사(AOI) 및 품질 관리 알고리즘 기술로 응용 가능합니다.
- R&D 활용 포인트
- 전자재료 및 필름 제조 공정 내 실시간 결함 검출(Crack, 이물질, 표면 불량 등)을 위한 머신 비전 시스템 및 이미지 처리 알고리즘 고도화에 활용 가능합니다.
- 평가 입력
- 본문 46,441자 중 30,032자 발췌
초록
본문 46,441자
본문 펼치기
섹션 본문 67문단 · 43,786자
(제목 없음)
1Magnetic rings are the most widely used magnetic material product in industry. The existing manual defect detection method for magnetic rings has high cost, low efficiency and low precision. To address this issue, a magnetic ring multi-defect stereo detection system based on multi-camera vision technology is developed to complete the automatic inspection of magnetic rings. The system can detect surface defects and measure ring height simultaneously. Two image processing algorithms are proposed, namely, the image edge removal algorithm (IERA) and magnetic ring location algorithm (MRLA), separately. On the basis of these two algorithms, connected domain filtering methods for crack, fiber and large-area defects are established to complete defect inspection. This system achieves a recognition rate of 100% for defects such as crack, adhesion, hanger adhesion and pitting. Furthermore, the recognition rate for fiber and foreign matter defects attains 92.5% and 91.5%, respectively. The detection speed exceeds 120 magnetic rings per minutes, and the precision is within 0.05 mm. Both precision and speed meet the requirements of real-time quality inspection in actual production.
Introduction
2Magnetic materials are commonly used in electronic circuits as anti-interference components. As the main product, magnetic rings are widely used in aerospace, military electronics, automobiles, sensors, the petrochemical industry, magnetic drives and other fields [1]. During the production process, due to the production environment and processing procedures, defects, such as crack, adhesion, pitting, foreign matter and fiber defects, will appear on the surface of the magnetic ring. These defects would affect the appearance and performance of industrial products. Therefore, high-efficiency and high-precision surface detection of magnetic rings is crucial for manufacturing enterprises. However, surface defect detection and height measurement of magnetic rings by manual inspection, which is currently widely used, are costly, inefficient, low-speed and low-accuracy. Hence, it is significant to design an automated system to complete real-time defect detection and height measurement for magnetic rings.
3In recent years, many excellent technical solutions for defect detection have been proposed by researchers. The ultrasonic testing technique [2,3], eddy current testing technique [4][5][6] and vision inspection technique [7][8][9][10] are widely used. Among them, in practical production, the vision inspection technique has been successfully adopted for surface detection of industrial products because of its convenience, effectiveness and cost performance. Li and Ren [11] developed an intelligent vision detection system for discrete rail surface defects. Tsai and Hsieh [12] proposed a fast image alignment method by using the expectation-maximization (E-M) technique, which accomplished the positioning and defect inspection of printed circuit boards (PCBs). Furthermore, an entropy-rate clustering algorithm combined with prior shape constraint was proposed by Chen [13] to detect defects and deformations across an imaged can-end surface. Ko and Rheem [14] inspected the surface defects of solar wafers by using the local binarization method.
4Furthermore, aimed at the inspection of magnetic ring surfaces, researchers have carried out active research. By using the ultrasonic testing technique, Xu [15] designed a programmable filter based on the MAX262 chip, and used the fourth-order Chebyshev bandpass filter to extract weak vibration signals for detecting cracks in the magnetic ring. However, the detection of defects other than cracks was not considered. Using the vision inspection technique, Yu [16] designed an automatic vision-based detection system and used an improved BHPF (butterworth high pass filter) filter for denoising. Nevertheless, the designed system only completed the detection of the magnetic ring end face, which is not comprehensive. Furthermore, Li and Zhang [17] proposed a surface defect extraction method for magnetic rings based on the adaptive Canny algorithm of the edge-detection method and masking technology. However, the detection of the inner torus was not considered.
5To measure the multiple dimensions of magnetic rings quickly and to detect and classify the defects precisely, this paper develops a magnetic ring intelligent detection system based on multi-camera vision technology. A wide range of aspects is considered to ensure that no defect or surface is missing, making our system more comprehensive than the systems mentioned above. Trapped by multiple tasks and diverse defects, the traditional single vision system cannot obtain enough information. So, multiple vision machines are used in the system, which guarantees high-speed defect detection on multiple surfaces of three-dimensional magnetic rings. Two image processing algorithms are proposed, namely, the image edge removal algorithm (IERA) and magnetic ring location algorithm (MRLA), respectively, which effectively solve the defect segmentation problem. Finally, by using reasonable thresholds obtained through experiments, connected domain filtering methods are indicated to localize defects quickly and accurately.
6The rest of this paper is organized as follows. Section 2 describes the hardware and software components of the multi-vision machine intelligent detection system; Section 3 describes the defect detection algorithm for each surface and the height measurement method; Section 4 demonstrates the detection results of the system. Finally, the conclusions are given in Section 5.
Hardware Design
7As can be seen from Figure 1, the outer diameter and inner diameter of the magnetic ring to be tested are 22 and 20 mm. The height is 3.5 mm, and the color is gray. The structure is complicated and the types of defects are various, so how to realize the real-time online detection of all defects and surfaces is a difficult problem. One approach is using a single vision machine and rotational shooting mode, but this demands a high-precision rotary positioning system and the detect speed is too low to meet the requirements. Considering the fact that defects are distributed on all sides of the magnetic ring, we propose a solution that can complete image acquisition and processing synchronously by using multiple high-speed vision machines.
8This system mainly includes three modules, which are the visual inspection module, actuator module and host computer module (as shown in Figure 2). The visual inspection module contains six vision machines and achieves multi-view image collection, image processing and test results sending. The vision machine integrates camera control, card processing and serial communication to solve industrial automation production problems [18]. The host computer takes charge of the judgment Sensors 2020, 20, 392 3 of 17 results summary of all the vision machines and the control of the executing mechanism. The actuator module, consisting of a feeding device, a transmission device and a sorting device, completes the mechanical operation of the magnetic ring. The feeding device is responsible for feeding magnetic rings into the transmission device at a certain speed. The transmission device is in charge of transmitting magnetic rings from the feeding device to the sorting device. The sorting device finishes final defect classification according to the control signal of the host computer. This system mainly includes three modules, which are the visual inspection module, actuator module and host computer module (as shown in Figure 2). The visual inspection module contains six vision machines and achieves multi-view image collection, image processing and test results sending. The vision machine integrates camera control, card processing and serial communication to solve industrial automation production problems [18]. The host computer takes charge of the judgment results summary of all the vision machines and the control of the executing mechanism. The actuator module, consisting of a feeding device, a transmission device and a sorting device, completes the mechanical operation of the magnetic ring. The feeding device is responsible for feeding magnetic rings into the transmission device at a certain speed. The transmission device is in charge of transmitting magnetic rings from the feeding device to the sorting device. The sorting device finishes final defect classification according to the control signal of the host computer. Relying on the elaborate design, the actuator could successfully realize non-destructive detection. The vibrating feeding plate is used as the feeding device, whose vibration frequency is adjustable to ensure uniform feeding speed and avoid secondary damage. Meanwhile, since both the upper and lower end faces need to be detected, a glass turntable is employed as the driving device. In this way, by setting cameras and light sources above or below the glass disk, images are taken without flipping the magnetic ring. Furthermore, a solenoid valve is used as the sorting device to ensure the response speed and mechanical force. Ultimately, there will be no secondary damage to the magnetic ring.
9Besides, the hardware of the system has high expansibility and can be adjusted according to the actual requirements. Benefitting from multiple vision machines, this system has a high processing speed and a wide range of perspectives, which can deal with three-dimensional part detection problems. Nevertheless, with the use of multiple vision machines, the cost of the system is not that inexpensive. Furthermore, there are many components in the hardware system, so the complexity of the device brings some difficulties to the later management. Figure 3 shows the prototype of this multi-vision magnetic ring quality inspection system. This system mainly includes three modules, which are the visual inspection module, actuator module and host computer module (as shown in Figure 2). The visual inspection module contains six vision machines and achieves multi-view image collection, image processing and test results sending. The vision machine integrates camera control, card processing and serial communication to solve industrial automation production problems [18]. The host computer takes charge of the judgment results summary of all the vision machines and the control of the executing mechanism. The actuator module, consisting of a feeding device, a transmission device and a sorting device, completes the mechanical operation of the magnetic ring. The feeding device is responsible for feeding magnetic rings into the transmission device at a certain speed. The transmission device is in charge of transmitting magnetic rings from the feeding device to the sorting device. The sorting device finishes final defect classification according to the control signal of the host computer. Relying on the elaborate design, the actuator could successfully realize non-destructive detection. The vibrating feeding plate is used as the feeding device, whose vibration frequency is adjustable to ensure uniform feeding speed and avoid secondary damage. Meanwhile, since both the upper and lower end faces need to be detected, a glass turntable is employed as the driving device. In this way, by setting cameras and light sources above or below the glass disk, images are taken without flipping the magnetic ring. Furthermore, a solenoid valve is used as the sorting device to ensure the response speed and mechanical force. Ultimately, there will be no secondary damage to the magnetic ring.
10Besides, the hardware of the system has high expansibility and can be adjusted according to the actual requirements. Benefitting from multiple vision machines, this system has a high processing speed and a wide range of perspectives, which can deal with three-dimensional part detection problems. Nevertheless, with the use of multiple vision machines, the cost of the system is not that inexpensive. Furthermore, there are many components in the hardware system, so the complexity of the device brings some difficulties to the later management. Figure 3 shows the prototype of this multi-vision magnetic ring quality inspection system. To further illustrate the hardware system, a simplified diagram of the entire system is drawn, as shown in Figure 4. First, magnetic rings are fed into the system through the vibrating feeding plate. Then, it reaches the camera shooting point after adjusting the position and completing the counting. Subsequently, this system uses two stations to photograph the magnetic ring and detect Relying on the elaborate design, the actuator could successfully realize non-destructive detection. The vibrating feeding plate is used as the feeding device, whose vibration frequency is adjustable to ensure uniform feeding speed and avoid secondary damage. Meanwhile, since both the upper and lower end faces need to be detected, a glass turntable is employed as the driving device. In this way, by setting cameras and light sources above or below the glass disk, images are taken without flipping the magnetic ring. Furthermore, a solenoid valve is used as the sorting device to ensure the response speed and mechanical force. Ultimately, there will be no secondary damage to the magnetic ring.
11Besides, the hardware of the system has high expansibility and can be adjusted according to the actual requirements. Benefitting from multiple vision machines, this system has a high processing speed and a wide range of perspectives, which can deal with three-dimensional part detection problems. Nevertheless, with the use of multiple vision machines, the cost of the system is not that inexpensive. Furthermore, there are many components in the hardware system, so the complexity of the device brings some difficulties to the later management. Figure 3 shows the prototype of this multi-vision magnetic ring quality inspection system. To further illustrate the hardware system, a simplified diagram of the entire system is drawn, as shown in Figure 4. First, magnetic rings are fed into the system through the vibrating feeding plate. Then, it reaches the camera shooting point after adjusting the position and completing the counting. Subsequently, this system uses two stations to photograph the magnetic ring and detect defects. Station 1 contains a binocular vision machine and two cameras. These two cameras are responsible for measuring the height and detecting the lower end face. Station 2 consists of five vision machines with a total of nine cameras. Due to the inner and outer toruses of the magnetic ring being curved surfaces, the view of a single camera cannot cover all toruses. So, among them, four cameras are responsible for taking pictures of the outer surface, and four cameras are responsible for taking pictures of the Sensors 2020, 20, 392 4 of 17 inner surface. The last camera with a vertical view is located on the platform to detect the upper end face. After taking the picture, vision machines receive the image and perform defect detection. Then, all detection results are sent to the host computer. Finally, when the magnetic ring reaches the sorting device, the qualified and unqualified magnetic rings are separated.
12Sensors 2020, 20, x FOR PEER REVIEW 4 of 19 defects. Station 1 contains a binocular vision machine and two cameras. These two cameras are responsible for measuring the height and detecting the lower end face. Station 2 consists of five vision machines with a total of nine cameras. Due to the inner and outer toruses of the magnetic ring being curved surfaces, the view of a single camera cannot cover all toruses. So, among them, four cameras are responsible for taking pictures of the outer surface, and four cameras are responsible for taking pictures of the inner surface. The last camera with a vertical view is located on the platform to detect the upper end face. After taking the picture, vision machines receive the image and perform defect detection. Then, all detection results are sent to the host computer. Finally, when the magnetic ring reaches the sorting device, the qualified and unqualified magnetic rings are separated.
Software Design
13Based on the system hardware, the software of the proposed system is developed on the MFC and OpenCV platforms. If any defect is found, the software will mark and output the defect's height measurement results. It includes four modules, which are the camera control module, interactive interface module, magnetic ring defect detection module, and detection result communication and storage module. The camera control module mainly performs tasks such as camera control, camera status feedback, camera parameter setting, camera mode selection, image storage buffering and release. The interactive interface module is in charge of the interaction between the user and the system, including the camera control area, real-time image display area, result display area, threshold selection area and magnetic ring-type selection area. The defect detection module integrates all the methods proposed in the paper and takes charge of real-time detection and marking of images. The detection result communication and storage module adopts the serial communication mode and completes the transmission task of the defect detection result from the vision machine to the upper computer. The software runs on six visual machines. The interactive interface and defect detection modules of different visual machines are adjusted according to the installation position of the camera, the number of cameras and the characteristics of the magnetic ring image. However, the software framework and operating procedures are the same for each machine. The flow chart of software operation is shown in Figure 5, and the interactive interface can be seen in Figure 6.
14Sensors 2020, 20
15Based on the system hardware, the software of the proposed system is developed on the MFC and OpenCV platforms. If any defect is found, the software will mark and output the defect's height measurement results. It includes four modules, which are the camera control module, interactive interface module, magnetic ring defect detection module, and detection result communication and storage module. The camera control module mainly performs tasks such as camera control, camera status feedback, camera parameter setting, camera mode selection, image storage buffering and release. The interactive interface module is in charge of the interaction between the user and the system, including the camera control area, real-time image display area, result display area, threshold selection area and magnetic ring-type selection area. The defect detection module integrates all the methods proposed in the paper and takes charge of real-time detection and marking of images. The detection result communication and storage module adopts the serial communication mode and completes the transmission task of the defect detection result from the vision machine to the upper computer.
16The software runs on six visual machines. The interactive interface and defect detection modules of different visual machines are adjusted according to the installation position of the camera, the number of cameras and the characteristics of the magnetic ring image. However, the software framework and operating procedures are the same for each machine. The flow chart of software operation is shown in Figure 5, and the interactive interface can be seen in Figure 6. Figure 5. Flowchart of the software system.
Methods
17This section presents the details of the proposed approach for magnetic ring defect detection. The proposed methods include image preprocessing, IERA, MRLA, connected domain filtering method and the final part to measure the height of magnetic rings. The preprocessing step segments the suspected defect area with IERA and MRLA. Eventually, connected domain filtering identifies defects by analyzing morphological features. The details are as follows.
Image Preprocessing
18The defects to be detected on the surface include cracks, pits, adhesions, foreign matters, fibers, etc. Aimed at simplifying the detection problem, all defects are categorized into three categories, which are crack, fiber and large-area defects. Meanwhile, due to inherent problems with the system hardware, positioning error and uneven illumination will occur in magnetic ring images.
19To eliminate the unnecessary information and extract the key features in the image, a series of image preprocessing steps is performed. Figure 7 depicts the process of image processing. It is noticed that the gray-level and gradient defect features should be extracted separately in the preprocessing stage as the basis. Firstly, after extracting the ROI (region of interest) region of the input image, Otsu's [19] method is used to compute the gray threshold. Then, MRLA is used to calculate the position of the magnetic ring, solving the problem of positioning error. Subsequently, on the one hand, we perform sub-region gray threshold segmentation [20] to solve the uneven illumination problem and use IERA to acquire gray-level defect images. On the other hand, the Sobel operator is used to perform the gradient calculation. Finally, IERA is utilized to obtain the gradient image of defects.
20The magnetic ring appears as a curved surface in the image. The middle area of images is dark and the areas at both ends are bright due to the designed lighting system and the location of the camera (Figure 8h). To solve this uneven illumination problem, as mentioned above, sub-region gray threshold segmentation is performed. First, Otsu's method computes an optimal threshold that minimizes the intra-class variance. Suppose p i is the percentage of pixels with value i. The threshold T is computed according to Equation (1).
21According to the illumination performance, the target magnetic ring in the image is divided into i regions. The threshold value T i of the i − th region is defined by Formula (4).
22The threshold decay term D i is obtained through experiments. Suppose H is a grayscale image and G stands for the image after thresholding. The i − th region is binarized using Formula (5). An example is shown in Figure 8d. To prove the stability of the used image preprocessing method in relation to illumination, we change the illumination conditions (see Figure 9a,d) and conduct experiments with all other conditions being equal. The results confirm that the method has good robustness to illumination. This section presents the details of the proposed approach for magnetic ring defect detection. The proposed methods include image preprocessing, IERA, MRLA, connected domain filtering method and the final part to measure the height of magnetic rings. The preprocessing step segments the suspected defect area with IERA and MRLA. Eventually, connected domain filtering identifies defects by analyzing morphological features. The details are as follows.
23The defects to be detected on the surface include cracks, pits, adhesions, foreign matters, fibers, etc. Aimed at simplifying the detection problem, all defects are categorized into three categories, which are crack, fiber and large-area defects. Meanwhile, due to inherent problems with the system hardware, positioning error and uneven illumination will occur in magnetic ring images.
24To eliminate the unnecessary information and extract the key features in the image, a series of image preprocessing steps is performed. Figure 7 depicts the process of image processing. It is noticed that the gray-level and gradient defect features should be extracted separately in the preprocessing stage as the basis. Firstly, after extracting the ROI (region of interest) region of the input image, Otsu's [19] method is used to compute the gray threshold. Then, MRLA is used to calculate the position of the magnetic ring, solving the problem of positioning error. Subsequently, on the one hand, we perform sub-region gray threshold segmentation [20] to solve the uneven illumination problem and use IERA to acquire gray-level defect images. On the other hand, the Sobel operator is used to perform the gradient calculation. Finally, IERA is utilized to obtain the gradient image of defects. The magnetic ring appears as a curved surface in the image. The middle area of images is dark and the areas at both ends are bright due to the designed lighting system and the location of the camera (Figure 8h). To solve this uneven illumination problem, as mentioned above, sub-region gray threshold segmentation is performed. First, Otsu's method computes an optimal threshold that minimizes the intra-class variance. Suppose i p is the percentage of pixels with value i .
25The threshold T is computed according to Equation (1).
Magnetic Ring Location Algorithm
26For the sake of carrying out accurate inspection, the position of the magnetic ring should be determined quickly. On account of the hardware, the position of the magnetic ring is unfixed in the system and the location migration occurs mainly in one direction. To solve the problem, MRLA (see Algorithm 1) is proposed to calculate the position of the magnetic ring in the image. Figure 8b shows examples of torus image location results.
27As for end face images, Algorithm 1 is adopted to acquire the top position top, and the bottom position bot. Suppose T l is the positioning threshold. Then, in step 5, the scanning direction is changed to left-to-right. Finally, the left position le f t and the right position right are obtained. Let Center(x, y) denote the magnetic ring center position, whereas x = (le f t + right), and y = (top + bot)/2. An example is shown in Figure 10e.
Image Edge Removal Algorithm
28In the image preprocessing procedure, it is found that gradient binary images and grayscale images contain the inner edge contour (IEC) of the upper end face, the outer edge contour (OEC) of the upper end face, and the lower edge contour (LEC) of the magnetic ring, as shown in Figure 8a. These edges will interfere with the subsequent defect filtering. To better isolate defects from images, IERA is proposed to eliminate these edges.
29The edge of the magnetic ring behaves differently in different kinds of pictures. To extract the defect features of different surfaces, IERA is divided into three parts. Algorithm 2 Part I, Part II and Part III describe IERA for torus grayscale images, torus gradient images and end face binary images, respectively. Figure 8c-g shows the process of IERA. By means of Algorithm 2 Part I, torus gray binary images after removing the upper end face are shown in Figure 8e. To illustrate the algorithm, a sketch is shown in Figure 11.
30Sometimes, defects, such as recessive cracks and fibers, are inconspicuous in gray binary images. However, they could be easily observed in gradient binary images. By using Algorithm 2 Part II, the edge-removed torus gradient image can be obtained (see Figure 8g). Besides, according to the imaging characteristics of the end face of magnetic rings, through Algorithm 2 Part III, we can obtain the edge-removed end face image (see Figure 10c). Furthermore, after sub-region gray threshold segmentation, an edge-removed end face binary image with defect features is shown in Figure 10d. (Center(x, y), (Top + Bot), w 1 ) as its center, radius and line width, respectively. 4: for j = y, y − 1, . . . ,4 do 5: Scan upward from Center(x, y). Get R 2 = y − j. 8: end 9: end 10: Create a white circle C 2 with (Center(x, y), R 2 , w 1 ) as its center, radius and line width, respectively. 11: Use C 1 and C 2 to remove edges. 12: Output the edge-removed grayscale end face image.
31In the image preprocessing procedure, it is found that gradient binary images and grayscale images contain the inner edge contour (IEC) of the upper end face, the outer edge contour (OEC) of the upper end face, and the lower edge contour (LEC) of the magnetic ring, as shown in Figure 8a. These edges will interfere with the subsequent defect filtering. To better isolate defects from images, IERA is proposed to eliminate these edges.
32The edge of the magnetic ring behaves differently in different kinds of pictures. To extract the defect features of different surfaces, IERA is divided into three parts. Algorithm 2 Part I, Part II and Part III describe IERA for torus grayscale images, torus gradient images and end face binary images, respectively. Figure 8c-g shows the process of IERA. By means of Algorithm 2 Part I, torus gray binary images after removing the upper end face are shown in Figure 8e. To illustrate the algorithm, a sketch is shown in Figure 11.
33i-th row Figure 11. Sketch of the image edge removal algorithm.
34Sometimes, defects, such as recessive cracks and fibers, are inconspicuous in gray binary images. However, they could be easily observed in gradient binary images. By using Algorithm 2 Part II, the edge-removed torus gradient image can be obtained (see Figure 8g). Besides, according to the imaging characteristics of the end face of magnetic rings, through Algorithm 2 Part III, we can obtain the edge-removed end face image (see Figure 10c). Furthermore, after sub-region gray threshold segmentation, an edge-removed end face binary image with defect features is shown in Figure 10d.
Connected Domain Filtering Method
35After preprocessing, the remaining connected components represent the potential defect areas. As the size and shape of defect should meet certain conditions to be mechanically significant, the connected components are further filtered by thresholds [21]. In accordance with statistics, the specific characteristics of the three types of defects are as follows:
•
36Crack defect: It can be categorized into obvious crack and recessive crack. The obvious crack is shown as a thick line in the image and has a strong contrast with the torus region. The recessive crack is opposite to the obvious crack. • Large-area defect: It is characterized by obvious protrusion or depression, a strong contrast with the surrounding area and a large defect area. • Fiber defect: It has the characteristics of low gray-level discrimination with the surrounding area, inconspicuous protrusion, irregular shape, and fine lines.
37For obvious cracks in contact with the end face of the magnetic ring, detection is performed by scanning the upper edge array Top[i] to detect the curvature transition point [22]. Let T q denote the curvature threshold. If Formula (6) is satisfied, a crack defect is found.
38Large-area defects and the rest of the obvious cracks have common characteristics, such as large contrast with normal torus, obvious morphological features in binary images, and large area of connected domains. So, same method based on connected domain filtering is used to solve the two similar problems (see Algorithm 3 Part I below). Let us define the minimum bounding rectangle T (with length H and width W) of the connected domain. Let T wh denote the length and width ratio threshold of the connected domains and R wh denote the ratio of the connected domain to the area of its minimum bounding rectangle. T h and T w represent the length threshold and the width threshold of T, respectively. Finally, suppose the threshold of the area of connected domains is denoted by T s .
Algorithm 3 Connected Domain Filtering Method
39Part I 1: Give a gray binary image G d or a gradient binary image G w . 2: Process and get G d 's anti-color image G dc . 3: Get the connected domain set Q and the number k of the connected domain. 4: for i = 1, . . . , k do
5:
40Get the area S i of the connected domain Q i ∈ Q, the minimum bounding rectangle T i (with length H i and width W i ). 6: Set each value of (T wh , R wh , T h , T w , T s ). 7: if condition is satisfied 8:
41Q i is judged to be a defect. 9: end 10: end 11: Output the results.
42Part II 1: Given a gradient binary image G w . 2: Get the width W of G w .
3:
43Set the step length step and a rectangular search box Sbox with a width of w b and a length of h b . Set number of connected domains N i = 0. 4: for i = 1, . . . w b + i * step, . . . , W do 5:
44Use Sbox to traverse G w from top to bottom in steps of step.
6:
45For the i − th Sbox, get k connected domains. 7:
46for j = 1, . . . , k do
8:
47Get the area S j of the connected domain Q j ∈ Q, the minimum bounding rectangle T j (with length H i and width W j ). 9:
48Set each value of (T wh , R wh , T h , T w , T hs , T ss ). 10: if condition1 is satisfied. 11:
49N i + = 1 and save the coordinate of the connected domain (x j , y j ). With regard to obvious cracks, the connected domain is represented as a thick straight line (see Figure 12c). For the connected domain and its minimum bounding rectangle, by extensive experiments, we define that if conditions, such as H > T h , W < T w , H/W > T wh and S/(W × H) > R wh , are satisfied, connected domains are identified as obvious cracks. So, the filter criterion condition can be expressed as (7).
50For large-area defects, connected domains are characterized by large, irregular shapes (see Figure 12a). On the basis of statistics, it is defined that if conditions, such as H > T h , W > T w , H/W > T wh and S/(W × H) > R wh , are satisfied, connected domains can be defined as large-area cracks. So, the filter criterion condition can be expressed as (8).
51Fiber defects and recessive crack defects do not have strong contrast with normal torus. In binary images, they appear as several small connected domains distributed in a certain region. Therefore, these two defects are filtered according to the characteristics of connected domains and the relationship between connected domains. Let T n denote the number threshold of the connected domain in the search box. T hs represents the width sum threshold of the connected domain, and T ss delegates the area sum threshold of the connected domain.
52cracks. So, the filter criterion condition can be expressed as (8).
53Fiber defects and recessive crack defects do not have strong contrast with normal torus. In binary images, they appear as several small connected domains distributed in a certain region. Therefore, these two defects are filtered according to the characteristics of connected domains and the relationship between connected domains. Recessive cracks appear (Figure 12b) as several disconnected lines in the processed binary image. For example, Figure 12b describes a recessive crack and its made up of three line segments. Like the obvious crack, in Algorithm 3 Part II, the filter criterion 1 condition is expressed as condition (9) to identify whether the segments are part of a crack defect. Furthermore, what really matters is the relationship between the segments. Recessive cracks appear (Figure 12b) as several disconnected lines in the processed binary image. For example, Figure 12b describes a recessive crack and its made up of three line segments. Like the obvious crack, in Algorithm 3 Part II, the filter criterion condition1 is expressed as condition (9) to identify whether the segments are part of a crack defect. Furthermore, what really matters is the relationship between the segments. H j , the sum of the minimum bounding rectangle length of adjacent connected domains in a search box Sbox, is selected as the filtering criterion. Through extensive experiments, we define that if conditions N i >= T n and H j ≥ T hs are satisfied, Sbox is determined to contain a recessive crack. So, replacing condition2 with condition (10), the method can detect the recessive crack correctly.
54Fiber defects appear as several irregularly disconnected connected domains in the processed binary image (see Figure 12d). In the first place, condition (11) is introduced to take the place of condition1 to identify whether connected domain Q j is part of a fiber. Subsequently, by extensive experiments, it is found that the sum S j of the connected domain area is more useful in defect detection than the sum H j of minimum bounding rectangle length. Thus, the filter criterion condition2 is expressed as (12).
Measurement Method of Magnetic Ring Height
55In addition to defect detection, height measurement is also an important target of this system. In the magnetic ring height image, the glass wheel's area is fixed (see Figure 13b) and can be removed by setting the fixed area of the grayscale image to white (see Figure 13c). Then, MRLA is used to calculate the position of the magnetic ring and get the upper position up and lower position down. Subsequently, the pixel height of the magnetic ring height = down − up is obtained. and O denote the lens center of the camera. V presents the image distance from the light center to the image plane, and Z defines the distance from the object to the image plane. From the triangle similarity principle, we can obtain:
56is fitted through experiments, and y height = is substituted into Formula (13) to obtain the actual height of the magnetic ring. Through practical verification, ultimately, the precision of height measurement is about 0.02 mm.
Examples of Defect Detection
57All the proposed algorithms and methods are applied to the magnetic ring detection system. Then, we perform some experiments to check the operation of the system. According to the manufacturing process, we find that crack and fiber defects mainly appear in the inner and outer ring surfaces. Hence, we can detect them from the inner and outer ring surfaces. It is noteworthy that According to the imaging principle of the camera, the spatial position measurement diagram of the target vertical direction in the image is shown in Figure 13a. Let π denote the imaging plane and O denote the lens center of the camera. V presents the image distance from the light center to the image plane, and Z defines the distance from the object to the image plane. From the triangle similarity principle, we can obtain:
58Formula (Z − V)/V is fitted through experiments, and y = height is substituted into Formula (13) to obtain the actual height of the magnetic ring. Through practical verification, ultimately, the precision of height measurement is about 0.02 mm.
59All the proposed algorithms and methods are applied to the magnetic ring detection system. Then, we perform some experiments to check the operation of the system. According to the manufacturing process, we find that crack and fiber defects mainly appear in the inner and outer ring surfaces. Hence, we can detect them from the inner and outer ring surfaces. It is noteworthy that various kinds of large-area defects will appear on the outer ring and the end face, and the large-area defect on the inner ring is an adhesion defect.
60The results are shown below, including magnetic ring height (Figure 13d), fiber defects ( Figure 14), crack defects ( Figure 15) and large-area defects ( Figure 16). For different defects located on different surfaces, the system can accurately judge whether it is a defect and mark the position. various kinds of large-area defects will appear on the outer ring and the end face, and the large-area defect on the inner ring is an adhesion defect. The results are shown below, including magnetic ring height (Figure 13d), fiber defects ( Figure 14), crack defects ( Figure 15) and large-area defects ( Figure 16). For different defects located on different surfaces, the system can accurately judge whether it is a defect and mark the position.
Statistical Results of Defect Detection
61In the system, visual machines are equipped with an Intel Core i5-5350U CPU 1.8 GHz processor with 2-GB RAM, and the host computer is equipped with an Intel Core i5-4590 3.3 GHz processor with 4-GB RAM. The experimental results are evaluated by two sub-tasks. One is to evaluate how fast the image processing is (efficiency), and the other is to assess the capability of the algorithm in detecting defect images (accuracy). For the sake of testing the speed of the system, in the experiment, 2400 magnetic rings are continuously detected and the execution time of each vision machine is calculated. As shown in Table 1, for different vision machines, it can be found that the maximum detection time of a single magnetic ring is 510 ms, and the maximum average detection time is 455 ms. In other words, the proposed detection system eventually reaches an average detection speed of about 120 pcs/min.
62For the second sub-task, in order to test the system accuracy for various defects' detection, we select 200 magnetic rings for each type of defect and test them. Table 2 demonstrates the statistical results. By counting the results of various defects' detection, it can be concluded that the accuracy for crack and large-area defects, such as adhesion, hanger adhesion and pitting, reaches 100%. Meanwhile, the accuracy for foreign matters and fibers achieves 92.5% and 91.5%, respectively. From the results, it is confirmed that the proposed method and system possess good performance. Both the accuracy and the speed are suitable for magnetic ring real-time online inspection in the automated production line.
63In the system, visual machines are equipped with an Intel Core i5-5350U CPU 1.8 GHz processor with 2-GB RAM, and the host computer is equipped with an Intel Core i5-4590 3.3 GHz processor with 4-GB RAM. The experimental results are evaluated by two sub-tasks. One is to evaluate how fast the image processing is (efficiency), and the other is to assess the capability of the algorithm in detecting defect images (accuracy). For the sake of testing the speed of the system, in the experiment, 2400 magnetic rings are continuously detected and the execution time of each vision machine is calculated. As shown in Table 1, for different vision machines, it can be found that the maximum detection time of a single magnetic ring is 510 ms, and the maximum average detection time is 455 ms. In other words, the proposed detection system eventually reaches an average detection speed of about 120 pcs/min.
64For the second sub-task, in order to test the system accuracy for various defects' detection, we select 200 magnetic rings for each type of defect and test them. Table 2 demonstrates the statistical results. By counting the results of various defects' detection, it can be concluded that the accuracy for crack and large-area defects, such as adhesion, hanger adhesion and pitting, reaches 100%. Meanwhile, the accuracy for foreign matters and fibers achieves 92.5% and 91.5%, respectively. From the results, it is confirmed that the proposed method and system possess good performance. Both the accuracy and the speed are suitable for magnetic ring real-time online inspection in the automated production line.
Conclusions
65In this paper, we propose a defect detection system for magnetic rings and adopt advanced multi-camera vision technology. The system includes two efficient image processing algorithms, which are IERA and MRLA. By using the detection method for cracks, fibers and large-area defects based on connected domain filtering, it solves the difficult defect detection problem for three-dimensional magnetic rings with high speed and precision. The experiment results demonstrate that machine vision can substitute most of the manual operations in magnetic ring defect detection, greatly improving the production efficiency and the automation degree.
66In the developed system, the hardware platform and software system are studied and designed in depth, and the final developed system is experimentally verified. Compared with existing systems, the current system has more comprehensive functions and a good integration degree. The device and method have a high detection precision, can realize real-time online detection of three-dimensional magnetic rings, and can be widely applied in magnetic ring production.
67Author Contributions: All authors contributed extensively to the work presented in this paper and wrote the manuscript. X.Z. provided technical guidance and wrote the initial version of the paper. W.G. instructed the software and the whole development. X.X. conducted the investigation and gave guidance. All authors have read and agreed to the published version of the manuscript.
참고문헌 19건
- Extracting crack signal of magnetic ring based on MAX262 Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2013 10.1117/12.2014634
- Multiscale image quality measures for defect detection in thin films The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2015 10.1007/s00170-014-6758-7
- Automated visual classification of frequent defects in flat steel coils The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2011 10.1007/s00170-011-3352-0
- A Visual Detection System for Rail Surface Defects IEEE Transactions on Systems Man and Cybernetics Part C (Applications and Reviews) · Institute of Electrical and Electronics Engineers · 2012 10.1109/tsmcc.2012.2198814
- Identification of defects on highly reflective ring components and analysis using machine vision The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2010 10.1007/s00170-010-2730-3
- A study of internal defect testing with the laser-EMAT ultrasonic method IEEE Transactions on Ultrasonics Ferroelectrics and Frequency Control · Institute of Electrical and Electronics Engineers · 2012 10.1109/tuffc.2012.2511
- A Threshold Selection Method from Gray-Level Histograms IEEE Transactions on Systems Man and Cybernetics · Institute of Electrical and Electronics Engineers · 1979 10.1109/tsmc.1979.4310076
- Research on surface defect inspection for small magnetic rings International Conference on Mechatronics and Automation · 2009 10.1109/icma.2009.5246333
- Surface Crack Detection for Carbon Fiber Reinforced Plastic (CFRP) Materials Using Pulsed Eddy Current Thermography IEEE Sensors Journal · IEEE Sensors Council · 2011 10.1109/jsen.2011.2157492
- A real-time vision system for defect inspection in cast extrusion manufacturing process The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2008 10.1007/s00170-007-1326-z
- Defect detection of polycrystalline solar wafers using local binary mean The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2015 10.1007/s00170-015-7498-z
- Review on the machine vision measurement and control technology for intelligent manufacturing equipment Control theory & applications · South China University of Technology · 2015
- Study on the defect inspection algorithm of touch switch pins based on machine vision Journal of Zhejiang University of Technology · Zhejiang University of Technology · 2015
- A Machine Vision Apparatus and Method for Can-End Inspection IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2016 10.1109/tim.2016.2566442
- Automatic Microstructure Defect Detection of Ti-6Al-4V Titanium Alloy by Regions-Based Graph IEEE Transactions on Emerging Topics in Computational Intelligence · Institute of Electrical and Electronics Engineers · 2017 10.1109/tetci.2017.2669523
- Machine Vision-Based Positioning and Inspection Using Expectation–Maximization Technique IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2017 10.1109/tim.2017.2717284
- Defect Detection in Cylindrical Cavity by Electromagnetic Ultrasonic Creeping Wave IEEE Transactions on Magnetics · IEEE Magnetics Society · 2017 10.1109/tmag.2017.2759121
- Fast Eddy Current Testing Defect Classification Using Lissajous Figures IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2018 10.1109/tim.2018.2792848
- Detection of Slit Defects on Backside of Steel Plate Using Low-Frequency Eddy-Current-Testing 2018 IEEE International Magnetics Conference (INTERMAG) · 2018 10.1109/intmag.2018.8508192