SciELO - Scientific Electronic Library Online

 
vol.19 issue4Fiber interfacial transition zone concept for steel fiber-reinforced concrete by SEM observation author indexsubject indexsearch form
Home Pagealphabetic serial listing  

Services on Demand

Journal

Article

Indicators

Related links

  • Have no similar articlesSimilars in SciELO

Share


Journal of applied research and technology

On-line version ISSN 2448-6736Print version ISSN 1665-6423

J. appl. res. technol vol.19 n.4 Ciudad de México Aug. 2021  Epub Feb 14, 2022

https://doi.org/10.22201/icat.24486736e.2021.19.4.958 

Articles

Optical inspection of appearance faults for auto mirrors using Fourier filtering and convex hull arithmetic

Yuan-Shyi Peter Chiu1 

Hong-Dar Lin1  * 

Hsu-Hung Cheng1 

1Department of Industrial Engineering and Management, Chaoyang University of Technology, Taichung, 41349, Taiwan


Abstract:

Auto mirrors are indispensable and essential for the reflection of objects behind the car and act as a crucial part in driving security. In manufacturing stages of auto mirrors, certain tasks operated unusually will cause scratches, chips, pinholes, bubbles and damaged edges on the general surface and profile faults on auto mirrors. Those appearance faults sometimes will severely have an impact on the standard of the mirror reflection and increase the driving hazard. During the traditional examination of auto mirrors in the manufacturing process, almost all work is performed by human examiners. Manual examination can be easily affected by foreign objects reflected on the mirror surfaces which can cause mistaken determinations of fault examination. Hence, this study works toward investigating the automatic appearance fault detection of auto mirrors. We propose a fault enhancement technique based on Fourier high-pass filtering and the convex hull arithmetic to inspect appearance faults on auto mirrors. This approach only utilizes their own information of testing images to judge whether there are any irregular appearance changes without the need of standard patterns for matching. Experimental outcomes illustrate that the appearance fault detection rate increases by 95.13%, the false alarm rate decreases to 1.88% and the correct classification rate attains to 98.11%.

Keywords: Industrial inspection; auto mirrors; appearance faults; Fourier filtering; convex hull arithmetic

1. Introduction

Mirror products have become necessities in our everyday life and major materials for construction, manufacturing, and electronic industries. Auto mirrors allow light to be reflected so that the objects behind the car can be seen. Curved auto mirrors can make the driver’s rear view to appear to be wider. The side and rear auto mirrors are among the most important safety features on vehicles. In the manufacturing stages of auto mirrors, certain tasks, for examples: baking, electroplating, edging, etc., operated unusually, will cause scratches, chips, pinholes, bubbles and damaged edges on the general surface and profile faults on auto mirrors. These appearance faults sometimes will severely have an impact on the standard of the auto mirror reflection and grow the steering hazard. During the traditional examination of auto mirrors in the manufacturing process, almost all work is performed by human examiners. The manual examination can be easily affected by foreign objects reflected on the mirror surfaces, causing mistaken determinations of fault examination.

Figure 1 shows a regular side mirror of a vehicle and different styles of various auto mirrors.

Figure 1 (a) A side mirror of a vehicle; (b) different styles of various auto mirrors. 

General auto mirrors manufactured of transparent glass with aluminum or chromium coated materials have a good ability of high reflectance and they with curved and convex shapes have a wider field of view. Regular appearance faults of auto mirrors comprise scratch, bubble, chip, pinhole, belonging to the surface fault type; and broken edges, burrs, belonging to the profile fault type. The appearance faults influence not only the visual quality of mirror parts but also their performance, effectiveness, structural strength, etc. The fault sizes of usual auto mirrors detected are at least wise 0.20 mm and 0.26 mm for the surface fault type and the profile fault type, respectively. Figure 2 shows a workpiece of auto mirror with dimensions and two equal size images captured from a testing sample. Two laser marks, including a sketch and some texts, are located on the mirror workpiece. The mirror workpiece having 18.1 cm in length, 10.71 cm in width, and 0.2 cm in thickness, needs to be scanned into two images to obtain better image resolution for further process to reach the industry standard requirement in appearance inspection of auto mirrors. Appearance faults on curved surfaces are hard to be censored for practical examiners owing to not only fault attributes but also light reflection on mirror exteriors. Figure 3 illustrates some general sorts of appearance faults on auto mirrors: (a) scratches, (b) chips, (c) pinholes, and (d) broken edges.

Figure 2 (a) Dimensions of a mirror workpiece; (b) two equal size images captured from a testing sample. 

Figure 3 Some general sorts of appearance faults on auto mirrors: (a) scratches, (b) chips, (c) pinholes, (d) broken edges. 

Auto mirrors are being produced in curved convex shapes for obtaining wider field of views, which grows troubles of examining the products. The traditional inspection skill for appearance faults on auto mirrors is manual inspection by human eyes. Mirror examination requires particular working facility with special lighting control system. In the real working area, every testing mirror is carried into the examiner’s field of vision. An auto mirror is a rectangle form having four circular corners and curve surface. Most of the appearance faults could be found on the surfaces of mirrors. The curved mirrors have the appearance of higher reflectance and wider field of view in spatial domain images which are more intricate than those of the plane auto mirrors. It is more difficult to exactly identify appearance faults inlaid on the curved surfaces.

Visual examination by operators is boring, laborious and highly dependent on the inspectors’ expertise. Mistaken discernments can be simply made because of the inspectors’ eye exhaustion and subjectivity. Because auto mirrors have high reflective appearances, these reflected lightings make the fault inspection work more difficult when appearance faults are embedded on the uneven exteriors of auto mirrors. Higher reflection on uneven exteriors grows the difficulty of differentiating the appearance faults on auto mirrors. The suitable lighting control technique of acquiring images provide the possibility to execute automatic fault inspection. Figure 4 shows some preliminarily processed images of a captured testing sample, including initial intensity images, binary images by Otsu method (Otsu, 1979), and binary images by manual thresholds. Many appearance faults are found and the laser marks are also mixed up with faults in the binary images. Furthermore, when workpiece images are being acquired, the region of a surface fault could extend, reduce or even vanish due to unbalanced lighting of the circumstance, different view angles of the inspectors, shapes of reflected patterns, and so on. Thus, this study conducts an automated appearance fault detection system of auto mirrors to substitute visual examination workers from inspection works of auto mirrors. This study recommends a fault enhancement technique based on Fourier high-pass filtering and the convex hull arithmetic to examine appearance faults on curved mirrors of vehicles.

Figure 4 Preliminarily processed images of a captured testing sample: (a) initial intensity images; (b) binary images by Otsu skill; (c) binary images by manual thresholds. 

The remainder of this article is arranged as the following: Firstly, we discuss the related studies on optical techniques for fault inspection. Secondly, we describe the proposed image models for detecting appearance faults on auto mirrors. Thirdly, we perform the trials and appraise the manifestation of the recommended method with existing skills. Lastly, we make some conclusions and indicate the further directions.

2. Materials and methods

Automated visual inspections of surface flaws have changed into pivotal tasks for manufacturers endeavoring to promote product quality and manufacturing efficiency (Kuo et al., 2018; Taha et al., 2014). Lin et al. (2013) proposed using image reconstruction method based on cosine transform to inspect small appearance variations on capacitor chips of electronic elements. Park et al. (2016) modelled lots of parameter combinations for deep learning networks with distinct depths and layer nodes to take proper configuration for automated inspection of exterior blemishes on textured and non-textured elements. Lin et al. (2019) utilized some novel convolutional neural network models having deep learning skills to inspect flaws on light-emitting diode (LED) chips.

Several investigations report the automatic appearance flaw detection of glass-related products. Lin and Tsai (2012) introduced a rebuilt scheme based on Fourier domain to detect linear flaws on capacitive touch panels. Li et al. (2014) used the principal components analysis theory to detect visual faults on the cover glass of mobile phones. Lin and Li (2017) implemented a fault inspection system with the wavelet domain-based filtering method to detect area flaws on touch panels. Chiu and Lin (2013) integrated Hotelling’s distance function and grey theory based on discrete cosine domain to detect surface faults on transparent lenses of LEDs. Lin and Chen (2019) incorporated the partial least squares theory in the wavelet packet domain for surface flaw inspection on textured LED lenses.

Certain research even more concentrated on exploring the visual fault detection of mirror goods. Chiu et al. (2017) developed an optical distortion detection skill based on Hough domain for automatic flaw detection on clear glass of vehicle mirrors. Lin and Hsieh (2018) implemented a visual inspection system having small-shift detection schemes to find reflected distortion flaws on curved vehicle mirrors. The distortion type of defects makes reflected objects look irregular, out of focus, and blurry on the car mirrors. Chiu et al. (2020) proposed the image models based on 1-D Fourier descriptors to detect profile flaws on vehicle mirrors. The profile type of defects, such as damaged edges and burrs, changes contour shapes of car mirrors and may reduce the ability to withstand stress. From the previous commentary of articles, most of the present studies concentrate on automatic flaw detections of transparent glass, optical lenses, and mirrors. Those optical inspection systems focus mostly on the distortion and profile blemish detections. Since appearance faults sometimes have an impact on not only the visual quality of industrial parts but also their functionality, efficiency, structural strength, etc. (Da et al., 2018), the degree of harm even more than the distortion and profile faults. Less studies explore appearance inspections with attributes of little flaws on curved surfaces of auto mirrors. Consequently, we apply the Fourier high-pass filtering and convex hull arithmetic to inspect appearance faults on high reflective surfaces of auto mirrors.

Automated thresholding skills have been large exploited in the applications of machine vision for automated visual detection of flaws (Sezgin & Sankur, 2004). The Otsu (1979) method is one of the superior threshold choice skills for ordinary actual industrial images concerning consistency and form measures. It chooses the thresholding value maximizing the between-class variances of the image histogram. This chosen value is optimum for thresholding major targets from the background. The method offers adequate outcomes for thresholding an image having a bimodal distributed histogram. Ng (2006) modified the Otsu approach for choosing optimum thresholding values for unimodal as well as bimodal distributions, as well as examined the manifestation of the improved technique on general flaw inspection implementations. Truong and Kim (2018) further combined the Otsu method and entropy weighting scheme to detect surface defects of wafers.

Wavelet transform and Fourier transform are the most general pattern recognition techniques employed in frequency domain. The wavelet transform permits a spatial-frequency decomposition of the feeding-in signal and level of frequency resolution in wavelet domain is classically contemplated very coarse for experiential spatial-frequency analysis (Mallat, 1989). Lin (2007) combined the multivariate statistical method in wavelet domain to detect ripple flaws with low gray-level contrast on surfaces of ceramic components. Ngan et al. (2005) addressed a decomposition method in wavelet domain to detect visual flaws in periodically textured fabrics. This approach applied the wavelet transform to breakdown a testing image, and then used the automatic thresholding to the high-frequency sub-images for separating flaws. Li (2009) applied a filtering method in wavelet domain to strengthen flaw areas and extract discriminative properties from rebuilt images and the support vector machine classifier to classify five main flaw types on copper surfaces.

Fourier transform is insensitive to noises and unvarying to translation, rotation, and scaling, which makes it a perfect selection for automatic flaw inspection in the production process. Chan and Pang (2000) defined two diagrams, the central spatial and frequency spectrums, based on the Fourier transform to analyze fabric faults. Da et al. (2018) developed a quantitative inspection method in Fourier domain applying directed ultrasonic waves for efficiently detecting flaws in pipeline structures. He et al. (2015) used an optical measurement method based on Fourier transform profilometry to recover the rail profile and flaws on the rail web. Tsai and Huang (2019) introduced an image rebuilt method in Fourier domain to inspect and locate little flaws in homogeneous pattern images of electronic surfaces. The flaw inspection arithmetic used in the spatial images are normally reactive to noises, lighting changes, and geometric variations.

To obtain a whole boundary shape of a convex auto mirror, the convex hull of an auto mirror need be computed to yield the smallest convex polygon containing the mirror. The convex hull is a basic structure for mathematics and computational geometry. Because it is an accurate description of the boundary of a point set, the calculation of convex hull of a point set has favorably been employed in many application fields, such as data mining, geographical information systems, pattern recognition, image processing and medical simulations (Jayaram & Fleyeh, 2016; Yang & Cohen, 1999). Most of the existing methods take the coordinates of data points as input and produce the vertices and faces of the convex hull polytope. These methods can be divided into two types: exact methods and approximate methods. The exact methods can compute the convex hull of a given set exactly, while the approximate methods find a rough convex hull. For some applications, an approximated convex hull is needed instead of the exact one. If the exact convex hull contains too many vertices, the computation cost of the exact solution is very high.

The earliest exact method is the gift-wrapping algorithm for two dimensional inputs proposed by Chand and Kapur (1970) and Jarvis (1973) . A modified version developed by Graham (1972) sorts all the points in an increasing order of the angles that the line segments between them and performs a more efficient searching scheme. Bentley et al. (1982) introduced the planar algorithms for hull construction, diameter finding, and hull searching to rapidly produce approximated hulls of controlled accuracy. The quick hull method proposed by Barber et al. (1996) divides the problem into many sub-problems recursively and solves them independently. Li et al. (2021) proposed a variational approach not only can calculate the multiple exact convex hulls simultaneously but also can be extended to compute the convex hull with outliers.

The Fourier transform based rebuilt method is a sturdy means for fault inspection in uniform mode, random texture, periodical pattern surfaces covering most of workpieces in manufacturing industry. The auto mirrors have near-convex shapes, the convex hulls of the auto mirrors can be used for removing noises from potential fault areas. Consequently, this study presents an image rebuilt scheme using Fourier high-pass filtering with cross-shaped filter and convex hull arithmetic to inspect small appearance faults on auto mirror images.

3. Suggested methods

This study proposes an image rebuilt technique based on Fourier high-pass filtering and convex hull arithmetic to inspect appearance faults for vehicle mirrors. Five steps are developed to accomplish the procedure of appearance fault inspection. Firstly, image preprocessing is executed to remove laser marks and background region and produce a ROI and a merged image to reduce the obstruction of non-mirror regions in further frequency analyses. Secondly, the merged image is transformed to Fourier domain as well as the appearance message of the trial mirror is converted to frequency spectrum. Thirdly, by selecting a proper filtering width in frequency domain, the high-frequency parts outside the central cross-shaped region are retained and the remainders are given to zero for reconstructing the object appearance. There is detailed message regarding faults and edges in the preserved high frequency elements than those in the low frequency elements. Fourthly, the filtered frequency image is executed by the inverse Fourier transform to make a reconstructed image. Thus, a fault-enhanced image could be reconstructed from the frequency domain for contrasting with the pre-processed image. Fifthly, the convex hull arithmetic is applied to remove noises for detecting appearance faults. Therefore, the appearance faults on the curved auto mirrors can be exactly identified and located by the proposed approach. Figure 5 describes the flow chart of the suggested method.

Figure 5 Research procedure of the suggested method. 

3.1. Image preprocessing operations

For acquiring finer image resolution and fault inspection manifestation, a testing trial is partitioned into 2 portions for image capture. Thus, the whole testing trial is evenly acquired into 2 testing images to obviously exhibit the contents of object surfaces and boundaries on both images (Figure 2). Since the locations of the laser marks are fixed and known relative to a whole auto mirror, two pre-defined rectangular blocks containing the marks are used to remove the laser marks from the testing images (Figure 2(b)). In this study, we define a ROI (region of interest) in a square block including the objects will be explored. The adoption of ROI avoids unconcerned regions from obstructing neighborhood calculations or mathematical transformations. If an image having unconcerned districts is converted to a frequency domain, the unrelated regions can notably obstruct the frequency analysis of the interested objects. Therefore, after the area of background and the desire object without marks are obtained, we will produce a mask to depict the mirror area called ROI (Figure 2(c) ). Then, we acquire a merged image by integrating the mirror area with an operated background (average intensity of the mirror area) to decrease the obstruction of the initial background. This merged image could be applied as the source for Fourier transformation. Figure 6 displays the outcomes in the operations of image pre-progressing for a normal sample: (a) initial image; (b) mark-removed image; (c) ROI image; (d) fused image. With such an operated background, we acquire a rectangular block for Fourier transform as well as minimize the obstruction of non-mirror regions.

Figure 6 Outcomes in the operations of image pre-progressing: (a) initial (normal) image; (b) mark-removed image; (c) ROI image; (d) merged image. 

3.2. Fourier high-pass filtering

Fourier transform possesses the advantageous attributes of noise-resistivity and increase of periodic properties (Gonzalez & Woods, 2017; Chan & Pang, 2000). The Fourier domain portrays the textured image expressed as frequency parts. These entire textured patterns are simply discernible as gathering of low-frequency coefficients with large energy in the spectrum. Suppose f(x, y) be an intensity located at coordinates (x, y). If an image with size of M × M pixels, the two-dimensional DFT (discrete Fourier transform) of f(x, y) can be defined as (Gonzalez & Woods, 2017),

F(u,v)=1M2x=0M-1y=0M-1f(x,y)e-j2π(ux+vy/M) (1)

where j=-1, (u,v) are frequency variables and u,v = 0, 1, 2, …, M-1. The DFT is a complex function, denoted as F(u,v)=R(u,v)+jI(u,v) , where

Ru,v and Iu,v are the real and imaginary parts of F(u,v) that is

R(u,v)=1M2x=0M-1y=0M-1f(x,y)cos2πux+vyM (2)

I(u,v)=1M2x=0M-1y=0M-1f(x,y)sin2πux+vyM (3)

The size of the transformation is concentrated on the origin of the Fourier frequency image.

The directional attributes of an intensity image obviously correlate with low frequency coefficients having high energy, which are dispersed on the unbent stripes in the Fourier frequency image with orientations orthogonal to their equivalents in the spatial domain image. If a mirror image with the vertical and horizontal edges of mirror boundary is converted to Fourier domain, two major stripes with low frequency coefficients having high energy cross at the middle of Fourier spectrum image.

Low frequency coefficients having high energy are related with regular line patterns may arise about the major stripes in the Fourier frequency image. For entirely removing all homologous line modes in the spatial domain image, not merely the frequency coefficients placing on the major stripes but those frequency coefficients in the vicinity of the major stripes as well need to be eliminated from the Fourier frequency image. These frequency coefficients dropping in the vicinity of the major stripes in the Fourier frequency image are essentially filtrated through assigning these coefficients to zero. Figure 7 shows the images and data matrices in the Fourier high-pass filtering process with cross-shaped mask. The upper part of Fig. 7 displays the processed images before and after the high-pass filtering applied. After completing the filtering task, a cross-shaped region with dark intensity is located in the central of the filtered frequency image. The lower part of Fig. 7 shows the handling of detailed data changes before and after the high-pass filtering conducted. This study will contrast the fault inspection manifestation of the suggested method with distinct filtering widths later. After filtering the specified stripe regions, we conduct inverse Fourier transform to obtain a filtrated reconstructed image in the spatial domain.

Figure 7 Images and data matrices in the Fourier high-pass filtering process with cross-shaped mask. 

Figure 8 shows the results in the operations of Fourier high-pass filtering. Fig.8(a) is a testing faulty image; Fig. 8(b) is its pre-processed image; Fig. 8(c) is Fourier domain image; Fig. 8(d) is the high-pass filtered frequency image; and Fig. 8(e) is the corresponding filtered rebuilt image. After performing the reverse Fourier transform, the filtered rebuilt image displays more detailed appearance information than that in pre-processed image without the filtering. It can be seen that the rebuilt object retaining a large portion of the middle and high-frequency components displays clearer faults and appearance changes on the mirror surface. Moreover, if only a few portions of the low-frequency coefficients are filtered, the border between the object and the operated background becomes low-contrast, supplying an approach to enhance appearance faults. By selecting a proper filtering width, the low-frequency coefficients are filtered to enhance the appearance faults and get the filtered reconstructed image for comparison of image differences.

Figure 8 Results in the operations of Fourier high-pass filtering: (a) testing (faulty) image; (b) pre-processed image; (c) Fourier domain image; (d) filtered frequency image; (e) rebuilt image. 

3.3. Convex hull and comparison of image differences

The filtered rebuilt image has consistent intensities for pixels pertaining to homologous regions of object and operated background, but it also produces notably distinct intensities for pixels pertaining to nonhomologous fault areas. The gray level changes in homologous districts could be very little, while the intensity changes in nonhomologous regions could be big contrast to the whole rebuilt image. Therefore, this study can determine a threshold for distinguishing faults from mirror area in the rebuilt image. The rebuilt image will be approximately a consistent intensity image if a non-fault appearance image is tested. The upper limit TU for intensity changes in the rebuilt image is expressed by TU = μ + Nσ, where μ and σ are the mean and standard deviation of the intensities of the rebuilt image f'(x, y), N is a controlled parameter decided by experiments. The binary fault image D(x, y) for fault separation is:

D(x,y)=255    if  f'(x,y)(μ+Nσ)0        otherwise.                     (4)

If a pixel with the intensity is less than the upper limit TU, the pixel is categorized as a homologous element. On the contrary, it is categorized as a fault element. When the fault sizes to be detected are usually very little contrast to the whole appearance image, the μ and σ can be counted straight from the rebuilt image of an initial image to tolerate the illumination changes in the examination circumstance.

The binarized rebuilt image B(x, y) may have many false alarm pixels due to the inaccurate estimates of parameters μ and σ. Since the testing mirrors have near-convex shapes, the convex hull arithmetic is utilized to produce a convex hull image of the rebuilt image for removing the pixels of detecting usual districts as faults. The convex hull arithmetic (Graham, 1972) is applied in this research to the binary image to produce a convex hull image. Then, a XOR image obtained from the differences of taking exclusive OR operations between the convex hull image and binarized rebuilt image will significantly reduce the false alarm pixels. Since the fault sizes of usual auto mirrors need be inspected out are leastwise 0.20 mm and 0.26 mm for the surface and profile fault types, the too small detected fault pixels are regarded as noises and need be excluded. Figure 9 shows the results in the operations of comparisons of image differences. Fig. 9(a) is the binarized rebuilt image; Fig. 9(b) is the corresponding convex hull image; Fig. 9(c) is the XOR image; Fig. 9(d) is a small noise-removed image; and Fig. 9(e) is the final resulting fault image.

Figure 9 Results in the operations of comparisons of image differences: (a) binarized rebuilt image; (b) convex hull image; (c) XOR image; (d) noise-removed image; (e) resulting fault image. 

4. Experiments and discussion

4.1. Image acquisition

To intensify the clearness of object surfaces and contours on auto mirrors in the phase of image capture, this study utilizes the subsequent devices in the implemented inspection environment: a clear LED backlight tray having dimensions of 250 x 250 mm, a color charge-coupled device camera with 500M, a lens with 12 mm focal lengths, and an electronically controlled table. Figure 10 illustrates the schematic drawings (top view and side view) and the hardware configuration of image capture for acquiring a trial mirror. Assessments are performed on 90 real auto mirrors (30 faultless samples and 60 faulty samples) to appraise the representation of the proposed method. Every image including a half of an auto mirror has a size of 256 x 256 pixels with an intensity of 8 bits. The appearance fault detection algorithm is edited in C language and executed on the 6th version of C++ Builder complier on a computer (INTEL CORE i5-4210M 2.6GHz 4GB RAM).

Figure 10 Schematic drawings and hardware configuration of acquiring testing mirror images: (a) top view of the placement table; (b) side view of the vision system; (c) device setup of the vision system. 

4.2. Evaluation indices of inspection performance

To mathematically confirm the representation of the recommended technique, we differ the outcomes of our appraisals from those offered by practical assessors (ground truth). The expression guides, (1-α) and (1-β), are used to express proper inspection assessments; the larger the two guides, the more precise the inspection outcomes. False alarm mistake (α, regarding usual districts as faults) divides the regions of usual districts inspected as faults by the regions of actual usual districts to gain the mistake. Missing alarm mistake (β, failing to alarm actual faults) divides the regions of uninspected actual faults by the regions of all actual faults to obtain the mistake. For the both mistakes, the lower the guide values, the better the detection outcomes (Montgomery & Runger, 2007).

4.3 Selection of key parameters

Choice of the key parameter, filtering width, in the Fourier high-pass filtering operation will significantly influence the inspection performance of appearance faults in the proposed method. To appraise the influence of altering diverse filtering widths on rebuilt results, tests show the manifestation guides of inspection outcomes by filtering widths from the range 1 to 4 pixels. Figure 11 shows the filtered Fourier frequency images and corresponding resulting outcomes with four filtering widths. Fig. 11(a) shows the pre-processed image and result by inspector. Table 1 presents the fault detection results for the four filtering widths in three performance indices. The figures demonstrate that too little the number of filtering width (e.g. 1) cannot adequately separate faults from the mirror appearances and leads to lots of incorrect alerts. However, too big the numbers of filtering widths (e.g. 3 and 4) produce the diverse effect of the faults and causes many missing alerts. The numbers of filtering width 2 is more appropriate to emphasize appearance faults in the Fourier high-pass filtering. Our trials on a variety of testing images have verified that filtering width 2 is ordinarily appropriate for this fault inspection application.

Figure 11 The filtered Fourier frequency images and corresponding resulting outcomes with various filtering widths: (a) pre-processed image and result by inspector; (b) filtering width 1; (c) filtering width 2; (d) filtering width 3; (e) filtering width 4. 

Table 1 Contrast effects table of four different filtering widths. 

Filtering widths False alarm rate α (%) Fault inspection rate 1-β (%) Correct classification rate CCR (%)
1 pixel 5.69 73.75 94.30
2 pixels 0.63 86.59 99.36
3 pixels 0.23 71.20 99.75
4 pixels 0.32 74.32 99.67

In the procedure of comparisons of image differences, selecting a suitable manipulated parameter N (in Eq.(4)) leads to accurately differentiating faults from usual districts but an unsuitable manipulated parameter makes lots of mistakenly inspecting normal districts as faults. All trail samples revealed in this research are originated in the μ and σ from initial images, and the manipulated parameter N is assigned at various values. To assess the influence of changing various control values on the rebuilt results, tests show the manifestation guides of inspection outcomes by control values from the range 0.01 to 0.09. Figure 12 presents various places of the two-paired guides (α, 1-β) for the control values from scope 0.01σ to 0.09σ on the receiver operating characteristic plane (Montgomery & Runger, 2007). The curve indicates that smaller constant values (e.g. 0.01~0.05) makes a strict control and may lead to too many false alarms and a bigger constant value N (e.g. 0.09) makes a baggy control and may cause some missing alarms. The number of constant value 0.07 is more appropriate to stress appearance faults in the comparisons of image differences. The trials on a variety of testing images have confirmed that control value 0.07 is ordinarily appropriate for this fault inspection application. Figure 13 shows the outcomes of applying various control values to the binarization of the rebuilt images.

Figure 12 Various places of the two-paired guides (α, 1-β) for threshold values from scope 0.01σ to 0.09σ on the receiver operating characteristic plane. 

Figure 13 Outcomes of applying various control values to binarization of the rebuilt images: (a) threshold = 0.01; (b) threshold = 0.03; (c) threshold = 0.05; (d) threshold = 0.07; (e) threshold = 0.09. 

4.4. Results of fault detection and comparisons with existing methods

Two existing schemes usually applied to anomaly detection is contrast to the recommended approach to differentiate effects of appearance fault inspection. To indicate the fault inspection outcomes of a testing image, Figure 14 demonstrates fractional outcomes of inspecting appearance faults by the Otsu method (Otsu, 1979) , the DFT filtering method (Lin & Tsai, 2012), the recommended method, and the ground truth provided by inspectors, separately. The Otsu method produces many of the erroneous judgments in regard to missing alarms and the DFT filtering method causes many of the erroneous judgments concerning false alarms on appearance fault inspection. The suggested method inspects most of the appearance faults and produces less erroneous judgments. Therefore, the suggested technique surpasses the Otsu method and DFT filtering method in the appearance fault detection of auto mirrors with high reflective surfaces.

Figure 14 Detection outcomes of two testing images for auto mirror fault inspection by Otsu method, DFT filtering method, recommended method, and manual inspection. 

Table 2 indicates the differentiating effects of appearance fault detection outcomes in the executed trials. One spatial domain technique and two frequency domain skills are assessed contrary to the consequences by practical assessors. The average fault inspection rates (1-β) of total trial samples by the three ways are, 67.75% by Otsu method, 72.26% by DFT filtering method, and 95.13% by suggested method. Nevertheless, the two existing techniques have notably larger false alarm rates (α), 25.33% by Otsu method, and 27.91% by DFT filtering method. Contrarily, the suggested scheme has quite smaller false alarm rate 1.88%. The suggested method has a larger correct classification rates (CCR), 98.11%, than do the other skills utilized to appearance fault detection of auto mirror images. More concretely, the suggested approach has a larger fault inspection rate as well as has a smaller false alarm rate utilized to auto mirror images having high reflective surfaces.

Table 2 Summary table of differentiating effects by three fault detection methods. 

Detection Schemes False alarm rate α (%) Fault inspection rate 1-β (%) Correct classification rate CCR (%) Processing time (sec)
Otsu method 25.33 67.75 74.67 0.18
DFT filtering method 27.91 72.26 72.08 0.28
Suggested method 1.88 95.13 98.11 0.32

The average execution time for treating an image with 256 x 256 pixels is as the following: 0.18 seconds by Otsu method, 0.28 seconds by DFT filtering method, and 0.32 seconds by suggested method. The mean processing time of the suggested scheme is nearly two times larger than that of the Otsu method yet it can be improved for actual fulfillment of an automatic optical detection system through hardware enhancement. The suggested approach conquers the problems of detecting appearance faults on auto mirror images with reflective and curved exteriors and overbears in its capability of correctly discriminating appearance faults from usual districts.

5. Conclusions

This research seeks to examine the replacement of human inspectors in a production process by exploiting a frequency filtering method based on computer vision to inspect appearance faults on auto mirror products. This study suggests a fault enhancement technique based on Fourier high-pass filtering and the convex hull arithmetic to the optical inspection of appearance faults on high reflective surfaces of auto mirrors. Through comparing the testing image with the corresponding convex hull image, the suggested method does not need any standard pattern for template matching and there is no need for the accurate positioning of mirror workpieces in jigs. Trial outcomes show that the suggested approach increases by 95.13% the probability of accurately differentiating appearance faults and a low 1.88% probability of mistakenly detecting usual districts as appearance faults on reflective exteriors of auto mirrors. The proposed method effectively and efficiently overcomes the difficulties of detecting small appearance faults on auto mirrors with high reflective surfaces and excels in its ability of correctly discriminating faults from normal regions. Major restrictions of the present method require to be overcome as follows: it will produce more missing alarms if the appearance faults are gathering in a narrow scope, and it is not reactive to discriminate the appearance faults with slow variations in shape. Therefore, future research directions can focus on examining existing approaches to search for the most efficient and effective method for the proposed application.

Acknowledgements

This study was financially assisted by the Ministry of Science and Technology, Taiwan (R.O.C.), for the financial support through the Grant MOST 105-2221-E-324-013-MY2.

References

Barber, C.B., Dobkin, D.P., & Huhdanpaa, H. (1996). The quickhull algorithm for convex hulls. ACM Transactions on Mathematical Software, 22(4), 469-483. https://doi.org/10.1145/235815.235821 [ Links ]

Bentley, J.L., Faust, M.G., & Preparata, F.P. (1982). Approximation algorithms for convex hulls. Communications of the ACM, 25(1), 64-68. https://doi.org/10.1145/358315.358392 [ Links ]

Chan, C. H., & Pang, G. K. (2000). Fabric defect detection by Fourier analysis. IEEE transactions on Industry Applications, 36(5), 1267-1276. https://doi.org/10.1109/28.871274 [ Links ]

Chand, D. R., & Kapur, S. S. (1970). An algorithm for convex polytopes. Journal of the Association for Computing Machinery, 17(1),78-86. https://doi.org/10.1145/321556.321564 [ Links ]

Chiu, Y.P., & Lin, H.D. (2013). An innovative blemish detection system for curved LED lenses. Expert Systems with Applications, 40(2), 471-479. https://doi.org/10.1016/j.eswa.2012.07.041 [ Links ]

Chiu, Y.P., Lo, Y.C., & Lin, H.D. (2017). Hough transform based approach for surface distortion flaw detection on transparent glass. International Journal of Applied Engineering Research, 12(19), 8150-8159. [ Links ]

Chiu, Y.P., Lin, Y.K., & Lin, H.D. (2020). Effective image models for inspecting profile flaws of car mirrors with applications. Journal of Applied Engineering Science, 18(1), 81-91. https://doi.org/10.5937/jaes18-22825 [ Links ]

Da, Y., Dong, G., Wang, B., Liu, D., & Qian, Z. (2018). A novel approach to surface defect detection. International Journal of Engineering Science, 133, 181-195. https://doi.org/10.1016/j.ijengsci.2018.09.005 [ Links ]

Gonzalez, R.C. & Woods, R.E. (2017). Digital Image Processing, Pearson. [ Links ]

Graham, R.L. (1972). An efficient algorithm for determining the convex hull of a finite planar set. Information Processing Letters, 1(4), 132-133. https://doi.org/10.1016/0020-0190(72)90045-2 [ Links ]

He, S., Li, J., Gao, X., & Luo, L. (2015). Application of FTP in flaw detection of rail web. Optik, 126(2), 187-190. https://doi.org/10.1016/j.ijleo.2014.08.148 [ Links ]

Jarvis, R. A. (1973). On the identification of the convex hull of a finite set of points in the plane. Information processing letters, 2(1), 18-21. https://doi.org/10.1016/0020-0190(73)90020-3 [ Links ]

Jayaram, M.A., & Fleyeh, H. (2016). Convex hulls in image processing: A scoping review. American Journal of Intelligent Systems, 6(2), 48-58. https://doi.org/10.5923/j.ajis.20160602.03 [ Links ]

Kuo, C.F.J., Lai, C.H., Kao, C.H., & Chiu, C.H. (2018). Integrating image processing and classification technology into automated polarizing film defect inspection. Optics and Lasers in Engineering, 104, 204-219. https://doi.org/10.1016/j.optlaseng.2017.09.017 [ Links ]

Li, T. S. (2009). Applying wavelets transform and support vector machine for copper clad laminate defects classification. Computers & Industrial Engineering, 56(3), 1154-1168. https://doi.org/10.1016/j.cie.2008.09.018 [ Links ]

Li, D., Liang, L. Q., & Zhang, W. J. (2014). Defect inspection and extraction of the mobile phone cover glass based on the principal components analysis. The International Journal of Advanced Manufacturing Technology, 73(9), 1605-1614. https://doi.org/10.1007/s00170-014-5871-y [ Links ]

Li, L., Luo, S., Tai, X. C., & Yang, J. (2021). A new variational approach based on level-set function for convex hull problem with outliers. Inverse Problems & Imaging, 15(2), 315-338. https://doi.org/10.3934/ipi.2020070 [ Links ]

Lin, H.D. (2007). Automated visual inspection of ripple defects using wavelet characteristic based multivariate statistical approach. Image and Vision Computing, 25, 1785-1801. https://doi.org/10.1016/j.imavis.2007.02.002 [ Links ]

Lin, H., Li, B., Wang, X.G., Shu, Y.F., & Niu, S.L. (2019). Automated defect inspection of LED chip using deep convolutional neural network. Journal of Intelligent Manufacturing, 30(6), 2525-2534. https://doi.org/10.1007/s10845-018-1415-x [ Links ]

Lin, H.D., & Tsai, H.H. (2012). Automated quality inspection of surface defects on touch panels. Journal of the Chinese Institute of Industrial Engineers, 29(5), 291-302. https://doi.org/10.1080/10170669.2012.700528 [ Links ]

Lin, H.D., Chiu, Y.P., & Lin, W.T. (2013). An innovative approach for detection of slight surface variations on capacitor chips. International Journal of Innovative Computing Information and Control, 9(5), 1835-1850. [ Links ]

Lin, H. D., & Li, J. M. (2017). An innovative quality system for surface blemish detection of touch panels. International Journal of Applied Engineering Research, 12(21), 11523-11531. [ Links ]

Lin, H.D., & Hsieh, K.S. (2018). Detection of surface variations on curved mirrors of vehicles using slight deviation control techniques. International Journal of Innovative Computing Information and Control , 14(4), 1407-1421. [ Links ]

Lin, H.D., & Chen, H.L. (2019). Detection of surface flaws on textured LED lenses using wavelet packet transform based partial least squares techniques . International Journal of Innovative Computing Information and Control , 15(3), 905-921. https://doi.org/10.24507/ijicic.15.03.905 [ Links ]

Mallat, S.G. (1989). A theory for multiresolution signal decomposition the wavelet representation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 11(7), 674-693. https://doi.org/10.1109/34.192463. [ Links ]

Montgomery, D.C., & Runger, G.C. (2007). Applied Statistics and Probability for Engineers, John Wiley & Sons. [ Links ]

Ng, H. F. (2006). Automatic thresholding for defect detection. Pattern Recognition Letters, 27, 1644-1649. https://doi.org/10.1016/j.patrec.2006.03.009 [ Links ]

Ngan, H.Y.T., Pang, G.K.H., Yung, S.P., & Ng, M.K. (2005). Wavelet based methods on patterned fabric fault detection. Pattern Recognition, 38(4), 559-576. https://doi.org/10.1016/j.patcog.2004.07.009 [ Links ]

Otsu, N. (1979). A threshold selection method from gray-level histograms. IEEE Transactions on Systems, Man, and Cybernetics, 9(1), 62-66. [ Links ]

Park, J.K., Kwon, B.K., Park, J.H., & Kang, D.J. (2016) Machine learning-based imaging system for surface defect inspection. International Journal of Precision Engineering and Manufacturing-Green Technology, 3(3), 303-310. https://doi.org/10.1007/s40684-016-0039-x [ Links ]

Sezgin, M., & Sankur, B. (2004). Survey over image thresholding techniques and quantitative performance evaluation. Journal of Electronic Imaging, 13(1), 146-156. https://doi.org/10.1117/1.1631315 [ Links ]

Taha, E.M., Emary, E., & Moustafa, K. (2014). Automatic optical inspection for PCB manufacturing: A survey. International Journal of Scientific & Engineering Research, 5(7), 1095-1102. [ Links ]

Truong, M.T.N., & Kim, S. (2018). Automatic image thresholding using Otsu's method and entropy weighting scheme for surface defect detection. Soft Computing, 22(13), 4197-4203. https://doi.org/10.1007/s00500-017-2709-1 [ Links ]

Tsai, D. M., & Huang, C. K. (2018). Defect detection in electronic surfaces using template-based Fourier image reconstruction. IEEE Transactions on Components, Packaging and Manufacturing Technology, 9(1), 163-172. https://doi.org/10.1109/TCPMT.2018.2873744 [ Links ]

Yang, Z., & Cohen, F.S. (1999). Image registration and object recognition using affine invariants and convex hulls. IEEE Transactions on Image Processing, 8(7), 934-946. https://doi.org/10.1109/83.772236 [ Links ]

Peer Review under the responsibility of Universidad Nacional Autónoma de México.

Received: April 08, 2020; Accepted: May 18, 2021; Published: August 31, 2021

Corresponding author. E-mail address:hdlin@cyut.edu.tw(Hong-Dar Lin).

Creative Commons License This is an open-access article distributed under the terms of the Creative Commons Attribution License