원시데이터 수집 시스템
선정목록으로

Application of Line Scan Technology for Defect Inspection in Plain Dyed Fabric

간접 관련 패션 · (24) 패션(코오롱FnC) (17) 스펀본드 부직포(3) 자동차 인테리어 소재

기본 정보

저자
  1. Yuliang Chen — Department of Mechanical Engineering, National Kaohsiung University of Science and Technology, No. 415, Jiangong Rd., Sanmin Dist., Kaohsiung City 80778, Taiwan
  2. Chia‐Wei Tsai — Department of Mechanical Engineering, National Kaohsiung University of Science and Technology, No. 415, Jiangong Rd., Sanmin Dist., Kaohsiung City 80778, Taiwan
  3. Fan-Siou Ding — Department of Mechanical Engineering, National Kaohsiung University of Science and Technology, No. 415, Jiangong Rd., Sanmin Dist., Kaohsiung City 80778, Taiwan
  4. Quang-Cherng Hsu — Department of Mechanical Engineering, National Kaohsiung University of Science and Technology, No. 415, Jiangong Rd., Sanmin Dist., Kaohsiung City 80778, Taiwan
DOI
10.18494/sam.2021.3251
저널
Sensors and Materials
발행년도
2021
발행기관
MYU K.K.
피인용수
3
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.18494/sam.2021.3251
토픽
Textile materials and evaluations
OpenAlex ID
W4244142032

평가 내용

관련도
간접 관련
사업분야
패션 · (24) 패션(코오롱FnC)
부 분야
(17) 스펀본드 부직포, (3) 자동차 인테리어 소재
R&D 측면
공정·제조
확신도
0.80
근거 용어
defect inspection, fabric dyeing and finishing, automatic optical inspection, line scan technology, image processing
판단 근거
본 논문은 염색 및 가공 공정 중 발생하는 직물(Fabric)의 결함을 자동 광학 검사(AOI) 시스템으로 탐지하는 기술을 다룹니다. 이는 코오롱인더스트리의 패션(의류 소재) 및 산업용 부직포 생산 공정의 품질 관리 자동화에 적용 가능한 기술입니다.
R&D 활용 포인트
의류용 기능성 원단이나 산업용 부직포 생산 라인에 자동 결함 검사 시스템을 도입하여, 수동 검사의 인적 오류를 줄이고 생산 효율성 및 품질 신뢰성을 높이는 데 활용할 수 있습니다.
평가 입력
본문 38,946자 중 30,032자 발췌

초록

Fabrics are susceptible to defects caused by various factors during the dyeing and finishing processes.Fabric defects are mostly detected through manual visual inspection.Under the influence of fatigue from long working hours and human error in general, this method results in misjudgment and missed defects.Certain difficulties are encountered in the development of automated optical inspection (AOI) machines because large pieces of fabric must be inspected at high speed.In this study, an AOI system was developed.The image acquisition system consisted of an IDS industrial camera equipped with a sensor for fabric defect inspection and a line scan function, as well as a white light-emitting diode (LED) light bar.The parameters were configured and calibrated using uEye Cockpit software.The inspection mechanism of the proposed machine was a roller device that simulated fabric production.Under continuous rotation of the roller, images were captured using the camera and then were combined to form a two-dimensional plane image.Long-term inspection was performed simultaneously.The line scan settings were a pixel clock (PCLK)S rate of 474 MHz and 10 scan lines per single scan when the tangential rotation velocity of the roller simulation was 0.9 m/s.The minimum vertical distortion of the acquired image was 1.658 mm when the total image length was 210 mm.Uneven illumination from the nonlinear light source resulted in the generation of noise in the captured images, which was eliminated through the combination of posterization and closing, with only a slight loss of defect features.Overall, the proposed AOI system effectively detected the defects.The minimum width of black defects that could be detected in the dyed and finished dark fabrics was 0.24 mm.

본문 38,946자

본문 펼치기
_Sensors and Materials_, Vol. 33, No. 12 (2021) 4087–4103 4087 MYU Tokyo S & M 2748 # Application of Line Scan Technology for Defect Inspection in Plain Dyed Fabric Yu-Liang Chen, Chia-Wei Tsai, Fan-Siou Ding, and Quang-Cherng Hsu <sup>*</sup> Department of Mechanical Engineering, National Kaohsiung University of Science and Technology, No. 415, Jiangong Rd., Sanmin Dist., Kaohsiung City 80778, Taiwan (Received January 1, 2021; accepted March 3, 2021; online published April 22, 2021) _Keywords:_ automatic optical inspection, defect inspection, fabric dyeing and finishing, line scan Fabrics are susceptible to defects caused by various factors during the dyeing and finishing processes. Fabric defects are mostly detected through manual visual inspection. Under the influence of fatigue from long working hours and human error in general, this method results in misjudgment and missed defects. Certain difficulties are encountered in the development of automated optical inspection (AOI) machines because large pieces of fabric must be inspected at high speed. In this study, an AOI system was developed. The image acquisition system consisted of an IDS industrial camera equipped with a sensor for fabric defect inspection and a line scan function, as well as a white light-emitting diode (LED) light bar. The parameters were configured and calibrated using uEye Cockpit software. The inspection mechanism of the proposed machine was a roller device that simulated fabric production. Under continuous rotation of the roller, images were captured using the camera and then were combined to form a two-dimensional plane image. Long-term inspection was performed simultaneously. The line scan settings were a pixel clock (PCLK)S rate of 474 MHz and 10 scan lines per single scan when the tangential rotation velocity of the roller simulation was 0.9 m/s. The minimum vertical distortion of the acquired image was 1.658 mm when the total image length was 210 mm. Uneven illumination from the nonlinear light source resulted in the generation of noise in the captured images, which was eliminated through the combination of posterization and closing, with only a slight loss of defect features. Overall, the proposed AOI system effectively detected the defects. The minimum width of black defects that could be detected in the dyed and finished dark fabrics was 0.24 mm. 1. Introduction Fabrics, including clothing, are an essential part of life. Before white fabrics become colorful textile materials, they must first undergo dyeing and finishing processes. Inspection, mainly visual, must then be performed to ensure that the fabrics meet certain requirements and contain no defects. The fatigue caused by long working hours can result in human errors, such as misjudged or missed defects. This system necessitates a substantial amount of labor and the production efficiency is low. *Corresponding author: e-mail: hsuqc@nkust.edu.tw https://doi.org/10.18494/SAM.2021.3251 ISSN 0914-4935 © MYU K.K. https://myukk.org/ 4088 _Sensors and Materials_, Vol. 33, No. 12 (2021) Regarding detection systems, the use of line scan cameras to capture high-speed images and to detect various objects has been described frequently in the literature. To improve the accuracy and speed of conventional video-based traffic cameras, Xu _et al._ <sup>(1)</sup> developed a vehicle inspection system that used line scan cameras. Specifically, two line scan cameras were used for image capture. The contour area of the vehicle in an image was extracted through a wavelet transform, and vehicle speed was estimated by examining curve relationships. In general, compared with conventional video-based traffic cameras, which require a longer detection time, line scan cameras can more accurately detect objects moving at high speed. Deutschl _et al._ <sup>(2)</sup> used an automatic system for the detection of railway surface defects. The system included a color line scan camera and involved the use of a spectral imaging program, which can detect defects such as peeling, cracks, grooves, or fractures through image processing (with an image resolution of 0.3 × 0.5 mm <sup>2</sup> at 60 km/h). Suppitaksakul and Rattakorn <sup>(3)</sup> proposed a method for counting the number of corrugated cardboard sheets by using a line scan camera and image processing techniques. The gray scale values of edge images obtained from a line scanner were converted into binary images. The strip line features of the surface were extracted by a morphological examination. The fluted areas of the cardboard were subjected to blob analysis. Next, the center of the detected area was identified and the number of corrugated cardboard sheets was calculated. The counting was accurate, and the errors on the slitter and cutoff sides were 2 and 3 cm, respectively. Wang _et al._ <sup>(4)</sup> established an image capture system by mounting a columnar asphalt mixture on a rotating stage with a line scan camera. The built-in setup of the camera and Camera Configuration Tool Plus software were used to adjust the capture cycle parameters. The images captured under various light settings were compared to ensure that the optimal settings were used. Deng _et al._ <sup>(5)</sup> established a plane detection system in which two-line scanning charge-coupled device cameras were used to detect various defects (e.g., holes, dust, and scratches) on tinplate surfaces under wide-field illumination. Two illumination modules were used for detection. The dark field was suitable for detecting scattered defects, whereas the bright field was mainly suitable for detecting defects involving reflected or absorbed light, such as pits and pinholes. Through the training and application of a self-organizing map and a neural network, the defects were inspected at a speed of 1.4 m/s and the probability of correct classification was 95.45%. Kwon _et al._ <sup>(6)</sup> used a line scanner to inspect black resin-coated steel. The image acquisition procedure included pretreatment, threshold selection, binarization, and postprocessing. Specifically, the pretreatment involved average filtering, image segmentation, and the consideration of the weighting gain concerning black defects. After binarization, the small amount of noise was eliminated through switching operations. The results indicated that the algorithm enabled highly accurate inspection. Bandara _et al._ <sup>(7)</sup> developed a system for detecting fabric defects through image processing techniques by a neural network. The lighting system consisted of illuminated panels of different colors, including ultraviolet lamps with red, green, and blue light. The lighting elements used depended on the kind of defects. For example, fabrics with oil stain defects must be detected and classified using ultraviolet lamps. _Sensors and Materials_, Vol. 33, No. 12 (2021) 4089 Ren _et al._ <sup>(8)</sup> applied a method involving the use of the edge of an image to quickly detect and locate defects on circuit boards and increase the detection speed on printed circuit boards (PCBs). The algorithm accounted for the gray scale characteristics of the edge images. Specifically, differences in the characteristics of standard images and images with defects were used to identify and classify the defects. Defects such as short circuits, open circuits, burrs, and holes were rapidly detected. Iyshwerya _et al._ <sup>(9)</sup> used machine vision for the real-time detection of surface defects in mild steel welding chips. They developed methods that effectively reduced noise and involved prefiltering and postfiltering to detect surface defects such as dents and rust. Line scanners were used in the hardware, and quartz tungsten lamps were the light source. The detection accuracy was 96.31%. Zheng and Wang <sup>(10)</sup> used an image subtraction algorithm and machine vision and image processing techniques to detect fabric defects. Their system removed the original image to identify the defects in the image of the piece to be inspected. Inverse binarization was performed to determine the defect characteristics. The peak recognition accuracy was 92% and the error rate was less than 5%. Chen _et al._ <sup>(11)</sup> proposed a machine-vision-based approach for the study of surface defects in steel plates and planning the grinding path of a robot. The gray scale values of the background and steel plate images were compared, and the steel plate was separated through mean filtering, binarization, and edge detection, thereby yielding the positions of flaws in the steel plate. Baygin _et al._ <sup>(12)</sup> proposed a contactless defect detection method for PCBs. A camera was used to capture images of the PCBs. Various image processing methods, such as color conversion (RGB to YUV), Gaussian filtering, Otsu thresholding, edge detection, the circle Hough transform, and the black-hat transform, were used to compare the images of the standard components with those of the components to be measured. Wang _et al._ <sup>(13)</sup> used an automated optical inspection (AOI) system to detect defects (e.g., blind holes and defects plated through holes) in PCBs. Several procedures were conducted, including image correction, image segmentation, and comparison of the drilling specifications for the holes. The defects (e.g., missing holes, offsets, and excessive holes) were detected within 10 s with a tolerance of approximately 5 µm. DaSilva _et al._ <sup>(14)</sup> applied an automatic optical system to detect defective solder joints on PCBs. The images were transilluminated into binary images by reducing the saturation and enhancing the contrast and brightness. Inverse binarization was also performed. Next, the solder feature frame was selected. Set as the region of interest (ROI), it was trimmed and analyzed to obtain the solder yield rate. Lin _et al._ <sup>(15)</sup> proposed an automated optical method for inspecting integrated circuit chips in a tray. A line scan camera with a linear motor was used. The locations of all the defects were obtained on the basis of the positioning of the chips. They were then marked using a laser. In the present study, we developed an automatic optical system involving computer vision methods and high-speed industrial cameras to inspect dyed and finished fabrics. Data analysis was also performed. The present findings serve as a reference for future developments in smart manufacturing. 4090 _Sensors and Materials_, Vol. 33, No. 12 (2021) 2. Materials and Methods The image acquisition system used for fabric inspection in this study comprised an IDS industrial camera with a line scan function and a white light-emitting diode (LED) light bar. Parameter setting and calibration were conducted using uEye Cockpit software. The captured images were processed using ROI selection, posterization, thresholding, and closing. Finally, contour detection was performed, and the contour area was used to calculate the defect size. 2.1 Image acquisition system 1) System architecture: A roller device (diameter 120 mm) was powered by a direct current motor to simulate the fabric transfer process in the dyeing and finishing processes. In addition, a single camera (IDS UI-3880CP-C-HQ Rev.2) with a line scan function and closed-circuit television lens (focal length 6 mm; aperture f2.0) was used as the imaging device. The captured images were transferred to the workstation (which was equipped with a GeForce RTX2060 Dual O6G graphics card) through USB 3.0 for processing and defect inspection (Fig. 1). The direct current motor had a fixed rotation speed. The rotation speed (142.8 rpm) of the roller device was determined by using a digital laser tachometer (DT-2234C+). The rotation speed was then converted into a flat speed, and the tangential rotation velocity was 0.9 m/s. The IDS camera had a resolution of 3088 × 2076 pixels. In line scan mode, the maximum resolution was 24 million pixels (3088 × 8000 pixels). In line scan mode, the maximum image width was 8000 pixels and a single scan had a width of 2000 pixels. The light source originally used at the fabric inspection site was a fluorescent lamp, which was not sufficient for the purpose of this study. Therefore, a white LED light bar (length 170 mm) was used as an alternative (Fig. 2). Direct bright field lighting was the light source in the simulation. Moreover, the camera was installed in the normal direction from the surface of the simulation roller to capture images. Fig. 1. (Color online) Device for the simulation of fabric transfer. Fig. 2. (Color online) Camera installed in the normal direction from the surface of the simulation roller. _Sensors and Materials_, Vol. 33, No. 12 (2021) 4091 2) Line scan processing: Before the line scan function was used, a scan starting point must first be set. As shown in Fig. 3, the central axial position of the roller was selected as the benchmark; therefore, the pixel of the scan position must first be set as the _y_ -axis position. As shown in Fig. 4, uEye Cockpit was used to set the location of the central axis of the roller at 1080 pixels. Figure 5 presents a 30 × 30 mm <sup>2</sup> square piece that was mainly used to calibrate the size of the captured images. For the successive adjustment of the parameter values—specifically, the number of lines in the vertical AOI merge mode in uEye Cockpit—the piece was adhered onto the surface of the simulation roller. Related parameters for adjustment settings to test whether the distortion of the stitched image was related to the pixel clock (PCLK) rate and the number of single scans (i.e., the number of lines) were provided by uEye Cockpit software. In addition, the brightness parameter was used to adjust the baseline light source of the images. 2.2 Defect inspection Fabrics have various types of defects. In the dyeing and finishing processes, the most common defects are uneven dyeing, color segmentation, and whitening. In general, a range is set for the size of the defect area inspected during these processes. If the area meets the set range, it is regarded as a defect. Because of the difference between the roller rotation rate and the image Fig. 3. (Color online) Line scanning benchmark. Fig. 4. (Color online) Central axis of the roller (1080 pixels). Fig. 5. (Color online) Square piece used for calibration. 4092 _Sensors and Materials_, Vol. 33, No. 12 (2021) capture speed, the same position on the fabric may appear in various positions when viewed in different images. Repeated testing of this characteristic can be used to assess system stability. In this study, Visual Studio 2019 software and the C# programming language were used to develop a human–machine interface for image processing and defect inspection. Emgu CV was the software library used for image processing. The human–machine interface was primarily used to configure the parameters for image processing and defect inspection, calibrate the line scanning parameters, and adjust the parameters used in AOI. The main analysis processes were calibration, image processing, posterization, thresholding, and contour detection. 1) Calibration and image processing in the line scan mode The number of single scans affects the degree of image distortion after stitching, which in turn causes errors in defect identification and analysis. Figure 5 presents the 30 × 30 mm <sup>2</sup> square used as the calibration piece for image stitching. Different combinations of the number of scans (rows) and the PCLK (MHz) can be used for testing and determining the difference between the length and width pixel values of the stitched image. Smaller differences between the length and width indicated less distortion and a more rectangular shape. The set value of the number of single scan lines can only be a factor of the image height after stitching. For example, if the stitched image measures 3088 × 8000 pixels, the number of single scan lines can only be a factor of 8000 (e.g., 2, 4, 8, 16, or 20). This is because image stitching takes place directly after image capture, but pixel data obtained through repeated capture are not stitched. The PCLK rates, representing the per-second pixel output, were 118, 237, and 474 MHz. A PCLK rate of 118 MHz indicated that 118 MPs can be output per second. The camera parameters were a PCLK rate of 474 MHz and 10 single scan lines. To determine the light gain value for capturing the optimal images for defect analysis, the images captured in the line scan mode and the surface scan optimization mode were compared using center pixel values. This comparison was also performed to ensure that the same illuminance was achieved as that of the surface scan image with the use of two white LED light bars. The central locations of the captured images were all set as the central positions of the center lines. In this study, the main gain parameter was a light gain value of 9. 2) Posterization and thresholding The purpose of posterization is to filter out the pixels in the image that are within the specified range for RGB pixel values, as well as to highlight the pixel features for subsequent image processing or algorithmic detection. As shown in Fig. 6, five points were selected for posterization of the RGB values to identify their respective means. Specifically, the differences were determined by subtracting the RGB values of the five points from the respective means. The maximum difference was taken as the threshold deviation (±), a manually set value. As shown in Eq. (1), the maximum and minimum RGB values were set, and each pixel in the image was analyzed accordingly. If the RGB values of the pixels were within the set range, the pixel value was set to 255 (white). By contrast, if one of the values was outside the set range, pixel value was set to 0 (black). The means and standard deviations of each RGB value in Eq. (1) _Sensors and Materials_, Vol. 33, No. 12 (2021) 4093 Fig. 6. (Color online) Selection of five points for the posterization of the RGB values to identify their respective means. were the deviations between the mean and the threshold value of the five selected points, respectively. if _Min_ ≤ _Bxi_, _yi_ ≤ _BMax_ _i_, _i_, _yi_ _BMin_ ≤ _Bxi_, _yi_ ≤ _B_  255 and ##, yi ) =  ## F ( xi, yi ) =  255 and GMin ≤ Gxi, yi ≤ G ## i, yi ) =  255 and GMin ≤ Gxi, yi ≤ GMax ## ( xi, yi )  if _BMin_ ≤ _Bxi_, _yi_ ≤ =  255 and _GMin_ ≤ _Gxi_, _yi_ ≤  and _RMin_ ≤ _Rxi_, _yi_ ≤  0 others and _RMin_ ≤ _Rxi_, _yi_ ≤ _R_ _i_, _i_, _yi_ _Min_ ≤ _Rxi_, _yi_ ≤ _RMax_ _i_, _i_, _yi_ (1) 0 others where ; ; ; _BMax_ = _BMean_ + _Deviation_ ; _BMin_ = _BMean_ - _Deviation_ _GMax_ = _GMean_ + _Deviation_ ; _GMin_ = _GMean_ - _Deviation_ _RMax_ = _RMean_ + _Deviation_ ; _RMax_ = _RMean_ + _Deviation_ = _BMean_ + _Deviation_ ; _BMin_ = _BMean_ = _GMean_ + _Deviation_ ; _GMin_ = _GMean_ = _RMean_ + _Deviation_ ; _RMax_ = _RMean_ + _Max_ = _BMean_ + _Deviation_ ; _BMin_ = _BMean_ _Max_ = _GMean_ + _Deviation_ ; _GMin_ = _GMean_ _Max_ = _RMean_ + _Deviation_ ; _RMax_ = _RMean_ If _BMax_, _GMax_, or _RMax_ exceeded 255, its value was set to 255. If _BMin_, _GMin_, or _RMin_ was negative, its value was set as 0. 3) ROI selection and image post-processing The find contours function in OpenCV, a library of programming functions, can be used to extract contours from binary images. If a contour is identified through contour detection, and the contour area is within the set maximum and minimum range, it is regarded as a defect. Uneven illumination can cause the dark areas on the left and right sides of an image to result in defect outputs. To mitigate this problem, a ROI selection function was added to divide each image into two regions: the middle ROI selection range and the left and right sides of the ROI, as shown in Fig. 7. Different standard deviation (±) values were used in each region. 4094 _Sensors and Materials_, Vol. 33, No. 12 (2021) Fig. 7. (Color online) ROI with dark areas to the left and right. (a) (b) (c) (d) (e) (f) Fig. 8. (Color online) Test fabrics of various colors. (a) Red, (b) green, (c) light blue, (d) dark blue, (e) light purple, and (f) black. The AOI system was tested to determine whether it can effectively identify defects in fabrics exhibiting variations from the dyeing and finishing processes. Therefore, plain cotton fabrics of different colors were subjected to inspection. Fabrics of both light and dark colors were used: red, green, light blue, dark blue, light purple, and black. As shown in Fig. 8, each type of fabric was divided into three groups. The first group was used to determine the posterization parameters (initial value settings), the second group comprised fabrics with no defects for testing (adjustment), and the third group consisted of defective fabrics for testing. 3. Results and Discussion The objective of this study was to inspect and detect fabric defects using the proposed system. The number of single scans set affects the defect features in the stitched image, as well as the degree of distortion in its outline and size. This can easily lead to erroneous interpretation in subsequent defect identification and analysis. The tests indicated that the images with the minimum vertical distortion were captured when 10 single scan lines were used under a PCLK rate of 474 MHz. _Sensors and Materials_, Vol. 33, No. 12 (2021) 4095 3.1 PCLK rates and number of single scans The number of single scans used affects the amount of distortion in images captured in line scanning mode. Therefore, a square calibration piece measuring 30 mm × 30 mm and the PCLK rate were set to determine the size difference of the calibration piece in the image. A higher number of single scans (rows) indicated a greater pixel length obtained in a single scan. As shown in Eq, (2), the camera frame rate was 58 Hz. Under a sample setting of 3088 × 2000 pixels, a PCLK rate of 358 MHz was established to be sufficient for the output. _PCLK_ = _H total_ × _V total_ × _Frame Rate_ (2) As shown in Fig. 9, when the PCLK rate was set to 118 MHz, image separation was apparent. Therefore, this rate was excluded from further analysis. PCLK rates of 237 and 474 MHz were used for rectangular calibration with different numbers of lines. Tables 1 and 2 present the size difference. A minimum vertical distortion of 63.179 pixels was noted when 10 single scan lines were used with a PCLK rate of 474 MHz. 3.2 Light gain settings As shown in Table 3, the main gain parameter was adjusted in uEye Cockpit to increase image brightness so that the images captured in the line scan mode had the same illuminance as Fig. 9. (Color online) A PCLK rate of 118 MHz was insufficient, as indicated by the obvious gap in the captured image. Table 1 <u>Rectangular calibration with diferent numbers of lines at a PCLK rate of 237 MHz.f</u> <u>Number of lines (row pixels)</u> <u>8</u> <u>10</u> <u>16</u> <u>20</u> <u>32</u> <u>40</u> <u>Diferences in length and width (pixels)f</u> <u>−604.212</u> <u>−502.398</u> <u>−268.359</u> <u>−115.04</u> <u>174.137</u> <u>311.743</u> Table 2 <u>Rectangular calibration with diferent numbers of lines at a PCLK rate of 474 MHz.f</u> <u>Number of lines (row pixel)</u> <u>2</u> <u>4</u> <u>8</u> <u>10</u> <u>16</u> <u>20</u> <u>Diferences in length and width (pixel)f</u> <u>−892.773</u> <u>−641.858</u> <u>−229.052</u> <u>−63.179</u> <u>364.974</u> <u>591.864</u> 4096 _Sensors and Materials_, Vol. 33, No. 12 (2021) Table 3 <u>Optimal RGB light gain values in the benchmark (line center) position.</u> <u>Area</u> <u>Area</u> _×_ 1 _×_ 2 _×_ 3 _×_ 4 _×_ 5 _×_ 6 _×_ 7 _×_ 8 _×_ 9 _×_ 10 _×_ 11 _×_ 12 _×_ 13 _×_ 14 _×_ 14.5 <u>scan</u> <u>B</u> <u>255</u> <u>81</u> <u>135</u> <u>169</u> <u>195</u> <u>239</u> <u>252</u> <u>255</u> <u>255</u> <u>255</u> <u>255</u> <u>255</u> <u>255</u> <u>255</u> <u>255</u> <u>255</u> G 167 31 47 59 76 77 95 108 118 119 130 144 153 162 178 171 <u>R</u> <u>65</u> <u>11</u> <u>24</u> <u>29</u> <u>34</u> <u>42</u> <u>51</u> <u>51</u> <u>61</u> <u>64</u> <u>62</u> <u>73</u> <u>74</u> <u>86</u> <u>88</u> <u>93</u> Fig. 10. (Color online) Schematic of three analytical points. Table 4 <u>Comparison of maximum diferences in RGB gains.f</u> <u>Light gain</u> <u>×7</u> <u>×9</u> <u>×14.5</u> <u>Inspection</u> Left Middle Right Left Middle Right Left Middle Right <u>position</u> <u>B</u> <u>255</u> <u>255</u> <u>247</u> <u>255</u> <u>255</u> <u>255</u> <u>255</u> <u>255</u> <u>255</u> <u>G</u> <u>91</u> <u>108</u> <u>87</u> <u>106</u> <u>119</u> <u>107</u> <u>151</u> <u>171</u> <u>151</u> <u>R</u> <u>52</u> <u>51</u> <u>49</u> <u>54</u> <u>64</u> <u>47</u> <u>73</u> <u>93</u> <u>73</u> <u>Maximum</u> 8 0 0 <u>diference in Bf</u> f <u>Maximum</u> 21 13 20 <u>diference in Gf</u> <u>Maximum</u> 3 17 20 <u>diference in Rf</u> <u>Total maximum</u> 32 30 40 <u>diferencef</u> the surface scan images. The best RGB gains were 9, 14.5, and 7, respectively, which were used for the further study. The pixel values of three points 1/8 left of the center, at the center, and 1/8 right of the center were selected, and the maximum difference between the pixel values of the three points was analyzed (Fig. 10). As shown in Table 4, the maximum differences in RGB gain values were compared, and the value with the smallest difference was selected. The maximum differences when the gain value _Sensors and Materials_, Vol. 33, No. 12 (2021) 4097 was 9 for R, G, and B were 17, 13, and 0 (medium, minimum, and minimum), respectively. The sum of the maximum differences (30) was also the smallest of the three gain values. Therefore, a light gain value of 9 was used as the main gain parameter. 3.3 Uneven illumination and image post-processing Uneven illumination of the images captured in line scan mode, which led to incorrect detection of defects, was observed during the inspection process. As shown in Fig. 11(a), the newly added ROI function selected the middle region, and five points were also selected from the evenly and randomly distributed left and right sides (outer region). Subsequently, posterization was used to process the image range of different regions. Considerable speckle noise was noted, as shown in Fig. 11(b). As shown in Fig. 12, when the threshold deviation (±) differed according to the region, adding a (±) value to the outer ROI reduced the analytical problem of dark peripheral areas. However, numerous defect features were also eliminated. This demonstrates that simply increasing the value of (±) for noise removal causes the considerable loss of defect features. The defect feature analysis revealed that posterization with ROI selection outperformed posterization alone, with one shortcoming: the generation of a substantial amount of speckle noise. In general, when it is applied to AOI, the speed will be slowed, and the inspection efficiency will be reduced. Therefore, before image adjustment with (±) values, closing was used for speckle noise removal, and the results were compared for different times of closing. After the completion of posterization for the dark blue fabric, better detection results were observed for the image obtained from five closings. Five closings also resulted in the optimal results for the black fabric (Fig. 13). (a) (b) Fig. 11. (Color online) Partition analysis of the line scan image. (a) ROI and outer regions; (b) inspection result. (a) (b) Fig. 12. (Color online) Results from the different threshold deviation (±). (a) The same value was used for the inner and outer parts of the ROI; (b) adding a (±) value to the outer ROI reduced the noise. 4098 _Sensors and Materials_, Vol. 33, No. 12 (2021) (a) (d) (b) (e) (c) (f) Fig. 13. (Color online) Analysis of defect features in ROIs in the posterized images with different closing times. (a) Dark blue #1, (b) Dark blue #2, (c) Dark blue #3, (d) Black #1, (e) Black #2, and (f) Black #3. Table 5 lists the image processing parameters, various combinations of which were tested to determine the optimal inspection method. Posterization of the ROI and the initial (±) value combined with closing effectively eliminated noise and accurately detected defects, with only a slight loss of defect features. This method was successfully used to inspect defects in dark blue and black fabrics. Subsequently, contour detection was applied to the defect features (Fig. 14). 3.4 Image processing and defect inspection The posterization parameters determined for the nondefective fabrics were used for the inspection of both the defective and nondefective fabrics. As shown in Table 6, the contour detection area for fabrics of different colors varied. Figure 15 presents the testing results for both the defective and nondefective fabrics. Some defects in the dark blue and black fabrics were not identified, perhaps because of similarities between the colors of the fabrics and the defects. Therefore, defects can be easily identified if their colors contrast with those of the fabrics. 3.5 Fully automated image acquisition and inspection The posterization parameters and the contour detection area were used for the determination of upper and lower limits. The mismatch between the roller and the image capture caused the same defect to appear at a different position every time an image was taken. Under continuous rotation of the roller, multiple inspections were performed using the AOI system. As shown in Fig. 16, the system correctly identified the presence or absence of defects in all the fabrics. _Sensors and Materials_, Vol. 33, No. 12 (2021) 4099 Table 5 <u>Image processing parameters and the optimal parameters determined.</u> <u>Methods</u> <u>Inspection results</u> <u>No noise observed, but considerable number of defect</u> Posterization <u>features lost.</u> <u>Posterization of ROI</u> Substantial amount of noise with obvious defects. <u>+ initial (±) value of threshold deviation</u> <u>Posterization of ROI</u> <u>+ diferent (±) values of threshold deviationf</u> <u>Posterization of ROI</u> <u>Noise eliminated but considerable number of defect features</u> <u>+ diferent (±) values of threshold deviationf</u> <u>lost.</u> <u>Posterization of ROI</u> <u>Noise eliminated and only small number of defect features</u> <u>+ initial (±) value of threshold deviation + closing</u> <u>lost.</u> <u>Noise eliminated and only small number of defect features</u> <u>lost.</u> (a) (b) (c) (d) (e) (f) Fig. 14. (Color online) Posterization of ROI + initial (±) value of threshold deviation + closing. Table 6 <u>Color posterization parameters obtained for diferent colors.f</u> <u>Red</u> <u>Green</u> <u>Light blue</u> <u>Dark blue</u> <u>Light purple</u> <u>Black</u> <u>B</u> <u>53</u> <u>93</u> <u>255</u> <u>108</u> <u>239</u> <u>85</u> G 57 107 107 40 60 46 R 229 41 65 33 103 44 (±) deviation 100 52 65 57 70 45 Max area 21000000 21000000 21000000 21000000 21000000 21000000 <u>Min area</u> <u>500</u> <u>100</u> <u>150</u> <u>150</u> <u>400</u> <u>170</u> The results indicated that posterization provided a stabilizing effect such as uneven illumination of the images captured during the inspection of defects in the nondefective fabrics. The mismatch between the roller and the image capture caused the same defect to appear at a different position every time an image was taken. 4100 _Sensors and Materials_, Vol. 33, No. 12 (2021) (a) (b) (c) (d) (e) (f) Fig. 15. (Color online) Fabric testing results. (a) Plain red fabric, (b) plain green fabric, (c) plain light blue fabric, (d) plain dark blue fabric, (e) plain light purple fabric, and (f) plain black fabric. (a) (b) (c) (d) Fig. 16. (Color online) Results from the fully automated image inspection. (a) Flawless red fabric, (b) defective red fabric, (c) flawless green fabric, and (d) defective green fabric. _Sensors and Materials_, Vol. 33, No. 12 (2021) 4101 (e) (f) (g) (h) (i) (j) (k) (l) Fig. 16. (Color online) (continued) Results from the fully automated image inspection. (e) Flawless light blue fabric, (f) defective light blue fabric, (g) flawless dark blue fabric, (h) defective dark blue fabric, (i) flawless light purple fabric, (j) defective light purple fabric, (k) flawless black fabric, and (l) defective black fabric. 4102 _Sensors and Materials_, Vol. 33, No. 12 (2021) 4. Conclusions In this study, a system for inspecting defects in dyed fabrics was developed. The sensor device was an industrial camera with a line scan function, and the raw materials were transferred using a roller (the rotational speed of which was 142.8 rpm, as measured using a digital laser tachometer). Regarding the line scan settings, when the tangential rotation velocity of the roller simulation was 0.9 m/s, the PCLK rate was 474 MHz and each scan had 10 scan lines. The defects were successfully detected through posterization when they differed in color from the test fabrics, although the captured images showed signs of uneven illumination. Noise was eliminated from the images through various processes, including the combination of initial deviation, closing, and posterization of the ROI, with only a slight loss of defect features. The minimum width of black defects that could be detected in the dyed and finished dark fabrics was 0.24 mm. To achieve the speed currently used in the dyeing and finishing industry of approximately 1.5 m/s, a more advanced computer and a roller with a larger diameter would be required. References 1 Z. Xu, X. Zhao, and N. Li: Proc. 2009 9th Int. Conf. Electronic Measurement and Instruments (ICEMI, 2009) 748–751. <u>[https://doi.org/10.1109/iEECON.2014.6925889](https://doi.org/10.1109/iEECON.2014.6925889)</u> 2 E. Deutschl, C. Gasser, A. Niel, and J. Werschonig: Proc. 2004 IEEE Intelligent Vehicles Symp. (IEEE, 2004) 507–511. <u>[https://doi.org/10.1109/ivs.2004.1336435](https://doi.org/10.1109/ivs.2004.1336435)</u> 3 C. Suppitaksakul and M. Rattakorn: Proc. 2014 Int. Electrical Engineering Congr. (iEECON, 2014) 1–4. <u>[https://](https://doi.org/10.1109/iEECON.2014.6925889)</u> <u>[doi.org/10.1109/iEECON.2014.6925889](https://doi.org/10.1109/iEECON.2014.6925889)</u> 4 C. Wang, A. Sha, and Z. Sun: Proc. 2010 3rd Int. Congr. Image and Signal Processing (CISP, 2010) 2614–2618. <u>[https://doi.org/10.1109/CISP.2010.5648155](https://doi.org/10.1109/CISP.2010.5648155)</u> 5 X. Deng, X. Ye, J. Fang, C. Lin, and L. Wang: Proc. 2010 Int. Conf. Electrical and Computer Engineering (ICECE 2010) 2205–2208. <u>[https://doi.org/10.1109/iCECE.2010.543](https://doi.org/10.1109/iCECE.2010.543)</u> 6 N. K. Kwon, C. H. Park, S. W. Yun, and P. Park: Proc.2013 13th Int. Conf. Control, Automation and Systems (ICCAS, 2013) 1729–1732. <u>[https://doi.org/10.1109/ICCAS.2013.6704215](https://doi.org/10.1109/ICCAS.2013.6704215)</u> 7 P. Bandara, T. Bandara, T. Ranatunga, V. Vimarshana, S. Sooriyaarachchi, and C. DeSilva: Proc. 2018 Int. Conf. Advances in ICT for Emerging Regions (ICTer, 2018) 119–125. <u>[https://doi.org/10.1109/ICTER.8615491](https://doi.org/10.1109/ICTER.8615491)</u> 8 S. Ren, L. Lu, L. Zhao, and H. Duan: Proc. 2015 8Th Int. Congr. Image and Signal (Cisp, 2015) 899–903. <u>[https://doi.org/10.1109/CISP.2015.7408005](https://doi.org/10.1109/CISP.2015.7408005)</u> 9 K. Iyshwerya, B. Janani, S. Krithika, and T. Manikandan: Proc. 2013 IEEE Int. Conf. Smart Structures and Systems (ICSSS, 2013) 103–107. <u>[https://doi.org/10.1109/ICSSS.2013.6623010](https://doi.org/10.1109/ICSSS.2013.6623010)</u> 10 G. Zheng and J. Wang: Proc. 8th Int. Conf. Electronic Measurement and Instruments (ICEMI, 2007) 2822– [2825. https://doi.org/10.1109/ICEMI.2007.4350807](https://doi.org/10.1109/ICEMI.2007.4350807) 11 N. Chen, J. Sun, X. Wang, Y. Huang, Y. Li, and C. Guo: Proc. 2019 IEEE 6th Int. Conf. Industrial Engineering [and Applications (ICIEA, 2019) 1748–1753. https://doi.org/10.1109/ICIEA.2019.8834354](https://doi.org/10.1109/ICIEA.2019.8834354) 12 M. Baygin, M. Karakose, A. Sarimaden, and E. Akin: Proc. 2017 Int. Artificial Intelligence and Data [Processing Symp. (IDAP, 2017) 1–5 https://doi.org/10.1109/IDAP.2017.8090292](https://doi.org/10.1109/IDAP.2017.8090292) 13 W. C. Wang, S. L. Chen, L. B. Chen, and W. J. Chang: IEEE Access 5 [(2017) 10817. https://doi.org/10.1109/](https://doi.org/10.1109/ACCESS.2016.2631658) <u>[ACCESS.2016.2631658](https://doi.org/10.1109/ACCESS.2016.2631658)</u> 14 H. G. DaSilva, T. G. Amaral, and O. P. Dias: Proc. 2010 36th Annu. Conf. IEEE Industrial Electronics Society [(IECON, 2010) 1087–1091. https://doi.org/10.1109/IECON.2010.5675520](https://doi.org/10.1109/IECON.2010.5675520) 15 C. S. Lin, J. Tsung Huang, T. C. Wei, M. S. Yeh, and D. C. Chen: Opt. Laser Technol. 43 [(2011) 218. https://doi.](https://doi.org/10.1016/j.optlastec.2010.06.017) <u>[org/10.1016/j.optlastec.2010.06.017](https://doi.org/10.1016/j.optlastec.2010.06.017)</u> _Sensors and Materials_, Vol. 33, No. 12 (2021) 4103 About the Authors Yu-Liang Chen received his B.S. degree from Ta Hwa University of Science and Technology, Taiwan, in 2000 and his M.S. degree from Southern Taiwan University of Science and Technology, Taiwan, in 2006. Since 2012, he has been a Ph.D. student at National Kaohsiung University of Science and Technology, From 2014 to 2019, he was a senior design engineer at Enplas, mainly responsible for IC reliability testing sockets, Taiwan. Since 2020, he has been a section manager in Chipbond Technology Corporation, mainly responsible for COF design and departmental management. (frankchen2341@gmail.com) Chia-Wei Tsai received his B.S. degree from Chung Yuan Christian University, Taiwan, in 2018 and his M.S. degree from National Kaohsiung University of Sciences and Technology, Taiwan, in 2020. He is currently working as an engineer in Chipbond Technology Corporation, mainly responsible for image recognition and artificial-intelligence-related fields. (tony08180826@gmail.com) Fan-Siou Ding received her B.S. degree from National Pingtung University of Science and Technology, Taiwan, in 2019. She is studying for her M.S. degree at National Kaohsiung University of Science and Technology. Her research interest is machine vision. (bonnieding13@gmail.com) Quang-Cherng Hsu received his B.S., M.S., and Ph.D. degrees from National Cheng Kung University, Taiwan, in 1985, 1987, and 1991, respectively. From 1993 to 1995, he was an engineer at Metal Industries Research & Development Centre, Taiwan. From 1995 to 2005, he was an associate professor at National Kaohsiung University of Applied Sciences, Taiwan. Since 2005, he has been a professor at National Kaohsiung University of Science and Technology, Taiwan. His research interests are in metal forming, machine vision, and nano-engineering. (hsuqc@nkust.edu.tw)

섹션 본문

섹션 본문이 없습니다.

참고문헌 13건

  1. Defect detection algorithm for high speed inspection in machine vision 2013 10.1109/icsss.2013.6623010
  2. Vision based mura detection by using property of line scan camera for black resin-coated steel - Line scan algorithm 2013 10.1109/iccas.2013.6704215
  3. Surface Defects Inspection System Based on Machine Vision International Conference on Electrical and Control Engineering · 2010 10.1109/icece.2010.543
  4. High speed and high accuracy inspection of in-tray laser IC marking using line scan CCD with a new calibration model Optics & Laser Technology · Elsevier BV · 2010 10.1016/j.optlastec.2010.06.017
  5. Machine vision system for counting the number of corrugated cardboard 2022 International Electrical Engineering Congress (iEECON) · 2014 10.1109/ieecon.2014.6925889
  6. Pavement core sample image acquisition system based on line-scan camera 2010 3rd International Congress on Image and Signal Processing · 2010 10.1109/cisp.2010.5648155
  7. Defect detection on rail surfaces by a vision based system IEEE Intelligent Vehicles Symposium · 2004 10.1109/ivs.2004.1336435
  8. Fabric Defect Detection Method Based on Image Distance Difference 2007 10.1109/icemi.2007.4350807
  9. Automatic optical inspection for detecting defective solders on printed circuit boards 2010 10.1109/iecon.2010.5675520
  10. Circuit board defect detection based on image processing 2015 10.1109/cisp.2015.7408005
  11. A Machine Vision Based Automatic Optical Inspection System for Measuring Drilling Quality of Printed Circuit Boards IEEE Access · Institute of Electrical and Electronics Engineers · 2016 10.1109/access.2016.2631658
  12. Machine vision based defect detection approach using image processing 2017 International Artificial Intelligence and Data Processing Symposium (IDAP) · 2017 10.1109/idap.2017.8090292
  13. Research on surface defect detection and grinding path planning of steel plate based on machine vision 2019 10.1109/iciea.2019.8834354