TWI608230B - Image generation device, defect inspection apparatus and defect inspection method - Google Patents

Image generation device, defect inspection apparatus and defect inspection method Download PDF

Info

Publication number
TWI608230B
TWI608230B TW103103284A TW103103284A TWI608230B TW I608230 B TWI608230 B TW I608230B TW 103103284 A TW103103284 A TW 103103284A TW 103103284 A TW103103284 A TW 103103284A TW I608230 B TWI608230 B TW I608230B
Authority
TW
Taiwan
Prior art keywords
image
pixel
defect
sheet
processed
Prior art date
Application number
TW103103284A
Other languages
Chinese (zh)
Other versions
TW201435334A (en
Inventor
尾崎麻耶
Original Assignee
住友化學股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 住友化學股份有限公司 filed Critical 住友化學股份有限公司
Publication of TW201435334A publication Critical patent/TW201435334A/en
Application granted granted Critical
Publication of TWI608230B publication Critical patent/TWI608230B/en

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/89Investigating the presence of flaws or contamination in moving material, e.g. running paper or textiles
    • G01N21/892Investigating the presence of flaws or contamination in moving material, e.g. running paper or textiles characterised by the flaw, defect or object feature examined
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • G01N2021/8854Grading and classifying of flaws
    • G01N2021/8861Determining coordinates of flaws
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30124Fabrics; Textile; Paper

Description

圖像產生裝置、缺陷檢查裝置及缺陷檢查方法 Image generating device, defect inspection device, and defect inspection method

本發明係關於一種產生用於檢查偏光膜或相位差膜等片狀成形體之缺陷之圖像資料之圖像產生裝置、具備該圖像產生裝置之缺陷檢查裝置、及缺陷檢查方法。 The present invention relates to an image generating apparatus that generates image data for inspecting defects of a sheet-like molded body such as a polarizing film or a retardation film, a defect inspecting apparatus including the image generating apparatus, and a defect inspecting method.

作為檢查偏光膜或相位差膜等片狀成形體之缺陷之第1先前技術之缺陷檢查裝置,有一種使用稱為線感測器之一維相機之裝置。圖12A及12B係說明第1先前技術之缺陷檢查裝置中使用藉由線感測器取得之一維圖像K1~K19而產生缺陷映射圖像L之情形時之動作之圖。 As a first prior art defect inspection device for inspecting defects of a sheet-like molded body such as a polarizing film or a retardation film, there is a device using a one-dimensional camera called a line sensor. 12A and 12B are views for explaining the operation in the case where the defect map image L is generated by the one-dimensional image K1 to K19 obtained by the line sensor in the defect inspection device of the first prior art.

第1先前技術之缺陷檢查裝置以螢光管等線狀光源照明片狀成形體,一面沿片狀成形體之長度方向自長度方向之一端至另一端以線感測器掃描片狀成形體表面,一面取得如圖12A所示之複數個一維圖像(靜止圖像)K1~K19。再者,圖12A所示之一維圖像K1~K19係對藉由線感測器攝影之圖像實施強調缺陷部之處理(例如、二值化等圖像處理),於各圖像中,黑色部分表示無缺陷之部分,白色部分表示有缺陷之部分。而且,如圖12B所示,第1先前技術之缺陷檢查裝置係藉由按取得時間順序鋪滿複數個一維圖像K1~K19而產生作為二維圖像之缺陷映射圖像L,並基於該缺陷映射圖像L而檢查片狀成形體之缺陷者。再者,於圖12B所示之缺陷映射圖像L中,黑色部分表示無 缺陷之部分,白色部分表示有缺陷之部分。又,亦有藉由按取得時間順序鋪滿實施缺陷強調處理之前(利用線感測器取得之原始圖像)之一維圖像K1~K19而製作缺陷映射圖像L,並對缺陷映射圖像L實施強調缺陷部之處理之情形。 The defect inspection apparatus of the first prior art illuminates the sheet-shaped formed body with a linear light source such as a fluorescent tube, and scans the surface of the sheet-shaped formed body with a line sensor from one end to the other end in the longitudinal direction of the sheet-shaped formed body. A plurality of one-dimensional images (still images) K1 to K19 as shown in FIG. 12A are obtained. Furthermore, the one-dimensional image K1 to K19 shown in FIG. 12A performs processing for emphasizing the defective portion (for example, image processing such as binarization) on the image photographed by the line sensor, in each image. The black portion indicates the defect-free portion, and the white portion indicates the defective portion. Further, as shown in FIG. 12B, the defect inspection apparatus of the first prior art generates the defect map image L as a two-dimensional image by spreading a plurality of one-dimensional images K1 to K19 in order of acquisition time, and based on This defect map image L and inspects the defect of the sheet-shaped formed body. Furthermore, in the defect map image L shown in FIG. 12B, the black portion indicates no In the part of the defect, the white part indicates the defective part. Further, the defect map image L is created by fetching the one-dimensional image K1 to K19 before the defect enhancement processing (the original image obtained by the line sensor) in the chronological order, and the defect map is created. The case where the processing of the defect portion is emphasized is performed like L.

於藉由線感測器觀測之區域中,通常包含線狀光源像。於線狀光源與線感測器配置於片狀成形體之一面側之情形時,線狀光源像係自線狀光源出射且藉由片狀成形體單向發射而到達至線感測器之光之像,於在線狀光源與線感測器之間配置有片狀成形體之情形時,線狀光源像係自線狀光源出射且透射片狀成形體而到達至線感測器之光之像。於該第1先前技術之缺陷檢查裝置中,於片狀成形體之寬度較寬之情形時,以可檢查片狀成形體之寬度方向全體之方式,將複數台線感測器排列於寬度方向而使用。 In the area observed by the line sensor, a linear light source image is usually included. When the linear light source and the line sensor are disposed on one side of the sheet-shaped formed body, the linear light source image is emitted from the linear light source and is unidirectionally emitted by the sheet-shaped formed body to reach the line sensor. In the case of a light-like image, when a sheet-like formed body is disposed between the linear light source and the line sensor, the linear light source image is emitted from the linear light source and transmits the sheet-shaped formed body to reach the light of the line sensor. Like. In the defect inspection apparatus of the first prior art, when the width of the sheet-like formed body is wide, the plurality of line sensors are arranged in the width direction so that the entire width direction of the sheet-shaped formed body can be inspected. And use.

該第1先前技術之缺陷檢查裝置係基於藉由鋪滿複數個一維圖像K1~K19而產生之作為二維圖像之缺陷映射圖像L而檢查片狀成形體之缺陷者,故構成缺陷映射圖像L之各一維圖像K1~K19之檢查對象像素與線狀光源像之位置關係成為1個固定之位置關係。缺陷有時僅於檢查對象像素與線狀光源像之位置關係處於特定之位置關係之情形時顯現於一維圖像K1~K19上。例如,作為缺陷之1種之氣泡多數僅於位於線狀光源像之周緣或附近之情形時顯現於一維圖像K1~K19上。如此,缺陷有時因其位置而無法被檢測出。因此,使用由藉由線感測器取得之複數個一維圖像K1~K19所構成之作為二維圖像之缺陷映射圖像L檢查片狀成形體之缺陷之上述第1先前技術之缺陷檢查裝置,僅具有有限之缺陷檢測能力。 The defect inspection apparatus of the first prior art examines defects of the sheet-shaped formed body based on the defect map image L which is a two-dimensional image generated by spreading a plurality of one-dimensional images K1 to K19, and thus constitutes a defect. The positional relationship between the inspection target pixel and the linear light source image of each of the one-dimensional images K1 to K19 of the defect map image L has a fixed positional relationship. The defect sometimes appears on the one-dimensional images K1 to K19 only when the positional relationship between the inspection target pixel and the linear light source image is in a specific positional relationship. For example, most of the bubbles which are defects are present on the one-dimensional images K1 to K19 only when they are located at or near the periphery of the linear light source image. As such, defects are sometimes not detected due to their location. Therefore, the defect of the above-mentioned first prior art which inspects the defect of the sheet-shaped formed body using the defect map image L which is a two-dimensional image composed of a plurality of one-dimensional images K1 to K19 obtained by the line sensor is used. The inspection device has only limited defect detection capabilities.

作為解決此種問題點之第2先前技術之缺陷檢查裝置,有一種使用被稱為區域感測器之二維相機之裝置(參照專利文獻1、2)。第2先前技術之缺陷檢查裝置以螢光管等線狀光源照明片狀成形體,一面將 片狀成形體沿特定之搬送方向連續搬送,一面使用區域感測器取得二維圖像(動態圖像),並基於該二維圖像檢查片狀成形體之缺陷。 As a second prior art defect inspection device that solves such a problem, there is a device using a two-dimensional camera called an area sensor (see Patent Documents 1 and 2). The defect inspection device of the second prior art illuminates the sheet-shaped molded body with a linear light source such as a fluorescent tube, and will The sheet-shaped formed body is continuously conveyed in a specific conveyance direction, and a two-dimensional image (moving image) is obtained using the area sensor, and the defect of the sheet-shaped formed body is inspected based on the two-dimensional image.

根據第2先前技術之缺陷檢查裝置,可基於檢查對象像素與線狀光源像之位置關不同之複數個二維圖像而判定是否有缺陷,故可較使用線感測器之第1先前技術之缺陷檢查裝置更確實地檢測缺陷。因此,使用區域感測器之第2先前技術之缺陷檢查裝置,較使用線感測器之第1先前技術之缺陷檢查裝置可提高缺陷檢測能力。 According to the defect inspection apparatus of the second prior art, it is possible to determine whether or not there is a defect based on a plurality of two-dimensional images in which the inspection target pixel and the linear light source image are different in position, so that the first prior art using the line sensor can be used. The defect inspection device more reliably detects the defect. Therefore, the defect inspection apparatus of the second prior art using the area sensor can improve the defect detection capability compared to the defect inspection apparatus of the first prior art using the line sensor.

[先前技術文獻] [Previous Technical Literature]

[專利文獻1]日本專利特開2007-218629號公報 [Patent Document 1] Japanese Patent Laid-Open Publication No. 2007-218629

[專利文獻2]日本專利特開2010-122192號公報 [Patent Document 2] Japanese Patent Laid-Open Publication No. 2010-122192

圖13A及13B係說明第2先前技術之缺陷檢查裝置中使用藉由區域感測器取得之二維圖像M1~M6而產生缺陷映射圖像N之情形之動作之圖。於第2先前技術之缺陷檢查裝置中,區域感測器對連續搬送之片狀成形體以預先決定之時間間隔進行拍攝動作,如圖13A所示,與各拍攝動作對應而取得至少一部分重疊之複數個二維圖像M1~M6。再者,圖13A所示之二維圖像M1~M6係對藉由區域感測器攝影之圖像實施有強調缺陷部之處理(例如、二值化等圖像處理),於各圖像中,黑色部分表示無缺陷之部分,白色部分表示有缺陷之部分。 13A and 13B are views for explaining the operation of the defect inspection image device in the second prior art in which the defect map image N is generated by using the two-dimensional images M1 to M6 obtained by the area sensor. In the defect inspection device according to the second prior art, the area sensor performs an imaging operation on the sheet-shaped molded body that is continuously conveyed at predetermined time intervals, and as shown in FIG. 13A, at least partially overlaps with each imaging operation. A plurality of two-dimensional images M1 to M6. Furthermore, the two-dimensional images M1 to M6 shown in FIG. 13A perform processing for emphasizing defective portions (for example, image processing such as binarization) on the image photographed by the area sensor, for each image. In the middle, the black portion indicates the defect-free portion, and the white portion indicates the defective portion.

於第2先前技術之缺陷檢查裝置中,藉由區域感測器取得之二維圖像M1~M6於二維圖像M1與二維圖像M2之間、二維圖像M2與二維圖像M3之間、二維圖像M3與二維圖像M4之間、二維圖像M4與二維圖像M5之間、及二維圖像M5與二維圖像M6之間,具有一部分重疊之重疊部分。因此,於第2先前技術之缺陷檢查裝置中,於按取得時間順序逐次鋪滿二維圖像M1~M6而產生缺陷映射圖像N之情形時,如 圖13B所示,於1個缺陷映射圖像N中,存在複數個顯示相同之缺陷之缺陷像素(例如、圖13B之缺陷像素N1)。於使用如此之缺陷映射圖像N檢查片狀成形體之缺陷之情形時,難以準確掌握片狀成形體之缺陷之位置。又,會重複檢測相同缺陷。 In the defect inspection apparatus of the second prior art, the two-dimensional images M1 to M6 obtained by the area sensor are between the two-dimensional image M1 and the two-dimensional image M2, the two-dimensional image M2 and the two-dimensional image. Between the M3, between the two-dimensional image M3 and the two-dimensional image M4, between the two-dimensional image M4 and the two-dimensional image M5, and between the two-dimensional image M5 and the two-dimensional image M6 Overlapping overlaps. Therefore, in the defect inspection apparatus of the second prior art, when the two-dimensional images M1 to M6 are successively spread in the order of acquisition time to generate the defect map image N, As shown in FIG. 13B, in one defect map image N, there are a plurality of defective pixels (for example, defective pixel N1 of FIG. 13B) which display the same defect. When the defect of the sheet-like formed body is inspected using such a defect map image N, it is difficult to accurately grasp the position of the defect of the sheet-shaped formed body. Also, the same defect is repeatedly detected.

本發明係產生用於檢查片狀成形體之缺陷之圖像之圖像產生裝置,其目的在於提供一種可以較高之檢測能力準確檢查片狀成形體之缺陷之位置,且可防止重複檢測相同缺陷之圖像產生裝置、缺陷檢查裝置、及缺陷檢查方法。 The present invention is an image generating apparatus for producing an image for inspecting a defect of a sheet-shaped formed body, and an object thereof is to provide a position capable of accurately inspecting a defect of a sheet-shaped formed body with a high detection ability, and preventing duplicate detection from being the same Defect image generating device, defect inspection device, and defect inspection method.

本發明提供一種圖像產生裝置,其係產生用於檢查片狀成形體之缺陷之圖像者,且包含:搬送部,其以預先決定之搬送速度將片狀成形體向其長度方向搬送;光照射部,其對被搬送之上述片狀成形體照射光;攝像部,其係與被搬送之上述片狀成形體之表面對向配置,並以預先決定之時間間隔拍攝該片狀成形體之表面之一部分而產生複數個二維圖像者,且以藉由連續之2次拍攝動作而拍攝之攝像區域之一部分重疊之方式,設定上述時間間隔;特徵量算出部,其藉由預先決定之演算法處理,基於各像素之亮度值而算出構成上述各二維圖像之各像素之特徵量;處理圖像資料產生部,其將構成上述各二維圖像之各像素區分為上述特徵量為預先決定之閾值以上之缺陷像素、與上述特徵量未達上述閾值之殘餘像素,且與各二維圖像對應地產生處理圖像,該處理圖像係對上述缺陷像素賦予與上述特徵量對應之階調值,並對上述殘餘像素賦予零階調值;及缺陷映射圖像產生部,其係合成藉由上述處理圖像資料產生部所產生之複數個處理圖像,藉此產生表示片狀成形體之缺陷之分佈之 缺陷映射圖像者,且其包含:缺陷映射圖像座標值算出部,其基於構成各處理圖像之各像素之座標值、上述搬送速度、及上述時間間隔,而算出用於構成上述缺陷映射圖像之各像素之座標值;累加部,其進行下述(1)或下述(2)之任一者、或下述(1)及下述(2)之兩者:(1)針對上述缺陷映射圖像之各像素,計數處理圖像中之對應之像素中之缺陷像素之數量;(2)針對上述缺陷映射圖像之各像素,計算賦予至處理圖像中之對應之像素之階調值之合計;及亮度值設定部,其將基於利用上述(1)獲得之缺陷像素之數量、及/或利用上述(2)獲得之階調值之合計而算出之值,作為上述缺陷映射圖像之各像素之亮度值而設定,藉此產生缺陷映射圖像。 The present invention provides an image generating apparatus that generates an image for inspecting a defect of a sheet-shaped formed body, and includes a conveying unit that conveys the sheet-shaped formed body in a longitudinal direction at a predetermined conveying speed; The light-irradiating portion irradiates the sheet-shaped molded body to be conveyed with light, and the image-forming portion is disposed to face the surface of the sheet-shaped formed body to be conveyed, and the sheet-shaped formed body is imaged at predetermined time intervals. a plurality of two-dimensional images are generated on one of the surfaces, and the time interval is set such that one of the imaging regions captured by the two consecutive imaging operations partially overlaps; the feature amount calculation unit is determined in advance The algorithm processing calculates the feature amount of each pixel constituting each of the two-dimensional images based on the luminance value of each pixel, and the processed image data generating unit divides each pixel constituting each of the two-dimensional images into the above-described features a defective pixel having a predetermined value or more and a residual pixel having the feature amount not reaching the threshold value, and generating a processed image corresponding to each two-dimensional image, the processing map The image system assigns a tone value corresponding to the feature amount to the defective pixel, and assigns a zero-order tone value to the residual pixel; and a defect map image generation unit that is generated by the processed image data generation unit a plurality of processed images, thereby producing a distribution indicating defects of the sheet-shaped formed body a defect map image, comprising: a defect map image coordinate value calculation unit that calculates a defect map for constructing the defect map based on a coordinate value of each pixel constituting each processed image, the transport speed, and the time interval a coordinate value of each pixel of the image; an accumulation unit that performs either one of the following (1) or (2), or both (1) and (2) below: (1) Each pixel of the defect mapping image counts the number of defective pixels in the corresponding pixel in the processed image; (2) calculating, for each pixel of the defect mapping image, the corresponding pixel assigned to the processed image And a luminance value setting unit that calculates the value based on the total number of defective pixels obtained by the above (1) and/or the total of the gradation values obtained by the above (2), as the defect The luminance value of each pixel of the image is mapped and set, thereby generating a defect map image.

又,於本發明之圖像產生裝置中,上述時間間隔較佳為以使上述一部分重疊之攝像區域之上述長度方向之長度,成為上述各二維圖像之上述長度方向之長度之1/2倍以上之方式而設定。 Further, in the image generating apparatus of the present invention, the time interval is preferably such that a length of the longitudinal direction of the image capturing area partially overlapped is 1/2 of a length of the longitudinal direction of each of the two-dimensional images. Set more than the above.

又,本發明提供一種缺陷檢查裝置,其包含:上述圖像產生裝置;及顯示部,其顯示藉由上述圖像產生裝置之缺陷映射圖像產生部所產生之缺陷映射圖像。 Moreover, the present invention provides a defect inspection apparatus including: the image generation device; and a display unit that displays a defect map image generated by the defect map image generation unit of the image generation device.

又,本發明提供一種缺陷檢查方法,其係用於檢查片狀成形體之缺陷者,且包含:搬送步驟,藉由搬送部以預先決定之搬送速度,將片狀成形體向其長度方向搬送;光照射步驟,對被搬送之上述片狀成形體照射光;攝像步驟,藉由與被搬送之上述片狀成形體之表面對向而配置 之攝像部,以預先決定之時間間隔拍攝該片狀成形體之表面之一部分而產生複數個二維圖像,且以藉由連續之2次拍攝動作而拍攝之攝像區域之一部分重疊之方式,設定上述時間間隔;特徵量算出步驟,藉由預先決定之演算法處理,基於各像素之亮度值而算出構成上述各二維圖像之各像素之特徵量;處理圖像資料產生步驟,將構成上述各二維圖像之各像素區分為上述特徵量為預先決定之閾值以上之缺陷像素、與上述特徵量未達上述閾值之殘餘像素,且與各二維圖像對應地產生處理圖像,該處理圖像係對上述缺陷像素賦予與上述特徵量對應之階調值,並對上述殘餘像素賦予零階調值;缺陷映射圖像產生步驟,合成藉由上述處理圖像資料產生步驟所產生之複數個處理圖像,藉此產生表示片狀成形體之缺陷之分佈之缺陷映射圖像,且包含:缺陷映射圖像座標值算出步驟,基於構成各處理圖像之各像素之座標值、上述搬送速度、及上述時間間隔,而算出用於構成上述缺陷映射圖像之各像素之座標值;累加步驟,進行下述(1)或下述(2)之任一者、或下述(1)及下述(2)之兩者:(1)針對上述缺陷映射圖像之各像素,計數處理圖像中之對應之像素中之缺陷像素之數量;(2)針對上述缺陷映射圖像之各像素,計算賦予至處理圖像中之對應之像素之階調值之合計;及亮度值設定步驟,將基於利用上述(1)獲得之缺陷像素之數量、及/或利用上述(2)獲得之階調值之合計而算出之值,作為上述缺陷映射圖像之各像素之亮度值而設定,藉此產生缺陷映射圖像;及顯示步驟,顯示上述缺陷映射圖像產生步驟中所產生之缺陷映 射圖像。 Moreover, the present invention provides a defect inspection method for inspecting a defect of a sheet-shaped molded body, and includes a transfer step of transporting the sheet-shaped formed body to a longitudinal direction thereof at a predetermined transport speed by the transport unit. In the light irradiation step, the sheet-shaped molded body to be conveyed is irradiated with light, and the image capturing step is arranged to face the surface of the sheet-like formed body to be conveyed. The imaging unit captures a part of the surface of the sheet-shaped formed body at a predetermined time interval to generate a plurality of two-dimensional images, and partially overlaps one of the imaging regions captured by the two consecutive shooting operations. Setting the time interval; the feature amount calculating step calculates the feature amount of each pixel constituting each of the two-dimensional images based on the luminance value of each pixel by a predetermined algorithm processing; and processes the image data generating step to construct Each pixel of each of the two-dimensional images is divided into a defective pixel having a feature amount equal to or greater than a predetermined threshold value, and a residual pixel having the feature amount not reaching the threshold value, and a processed image is generated corresponding to each two-dimensional image. The processed image is provided with a tone value corresponding to the feature quantity to the defective pixel, and a zero-order key value is added to the residual pixel; a defect mapping image generating step is generated by the processing image data generating step a plurality of processed images, thereby generating a defect map image indicating a distribution of defects of the sheet-shaped formed body, and comprising: a defect map image holder The scalar value calculation step calculates a coordinate value of each pixel constituting the defect map image based on a coordinate value of each pixel constituting each processed image, the transport speed, and the time interval, and an accumulation step performs the following steps (1) or either of the following (2) or both of the following (1) and (2): (1) for each pixel of the defect map image, the correspondence in the processed image is counted The number of defective pixels in the pixel; (2) calculating, for each pixel of the defect mapping image, a total of the tone values assigned to the corresponding pixels in the processed image; and the brightness value setting step, based on utilizing the above (1) The number of defective pixels obtained and/or the value calculated by the total of the gradation values obtained in the above (2) is set as the luminance value of each pixel of the defect map image, thereby generating a defect map An image; and a display step of displaying the defect generated in the step of generating the defect map image Shoot the image.

根據本發明,圖像產生裝置係產生用於檢查片狀成形體之缺陷之圖像之裝置,且具備搬送部、光照射部、攝像部、特徵量算出部、處理圖像資料產生部、及缺陷映射圖像產生部。於圖像產生裝置中,攝像部一面藉由光照射部照射光一面以預先決定之時間間隔拍攝藉由搬送部搬送之片狀成形體之表面,藉此產生複數個二維圖像。該攝像部係以藉由連續之2次拍攝動作而拍攝之攝像區域之一部分重疊之方式,設定上述時間間隔。如此般產生之複數個二維圖像若以連續之2次拍攝動作中所產生之2個二維圖像觀察,則成為於與片狀成形體之長度方向平行之方向一部分相互重疊之圖像。 According to the present invention, the image generating apparatus generates a device for inspecting an image of a defect of the sheet-shaped formed body, and includes a transport unit, a light-irradiating unit, an imaging unit, a feature amount calculating unit, a processed image data generating unit, and Defect map image generation unit. In the image generating apparatus, the image pickup unit generates a plurality of two-dimensional images by photographing the surface of the sheet-shaped molded body conveyed by the transport unit at a predetermined time interval while irradiating light by the light-irradiating portion. The imaging unit sets the time interval such that one of the imaging regions captured by the two consecutive imaging operations partially overlaps. When a plurality of two-dimensional images generated in this manner are observed by two two-dimensional images generated in two consecutive shooting operations, the images are partially overlapped in a direction parallel to the longitudinal direction of the sheet-shaped formed body. .

特徵量算出部藉由以預先決定之演算法處理上述各二維圖像,而算出構成各二維圖像之各像素之基於亮度值之特徵量。 The feature amount calculation unit calculates the feature amount based on the luminance value of each pixel constituting each two-dimensional image by processing each of the two-dimensional images by a predetermined algorithm.

處理圖像資料產生部將構成上述各二維圖像之各像素區分為上述特徵量為預先決定之閾值以上之缺陷像素、與上述特徵量未達上述閾值之殘餘像素,且與各二維圖像對應地產生處理圖像,該處理圖像係對上述缺陷像素賦予與上述特徵量對應之階調值,並對上述殘餘像素賦予零階調值。 The processed image data generating unit divides each of the pixels constituting each of the two-dimensional images into a defective pixel whose feature amount is equal to or greater than a predetermined threshold value, and a residual pixel whose feature amount does not reach the threshold value, and each two-dimensional map A processed image is generated correspondingly, and the processed image is given a tone value corresponding to the feature amount to the defective pixel, and a zero-order key value is given to the residual pixel.

缺陷映射圖像產生部係藉由合成由處理圖像資料產生部產生之複數個處理圖像而產生缺陷映射圖像之部分,具有缺陷映射圖像座標值算出部、累加部、及亮度值設定部。 The defect map image generating unit generates a portion of the defect map image by synthesizing a plurality of processed images generated by the processed image data generating unit, and has a defect map image coordinate value calculating unit, an accumulating unit, and a luminance value setting. unit.

缺陷映射圖像座標值算出部基於構成各處理圖像之各像素之座標值、片狀成形體之搬送速度、及對攝像部設定之上述時間間隔,而算出用於構成缺陷映射圖像之各像素之座標值。 The defect map image coordinate value calculation unit calculates the coordinates for constituting the defect map based on the coordinate value of each pixel constituting each processed image, the transport speed of the sheet-shaped molded body, and the time interval set for the image pickup unit. The coordinate value of the pixel.

累加部進行下述(1)或下述(2)之任一者、或下述(1)及下述(2)之兩者。 The accumulating unit performs either one of the following (1) or the following (2), or both of the following (1) and the following (2).

(1)針對缺陷映射圖像之各像素,計數處理圖像中之對應之像素 中之缺陷像素之數量。 (1) Counting the corresponding pixels in the processed image for each pixel of the defect map image The number of defective pixels in the middle.

(2)針對缺陷映射圖像之各像素,計算賦予至處理圖像中之對應之像素之階調值之合計。 (2) For each pixel of the defect map image, the total of the tone values assigned to the corresponding pixels in the processed image is calculated.

而且,亮度值設定部將基於累加部中利用(1)獲得之缺陷像素之數量、及/或利用(2)獲得之階調值之合計而算出之值,作為缺陷映射圖像之各像素之亮度值而設定,藉此產生缺陷映射圖像。 Further, the luminance value setting unit calculates a value based on the total number of defective pixels obtained by (1) in the accumulation unit and/or the gradation value obtained by (2), and is used as each pixel of the defect map image. The luminance value is set, thereby generating a defect map image.

於如此般構成之本發明之圖像產生裝置中,由於基於藉由攝像部產生之片狀成形體之二維圖像,而產生用於檢查片狀成形體之缺陷之圖像即缺陷映射圖像,故與基於藉由例如線感測器取得之複數個一維圖像而產生用於檢查缺陷之圖像之情形相比,可維持較高之缺陷檢測能力。 In the image generating apparatus of the present invention configured as described above, a defect map for detecting an image of a defect of the sheet-shaped formed body is generated based on a two-dimensional image of the sheet-like formed body produced by the image pickup unit. For example, a higher defect detection capability can be maintained compared to a case where an image for checking a defect is generated based on a plurality of one-dimensional images obtained by, for example, a line sensor.

進而於本發明之圖像產生裝置中,基於構成各處理圖像之各像素之座標值、片狀成形體之搬送速度、及對攝像部設定之上述時間間隔,而算出用於構成缺陷映射圖像之各像素之座標值。而且,由於基於處理圖像中之像素且算出相同之座標值之像素中之缺陷像素之數量或該缺陷像素之階調值之合計而設定與算出之座標值對應之各像素之亮度值,藉此產生缺陷映射圖像,故藉由使用該缺陷映射圖像檢查片狀成形體之缺陷,可以較高之檢測能力準確檢查片狀成形體之缺陷之位置。於缺陷映射中,由於相同缺陷出現於一個部位,故可防止相同缺陷之重複檢測。 Further, in the image generating apparatus of the present invention, the defect map is calculated based on the coordinate value of each pixel constituting each processed image, the transport speed of the sheet-shaped molded body, and the time interval set for the imaging unit. The coordinate value of each pixel. Further, since the luminance values of the pixels corresponding to the calculated coordinate values are set based on the total number of defective pixels in the pixels in which the pixels in the image are processed and the same coordinate value are calculated, Since the defect map image is generated, the defect of the sheet-like formed body can be inspected by using the defect map image, and the position of the defect of the sheet-shaped formed body can be accurately inspected with high detection capability. In the defect mapping, since the same defect occurs in one portion, repeated detection of the same defect can be prevented.

又,根據本發明,缺陷檢查裝置具備上述本發明之圖像產生裝置與顯示部。顯示部顯示藉由圖像產生裝置之缺陷映射圖像產生部所產生之缺陷映射圖像。藉由使用者觀察由顯示部所顯示之缺陷映射圖像,可確認片狀成形體之缺陷之位置。 Moreover, according to the present invention, the defect inspection device includes the image generation device and the display unit of the present invention described above. The display unit displays a defect map image generated by the defect map image generating unit of the image generating device. By observing the defect map image displayed on the display unit by the user, the position of the defect of the sheet-shaped formed body can be confirmed.

又,根據本發明,缺陷檢查方法係用於檢查片狀成形體之缺陷之方法,且包含搬送步驟、光照射步驟、攝像步驟、特徵量算出步 驟、處理圖像資料產生步驟、缺陷映射圖像產生步驟、及顯示步驟。 Moreover, according to the present invention, the defect inspection method is a method for inspecting a defect of a sheet-shaped formed body, and includes a conveying step, a light irradiation step, an image capturing step, and a feature amount calculation step. And processing the image data generating step, the defect mapping image generating step, and the displaying step.

於攝像步驟中,一面照射光一面以預先決定之時間間隔藉由攝像部拍攝搬送之片狀成形體之表面,藉此產生複數個二維圖像。於該攝像步驟中,以藉由連續之2次拍攝動作而拍攝之攝像區域之一部分重疊之方式,設定上述時間間隔。如此般產生之複數個二維圖像若以連續之2次拍攝動作中所產生之2個二維圖像觀察,則成為於與片狀成形體之長度方向平行之方向一部分相互重疊之圖像。 In the imaging step, a plurality of two-dimensional images are generated by imaging the surface of the sheet-shaped formed body conveyed by the imaging unit at a predetermined time interval while irradiating light. In the imaging step, the time interval is set such that one of the imaging regions captured by the two consecutive imaging operations partially overlaps. When a plurality of two-dimensional images generated in this manner are observed by two two-dimensional images generated in two consecutive shooting operations, the images are partially overlapped in a direction parallel to the longitudinal direction of the sheet-shaped formed body. .

於特徵量算出步驟中,藉由以預先決定之演算法處理上述各二維圖像,而算出構成各二維圖像之各像素之基於亮度值之特徵量。於處理圖像資料產生步驟中,將構成上述各二維圖像之各像素區分為上述特徵量為預先決定之閾值以上之缺陷像素、與上述特徵量未達上述閾值之殘餘像素,且與各二維圖像對應地產生處理圖像,該處理圖像係對上述缺陷像素賦予與上述特徵量對應之階調值,並對上述殘餘像素賦予零階調值。 In the feature amount calculation step, the feature amount based on the luminance value of each pixel constituting each two-dimensional image is calculated by processing each of the two-dimensional images by a predetermined algorithm. In the processed image data generating step, each pixel constituting each of the two-dimensional images is divided into a defective pixel having a feature amount equal to or greater than a predetermined threshold value, and a residual pixel having the feature amount not reaching the threshold value, and each of the pixels The two-dimensional image correspondingly generates a processed image that gives a tone value corresponding to the feature amount to the defective pixel, and assigns a zero-order tone value to the residual pixel.

於缺陷映射圖像產生步驟中,藉由合成處理圖像產生步驟中所產生之複數個處理圖像而產生缺陷映射圖像。該缺陷映射圖像產生步驟包含缺陷映射圖像座標值算出步驟、算出次數累加步驟、及亮度值設定步驟。 In the defect map image generating step, the defect map image is generated by synthesizing a plurality of processed images generated in the image generating step. The defect map image generation step includes a defect map image coordinate value calculation step, a calculation number accumulation step, and a luminance value setting step.

於缺陷映射圖像座標值算出步驟中,基於構成各處理圖像之各像素之座標值、片狀成形體之搬送速度、及對攝像部設定之上述時間間隔,而算出用於構成缺陷映射圖像之各像素之座標值。 In the defect map image coordinate value calculation step, the defect map is calculated based on the coordinate value of each pixel constituting each processed image, the transport speed of the sheet-shaped molded body, and the time interval set for the imaging unit. The coordinate value of each pixel.

於累加步驟中,進行下述(1)或下述(2)之任一者、或下述(1)及下述(2)之兩者。 In the accumulation step, either one of the following (1) or the following (2) or both of the following (1) and the following (2) are performed.

(1)針對缺陷映射圖像之各像素,計數處理圖像中之對應之像素中之缺陷像素之數量。 (1) Counting the number of defective pixels in the corresponding pixels in the processed image for each pixel of the defect map image.

(2)針對缺陷映射圖像之各像素,計算賦予至處理圖像中之對應 之像素之階調值之合計。 (2) Calculate the correspondence given to the processed image for each pixel of the defect map image The sum of the gradation values of the pixels.

於亮度值設定步驟中,將基於累加步驟中利用(1)獲得之缺陷像素之數量、及/或利用(2)獲得之階調值之合計而算出之值,作為缺陷映射圖像之各像素之亮度值而設定,藉此產生缺陷映射圖像。 In the luminance value setting step, the value calculated based on the total number of defective pixels obtained by (1) in the accumulation step and/or the gradation value obtained by using (2) is used as each pixel of the defect map image. The brightness value is set, thereby generating a defect map image.

而且,於顯示步驟中,顯示缺陷映射圖像產生步驟中所產生之缺陷映射圖像。 Moreover, in the displaying step, the defect map image generated in the defect map image generating step is displayed.

於如此般構成之本發明之缺陷檢查方法中,由於基於攝像步驟中所產生之片狀成形體之二維圖像,而產生用於檢查片狀成形體之缺陷之圖像即缺陷映射圖像,故與基於藉由例如線感測器取得之複數個一維圖像而產生用於檢查缺陷之圖像之情形相比,可維持較高之缺陷檢測能力。 In the defect inspection method of the present invention thus constituted, a defect map image for inspecting a defect of the sheet-shaped formed body, that is, a defect map image, is generated based on a two-dimensional image of the sheet-like formed body generated in the image pickup step. Therefore, a higher defect detection capability can be maintained as compared with a case where an image for checking a defect is generated based on a plurality of one-dimensional images obtained by, for example, a line sensor.

進而於本發明之缺陷檢查方法中,於缺陷映射圖像產生步驟中,基於構成各處理圖像之各像素之座標值、片狀成形體之搬送速度、及對攝像部設定之上述時間間隔,而算出用於構成缺陷映射圖像之各像素之座標值。而且,由於基於處理圖像中之像素且算出相同之座標值之像素中之缺陷像素之數量或該缺陷像素之階調值之合計而設定與算出之座標值對應之各像素之亮度值,藉此產生缺陷映射圖像,故藉由觀察顯示步驟中所顯示之缺陷映射圖像而檢查片狀成形體之缺陷,藉此可以較高之檢測能力準確檢查片狀成形體之缺陷之位置。於缺陷映射中,由於相同缺陷出現於一個部位,故可防止相同缺陷之重複檢測。 Further, in the defect inspection method of the present invention, in the defect map image generating step, the coordinate value of each pixel constituting each processed image, the transport speed of the sheet-shaped molded body, and the time interval set for the imaging unit are The coordinate values of the pixels used to form the defect map image are calculated. Further, since the luminance values of the pixels corresponding to the calculated coordinate values are set based on the total number of defective pixels in the pixels in which the pixels in the image are processed and the same coordinate value are calculated, Since the defect map image is generated, the defect of the sheet-shaped formed body is inspected by observing the defect map image displayed in the display step, whereby the position of the defect of the sheet-shaped formed body can be accurately inspected with a high detection capability. In the defect mapping, since the same defect occurs in one portion, repeated detection of the same defect can be prevented.

1‧‧‧圖像產生裝置 1‧‧‧Image generating device

2‧‧‧片狀成形體 2‧‧‧Sheet shaped body

3‧‧‧搬送裝置 3‧‧‧Transporting device

4‧‧‧照明裝置 4‧‧‧Lighting device

5‧‧‧攝像裝置 5‧‧‧ camera

6‧‧‧圖像處理裝置 6‧‧‧Image processing device

7‧‧‧圖像解析裝置 7‧‧‧Image analysis device

21‧‧‧顯示部 21‧‧‧Display Department

61‧‧‧處理圖像產生部 61‧‧‧Processing Image Generation Department

71‧‧‧處理圖像輸入部 71‧‧‧Processing image input section

72‧‧‧缺陷映射圖像產生部 72‧‧‧Defect mapping image generation unit

73‧‧‧控制部 73‧‧‧Control Department

100‧‧‧缺陷檢查裝置 100‧‧‧ Defect inspection device

721‧‧‧座標值算出部 721‧‧‧ coordinate value calculation unit

722‧‧‧累加部 722‧‧‧Accumulate

723‧‧‧亮度值設定部 723‧‧‧Brightness value setting unit

A‧‧‧二維圖像 A‧‧‧ two-dimensional image

A1‧‧‧照明像 A1‧‧‧ illumination image

A3‧‧‧上限邊緣 A3‧‧‧ upper limit edge

A4‧‧‧下限邊緣 A4‧‧‧ lower edge

A21‧‧‧第1缺陷像素群 A21‧‧‧1st defective pixel group

A22‧‧‧第2缺陷像素群 A22‧‧‧2nd defective pixel group

a‧‧‧資料點 A‧‧‧data point

B‧‧‧二維圖像 B‧‧‧2D image

B1‧‧‧照明像 B1‧‧‧ illumination image

B21‧‧‧第1缺陷像素群 B21‧‧‧1st defective pixel group

B22‧‧‧第2缺陷像素群 B22‧‧‧2nd defective pixel group

b‧‧‧資料點 B‧‧‧data points

C‧‧‧二維圖像 C‧‧‧2D image

C1‧‧‧照明像 C1‧‧‧ illumination image

C21‧‧‧第1缺陷像素群 C21‧‧‧1st defective pixel group

C22‧‧‧第2缺陷像素群 C22‧‧‧2nd defective pixel group

C31‧‧‧核心 C31‧‧‧ core

c‧‧‧資料點 C‧‧‧data points

D‧‧‧二維圖像 D‧‧‧ two-dimensional image

D1‧‧‧照明像 D1‧‧‧ illumination image

D3‧‧‧邊緣 D3‧‧‧ edge

D21‧‧‧第1缺陷像素群 D21‧‧‧1st defective pixel group

D22‧‧‧第2缺陷像素群 D22‧‧‧2nd defective pixel group

d‧‧‧資料點 D‧‧‧data points

E1~E6‧‧‧處理圖像 E1~E6‧‧‧Processing images

F‧‧‧缺陷映射圖像 F‧‧‧Defect mapping image

f‧‧‧預測資料點 F‧‧‧ forecast data points

G1~G13‧‧‧處理圖像 G1~G13‧‧‧Processing images

H‧‧‧缺陷映射圖像 H‧‧‧Defect mapping image

J‧‧‧缺陷映射圖像 J‧‧‧ Defect map image

K1~K19‧‧‧一維圖像 K1~K19‧‧‧1D image

L‧‧‧缺陷映射圖像 L‧‧‧ Defect map image

M1~M6‧‧‧二維圖像 M1~M6‧‧‧2D image

N‧‧‧缺陷映射圖像 N‧‧‧ Defect map image

N1‧‧‧缺陷像素 N1‧‧‧ Defective pixels

P1‧‧‧邊緣分佈 P1‧‧‧ edge distribution

P2‧‧‧微分分佈 P2‧‧‧ differential distribution

P3‧‧‧亮度分佈 P3‧‧‧Brightness distribution

P4‧‧‧亮度值差分佈 P4‧‧‧Brightness value difference distribution

P5‧‧‧平滑化分佈 P5‧‧‧ Smoothing distribution

P6‧‧‧邊緣分佈 P6‧‧‧ edge distribution

P7‧‧‧邊緣分佈 P7‧‧‧ edge distribution

P11‧‧‧峰值 P11‧‧‧ peak

P21‧‧‧峰值 P21‧‧‧ peak

P22‧‧‧特徵量 P22‧‧‧Characteristics

P31‧‧‧波谷部分 P31‧‧‧ trough part

P41‧‧‧峰值 P41‧‧‧ peak

P42‧‧‧特徵量 P42‧‧‧Characteristics

P51‧‧‧峰值 P51‧‧‧ peak

P52‧‧‧特徵量 P52‧‧‧Characteristics

P61‧‧‧點 P61‧‧ points

P62‧‧‧點 P62‧‧‧ points

P63‧‧‧區域 P63‧‧‧ area

P71‧‧‧點 P71‧‧ points

P72‧‧‧點 P72‧‧ points

P73‧‧‧假想直線 P73‧‧‧ imaginary straight line

P74‧‧‧弧 P74‧‧‧Arc

P711‧‧‧切線 P711‧‧‧ tangent

P721‧‧‧切線 P721‧‧‧ tangent

R‧‧‧曲率半徑 R‧‧‧ radius of curvature

s1~s7‧‧‧步驟 S1~s7‧‧‧ steps

s6-1~s6-3‧‧‧步驟 S6-1~s6-3‧‧‧Steps

X‧‧‧方向 X‧‧‧ direction

Y‧‧‧方向 Y‧‧‧ direction

Z‧‧‧搬送方向 Z‧‧‧Transfer direction

α1‧‧‧角度 11‧‧‧ angle

α2‧‧‧角度 22‧‧‧ angle

α3‧‧‧角度 33‧‧‧ angle

圖1A係表示本發明之一實施形態之缺陷檢查方法之步驟之步驟圖。 Fig. 1A is a flow chart showing the steps of a defect inspection method according to an embodiment of the present invention.

圖1B係表示本發明之一實施形態之缺陷映射圖像產生步驟之步驟圖。 Fig. 1B is a view showing the steps of a defect map image generating step in an embodiment of the present invention.

圖2係表示本發明之一實施形態之缺陷檢查裝置100之構成之模式圖。 Fig. 2 is a schematic view showing the configuration of a defect inspection apparatus 100 according to an embodiment of the present invention.

圖3係表示缺陷檢查裝置100之構成之方塊圖。 FIG. 3 is a block diagram showing the configuration of the defect inspection apparatus 100.

圖4A係用於說明缺陷檢測演算法之一例即邊緣分佈法之圖,係表示與利用攝像裝置5產生之二維圖像資料對應之二維圖像A之一例之圖。 4A is a diagram for explaining an edge distribution method which is an example of a defect detection algorithm, and is a view showing an example of a two-dimensional image A corresponding to two-dimensional image data generated by the imaging device 5.

圖4B係表示利用處理圖像產生部61製作之邊緣分佈P1之一例之圖。 FIG. 4B is a view showing an example of the edge distribution P1 created by the processed image generating unit 61.

圖4C係表示利用處理圖像產生部61製作之微分分佈P2之一例之圖。 4C is a view showing an example of the differential distribution P2 created by the processed image generating unit 61.

圖5A係用於說明缺陷檢測演算法之另一例即峰值法之圖,且係表示與利用攝像裝置5產生之二維圖像資料對應之二維圖像B之一例之圖。 5A is a view for explaining another example of the defect detection algorithm, that is, a peak method, and is a view showing an example of a two-dimensional image B corresponding to two-dimensional image data generated by the imaging device 5.

圖5B係表示利用處理圖像產生部61製作之亮度分佈P3之一例之圖。 FIG. 5B is a view showing an example of the luminance distribution P3 created by the processed image generating unit 61.

圖5C係用於說明利用處理圖像產生部61執行之自資料點之一端向另一端移動之質點之設定順序之圖。 Fig. 5C is a diagram for explaining a procedure for setting a particle point to be moved from one end of the data point to the other end by the processed image generating unit 61.

圖5D係表示利用處理圖像產生部61製作之亮度值差分佈P4之一例之圖。 FIG. 5D is a view showing an example of the luminance value difference distribution P4 created by the processed image generating unit 61.

圖6A係用於說明缺陷檢測演算法之又一例即平滑化法之圖,且係表示與利用攝像裝置5產生之二維圖像資料對應之二維圖像C之一例之圖。 6A is a view for explaining a smoothing method which is still another example of the defect detecting algorithm, and is a view showing an example of a two-dimensional image C corresponding to the two-dimensional image data generated by the image pickup device 5.

圖6B係表示利用處理圖像產生部61產生之平滑化分佈P5之一例之圖。 FIG. 6B is a view showing an example of the smoothing distribution P5 generated by the processed image generating unit 61.

圖7A係用於說明缺陷檢測演算法之再一例即第2邊緣分佈法之圖,係表示與由攝像裝置5產生之二維圖像資料對應之二維圖像D之 一例之圖。 FIG. 7A is a view for explaining a second edge distribution method which is another example of the defect detection algorithm, and shows a two-dimensional image D corresponding to the two-dimensional image data generated by the imaging device 5. A picture of an example.

圖7B係表示利用處理圖像產生部61製作之邊緣分佈P6之一例之圖。 FIG. 7B is a view showing an example of the edge distribution P6 created by the processed image generating unit 61.

圖7C係表示利用處理圖像產生部61製作之邊緣分佈P7之一例之圖。 FIG. 7C is a view showing an example of the edge distribution P7 created by the processed image generating unit 61.

圖8A及圖8B係表示圖像處理裝置6所產生之處理圖像E1~E6之一例之圖。 8A and 8B are views showing an example of processed images E1 to E6 generated by the image processing device 6.

圖9係表示圖像解析裝置7所產生之缺陷映射圖像F之一例之圖。 FIG. 9 is a view showing an example of the defect map image F generated by the image analysis device 7.

圖10A係表示圖像處理裝置6所產生之處理圖像之另一例即處理圖像G1~G13之一例之圖。 FIG. 10A is a view showing an example of the processed images G1 to G13 which is another example of the processed image generated by the image processing device 6.

圖10B係表示圖像解析裝置7所產生之缺陷映射圖像之另一例即缺陷映射圖像H之一例之圖。 FIG. 10B is a view showing an example of the defect map image H which is another example of the defect map image generated by the image analysis device 7.

圖11A係表示圖像處理裝置6所產生之包含一維圖像之處理圖像G1~G13之一例之圖。 Fig. 11A is a view showing an example of processed images G1 to G13 including a one-dimensional image generated by the image processing device 6.

圖11B係表示逐次鋪滿處理圖像G1~G13而產生之缺陷映射圖像J之一例之圖。 Fig. 11B is a view showing an example of the defect map image J generated by successively spreading the processed images G1 to G13.

圖12A係表示第1先前技術之缺陷檢查裝置中藉由線感測器取得之一維圖像K1~K19之一例之圖。 Fig. 12A is a view showing an example of one-dimensional images K1 to K19 obtained by the line sensor in the defect inspection device of the first prior art.

圖12B係表示藉由按取得時間順序鋪滿一維圖像K1~K19所產生之缺陷映射圖像L之一例之圖。 Fig. 12B is a view showing an example of the defect map image L generated by spreading the one-dimensional images K1 to K19 in order of acquisition time.

圖13A係表示第2先前技術之缺陷檢查裝置中藉由區域感測器取得之二維圖像M1~M6之一例之圖。 Fig. 13A is a view showing an example of two-dimensional images M1 to M6 obtained by the area sensor in the defect inspection apparatus of the second prior art.

圖13B表示藉由按取得時間順序鋪滿二維圖像M1~M6所產生之缺陷映射圖像N之一例之圖。 Fig. 13B is a view showing an example of the defect map image N generated by spreading the two-dimensional images M1 to M6 in order of acquisition time.

圖1A及1B係表示本發明之一實施形態之缺陷檢查方法之步驟之 步驟圖。本實施形態之缺陷檢查方法包含圖1A所示之搬送步驟s1、光照射步驟s2、攝像步驟s3、特徵量算出步驟s4、處理圖像資料產生步驟s5、缺陷映射圖像產生步驟s6、及顯示步驟s7。又,缺陷映射圖像產生步驟s6包含圖1B所示之缺陷映射圖像座標值算出步驟s6-1、累加步驟s6-2、及亮度值設定步驟s6-3。 1A and 1B are diagrams showing the steps of a defect inspection method according to an embodiment of the present invention. Step chart. The defect inspection method according to the present embodiment includes the transport step s1, the light irradiation step s2, the imaging step s3, the feature amount calculation step s4, the processed image data generation step s5, the defect map image generation step s6, and the display shown in FIG. 1A. Step s7. Further, the defect map image generating step s6 includes the defect map image coordinate value calculating step s6-1, the accumulating step s6-2, and the luminance value setting step s6-3 shown in FIG. 1B.

圖2係表示本發明之一實施形態之缺陷檢查裝置100之構成之模式圖。圖3係表示缺陷檢查裝置100之構成之方塊圖。本實施形態之缺陷檢查裝置100係檢測熱可塑性樹脂等片狀成形體2之缺陷之裝置,具備本發明之圖像產生裝置1、及顯示部21。缺陷檢查裝置100之圖像產生裝置1具備搬送裝置3、照明裝置4、攝像裝置5、圖像處理裝置6、及圖像解析裝置7。缺陷檢查裝置100實現本發明之缺陷檢查方法。搬送裝置3執行搬送步驟s1,照明裝置4執行光照射步驟s2,攝像裝置5執行攝像步驟s3,圖像處理裝置6執行特徵量算出步驟s4、及處理圖像資料產生步驟s5,圖像解析裝置7執行缺陷映射圖像產生步驟s6,顯示部21執行顯示步驟s7。 Fig. 2 is a schematic view showing the configuration of a defect inspection apparatus 100 according to an embodiment of the present invention. FIG. 3 is a block diagram showing the configuration of the defect inspection apparatus 100. The defect inspection device 100 of the present embodiment is a device for detecting a defect of the sheet-like molded body 2 such as a thermoplastic resin, and includes the image generating device 1 and the display unit 21 of the present invention. The image generation device 1 of the defect inspection device 100 includes a transfer device 3, an illumination device 4, an imaging device 5, an image processing device 6, and an image analysis device 7. The defect inspection device 100 implements the defect inspection method of the present invention. The transport device 3 performs the transport step s1, the illumination device 4 performs the light irradiation step s2, the imaging device 5 performs the imaging step s3, the image processing device 6 executes the feature amount calculation step s4, and the processed image data generation step s5, and the image analysis device 7 The defect map image generation step s6 is executed, and the display unit 21 performs the display step s7.

缺陷檢查裝置100係如下者:藉由搬送裝置3將間距固定且於長度方向連續之片狀成形體2,向固定方向(與和片狀成形體2之寬度方向正交之上述長度方向為相同之方向),以預先決定之搬送速度進行搬送,於該搬送過程對藉由照明裝置4照明之片材面,藉由攝像裝置5以預先決定之時間間隔拍攝而產生二維圖像,且圖像處理裝置6產生與複數個二維圖像分別對應之處理圖像,圖像解析裝置7則將自圖像處理裝置6輸出之複數個處理圖像合成來產生缺陷映射圖像,由顯示部21顯示缺陷映射圖像,進行片狀成形體2之缺陷檢測。 In the defect inspection apparatus 100, the sheet-like molded body 2 having a constant pitch and continuous in the longitudinal direction is fixed in the fixed direction (the same length direction as the width direction of the sheet-like molded body 2) The direction is conveyed at a predetermined transport speed, and the sheet surface illuminated by the illumination device 4 is imaged by the imaging device 5 at a predetermined time interval to generate a two-dimensional image. The image processing device 6 generates a processed image corresponding to each of the plurality of two-dimensional images, and the image analyzing device 7 combines the plurality of processed images output from the image processing device 6 to generate a defect map image, and the display portion 21 The defect map image is displayed, and the defect detection of the sheet-like formed body 2 is performed.

被檢查體即片狀成形體2係藉由使自擠出機擠出之熱可塑性樹脂通過輥之間隙來實施使表面平滑或賦予凹凸形狀等處理,且一面於搬送輥上冷卻一面藉由牽引輥牽引而成形。可適用於本實施形態之片狀 成形體2之熱可塑性樹脂,例如係甲基丙烯酸樹脂、甲基丙烯酸甲酯-苯乙烯共聚物(MS樹脂)、聚乙烯(PE)、聚丙烯(PP)等聚烯烴、聚碳酸酯(PC)、聚氯乙烯(PVC)、聚苯乙烯(PS)、聚乙烯醇(PVA)、三醋酸纖維素樹脂(TAC)等。片狀成形體2係從該等熱可塑性樹脂之單層片、積層片等而成形。 The sheet-like molded body 2 to be inspected is subjected to a treatment such as smoothing the surface or providing a concave-convex shape by passing the thermoplastic resin extruded from the extruder through the gap between the rolls, and is pulled by cooling on the conveying roller. The roller is drawn and formed. Applicable to the sheet form of this embodiment The thermoplastic resin of the molded body 2 is, for example, a methacrylic resin, a methyl methacrylate-styrene copolymer (MS resin), a polyolefin such as polyethylene (PE) or polypropylene (PP), or a polycarbonate (PC). ), polyvinyl chloride (PVC), polystyrene (PS), polyvinyl alcohol (PVA), cellulose triacetate resin (TAC), and the like. The sheet-like formed body 2 is molded from a single layer sheet, a laminated sheet or the like of the thermoplastic resin.

又,作為於片狀成形體2產生之缺陷之例,可舉出成形時所產生之氣泡、魚眼、異物、胎印、打痕、傷痕等點狀之缺陷(點缺陷)、因折痕印等產生之所謂之裂帶(knick)、因厚度不同所產生之所謂之原片條紋等線狀之缺陷(線缺陷)。 Further, examples of the defects generated in the sheet-like molded body 2 include dot-like defects (point defects) and creases such as bubbles, fish eyes, foreign matter, footprints, scratches, and scratches generated during molding. A so-called knick produced by printing, etc., a linear defect (line defect) such as a so-called original stripe which is caused by a difference in thickness.

搬送裝置3具有作為搬送部之功能,將片狀成形體2沿固定方向(搬送方向Z),以預先決定之搬送速度搬送。搬送裝置3例如具備將片狀成形體2沿搬送方向Z搬送之送出輥與接收輥,藉由旋轉編碼器等計測搬送距離。於本實施形態中,搬送速度於搬送方向Z設定為2~30m/分鐘左右。 The conveying device 3 has a function as a conveying unit, and conveys the sheet-shaped formed body 2 in a fixed direction (transporting direction Z) at a predetermined conveying speed. The conveying device 3 includes, for example, a feeding roller and a receiving roller that convey the sheet-shaped molded body 2 in the conveying direction Z, and measures the conveying distance by a rotary encoder or the like. In the present embodiment, the conveying speed is set to about 2 to 30 m/min in the conveying direction Z.

照明裝置4具有作為光照射部之功能,將與搬送方向Z正交之片狀成形體2之寬度方向以線狀照明。照明裝置4以於利用攝像裝置5攝影之圖像中包含線狀之反射像之方式配置。具體而言,照明裝置4以片狀成形體2為基準,而於與攝像裝置5相同之側,面對片狀成形體2之表面,以至片狀成形體2之表面之照明區域、即攝像裝置5拍攝之攝像區域為止之距離成為例如200mm之方式配置。 The illuminating device 4 has a function as a light-irradiating portion, and illuminates the width direction of the sheet-like molded body 2 orthogonal to the transport direction Z in a line shape. The illumination device 4 is disposed such that the image captured by the imaging device 5 includes a linear reflection image. Specifically, the illumination device 4 faces the sheet-like molded body 2 on the same side as the image pickup device 5, and faces the surface of the sheet-like molded body 2, and the illumination region on the surface of the sheet-like molded body 2, that is, the image pickup. The distance from the imaging area captured by the apparatus 5 is set to, for example, 200 mm.

作為照明裝置4之光源,只要為LED(Light Emitting Diode:發光二極體)、金屬鹵化物燈、鹵素傳送燈、螢光燈等照射不對片狀成形體2之組成及性質造成影響之光者,並無特別限定。再者,照明裝置4亦可隔著片狀成形體2而設置於攝像裝置5之相反側。於該情形時,於利用攝像裝置5拍攝之圖像中,包含透射片狀成形體2之透射像。又,於圖2中,雖例示具備於片狀成形體2之寬度方向以直線狀延伸之光源 之照明裝置4,但並非限定於此種構成。作為照明裝置4,考慮與由後述之處理圖像產生部61所進行之缺陷檢測演算法處理之種類對應之各種構成。例如,亦可採用如具備配置於光源與片狀成形體2之間之狹縫構件之照明裝置4之構成。 As a light source of the illumination device 4, an LED (Light Emitting Diode), a metal halide lamp, a halogen transmission lamp, a fluorescent lamp, or the like is irradiated with light that does not affect the composition and properties of the sheet-like formed body 2. There is no special limit. Further, the illumination device 4 may be provided on the opposite side of the imaging device 5 via the sheet-like molded body 2. In this case, the image captured by the imaging device 5 includes the transmission image of the transmissive sheet-like formed body 2. In addition, in FIG. 2, the light source which extended in the width direction of the sheet-form molding 2 in the linear direction is illustrated. The illuminating device 4 is not limited to such a configuration. As the illumination device 4, various configurations corresponding to the types of defect detection algorithm processing performed by the processed image generation unit 61 which will be described later are considered. For example, a configuration in which the illumination device 4 having the slit member disposed between the light source and the sheet-like molded body 2 is provided may be employed.

缺陷檢查裝置100具備具有作為攝像部之功能之複數個攝像裝置5,各攝像裝置5於與搬送方向Z正交之方向(片狀成形體2之寬度方向)以等間隔排列。又,攝像裝置5以使自攝像裝置5向片狀成形體2之攝像區域之中心之方向與搬送方向Z形成銳角之方式配置。攝像裝置5以預先決定之時間間隔(攝像間隔)複數次拍攝包含片狀成形體2之由照明裝置4所取得之反射像或透射像(以下,統一稱為「照明像」)之二維圖像,而產生複數個二維圖像。於攝像裝置5中,以藉由連續之2次拍攝動作而拍攝之攝像區域之一部分重疊之方式,設定上述時間間隔。如此,連續之2次拍攝動作中所產生之2個二維圖像成為於與片狀成形體2之長度方向平行之方向一部分相互重疊之圖像。 The defect inspection apparatus 100 includes a plurality of imaging devices 5 having a function as an imaging unit, and each imaging device 5 is arranged at equal intervals in a direction orthogonal to the transport direction Z (width direction of the sheet-like molded body 2). Moreover, the imaging device 5 is disposed such that the direction from the imaging device 5 to the center of the imaging region of the sheet-like molded body 2 and the transport direction Z form an acute angle. The imaging device 5 captures a two-dimensional image of a reflection image or a transmission image (hereinafter collectively referred to as an "illumination image") obtained by the illumination device 4 including the sheet-like molded body 2 at a predetermined time interval (imaging interval). Like, to generate a plurality of two-dimensional images. In the imaging device 5, the time interval is set such that one of the imaging regions captured by the two consecutive imaging operations partially overlaps. As described above, the two two-dimensional images generated in the two consecutive shooting operations are images that partially overlap each other in the direction parallel to the longitudinal direction of the sheet-like molded body 2.

攝像裝置5包含拍攝二維圖像之CCD(Charge Coupled Device:電荷耦合器件)或CMOS(Complementary Metal-Oxide Semiconductor:互補金屬氧化物半導體)之區域感測器。攝像裝置5係如圖2所示,以拍攝與片狀成形體2之搬送方向Z正交之寬度方向之整個區域之方式配置。如此,藉由拍攝片狀成形體2之寬度方向之整個區域,且搬送於搬送方向Z連續之片狀成形體2,可有效率地檢查片狀成形體2之整個區域之缺陷。 The imaging device 5 includes a CCD (Charge Coupled Device) or a CMOS (Complementary Metal-Oxide Semiconductor) area sensor that captures a two-dimensional image. As shown in FIG. 2, the imaging device 5 is disposed so as to capture the entire region in the width direction orthogonal to the transport direction Z of the sheet-like molded body 2. By photographing the entire region in the width direction of the sheet-like molded body 2 and transporting the sheet-like molded body 2 continuous in the transport direction Z, the defects of the entire region of the sheet-like molded body 2 can be efficiently inspected.

攝像裝置5之攝像間隔可固定,亦可藉由使用者操作攝像裝置5本身而變更。又,攝像裝置5之攝像間隔雖可為數位靜態相機之連續拍攝之時間間隔即幾分之1秒等,但為了提高檢查之效率,較佳為短時間間隔、例如普通之動態圖像資料之攝像間隔即1/30秒等。 The imaging interval of the imaging device 5 can be fixed, and can be changed by the user operating the imaging device 5 itself. Further, although the imaging interval of the imaging device 5 may be a time interval of continuous shooting of the digital still camera, that is, a fraction of a second, etc., in order to improve the efficiency of the inspection, it is preferably a short time interval, for example, ordinary moving image data. The imaging interval is 1/30 second, etc.

又,攝像裝置5之攝像間隔較佳為以使一部分重疊之攝像區域之 搬送方向Z之長度成為二維圖像之搬送方向Z之長度之1/2倍以上,即以由攝像間隔決定之時間搬送片狀成形體2之距離成為二維圖像之搬送方向Z之長度之1/2倍以下之方式進行設定。換言之,攝像裝置5所拍攝之二維圖像之搬送方向Z之長度較佳為於攝像裝置5取入二維圖像後至取入下一個二維圖像之前之時間內,搬送片狀成形體2之搬送距離之2倍以上。即,較佳為將片狀成形體2之相同部分攝像2次以上。如此,使二維圖像之搬送方向Z之長度大於攝像裝置5取入二維圖像後至取入下一個二維圖像之前之時間之片狀成形體2之搬送距離,而增加片狀成形體2之相同部分之攝像次數,藉此可以高精度檢查缺陷。 Moreover, the imaging interval of the imaging device 5 is preferably such that an image capturing area partially overlaps The length of the transport direction Z is 1/2 or more times the length of the transport direction Z of the two-dimensional image, that is, the distance at which the sheet-like molded body 2 is transported at a time determined by the imaging interval becomes the length of the transport direction Z of the two-dimensional image. Set it by 1/2 or less. In other words, the length of the transport direction Z of the two-dimensional image captured by the imaging device 5 is preferably such that the imaging device 5 takes the two-dimensional image and takes the time before the next two-dimensional image is taken. The transport distance of the body 2 is more than twice. That is, it is preferable to image the same portion of the sheet-like formed body 2 twice or more. In this manner, the length of the transport direction Z of the two-dimensional image is made larger than the transport distance of the sheet-like molded body 2 after the image pickup device 5 takes in the two-dimensional image and before the next two-dimensional image is taken, and the sheet shape is increased. The number of times of imaging of the same portion of the molded body 2 can thereby detect defects with high precision.

圖像處理裝置6具備具有作為特徵量算出部及處理圖像資料產生部之功能之處理圖像產生部61。圖像處理裝置6與複數個攝像裝置5之各者對應而設置。處理圖像產生部61可藉由FPGA(Field-Programmable gate array:場可程式化閘陣列)或GPGPU(General-purpose computing on graphics processing units:通用計算圖形處理單元)等、圖像處理板或攝像裝置5之內部之硬體而實現。 The image processing device 6 includes a processed image generating unit 61 having a function as a feature amount calculating unit and a processed image data generating unit. The image processing device 6 is provided corresponding to each of the plurality of imaging devices 5. The processed image generating unit 61 can be an image processing board or an image pickup device such as an FPGA (Field-Programmable Gate Array) or a GPGPU (General-purpose Computing on Graphics Processing Unit). This is achieved by the internal hardware of the device 5.

處理圖像產生部61藉由將自攝像裝置5輸出之各二維圖像,以預先決定之演算法(以下稱為「缺陷檢測演算法」)進行處理,而算出構成上述各二維圖像之各像素之基於亮度值之特徵量。再者,處理圖像產生部61係於上述各二維圖像中,將上述特徵量為預先決定之閾值以上之像素辨識為缺陷像素,與各二維圖像對應地產生對缺陷像素賦予與上述特徵量對應之階調值,對缺陷像素以外之殘餘像素(上述特徵量未達上述閾值之像素)賦予零階調值之處理圖像,並輸出所產生之各處理圖像。 The processed image generating unit 61 processes each of the two-dimensional images output from the imaging device 5 by a predetermined algorithm (hereinafter referred to as "defect detection algorithm") to calculate the respective two-dimensional images. The feature quantity of each pixel based on the luminance value. Further, the processed image generating unit 61 identifies the pixel having the feature amount equal to or greater than a predetermined threshold as a defective pixel, and generates a defective pixel corresponding to each two-dimensional image. The gradation value corresponding to the feature amount is a processing image for which a zero-order key value is given to a residual pixel other than the defective pixel (the pixel whose feature amount does not reach the threshold value), and each of the generated processed images is output.

至於在處理圖像產生部61使用之缺陷檢測演算法,一面參照圖4A~4C、圖5A~5D、圖6A及6B、以及圖7A~7C一面進行說明。 The defect detection algorithm used by the processed image generating unit 61 will be described with reference to FIGS. 4A to 4C, FIGS. 5A to 5D, FIGS. 6A and 6B, and FIGS. 7A to 7C.

圖4A~4C係用於說明缺陷檢測演算法之一例即邊緣分佈法之 圖。圖4A顯示與利用攝像裝置5產生之二維圖像資料對應之二維圖像A之一例,圖像之上側係搬送方向Z之下游側,圖像之下側係搬送方向Z之上游側。於二維圖像A中,將與片狀成形體2之寬度方向平行之方向設為X方向,與片狀成形體2之長度方向(與搬送方向Z平行之方向)平行之方向設為Y方向。於圖4A中,二維圖像A之於Y方向位於中央且於X方向延伸之帶狀之明區域係照明像A1,存在於照明像A1之內部之暗區域係第1缺陷像素群A21,存在於照明像A1之附近之明區域係第2缺陷像素群A22。 4A to 4C are diagrams for explaining an example of a defect detection algorithm, that is, an edge distribution method. Figure. 4A shows an example of a two-dimensional image A corresponding to the two-dimensional image data generated by the imaging device 5, the image side is on the downstream side in the transport direction Z, and the lower side of the image is on the upstream side in the transport direction Z. In the two-dimensional image A, the direction parallel to the width direction of the sheet-like molded body 2 is set to the X direction, and the direction parallel to the longitudinal direction of the sheet-shaped molded body 2 (the direction parallel to the conveyance direction Z) is Y. direction. In FIG. 4A, the band-shaped bright region in the center of the two-dimensional image A in the Y direction and extending in the X direction is the illumination image A1, and the dark region existing inside the illumination image A1 is the first defective pixel group A21. The bright region existing in the vicinity of the illumination image A1 is the second defective pixel group A22.

於使用邊緣分佈法之缺陷檢測演算法之情形時,處理圖像產生部61首先將二維圖像A分割成沿Y方向之逐行之像素行之資料。其次,處理圖像產生部61對各像素行之資料,進行自Y方向一端(圖4A之二維圖像A之上端)向另一端(圖4A之二維圖像A之下端)探查邊緣之邊緣判定處理。 In the case of using the defect detection algorithm of the edge distribution method, the processed image generating portion 61 first divides the two-dimensional image A into data of progressive pixel rows in the Y direction. Next, the processed image generating unit 61 detects the edge of the data of each pixel row from one end in the Y direction (the upper end of the two-dimensional image A in FIG. 4A) to the other end (the lower end of the two-dimensional image A in FIG. 4A). Edge determination processing.

具體而言,處理圖像產生部61對各像素行之資料,將自Y方向一端側起第2個像素設為關注像素,判定關注像素之亮度值是否較相對於關注像素而於一端側鄰接之鄰接像素之亮度值大特定之閾值以上。於判定為關注像素之亮度值較鄰接像素之亮度值大特定之閾值以上之情形時,處理圖像產生部61判定鄰接像素為上限邊緣A3。於此以外之情形時,處理圖像產生部61一面使關注像素向Y方向另一端逐次偏移1像素,一面重複邊緣判定處理直至判定為關注像素之亮度值較鄰接像素之亮度值大特定之閾值以上。 Specifically, the processed image generating unit 61 sets the second pixel from the one end side in the Y direction as the target pixel, and determines whether the luminance value of the focused pixel is adjacent to the one end side with respect to the pixel of interest. The luminance value of the adjacent pixel is greater than a certain threshold. When it is determined that the luminance value of the pixel of interest is larger than the threshold value of the adjacent pixel by a certain threshold or more, the processed image generation unit 61 determines that the adjacent pixel is the upper limit edge A3. In other cases, the processed image generating unit 61 repeats the edge determination process while shifting the pixel of interest to the other end in the Y direction by one pixel, until it is determined that the luminance value of the pixel of interest is larger than the luminance value of the adjacent pixel. Above the threshold.

於檢測出上限邊緣A3之後,處理圖像產生部61一面使關注像素向Y方向另一端逐次偏移1像素,一面判定關注像素之亮度值是否較鄰接像素之亮度值小特定之閾值以上。於判定為關注像素之亮度值較鄰接像素之亮度值小特定之閾值以上之情形時,處理圖像產生部61判定鄰接像素為下限邊緣A4。於此以外之情形時,處理圖像產生部61 一面使關注像素向Y方向另一端逐次偏移1像素,一面重複邊緣判定處理直至判定為關注像素之亮度值較鄰接像素之亮度值小特定之閾值以上。 After the upper limit edge A3 is detected, the processed image generating unit 61 determines whether or not the luminance value of the pixel of interest is smaller than the luminance value of the adjacent pixel by a specific threshold or more by shifting the pixel of interest to the other end in the Y direction by one pixel. When it is determined that the luminance value of the pixel of interest is smaller than the threshold value of the adjacent pixel by a specific threshold or more, the processed image generation unit 61 determines that the adjacent pixel is the lower limit edge A4. In the case other than this, the image generating portion 61 is processed. While shifting the pixel of interest to the other end in the Y direction by one pixel, the edge determination process is repeated until it is determined that the luminance value of the pixel of interest is smaller than the threshold value of the adjacent pixel by a specific threshold or more.

於圖4A中,以「○」表示藉由處理圖像產生部61之邊緣判定處理而檢測出之上限邊緣A3之例,以「●」表示下限邊緣A4之例。如可自圖4A明白般,於二維圖像A中存在缺陷之第1缺陷像素群A21及第2缺陷像素群A22中,上限邊緣A3與下限邊緣A4之於Y方向之座標值(Y座標值)之差相較於缺陷像素以外之殘餘像素之Y座標值之差極其小。又,於二維圖像A之第2缺陷像素群A22中,上限邊緣A3之Y座標值與缺陷像素以外之殘餘像素之Y座標值明顯不同。 In FIG. 4A, an example in which the upper limit edge A3 detected by the edge determination processing of the image generating unit 61 is detected is indicated by "○", and a lower limit edge A4 is indicated by "●". As can be seen from FIG. 4A, in the first defective pixel group A21 and the second defective pixel group A22 in which the defect exists in the two-dimensional image A, the coordinate value of the upper limit edge A3 and the lower limit edge A4 in the Y direction (Y coordinate) The difference between the values is extremely small compared to the difference between the Y coordinate values of the residual pixels other than the defective pixel. Further, in the second defective pixel group A22 of the two-dimensional image A, the Y coordinate value of the upper limit edge A3 is significantly different from the Y coordinate value of the residual pixels other than the defective pixel.

利用此種特徵,處理圖像產生部61製作圖4B所示之邊緣分佈P1。於圖4B所示之邊緣分佈P1中,與二維圖像A之第2缺陷像素群A22對應,而出現與上限邊緣A3之Y座標值對應之峰值P11。再者,處理圖像產生部61亦可以基於上限邊緣A3與下限邊緣A4之Y座標值之差,製作邊緣分佈之方式構成。於該情形時,於藉由處理圖像產生部61製作之邊緣分佈中,與二維圖像A之第1缺陷像素群A21及第2缺陷像素群A22對應,而出現上限邊緣A3與下限邊緣A4之Y座標值之差較小之峰值。 With such a feature, the processed image generating unit 61 creates the edge distribution P1 shown in Fig. 4B. In the edge distribution P1 shown in FIG. 4B, corresponding to the second defective pixel group A22 of the two-dimensional image A, a peak P11 corresponding to the Y coordinate value of the upper limit edge A3 appears. Furthermore, the processed image generating unit 61 may be configured to create an edge distribution based on the difference between the Y coordinate values of the upper limit edge A3 and the lower limit edge A4. In this case, the edge distribution created by the processed image generating unit 61 corresponds to the first defective pixel group A21 and the second defective pixel group A22 of the two-dimensional image A, and the upper limit edge A3 and the lower limit edge appear. The difference between the Y coordinate values of A4 is small.

進而,處理圖像產生部61對邊緣分佈P1進行微分處理,而製作圖4C所示之微分分佈P2。於圖4C所示之微分分佈P2中,與邊緣分佈P1之峰值P11對應,即與二維圖像A之第2缺陷像素群A22對應,而出現具有預先決定之閾值以上之(微分值較大之)特徵量P22之峰值P21。 Further, the processed image generating unit 61 performs differential processing on the edge distribution P1 to create a differential distribution P2 shown in FIG. 4C. In the differential distribution P2 shown in FIG. 4C, it corresponds to the peak P11 of the edge distribution P1, that is, corresponds to the second defective pixel group A22 of the two-dimensional image A, and appears to have a predetermined threshold or more (large differential value) The peak value P21 of the feature amount P22.

處理圖像產生部61基於微分分佈P2,而抽取與具有預先決定之閾值以上之特徵量P22之峰值P21對應之二維圖像A之像素作為缺陷像素。於圖4C所示之微分分佈P2之例中,處理圖像產生部61抽取第2缺陷像素群A22作為缺陷像素。 The processed image generating unit 61 extracts, as a defective pixel, a pixel of the two-dimensional image A corresponding to the peak value P21 of the feature amount P22 having a predetermined threshold or more based on the differential distribution P2. In the example of the differential distribution P2 shown in FIG. 4C, the processed image generating unit 61 extracts the second defective pixel group A22 as a defective pixel.

圖5A~圖5D係用於說明缺陷檢測演算法之另一例即峰值法之圖。圖5A表示與利用攝像裝置5產生之二維圖像資料對應之二維圖像B之一例,圖像之上側係搬送方向Z之下游側,圖像之下側係搬送方向Z之上游側。於二維圖像B中,將與片狀成形體2之寬度方向平行之方向設為X方向,將與片狀成形體2之長度方向(與搬送方向Z平行之方向)平行之方向設為Y方向。於圖5A中,二維圖像B之於Y方向位於中央且於X方向延伸之帶狀之明區域係照明像B1,存在於照明像B1之內部之暗區域係第1缺陷像素群B21,存在於照明像B1之附近之明區域係第2缺陷像素群B22。 5A to 5D are diagrams for explaining another example of the defect detection algorithm, that is, the peak method. 5A shows an example of a two-dimensional image B corresponding to the two-dimensional image data generated by the imaging device 5, the image side is on the downstream side in the transport direction Z, and the lower side of the image is on the upstream side in the transport direction Z. In the two-dimensional image B, the direction parallel to the width direction of the sheet-like molded body 2 is set to the X direction, and the direction parallel to the longitudinal direction of the sheet-shaped molded body 2 (the direction parallel to the conveyance direction Z) is set to Y direction. In FIG. 5A, the band-shaped bright region of the two-dimensional image B located at the center in the Y direction and extending in the X direction is the illumination image B1, and the dark region existing inside the illumination image B1 is the first defective pixel group B21. The bright region existing in the vicinity of the illumination image B1 is the second defective pixel group B22.

於使用峰值法之缺陷檢測演算法之情形時,處理圖像產生部61首先將二維圖像B分割成沿Y方向之逐行之像素行之資料。其次,處理圖像產生部61針對各像素行之資料,將二維圖像B之沿與Y方向平行之一直線L上之位置之亮度值之資料連續描繪為點,將連結其等之曲線製作為圖5B所示之亮度分佈P3。 In the case of using the defect detection algorithm of the peak method, the processed image generating portion 61 first divides the two-dimensional image B into data of progressive pixel rows in the Y direction. Next, the processed image generating unit 61 successively draws the data of the luminance values of the position on the straight line L parallel to the Y direction of the two-dimensional image B as a point for the data of each pixel row, and creates a curve connecting the pixels. It is the luminance distribution P3 shown in Fig. 5B.

於二維圖像B中不存在缺陷像素之情形時,亮度分佈P3顯示未出現波谷部分之單峰之分佈,但於存在缺陷像素之情形時,如圖5B所示,顯示出現波谷部分P31之雙峰之分佈。 In the case where there is no defective pixel in the two-dimensional image B, the luminance distribution P3 shows the distribution of the single peak where the trough portion does not occur, but in the case where the defective pixel exists, as shown in FIG. 5B, the double of the trough portion P31 is displayed. The distribution of peaks.

其次,處理圖像產生部61針對各像素行之亮度分佈P3,以鄰接之資料點間之移動時間無關於資料點間之距離而成為固定之方式,假定自亮度分佈P3之X方向之一端向另一端移動之質點。此處,上述質點係如圖5C所示,自資料點c向鄰接於其之資料點b移動,自資料點b向鄰接於其之資料點a移動,且自資料點a向鄰接於其之資料點d移動。又,資料點d係與關注像素對應之資料點。 Next, the processed image generating unit 61 fixes the luminance distribution P3 of each pixel row so that the moving time between adjacent data points is fixed irrespective of the distance between the data points, and assumes that one direction from the X direction of the luminance distribution P3 The particle that moves at the other end. Here, as shown in FIG. 5C, the above-mentioned particle point moves from the data point c to the data point b adjacent thereto, moves from the data point b to the data point a adjacent thereto, and is adjacent to the data point a from the data point a. The data point d moves. Further, the data point d is a data point corresponding to the pixel of interest.

處理圖像產生部61求出於即將到資料點d之前質點通過之資料點a、b、c之質點之速度矢量及加速度矢量。即,處理圖像產生部61基於即將到資料點d之前質點通過之2個資料點a及資料點b之座標、與上 述移動時間,求出自資料點b至資料點a之區間之質點之速度矢量。又,處理圖像產生部61基於即將到資料點a之前質點通過之2個資料點b及資料點c之座標、與上述移動時間,而求出自資料點c至資料點b之區間之質點之速度矢量。進而,處理圖像產生部61基於自資料點b至資料點a之區間之質點之速度矢量、與自資料點c至資料點b之區間之質點之速度矢量,而求出自資料點c至資料點a之區間之質點之加速度矢量。而且,處理圖像產生部61根據自資料點b至資料點a之區間之質點之速度矢量、與自資料點c至資料點a之區間之質點之加速度矢量,而預測資料點d之座標(預測資料點f)。 The processed image generating unit 61 obtains a velocity vector and an acceleration vector of the mass points of the data points a, b, and c passing through the mass point immediately before the data point d. In other words, the processed image generating unit 61 is based on the coordinates of the two data points a and the data points b that pass the mass point immediately before the data point d. The moving time is obtained, and the velocity vector of the mass point from the data point b to the data point a is obtained. Further, the processed image generating unit 61 obtains the dot from the data point c to the data point b based on the coordinates of the two data points b and the data points c that pass the mass point before the data point a and the moving time. Speed vector. Further, the processed image generating unit 61 obtains the data point c from the velocity vector of the mass point from the data point b to the data point a and the velocity vector of the mass point from the data point c to the data point b. The acceleration vector of the particle at the interval of the data point a. Further, the processed image generating unit 61 predicts the coordinates of the data point d based on the velocity vector of the mass point from the data point b to the data point a and the acceleration vector of the mass point from the data point c to the data point a ( Forecast data point f).

處理圖像產生部61求出如上所述般預測之資料點d之預測資料點f之亮度值、與資料點d之實際(實測)之亮度值之差,製作圖5D所示之亮度值差分佈P4。於圖5D所示之亮度值差分佈P4中,與圖5B所示之亮度分佈P3之波谷部分P31對應,即與二維圖像B之第1缺陷像素群B21對應,而出現具有預先決定之閾值以上之(亮度值差較大之)特徵量P42之峰值P41。 The processed image generating unit 61 obtains the difference between the luminance value of the predicted data point f of the data point d predicted as described above and the actual (actually measured) luminance value of the data point d, and produces the luminance value difference shown in FIG. 5D. Distribution P4. The luminance value difference distribution P4 shown in FIG. 5D corresponds to the valley portion P31 of the luminance distribution P3 shown in FIG. 5B, that is, corresponds to the first defective pixel group B21 of the two-dimensional image B, and appears to have a predetermined The peak value P41 of the feature quantity P42 above the threshold (the difference in luminance value is large).

處理圖像產生部61基於亮度值差分佈P4,而抽取與具有預先決定之閾值以上之特徵量P42之峰值P41對應之二維圖像B之像素作為缺陷像素。於圖5D所示之亮度值差分佈P4之例中,處理圖像產生部61抽取第1缺陷像素群B21作為缺陷像素。 The processed image generating unit 61 extracts a pixel of the two-dimensional image B corresponding to the peak value P41 of the feature amount P42 having a predetermined threshold value or more as a defective pixel based on the luminance value difference distribution P4. In the example of the luminance value difference distribution P4 shown in FIG. 5D, the processed image generating unit 61 extracts the first defective pixel group B21 as a defective pixel.

圖6A及6B係用於說明缺陷檢測演算法之又一例即平滑化法之圖。圖6A表示與利用攝像裝置5產生之二維圖像資料對應之二維圖像C之一例,圖像之上側係搬送方向Z之下游側,圖像之下側係搬送方向Z之上游側。於二維圖像C中,將與片狀成形體2之寬度方向平行之方向設為X方向,將與片狀成形體2之長度方向(與搬送方向Z平行之方向)平行之方向設為Y方向。於圖6A中,二維圖像C之於Y方向位於中央且於X方向延伸之帶狀之明區域係照明像C1,存在於照明像C1之 內部之暗區域係第1缺陷像素群C21,存在於照明像C1之附近之明區域係第2缺陷像素群C22。 6A and 6B are diagrams for explaining another example of the defect detection algorithm, that is, the smoothing method. 6A shows an example of a two-dimensional image C corresponding to the two-dimensional image data generated by the imaging device 5, the image side is on the downstream side in the transport direction Z, and the lower side of the image is on the upstream side in the transport direction Z. In the two-dimensional image C, the direction parallel to the width direction of the sheet-like molded body 2 is set to the X direction, and the direction parallel to the longitudinal direction of the sheet-shaped molded body 2 (the direction parallel to the conveyance direction Z) is set to Y direction. In FIG. 6A, the band-shaped bright region in which the two-dimensional image C is located in the center in the Y direction and extends in the X direction is the illumination image C1 and exists in the illumination image C1. The dark region in the interior is the first defective pixel group C21, and the bright region existing in the vicinity of the illumination image C1 is the second defective pixel group C22.

於使用平滑化法之缺陷檢測演算法之情形時,處理圖像產生部61首先將二維圖像C分割成沿Y方向之逐行之像素行之資料。其次,處理圖像產生部61製作於X方向及Y方向為幾個像素(例如,於X方向為5像素,於Y方向為1像素)之核心C31。 In the case of using the defect detection algorithm of the smoothing method, the processed image generating portion 61 first divides the two-dimensional image C into data of progressive pixel rows in the Y direction. Next, the processed image generating unit 61 creates a core C31 having a few pixels in the X direction and the Y direction (for example, 5 pixels in the X direction and 1 pixel in the Y direction).

而且,處理圖像產生部61針對各像素行之資料,將二維圖像C之沿與Y方向平行之一直線L上之位置之核心C31內之中央像素之亮度值、與核心C31內之所有像素之亮度值之平均值之差之資料連續描繪為點,將連結其等之曲線製作為圖6B所示之平滑化分佈P5。於圖6B所示之平滑化分佈P5中,與二維圖像C之第1缺陷像素群C21對應,而出現具有預先決定之閾值以上之(亮度值差較大之)特徵量P52之峰值P51。 Further, the processed image generating unit 61 sets the luminance value of the central pixel in the core C31 at the position on the straight line L parallel to the Y direction of the two-dimensional image C with respect to the data of each pixel row, and all of the core C31. The data of the difference between the average values of the luminance values of the pixels is continuously drawn as dots, and the curve connecting them is created as the smoothing distribution P5 shown in FIG. 6B. In the smoothing distribution P5 shown in FIG. 6B, corresponding to the first defective pixel group C21 of the two-dimensional image C, a peak P51 having a feature amount P52 (which is larger than the luminance value difference) having a predetermined threshold value or more appears. .

處理圖像產生部61基於平滑化分佈P5,而抽取與具有預先決定之閾值以上之特徵量P52之峰值P51對應之二維圖像C之像素作為缺陷像素。於圖6B所示之平滑化分佈P5之例中,處理圖像產生部61抽取第1缺陷像素群C21作為缺陷像素。 The processed image generating unit 61 extracts, as the defective pixel, a pixel of the two-dimensional image C corresponding to the peak value P51 of the feature amount P52 having a predetermined threshold value or more based on the smoothing distribution P5. In the example of the smoothing distribution P5 shown in FIG. 6B, the processed image generating unit 61 extracts the first defective pixel group C21 as a defective pixel.

圖7A~圖7C係用於說明缺陷檢測演算法之再一例即第2邊緣分佈法之圖。圖7A表示與利用攝像裝置5產生之二維圖像資料對應之二維圖像D之一例,圖像之上側係搬送方向Z之下游側,圖像之下側係搬送方向Z之上游側。於二維圖像D中,將與片狀成形體2之寬度方向平行之方向設為X方向,將與片狀成形體2之長度方向(與搬送方向Z平行之方向)平行之方向設為Y方向。於圖7A中,二維圖像D之於Y方向位於中央且於X方向延伸之帶狀之明區域係照明像D1,存在於照明像D1之內部之暗區域係第1缺陷像素群D21,存在於照明像D1之附近之明區域係第2缺陷像素群D22。 7A to 7C are diagrams for explaining a second edge distribution method which is another example of the defect detection algorithm. FIG. 7A shows an example of a two-dimensional image D corresponding to the two-dimensional image data generated by the imaging device 5, the image side is on the downstream side in the transport direction Z, and the lower side of the image is on the upstream side in the transport direction Z. In the two-dimensional image D, the direction parallel to the width direction of the sheet-like molded body 2 is set to the X direction, and the direction parallel to the longitudinal direction of the sheet-shaped molded body 2 (the direction parallel to the conveyance direction Z) is set to Y direction. In FIG. 7A, the band-shaped bright region in which the two-dimensional image D is located at the center in the Y direction and extends in the X direction is the illumination image D1, and the dark region existing inside the illumination image D1 is the first defective pixel group D21. The bright region existing in the vicinity of the illumination image D1 is the second defective pixel group D22.

於使用第2邊緣分佈法之缺陷檢測演算法之情形時,處理圖像產生部61首先將二維圖像D分割成沿Y方向之逐行之像素行之資料。其次,處理圖像產生部61對各像素行之資料,進行自Y方向一端(圖7A之二維圖像D之上端)向另一端(圖7A之二維圖像D之下端)探查邊緣之邊緣判定處理。 In the case of using the defect detection algorithm of the second edge distribution method, the processed image generating portion 61 first divides the two-dimensional image D into data of progressive pixel rows in the Y direction. Next, the processed image generating unit 61 detects the edge of the data of each pixel row from one end in the Y direction (the upper end of the two-dimensional image D in Fig. 7A) to the other end (the lower end of the two-dimensional image D in Fig. 7A). Edge determination processing.

具體而言,處理圖像產生部61對各像素行之資料,將自Y方向一端側起第2個像素設為關注像素,判定關注像素之亮度值是否較相對於關注像素而一端側鄰接之鄰接像素之亮度值大特定之閾值以上。於判定為關注像素之亮度值較鄰接像素之亮度值大特定之閾值以上之情形時,處理圖像產生部61判定鄰接像素為邊緣D3。於此以外之情形時,處理圖像產生部61一面使關注像素向Y方向另一端逐次偏移1像素,一面重複邊緣判定處理直至判定為關注像素之亮度值較鄰接像素之亮度值大特定之閾值以上。 Specifically, the processed image generating unit 61 sets the second pixel from the one end side in the Y direction as the target pixel, and determines whether the luminance value of the target pixel is adjacent to the one end side of the target pixel. The luminance value of the adjacent pixel is greater than a certain threshold. When it is determined that the luminance value of the pixel of interest is greater than or equal to the threshold value of the adjacent pixel, the processed image generation unit 61 determines that the adjacent pixel is the edge D3. In other cases, the processed image generating unit 61 repeats the edge determination process while shifting the pixel of interest to the other end in the Y direction by one pixel, until it is determined that the luminance value of the pixel of interest is larger than the luminance value of the adjacent pixel. Above the threshold.

於圖7A中,以「○」表示藉由處理圖像產生部61之邊緣判定處理而檢測出之邊緣D3之例。如可自圖7A明白般,於二維圖像D之明區域與暗區域之邊界部分存在缺陷之第2缺陷像素群D22中,邊緣D3之於Y方向之座標值(Y座標值)極端變化。 In FIG. 7A, an example in which the edge D3 detected by the edge determination processing of the image generating unit 61 is detected is indicated by "○". As can be seen from FIG. 7A, in the second defective pixel group D22 in which the boundary portion between the bright region and the dark region of the two-dimensional image D is defective, the coordinate value (Y coordinate value) of the edge D3 in the Y direction is extremely changed. .

作為利用此種特徵之抽取二維圖像D之缺陷像素之方法而有2種。於圖7B所示之第1方法中,處理圖像產生部61製作與二維圖像D之邊緣D3對應之邊緣分佈P6。再者,於圖7B中,將與二維圖像D之第2缺陷像素群D22之附近之邊緣D3對應之邊緣分佈P6放大而表示。於圖7B所示之邊緣分佈P6中,與二維圖像D之第2缺陷像素群D22對應而Y座標值極端變化。 There are two methods for extracting defective pixels of the two-dimensional image D by such a feature. In the first method shown in FIG. 7B, the processed image generating unit 61 creates an edge distribution P6 corresponding to the edge D3 of the two-dimensional image D. In addition, in FIG. 7B, the edge distribution P6 corresponding to the edge D3 in the vicinity of the second defective pixel group D22 of the two-dimensional image D is enlarged and shown. In the edge distribution P6 shown in FIG. 7B, the Y coordinate value is extremely changed in correspondence with the second defective pixel group D22 of the two-dimensional image D.

處理圖像產生部61選擇製作之邊緣分佈P6上之任意2點即點P61及點P62,而算出由連結點P61與點P62之直線、與邊緣分佈P6之曲線圍成之區域P63之面積作為特徵量。處理圖像產生部61基於邊緣分佈 P6,而抽取與具有預先決定之閾值以上之特徵量(區域P63之面積)之分佈部分對應之二維圖像D之像素作為缺陷像素。 The processed image generating unit 61 selects the point P61 and the point P62 which are arbitrary two points on the edge distribution P6 to be created, and calculates the area of the region P63 surrounded by the straight line connecting the point P61 and the point P62 and the curve of the edge distribution P6. Feature amount. The processed image generating section 61 is based on the edge distribution P6, and a pixel of the two-dimensional image D corresponding to the distribution portion having the feature amount (area of the region P63) having a predetermined threshold or more is extracted as the defective pixel.

於圖7C所示之第2方法中,處理圖像產生部61製作與二維圖像D之邊緣D3對應之邊緣分佈P7。再者,於圖7C中,將與二維圖像D之第2缺陷像素群D22之附近之邊緣D3對應之邊緣分佈P7放大而表示。於圖7C所示之邊緣分佈P7中,與二維圖像D之第2缺陷像素群D22對應而Y座標值極端變化。 In the second method shown in FIG. 7C, the processed image generating unit 61 creates an edge distribution P7 corresponding to the edge D3 of the two-dimensional image D. In addition, in FIG. 7C, the edge distribution P7 corresponding to the edge D3 in the vicinity of the second defective pixel group D22 of the two-dimensional image D is enlarged and shown. In the edge distribution P7 shown in FIG. 7C, the Y coordinate value of the two-dimensional image D corresponds to the second defective pixel group D22, and the Y coordinate value extremely changes.

處理圖像產生部61選擇所製作之邊緣分佈P7上之任意2點即點P71及點P72,而製作點P71之邊緣分佈P7之切線P711、與點P72之邊緣分佈P7之切線P721。其次,處理圖像產生部61算出與X軸平行之假想直線P73與切線P711所成之角度α1、及假想直線P73與切線P721所成之角度α2,而求出該算出之角度α1與角度α2之差即角度α3。然後,處理圖像產生部61使用邊緣分佈P7之點P71與點P72之間之弧P74之長度、與角度α3,而算出相對於邊緣分佈P7中之點P71與點P72之間之弧P74之曲率半徑R作為特徵量。處理圖像產生部61基於邊緣分佈P7,抽取與具有預先決定之閾值範圍內之特徵量(曲率半徑R)之分佈部分對應之二維圖像D之像素作為缺陷像素。 The processed image generating unit 61 selects two points P71 and P72 which are arbitrary points on the created edge distribution P7, and creates a tangent P711 of the edge distribution P7 of the point P71 and a tangent P721 of the edge distribution P7 of the point P72. Next, the processed image generating unit 61 calculates an angle α1 between the virtual straight line P73 parallel to the X-axis and the tangent line P711, and an angle α2 between the virtual straight line P73 and the tangent line P721, and obtains the calculated angle α1 and angle α2. The difference is the angle α3. Then, the processed image generating unit 61 calculates the arc P74 between the point P71 and the point P72 in the edge distribution P7 using the length of the arc P74 between the point P71 and the point P72 of the edge distribution P7 and the angle α3. The radius of curvature R is taken as a feature quantity. The processed image generating unit 61 extracts, as the defective pixel, a pixel of the two-dimensional image D corresponding to the distributed portion having the feature amount (curvature radius R) within the predetermined threshold range based on the edge distribution P7.

作為於片狀成形體2產生之缺陷,如上所述可舉出氣泡、魚眼、異物、胎印、打痕、傷痕等點缺陷、因折痕印等而產生之所謂之裂帶(knick)、因厚度不同所產生之所謂之原片條紋等線缺陷。 As the defects generated in the sheet-like formed body 2, as described above, point defects such as bubbles, fish eyes, foreign matter, footprints, scratches, and scratches, and so-called cracks caused by crease marks and the like can be cited. A line defect such as a so-called original stripe which is produced by a difference in thickness.

根據藉由處理圖像產生部61產生處理圖像中所使用之缺陷檢測演算法之種類之不同,可抽取之缺陷之種類不同。缺陷檢測演算法之一例即上述邊緣分佈法,對於異物或胎印、傷痕等缺陷可以較高之抽取能力抽取。上述峰值法對於異物、打痕、傷痕等缺陷可以較高之抽取能力抽取。上述平滑化法對於氣泡、魚眼、打痕等缺陷可以較高之抽取能力抽取。上述第2邊緣分佈法對於原片條紋或裂帶等缺陷可以 較高之抽取能力抽取。 The types of defects that can be extracted differ depending on the type of defect detection algorithm used in the processed image by the processed image generating unit 61. One example of the defect detection algorithm is the edge distribution method described above, which can extract a high degree of extraction capability for defects such as foreign matter or fetal marks and scars. The above peak method can extract a high degree of extraction capability for defects such as foreign matter, scratches, and scratches. The above smoothing method can extract a high extraction capacity for defects such as bubbles, fish eyes, and scratches. The above second edge distribution method can be used for defects such as strips or splits of the original sheet. Higher extraction capacity extraction.

利用此種由缺陷檢測演算法之種類不同所致之缺陷抽取能力之不同,處理圖像產生部61藉由使用複數個缺陷檢測演算法之處理而算出特徵量。而且,藉由使用該算出之特徵量抽取二維圖像之缺陷像素,而可區分攝像裝置5所產生之二維圖像之缺陷區域之缺陷種類。 The processed image generating unit 61 calculates the feature amount by using the processing of a plurality of defect detecting algorithms by the difference in the defect extracting ability caused by the type of the defect detecting algorithm. Further, by extracting defective pixels of the two-dimensional image using the calculated feature amount, it is possible to distinguish the defect type of the defective region of the two-dimensional image generated by the imaging device 5.

圖8A及圖8B係表示圖像處理裝置6所產生之處理圖像E1~E6之一例之圖。於本實施形態中,圖像處理裝置6之處理圖像產生部61係將自攝像裝置5輸出之各二維圖像,以上述之缺陷檢測演算法處理並抽取缺陷像素之後,與各二維圖像對應地產生如圖8A及8B所示之處理圖像E1~E6。再者,於圖8A及8B所示之處理圖像E1~E6中,黑色部分表示無缺陷之部分即殘餘像素,白色部分表示有缺陷之部分即缺陷像素。 8A and 8B are views showing an example of processed images E1 to E6 generated by the image processing device 6. In the present embodiment, the processed image generating unit 61 of the image processing device 6 processes each of the two-dimensional images output from the imaging device 5 by the above-described defect detecting algorithm and extracts defective pixels, and then two-dimensional images. The images correspondingly produce processed images E1 to E6 as shown in FIGS. 8A and 8B. Further, in the processed images E1 to E6 shown in Figs. 8A and 8B, the black portion indicates a defective portion, that is, a residual pixel, and the white portion indicates a defective portion, that is, a defective pixel.

又,於圖8A及8B所示之處理圖像E1~E6中,將與片狀成形體2之寬度方向平行之方向設為X方向,將與片狀成形體2之長度方向(與搬送方向Z平行之方向)平行之方向設為Y方向。圖8A及8B所示之處理圖像E1~E6係藉由自X方向一端(圖8A及8B之各處理圖像之左端)向另一端(圖8A及8B之各處理圖像之右端)以0、1、2、…、m-2、m-1之順序定位排列於X方向之m個像素、及自Y方向一端(圖8A及8B之各處理圖像之上端)向另一端(圖8A及8B之各處理圖像之下端)以0、1、2、…、n-2、n-1之順序定位排列於Y方向之n個像素所構成之圖像。 Further, in the processed images E1 to E6 shown in FIGS. 8A and 8B, the direction parallel to the width direction of the sheet-like molded body 2 is referred to as the X direction, and the longitudinal direction of the sheet-shaped molded body 2 (and the transport direction) The direction parallel to the Z direction is set to the Y direction. The processed images E1 to E6 shown in Figs. 8A and 8B are made from one end in the X direction (the left end of each processed image in Figs. 8A and 8B) to the other end (the right end of each processed image in Figs. 8A and 8B). 0, 1, 2, ..., m-2, m-1 are sequentially arranged in m pixels in the X direction, and one end in the Y direction (the upper end of each processed image in FIGS. 8A and 8B) to the other end (Fig. The lower end of each of the processed images of 8A and 8B is an image in which n pixels arranged in the Y direction are positioned in the order of 0, 1, 2, ..., n-2, and n-1.

於圖8A及8B所示之例中,處理圖像產生部61係與以預先決定之時間間隔藉由攝像裝置5拍攝而產生之各二維圖像對應,按照攝像順序以處理圖像E1、處理圖像E2、處理圖像E3、處理圖像E4、處理圖像E5、及處理圖像E6之順序依序產生處理圖像。藉由處理圖像產生部61而產生之處理圖像E1~E6之大小及形狀係與各二維圖像之大小及形狀相同,構成處理圖像E1~E6之各像素之表示處理圖像E1~E6 之位置之處理圖像位置座標,係與構成對應之二維圖像之各像素之表示二維圖像之位置之座標值一致。又,藉由處理圖像產生部61而產生之處理圖像E1~E6,係於產生順序連續之2個處理圖像間,具體而言,係於處理圖像E1與處理圖像E2之間、處理圖像E2與處理圖像E3之間、處理圖像E3與處理圖像E4之間、處理圖像E4與處理圖像E5之間、及處理圖像E5與處理圖像E6之間,具有至少一部分重疊之重疊部分。 In the example shown in FIGS. 8A and 8B, the processed image generating unit 61 corresponds to each two-dimensional image generated by the imaging device 5 at a predetermined time interval, and processes the image E1 in accordance with the imaging sequence. The processed image is sequentially generated in the order of the processed image E2, the processed image E3, the processed image E4, the processed image E5, and the processed image E6. The size and shape of the processed images E1 to E6 generated by the processed image generating unit 61 are the same as the size and shape of each of the two-dimensional images, and the processed image E1 constituting each of the processed images E1 to E6 is formed. ~E6 The processed image position coordinates at the position correspond to the coordinate values of the positions of the two-dimensional images of the respective pixels constituting the corresponding two-dimensional image. Further, the processed images E1 to E6 generated by the processed image generating unit 61 are generated between two processed images in which the order is continuous, specifically, between the processed image E1 and the processed image E2. Between the processed image E2 and the processed image E3, between the processed image E3 and the processed image E4, between the processed image E4 and the processed image E5, and between the processed image E5 and the processed image E6, An overlapping portion having at least a portion of the overlap.

藉由處理圖像產生部61而產生之處理圖像E1~E6,係被輸入至圖像解析裝置7。 The processed images E1 to E6 generated by the processed image generating unit 61 are input to the image analyzing device 7.

本實施形態之缺陷檢查裝置100所具備之圖像解析裝置7合成藉由處理圖像產生部61而產生之複數個處理圖像E1~E6,藉此產生表示片狀成形體2之缺陷之分佈之如圖9所示之缺陷映射圖像F。圖9係表示圖像解析裝置7所產生之缺陷映射圖像F之一例之圖。再者,於圖9所示之缺陷映射圖像F中,黑色部分表示無缺陷之部分即殘餘像素,白色部分表示有缺陷之部分即缺陷像素。 The image analysis device 7 included in the defect inspection device 100 of the present embodiment synthesizes a plurality of processed images E1 to E6 generated by the processed image generating unit 61, thereby generating a distribution indicating defects of the sheet-like formed body 2. The defect map image F shown in FIG. FIG. 9 is a view showing an example of the defect map image F generated by the image analysis device 7. Further, in the defect map image F shown in FIG. 9, the black portion indicates a defective portion, that is, a residual pixel, and the white portion indicates a defective portion, that is, a defective pixel.

又,於圖9所示之缺陷映射圖像F中,將與片狀成形體2之寬度方向平行之方向設為X方向,與片狀成形體2之長度方向(與搬送方向Z平行之方向)平行之方向設為Y方向。圖9所示之缺陷映射圖像F係藉由自X方向一端(圖9之缺陷映射圖像F之左端)向另一端(圖9之缺陷映射圖像F之右端)以0、1、2、…、t-2、t-1之順序定位排列於X方向之t個像素、及自Y方向一端(圖9之缺陷映射圖像F之上端)向另一端(圖9之缺陷映射圖像F之下端)以0、1、2、…、u-2、u-1之順序定位排列於Y方向之u個像素所構成之圖像。 Further, in the defect map image F shown in FIG. 9, the direction parallel to the width direction of the sheet-like molded body 2 is defined as the X direction, and the longitudinal direction of the sheet-like molded body 2 (the direction parallel to the transport direction Z) The parallel direction is set to the Y direction. The defect map image F shown in FIG. 9 is 0, 1, 2 from one end in the X direction (the left end of the defect map image F in FIG. 9) to the other end (the right end of the defect map image F in FIG. 9). , ..., t-2, t-1 are sequentially arranged in t pixels arranged in the X direction, and from one end in the Y direction (the upper end of the defect map image F in Fig. 9) to the other end (the defect map image of Fig. 9) The lower end of F is an image formed by u pixels arranged in the Y direction in the order of 0, 1, 2, ..., u-2, and u-1.

圖像解析裝置7具備處理圖像輸入部71、缺陷映射圖像產生部72、及控制部73。 The image analysis device 7 includes a processed image input unit 71, a defect map image generation unit 72, and a control unit 73.

處理圖像輸入部71輸入自圖像處理裝置6之處理圖像產生部61輸 出之處理圖像E1~E6。 The processed image input unit 71 is input from the processed image generating unit 61 of the image processing device 6. Process the images E1~E6.

缺陷映射圖像產生部72係產生缺陷映射圖像F之部分,具備缺陷映射圖像座標值算出部即座標值算出部721、累加部722、亮度值設定部723。 The defect map image generation unit 72 generates a portion of the defect map image F, and includes a coordinate value calculation unit 721, a total value calculation unit 721, an accumulation unit 722, and a luminance value setting unit 723.

座標值算出部721基於構成藉由處理圖像產生部61依序產生之各處理圖像E1~E6之各像素之座標值(以下稱為「處理圖像位置座標」),而算出構成缺陷映射圖像F之各像素之座標值(以下稱為「缺陷映射圖像位置座標」)。 The coordinate value calculation unit 721 calculates the coordinate map constituting the defect map based on the coordinate values of the pixels (hereinafter referred to as "process image position coordinates") of the respective processed images E1 to E6 sequentially generated by the processed image generating unit 61. The coordinate value of each pixel of the image F (hereinafter referred to as "defect mapping image position coordinate").

於將構成按照上述攝像順序依序產生之處理圖像、且產生順序為第N個之處理圖像之各像素之處理圖像位置座標設為(XN,YN),將構成缺陷映射圖像F之各像素之缺陷映射圖像位置座標設為(Xt,Yu)之情形時,座標值算出部721根據下述式(3)算出與處理圖像位置座標為(XN,YN)之像素對應之缺陷映射圖像位置座標(Xt,Yu)。 The processing image position coordinates of the pixels constituting the processed image sequentially generated in the above-described imaging sequence and generating the Nth processed image are set to (X N , Y N ), and the defect map is formed. When the position map of the defect map image of each pixel of F is (X t , Y u ), the coordinate value calculation unit 721 calculates and processes the image position coordinates (X N , Y according to the following formula (3). The pixel corresponding to the pixel of N ) maps the image position coordinates (X t , Y u ).

Xt=XN Yu=N×LS÷(FR×RS)+YN…(3) X t =X N Y u =N×LS÷(FR×RS)+Y N (3)

[式中,「N」表示處理圖像之產生順序,「LS」表示搬送裝置3對片狀成形體2之搬送速度(mm/秒),「FR」表示攝像裝置5之拍攝動作之訊框率(每單位時間之攝像次數=攝像間隔之倒數,單位:/秒),「RS」表示攝像裝置5之分辨率(mm/pixel)。] [In the formula, "N" indicates the order in which the processed image is generated, "LS" indicates the transport speed (mm/sec) of the sheet-like molded body 2 by the transport device 3, and "FR" indicates the frame of the photographing operation of the image pickup device 5. Rate (number of images per unit time = reciprocal of the imaging interval, unit: / second), and "RS" indicates the resolution (mm/pixel) of the imaging device 5. ]

累加部722進行下述(1)或下述(2)之任一者、或下述(1)及下述(2)之兩者。 The accumulating unit 722 performs either one of the following (1) or the following (2), or both of the following (1) and the following (2).

(1)針對上述缺陷映射圖像F之各像素,計數處理圖像中之對應之像素中之缺陷像素之數量。 (1) For each pixel of the defect map image F described above, the number of defective pixels in the corresponding pixel in the processed image is counted.

(2)針對上述缺陷映射圖像F之各像素,計算賦予至處理圖像中之對應之像素之階調值之合計。 (2) For each pixel of the defect map image F described above, the total of the tone values assigned to the corresponding pixels in the processed image is calculated.

如上所述,藉由處理圖像產生部61而產生之處理圖像E1~E6於 產生順序連續之2個處理圖像間,具有至少一部分重疊之重疊部分。因此,有時藉由座標值算出部721之處理,可自複數個處理圖像算出具有相同之缺陷映射圖像位置座標之像素。於本發明中較佳為對缺陷映射圖像F之所有像素,自2個以上之處理圖像算出相同之缺陷映射圖像位置座標。即,處理圖像之像素且與上述缺陷映射圖像F之各像素對應之像素存在1個或2個以上。於上述(1)之處理中,計數如此之存在1個或2個以上之處理圖像之像素中其為缺陷像素之數量。於在二維圖像中拍攝有缺陷之情形時,如上所述,處理圖像具有缺陷像素與殘餘像素。於缺陷像素中,賦予與上述特徵量對應之階調值,於殘餘像素中賦予零階調值。於上述(2)之處理中,計算賦予至如此之存在1個或2個以上之處理圖像之像素之各者的階調值之合計。 As described above, the processed images E1 to E6 generated by processing the image generating portion 61 are Between the two processed images in sequential order, there is at least a portion of overlapping overlapping portions. Therefore, the pixels having the same defect map image position coordinates can be calculated from the plurality of processed images by the processing of the coordinate value calculation unit 721. In the present invention, it is preferable to calculate the same defect map image position coordinates from the two or more processed images for all the pixels of the defect map image F. In other words, one or two or more pixels corresponding to the pixels of the defect map image F are processed in the pixels of the image. In the processing of the above (1), the number of defective pixels in the pixel in which one or two or more processed images are present is counted. When a defective situation is captured in a two-dimensional image, as described above, the processed image has defective pixels and residual pixels. In the defective pixel, a tone value corresponding to the above feature amount is given, and a zeroth tone value is given to the residual pixel. In the processing of the above (2), the total of the gradation values assigned to each of the pixels having one or two or more processed images as described above is calculated.

然後,亮度值設定部723將基於累加部722之利用上述(1)獲得之缺陷像素之數量、及/或利用上述(2)獲得之階調值之合計而算出之值,作為以藉由座標值算出部721算出之缺陷映射圖像位置座標表示之缺陷映射圖像F之各像素之亮度值而設定。例如,亮度值設定部723將對與缺陷映射圖像F之各像素對應之處理圖像E1~E6之各像素之亮度值之平均值乘以利用上述(1)獲得之缺陷像素之數量而得之值設定為亮度值。又,亮度值設定部723可將利用上述(2)獲得之階調值之合計設定為缺陷映射圖像F之各像素之亮度值,亦可將利用上述(1)獲得之缺陷像素之數量設定為缺陷映射圖像F之各像素之亮度值。 Then, the luminance value setting unit 723 calculates the value calculated based on the total number of defective pixels obtained by the above (1) by the accumulating unit 722 and/or the gradation value obtained by the above (2), by using the coordinates The value calculation unit 721 calculates the luminance value of each pixel of the defect map image F indicated by the defect map image position coordinate. For example, the luminance value setting unit 723 multiplies the average value of the luminance values of the respective pixels of the processed images E1 to E6 corresponding to the respective pixels of the defect map image F by the number of defective pixels obtained by the above (1). The value is set to the brightness value. Further, the luminance value setting unit 723 can set the total of the gradation values obtained by the above (2) as the luminance values of the pixels of the defect map image F, and can also set the number of defective pixels obtained by the above (1). The luminance value of each pixel of the image F is mapped for the defect.

由於亮度值設定部723如上所述般設定構成缺陷映射圖像F之各像素之亮度值,故缺陷像素與殘餘像素之亮度值之差變大,其結果,於缺陷映射圖像F中缺陷像素變得更清晰。又,於缺陷映射圖像F中,由於對於與利用上述(1)獲得之缺陷像素之數量或利用上述(2)獲得之階調值之合計越大之缺陷映射圖像位置座標對應之缺陷像素,亮度值越大,故即便於缺陷像素間仍可使清晰度程度不同。 Since the luminance value setting unit 723 sets the luminance values of the pixels constituting the defect map image F as described above, the difference between the luminance values of the defective pixel and the residual pixel becomes large, and as a result, the defective pixel in the defect map image F is obtained. Become clearer. Further, in the defect map image F, defective pixels corresponding to the defect map image position coordinates which are larger than the total number of defective pixels obtained by the above (1) or the sum of the tone values obtained by the above (2) are used. The greater the brightness value, the better the degree of sharpness even between defective pixels.

藉由缺陷映射圖像產生部72所產生之缺陷映射圖像F被輸入至控制部73。控制部73將輸入之缺陷映射圖像F輸出至顯示部21。 The defect map image F generated by the defect map image generating unit 72 is input to the control unit 73. The control unit 73 outputs the input defect map image F to the display unit 21.

顯示部21例如係液晶顯示器、EL(Electroluminescence:電致發光)顯示器、電漿顯示器等。顯示部21將藉由缺陷映射圖像產生部72所產生之缺陷映射圖像F顯示於顯示畫面。 The display unit 21 is, for example, a liquid crystal display, an EL (Electroluminescence) display, a plasma display, or the like. The display unit 21 displays the defect map image F generated by the defect map image generating unit 72 on the display screen.

[產業上之可利用性] [Industrial availability]

於如上所述般構成之本實施形態之缺陷檢查裝置100中,由於基於藉由攝像裝置5而產生之片狀成形體2之二維圖像,而產生用於檢查片狀成形體2之缺陷之圖像即缺陷映射圖像F,故與基於藉由例如線感測器取得之複數個一維圖像而產生用於檢查缺陷之圖像之情形相比,可維持較高之缺陷檢測能力。 In the defect inspection apparatus 100 of the present embodiment configured as described above, a defect for inspecting the sheet-like formed body 2 is generated based on the two-dimensional image of the sheet-like formed body 2 generated by the image pickup device 5. The image is the defect map image F, so that the defect detection capability can be maintained as compared with the case of generating an image for checking defects based on a plurality of one-dimensional images obtained by, for example, a line sensor. .

進而於本實施形態之缺陷檢查裝置100中,由於表示各像素之缺陷映射圖像F之位置之缺陷映射圖像位置座標係基於各處理圖像E1~E6之各像素之座標值而根據上述式(3)算出,並基於複數個處理圖像E1~E6中之像素且算出相同之缺陷映射圖像位置座標之像素中之缺陷像素之數量或該缺陷像素之階調值之合計,而設定缺陷映射圖像F之各像素之亮度值,故藉由使用該缺陷映射圖像F檢查片狀成形體2之缺陷,可以較高之檢測能力準確檢查片狀成形體2之缺陷之位置。 Further, in the defect inspection apparatus 100 of the present embodiment, the defect map image position coordinates indicating the position of the defect map image F of each pixel are based on the coordinate values of the respective pixels of the processed images E1 to E6. (3) calculating and setting a defect based on a plurality of pixels in the processed images E1 to E6 and calculating the total number of defective pixels in the pixel of the same defect map image position coordinate or the gradation value of the defective pixel Since the luminance value of each pixel of the image F is mapped, the defect of the sheet-like molded body 2 is inspected by using the defect map image F, and the position of the defect of the sheet-shaped molded body 2 can be accurately inspected with high detection capability.

又,於本實施形態之缺陷檢查裝置100中,由於顯示部21顯示藉由缺陷映射圖像產生部72所產生之缺陷映射圖像F,故藉由使用者觀察由顯示部21顯示之缺陷映射圖像F,可確認片狀成形體2之缺陷之位置。 Further, in the defect inspection apparatus 100 of the present embodiment, since the display unit 21 displays the defect map image F generated by the defect map image generation unit 72, the user observes the defect map displayed by the display unit 21. In the image F, the position of the defect of the sheet-like formed body 2 can be confirmed.

圖10A及圖10B係表示圖像處理裝置6所產生之處理圖像之另一例即處理圖像G1~G13、及圖像解析裝置7所產生之缺陷映射圖像之另一例即缺陷映射圖像H之圖。圖11A及圖11B係說明將圖像處理裝置6所產生之包含一維圖像之處理圖像G1~G13依次鋪滿而產生缺陷映射 圖像J之情形時之圖像解析裝置7之動作之圖。再者,於圖10A及圖11A所示之處理圖像G1~G13、圖10B所示之缺陷映射圖像H、圖11B所示之缺陷映射圖像J中,黑色部分表示無缺陷之部分即殘餘像素,白色部分表示有缺陷之部分即缺陷像素。 10A and 10B are diagrams showing another example of the processed image generated by the image processing device 6, that is, the processed image G1 to G13, and the defect map image generated by the image analyzing device 7, which is another example of the defect map image. The map of H. 11A and FIG. 11B illustrate that the processed images G1 to G13 including the one-dimensional image generated by the image processing apparatus 6 are sequentially spread to generate a defect map. A diagram of the operation of the image analysis device 7 in the case of the image J. Further, in the processed images G1 to G13 shown in FIGS. 10A and 11A, the defect map image H shown in FIG. 10B, and the defect map image J shown in FIG. 11B, the black portion indicates the defect-free portion. The residual pixel, the white portion indicates the defective portion, that is, the defective pixel.

於上述實施形態中,處理圖像產生部61雖以與各二維圖像對應地產生大小及形狀與藉由攝像裝置5產生之二維圖像相同之處理圖像E1~E6之方式構成,但並非限定於該構成。於其他實施形態中,處理圖像產生部61抽取藉由攝像裝置5產生之二維圖像之照明像之明部與暗部之邊界區域部分,而產生如圖10A所示之包含一維圖像之處理圖像G1~G13。又,亦可對藉由攝像裝置5產生之二維圖像,藉由上述缺陷檢測演算法抽取缺陷像素,而產生包含一維圖像之處理圖像G1~G13。 In the above-described embodiment, the processed image generating unit 61 is configured to generate processed images E1 to E6 having the same size and shape as the two-dimensional image generated by the imaging device 5 in accordance with each of the two-dimensional images. However, it is not limited to this configuration. In other embodiments, the processed image generating unit 61 extracts a boundary region portion between the bright portion and the dark portion of the illumination image of the two-dimensional image generated by the imaging device 5, thereby generating a one-dimensional image as shown in FIG. 10A. The images G1 to G13 are processed. Further, the defective pixels may be extracted by the defect detection algorithm by the two-dimensional image generated by the imaging device 5, and the processed images G1 to G13 including the one-dimensional image may be generated.

構成藉由處理圖像產生部61產生之處理圖像G1~G13之各像素,藉由對儲存有表示亮度值之亮度值資訊之亮度值資訊儲存位元行,附加儲存有處理圖像位置座標之資訊之座標資訊儲存位元行而得之位元行而構成。於構成處理圖像G1~G13之各像素之上述座標資訊儲存位元行中,儲存有與構成藉由攝像裝置5產生之二維圖像之各像素之座標對應之座標值之資訊作為處理圖像位置座標之資訊。 The pixels constituting the processed images G1 to G13 generated by the processed image generating unit 61 are additionally stored with the processed image position coordinates by storing the bit values of the luminance value information storing the luminance value information indicating the luminance value. The coordinate information of the information is stored in the bit row obtained by the bit row. In the coordinate information storage bit row constituting each pixel of the processed image G1 to G13, information on a coordinate value corresponding to coordinates of each pixel constituting the two-dimensional image generated by the imaging device 5 is stored as a processing map. Information like location coordinates.

此處,於缺陷映射圖像產生部72將藉由處理圖像產生部61產生之複數個處理圖像G1~G13按照產生順序依次鋪滿而產生缺陷映射圖像之情形時,會產生如圖11B所示之缺陷映射圖像J,從而於1個缺陷映射圖像J中,存在複數個顯示相同之缺陷之缺陷像素。於使用如此之缺陷映射圖像J檢查片狀成形體2之缺陷之情形時,難以準確掌握片狀成形體2之缺陷之位置。又,會重複檢測相同缺陷。 Here, when the defect map image generating unit 72 sequentially fills the plurality of processed images G1 to G13 generated by the processed image generating unit 61 in the order of generation to generate a defect map image, a defect map is generated. The defect map image J shown in FIG. 11B is such that, in one defect map image J, there are a plurality of defective pixels displaying the same defect. When the defect of the sheet-like formed body 2 is inspected using such a defect map image J, it is difficult to accurately grasp the position of the defect of the sheet-like formed body 2. Also, the same defect is repeatedly detected.

相對於此,於本實施形態中,缺陷映射圖像產生部72合成藉由處理圖像產生部61而產生之複數個處理圖像G1~G13,藉此產生如圖 10B所示之缺陷映射圖像H。 On the other hand, in the present embodiment, the defect map image generating unit 72 synthesizes a plurality of processed images G1 to G13 generated by the processed image generating unit 61, thereby generating the image. The defect map image H shown in 10B.

缺陷映射圖像產生部72之座標值算出部721基於構成各處理圖像G1~G13之各像素之儲存於座標資訊儲存位元行之處理圖像位置座標之資訊,根據上述式(3)算出構成缺陷映射圖像H之各像素之表示缺陷映射圖像H之位置之缺陷映射圖像位置座標。 The coordinate value calculation unit 721 of the defect map image generation unit 72 calculates the information of the processed image position coordinates stored in the coordinate information storage bit line of each pixel of each of the processed images G1 to G13 based on the above equation (3). The defect map image position coordinates indicating the position of the defect map image H of each pixel constituting the defect map image H.

累加部722求出複數個處理圖像G1~G13中之像素且座標值算出部721算出相同之缺陷映射圖像位置座標之像素中之缺陷像素之數量及/或該缺陷像素之階調值之合計。然後,亮度值設定部723基於利用累加部722獲得之缺陷像素之數量及/或階調值之合計,而算出並設定以藉由座標值算出部721算出之缺陷映射圖像位置座標表示之缺陷映射圖像H之各像素之亮度值。 The accumulating unit 722 obtains the pixels of the plurality of processed images G1 to G13, and the coordinate value calculating unit 721 calculates the number of defective pixels in the pixels of the same defect map image position coordinate and/or the gradation value of the defective pixel. total. Then, the luminance value setting unit 723 calculates and sets a defect indicating the position map of the defect map image calculated by the coordinate value calculation unit 721 based on the total number of defective pixels and/or the tone value obtained by the accumulation unit 722. The luminance value of each pixel of the image H is mapped.

於本實施形態之缺陷檢查裝置100中,由於表示缺陷映射圖像H之位置之缺陷映射圖像位置座標係基於各處理圖像G1~G13之各像素之儲存於座標資訊儲存位元行之處理圖像位置座標之資訊,而根據上述式(3)算出,並基於算出相同之缺陷映射圖像位置座標之複數個處理圖像G1~G13之像素中之缺陷像素之數量或階調值之合計,而設定缺陷映射圖像H之各像素之亮度值,故藉由使用該缺陷映射圖像H檢查片狀成形體2之缺陷,可以較高之檢測能力準確檢查片狀成形體2之缺陷之位置。於缺陷映射中,由於相同缺陷出現於一個部位,故可防止相同缺陷之重複檢測。 In the defect inspection apparatus 100 of the present embodiment, the defect map image position coordinates indicating the position of the defect map image H are processed based on the coordinates of each pixel of each of the processed images G1 to G13 stored in the coordinate information storage bit row. The information of the image position coordinates is calculated according to the above formula (3), and is based on the total number of the defective pixels or the gradation values in the pixels of the plurality of processed images G1 to G13 that calculate the position coordinates of the same defect map image. By setting the luminance value of each pixel of the defect map image H, the defect of the sheet-like formed body 2 is inspected by using the defect map image H, and the defect of the sheet-shaped formed body 2 can be accurately inspected with a high detection capability. position. In the defect mapping, since the same defect occurs in one portion, repeated detection of the same defect can be prevented.

1‧‧‧圖像產生裝置 1‧‧‧Image generating device

3‧‧‧搬送裝置 3‧‧‧Transporting device

5‧‧‧攝像裝置 5‧‧‧ camera

6‧‧‧圖像處理裝置 6‧‧‧Image processing device

7‧‧‧圖像解析裝置 7‧‧‧Image analysis device

21‧‧‧顯示部 21‧‧‧Display Department

61‧‧‧處理圖像產生部 61‧‧‧Processing Image Generation Department

71‧‧‧處理圖像輸入部 71‧‧‧Processing image input section

72‧‧‧缺陷映射圖像產生部 72‧‧‧Defect mapping image generation unit

73‧‧‧控制部 73‧‧‧Control Department

100‧‧‧缺陷檢查裝置 100‧‧‧ Defect inspection device

721‧‧‧座標值算出部 721‧‧‧ coordinate value calculation unit

722‧‧‧累加部 722‧‧‧Accumulate

723‧‧‧亮度值設定部 723‧‧‧Brightness value setting unit

Claims (4)

一種圖像產生裝置,其係產生用於檢查片狀成形體之缺陷之圖像者,且包含:搬送部,其以預先決定之搬送速度將片狀成形體向其長度方向搬送;光照射部,其對被搬送之上述片狀成形體照射光;攝像部,其係與被搬送之上述片狀成形體之表面對向配置,並以預先決定之時間間隔拍攝該片狀成形體之表面之一部分而產生複數個二維圖像者,且以藉由連續之2次拍攝動作而拍攝之攝像區域之一部分重疊之方式,設定上述時間間隔;特徵量算出部,其藉由預先決定之演算法處理,基於各像素之亮度值來算出構成上述各二維圖像之各像素之特徵量;處理圖像資料產生部,其將構成上述各二維圖像之各像素區分為上述特徵量為預先決定之閾值以上之缺陷像素、與上述特徵量未達上述閾值之殘餘像素,且與各二維圖像對應地產生處理圖像,該處理圖像係對上述缺陷像素賦予與上述特徵量對應之階調值,並對上述殘餘像素賦予零階調值;及缺陷映射圖像產生部,其係合成藉由上述處理圖像資料產生部所產生之複數個處理圖像,藉此產生表示片狀成形體之缺陷之分佈之缺陷映射圖像者,且其包含:缺陷映射圖像座標值算出部,其基於構成各處理圖像之各像素之座標值、上述搬送速度、及上述時間間隔,而算出用於構成上述缺陷映射圖像之各像素之座標值;累加部,其進行下述(1)或下述(2)之任一者、或下述(1)及下述(2)之兩者: (1)針對上述缺陷映射圖像之各像素,計數處理圖像中之對應之像素中之缺陷像素之數量;(2)針對上述缺陷映射圖像之各像素,計算賦予至處理圖像中之對應之像素之階調值之合計;及亮度值設定部,其將基於利用上述(1)獲得之缺陷像素之數量、及/或利用上述(2)獲得之階調值之合計而算出之值,作為上述缺陷映射圖像之各像素之亮度值而設定,藉此產生缺陷映射圖像。 An image generating device that generates an image for inspecting a defect of a sheet-shaped molded body, and includes a conveying unit that conveys the sheet-shaped formed body in a longitudinal direction at a predetermined conveying speed; the light-irradiating portion The sheet-shaped molded body to be conveyed is irradiated with light, and the image pickup unit is disposed to face the surface of the sheet-like formed body to be conveyed, and the surface of the sheet-shaped formed body is imaged at predetermined time intervals. a plurality of two-dimensional images are generated in part, and the time interval is set such that one of the imaging regions captured by the two consecutive imaging operations partially overlaps; the feature amount calculation unit is determined by a predetermined algorithm The processing calculates the feature amount of each pixel constituting each of the two-dimensional images based on the luminance value of each pixel, and the processed image data generating unit divides each pixel constituting each of the two-dimensional images into the feature amount as a predetermined Defective pixels above the threshold value determined, and residual pixels having the feature amount not reaching the threshold value, and generating a processed image corresponding to each two-dimensional image, the processed image being a defective pixel is given a tone value corresponding to the feature amount, and a zero-order tone value is given to the residual pixel; and a defect map image generation unit that synthesizes a plurality of processes generated by the processed image data generation unit An image, whereby a defect map image indicating a distribution of defects of the sheet-shaped formed body is generated, and includes: a defect map image coordinate value calculation unit that is based on a coordinate value of each pixel constituting each processed image, The transfer speed and the time interval are used to calculate a coordinate value of each pixel constituting the defect map image, and an accumulation unit that performs one of the following (1) or (2) or the following ( 1) and both of the following (2): (1) counting, for each pixel of the defect mapping image, the number of defective pixels in the corresponding pixel in the processed image; (2) calculating, for each pixel of the defect mapping image, the assignment to the processed image a total of the gradation values of the corresponding pixels; and a luminance value setting unit that calculates the value based on the total number of defective pixels obtained by the above (1) and/or the total of the gradation values obtained by the above (2) The luminance map value of each pixel of the defect map image is set, thereby generating a defect map image. 如請求項1之圖像產生裝置,其中上述時間間隔係以使上述一部分重疊之攝像區域之上述長度方向之長度,成為上述各二維圖像之上述長度方向之長度之1/2倍以上之方式而設定。 The image generating apparatus according to claim 1, wherein the time interval is such that a length of the longitudinal direction of the image capturing area partially overlapped is 1/2 times or more of a length of the two-dimensional image in the longitudinal direction. Set by mode. 一種缺陷檢查裝置,其包含:如請求項1或2之圖像產生裝置;及顯示部,其顯示藉由上述圖像產生裝置之缺陷映射圖像產生部所產生之缺陷映射圖像。 A defect inspection device comprising: the image generation device of claim 1 or 2; and a display portion that displays a defect map image generated by the defect map image generation portion of the image generation device. 一種缺陷檢查方法,其係用於檢查片狀成形體之缺陷者,且包含:搬送步驟,藉由搬送部以預先決定之搬送速度,將片狀成形體向其長度方向搬送;光照射步驟,對被搬送之上述片狀成形體照射光;攝像步驟,藉由與被搬送之上述片狀成形體之表面對向配置之攝像部,以預先決定之時間間隔拍攝該片狀成形體之表面之一部分而產生複數個二維圖像,且以藉由連續之2次拍攝動作而拍攝之攝像區域之一部分重疊之方式,設定上述時間間隔;特徵量算出步驟,藉由預先決定之演算法處理,基於各像素之亮度值而算出構成上述各二維圖像之各像素之特徵量; 處理圖像資料產生步驟,將構成上述各二維圖像之各像素區分為上述特徵量為預先決定之閾值以上之缺陷像素、與上述特徵量未達上述閾值之殘餘像素,且與各二維圖像對應地產生處理圖像,該處理圖像係對上述缺陷像素賦予與上述特徵量對應之階調值,並對上述殘餘像素賦予零階調值;缺陷映射圖像產生步驟,合成藉由上述處理圖像資料產生步驟所產生之複數個處理圖像,藉此產生表示片狀成形體之缺陷之分佈之缺陷映射圖像,且包含:缺陷映射圖像座標值算出步驟,基於構成各處理圖像之各像素之座標值、上述搬送速度、及上述時間間隔,而算出用於構成上述缺陷映射圖像之各像素之座標值;累加步驟,進行下述(1)或下述(2)之任一者、或下述(1)及下述(2)之兩者:(1)針對上述缺陷映射圖像之各像素,計數處理圖像中之對應之像素中之缺陷像素之數量;(2)針對上述缺陷映射圖像之各像素,計算賦予至處理圖像中之對應之像素之階調值之合計;及亮度值設定步驟,將基於利用上述(1)獲得之缺陷像素之數量、及/或利用上述(2)獲得之階調值之合計而算出之值,作為上述缺陷映射圖像之各像素之亮度值而設定,藉此產生缺陷映射圖像;及顯示步驟,顯示上述缺陷映射圖像產生步驟所產生之缺陷映射圖像。 A defect inspection method for inspecting a defect of a sheet-shaped molded body, comprising: a conveying step of conveying a sheet-shaped formed body to a longitudinal direction thereof by a conveying speed at a predetermined conveying speed; and a light irradiation step The sheet-shaped molded body to be conveyed is irradiated with light; and in the image forming step, the surface of the sheet-shaped formed body is imaged at a predetermined time interval by an image forming unit disposed to face the surface of the sheet-like formed body to be conveyed. a plurality of two-dimensional images are generated in part, and the time interval is set such that one of the imaging regions captured by the two consecutive shooting operations partially overlaps; the feature amount calculating step is performed by a predetermined algorithm. Calculating a feature quantity of each pixel constituting each of the two-dimensional images based on a luminance value of each pixel; Processing the image data generating step of dividing each pixel constituting each of the two-dimensional images into a defective pixel having a feature amount equal to or greater than a predetermined threshold value, and a residual pixel having the feature amount not reaching the threshold value, and each two-dimensional The image correspondingly generates a processed image, the processed image is given a tone value corresponding to the feature quantity to the defective pixel, and a zero-order key value is added to the residual pixel; the defect mapping image generating step is synthesized by Processing the plurality of processed images generated by the image data generating step, thereby generating a defect map image indicating a distribution of defects of the sheet-shaped formed body, and comprising: a defect mapping image coordinate value calculating step, based on the respective processing Calculating a coordinate value of each pixel constituting the defect map image by a coordinate value of each pixel of the image, the transport speed, and the time interval; and performing the following steps (1) or (2) below Either or both of (1) and (2) below: (1) counting, for each pixel of the defect map image, a defective pixel in a corresponding pixel in the processed image (2) calculating, for each pixel of the defect mapping image, a total of the tone values assigned to the corresponding pixels in the processed image; and a brightness value setting step based on the defective pixel obtained by using the above (1) The number calculated and/or the value calculated by using the total of the gradation values obtained in the above (2) is set as the luminance value of each pixel of the defect map image, thereby generating a defect map image; and a display step. A defect map image generated by the above-described defect map image generating step is displayed.
TW103103284A 2013-01-30 2014-01-28 Image generation device, defect inspection apparatus and defect inspection method TWI608230B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013015641 2013-01-30

Publications (2)

Publication Number Publication Date
TW201435334A TW201435334A (en) 2014-09-16
TWI608230B true TWI608230B (en) 2017-12-11

Family

ID=51262469

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103103284A TWI608230B (en) 2013-01-30 2014-01-28 Image generation device, defect inspection apparatus and defect inspection method

Country Status (5)

Country Link
JP (1) JP6191627B2 (en)
KR (1) KR102168143B1 (en)
CN (1) CN104956210B (en)
TW (1) TWI608230B (en)
WO (1) WO2014119772A1 (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017049974A (en) * 2015-09-04 2017-03-09 キヤノン株式会社 Discriminator generator, quality determine method, and program
WO2017043270A1 (en) * 2015-09-09 2017-03-16 住友電装株式会社 Inspection method for terminal-equipped electric wire and inspection device for terminal-equipped electric wire
JP2017215277A (en) * 2016-06-02 2017-12-07 住友化学株式会社 Defect inspection system, film manufacturing device and defect inspection method
JP6358351B1 (en) * 2017-03-21 2018-07-18 Jfeスチール株式会社 Surface defect inspection method and surface defect inspection apparatus
JP6676573B2 (en) * 2017-03-29 2020-04-08 Ckd株式会社 Inspection device and winding device
JP6970549B2 (en) * 2017-07-24 2021-11-24 住友化学株式会社 Defect inspection system and defect inspection method
JP6970550B2 (en) * 2017-07-24 2021-11-24 住友化学株式会社 Defect inspection system and defect inspection method
JP6828652B2 (en) * 2017-10-13 2021-02-10 王子ホールディングス株式会社 Sanitary paper manufacturing method and defect inspection equipment
JP7067321B2 (en) * 2018-06-29 2022-05-16 オムロン株式会社 Inspection result presentation device, inspection result presentation method and inspection result presentation program
CN109030499B (en) * 2018-07-27 2021-08-24 江苏理工学院 Device and method suitable for continuous online detection of target defects and preventing repeated counting of defect number
JP7007324B2 (en) * 2019-04-25 2022-01-24 ファナック株式会社 Image processing equipment, image processing methods, and robot systems
CN111047561A (en) * 2019-11-22 2020-04-21 国网江西省电力有限公司电力科学研究院 Method for identifying cracks of shed tortoise of composite insulator
CN111044522B (en) * 2019-12-14 2022-03-11 中国科学院深圳先进技术研究院 Defect detection method and device and terminal equipment
CN111692998B (en) * 2020-06-11 2022-02-11 西格迈股份有限公司 Piston rod surface roughness detecting system
JP7141772B1 (en) 2021-12-02 2022-09-26 株式会社岩崎電機製作所 IMAGE INSPECTION APPARATUS, IMAGE INSPECTION METHOD AND IMAGE INSPECTION PROGRAM

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006337167A (en) * 2005-06-01 2006-12-14 Fast:Kk Inspection method of low-contrast flaw under cyclic noise, and inspection method of low-contrast flaw under repeated pattern
CN102224412A (en) * 2008-11-21 2011-10-19 住友化学株式会社 Device for examining defect of molded sheet
WO2012035852A1 (en) * 2010-09-15 2012-03-22 株式会社日立ハイテクノロジーズ Defect inspection method and device thereof

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3247823B2 (en) * 1995-06-26 2002-01-21 株式会社日立製作所 Defect inspection method and apparatus, and method of manufacturing element for thin film magnetic head
JPH09159622A (en) * 1995-12-05 1997-06-20 Kawasaki Steel Corp Surface defect inspection equipment
JP2003098106A (en) * 2001-09-27 2003-04-03 Dainippon Printing Co Ltd Method and apparatus for displaying printing defect
JP5006551B2 (en) * 2006-02-14 2012-08-22 住友化学株式会社 Defect inspection apparatus and defect inspection method
JP5415709B2 (en) * 2008-03-31 2014-02-12 住友化学株式会社 Polarizing film sorting system
JP4726983B2 (en) * 2009-10-30 2011-07-20 住友化学株式会社 Defect inspection system, and defect inspection imaging apparatus, defect inspection image processing apparatus, defect inspection image processing program, recording medium, and defect inspection image processing method used therefor
JP2011163852A (en) * 2010-02-08 2011-08-25 Kobe Steel Ltd Visual inspection device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006337167A (en) * 2005-06-01 2006-12-14 Fast:Kk Inspection method of low-contrast flaw under cyclic noise, and inspection method of low-contrast flaw under repeated pattern
CN102224412A (en) * 2008-11-21 2011-10-19 住友化学株式会社 Device for examining defect of molded sheet
WO2012035852A1 (en) * 2010-09-15 2012-03-22 株式会社日立ハイテクノロジーズ Defect inspection method and device thereof

Also Published As

Publication number Publication date
KR20150114464A (en) 2015-10-12
WO2014119772A1 (en) 2014-08-07
TW201435334A (en) 2014-09-16
CN104956210B (en) 2017-04-19
KR102168143B1 (en) 2020-10-20
CN104956210A (en) 2015-09-30
JP6191627B2 (en) 2017-09-06
JPWO2014119772A1 (en) 2017-01-26

Similar Documents

Publication Publication Date Title
TWI608230B (en) Image generation device, defect inspection apparatus and defect inspection method
JP6191622B2 (en) Image generating apparatus, defect inspection apparatus, and defect inspection method
TWI588472B (en) Defect inspection device and defect inspection method
JP5619348B2 (en) Mold sheet inspection system
JP4726983B2 (en) Defect inspection system, and defect inspection imaging apparatus, defect inspection image processing apparatus, defect inspection image processing program, recording medium, and defect inspection image processing method used therefor
JP5006551B2 (en) Defect inspection apparatus and defect inspection method
JP2013140050A (en) Defect inspection device and defect inspection method
TWI797145B (en) Defect inspection system and defect inspection method
JP6191623B2 (en) Image generating apparatus, defect inspection apparatus, and defect inspection method
JP7293907B2 (en) Visual inspection management system, visual inspection management device, visual inspection management method and program
JP6770691B2 (en) Quantification method and quantification device for accuracy of coating film edge
JP2013003062A (en) Image forming device, and defect inspection device
JP2011145305A (en) Defect inspection system, and photographing device for defect inspection, image processing apparatus for defect inspection, image processing program for defect inspection, recording medium, and image processing method for defect inspection used for the same