TW202242713A - Method of automatically setting optical parameters and automated optical inspection system using the same - Google Patents

Method of automatically setting optical parameters and automated optical inspection system using the same Download PDF

Info

Publication number
TW202242713A
TW202242713A TW110115481A TW110115481A TW202242713A TW 202242713 A TW202242713 A TW 202242713A TW 110115481 A TW110115481 A TW 110115481A TW 110115481 A TW110115481 A TW 110115481A TW 202242713 A TW202242713 A TW 202242713A
Authority
TW
Taiwan
Prior art keywords
optical parameter
recommended
optical
module
error
Prior art date
Application number
TW110115481A
Other languages
Chinese (zh)
Other versions
TWI792291B (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 財團法人工業技術研究院
Priority to TW110115481A priority Critical patent/TWI792291B/en
Publication of TW202242713A publication Critical patent/TW202242713A/en
Application granted granted Critical
Publication of TWI792291B publication Critical patent/TWI792291B/en

Links

Images

Landscapes

  • Testing Of Optical Devices Or Fibers (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Microscoopes, Condenser (AREA)

Abstract

A method of automatically setting optical parameters, using Automatic Optical Inspection(AOI) System, the method includes: obtaining a recommended object image when the AOI system under a first recommended optical parameter set; performing computation on a standard image of a and a recommended image of the to-be-measured object according to an optimized error function to obtain a recommended error value between the standard image and the recommended image; determining whether the recommended error value converges, when determining that the recommended error value does not converge, performing computation according to the recommended error value and first recommended optical parameter set to obtain a second recommended optical parameter set; when the recommended error value converges, deciding the first recommended optical parameter set as the best optical parameter set of the AOI system.

Description

光學參數自動設定方法及應用其之自動光學檢測系統Optical parameter automatic setting method and automatic optical inspection system using it

本揭露有關於一種光學參數自動設定方法及應用其之自動光學檢測系統。The disclosure relates to a method for automatically setting optical parameters and an automatic optical inspection system using the same.

光學檢測系統可對產品拍攝,以取得產品(待測物)之影像,並經由分析影像,以檢測產品的缺陷。為了提高檢測準確度,自動光學檢測系統所擷取的影像須具有適當或最佳的色彩資訊,因此需要視環境或檢測之產品調整光學檢測系統的光學參數。目前的光學參數設定主要是由專家根據經驗現場調整光學檢測系統的光學參數。The optical inspection system can take pictures of the product to obtain the image of the product (object to be tested), and analyze the image to detect product defects. In order to improve the detection accuracy, the image captured by the automatic optical inspection system must have appropriate or optimal color information, so it is necessary to adjust the optical parameters of the optical inspection system according to the environment or the product to be inspected. The current optical parameter setting is mainly to adjust the optical parameters of the optical detection system on the spot by experts according to experience.

然而,現場專家依經驗調整光學參數存在誤判的風險,此外不同的專家的判斷與設定之光學參數通常不完全相同,如此可能造成品質管控不穩定的情況。另一方面,在光學參數項目數量龐大的情況下,由專家人工調整光學參數相當耗時,可能降低生產速度與效能。However, there is a risk of misjudgment when on-site experts adjust optical parameters based on experience. In addition, the judgments of different experts are usually not exactly the same as the optical parameters set, which may lead to unstable quality control. On the other hand, in the case of a large number of optical parameter items, manual adjustment of optical parameters by experts is quite time-consuming, which may reduce production speed and efficiency.

本揭露係有關於一種光學參數自動設定方法及應用其之自動光學檢測系統。The present disclosure relates to a method for automatically setting optical parameters and an automatic optical inspection system using the same.

根據本揭露之一實施例,提出一種光學參數自動設定方法。光學參數自動設定方法適用於一自動光學檢測(Automated Optical Inspection, AOI)系統。自動光學檢測系統包括一攝像模組、一誤差運算模組、一自動設定模組及一光學參數推薦模組。光學參數自動設定方法包括以下步驟:攝像模組在自動光學檢測系統被用一第一推薦光學參數組設定對一待測物取像,以取得一推薦待測物影像;誤差運算模組依據一優化誤差函數,對一待測物標準圖與推薦待測物影像執行運算,以取得待測物標準圖與推薦待測物影像之間的一推薦誤差值;誤差運算模組判斷推薦誤差值是否收斂。當判斷推薦誤差值未收斂時,光學參數推薦模組依據推薦誤差值及第一推薦光學參數組執行運算,而取得一第二推薦光學參數組,並且自動設定模組依據第二推薦光學參數組設定自動光學檢測系統;以及,當判斷推薦誤差值收斂時,誤差運算模組決定第一推薦光學參數組為自動光學檢測系統之一最佳光學參數組。According to an embodiment of the present disclosure, a method for automatically setting optical parameters is proposed. The method for automatically setting optical parameters is suitable for an Automated Optical Inspection (AOI) system. The automatic optical inspection system includes a camera module, an error calculation module, an automatic setting module and an optical parameter recommendation module. The method for automatically setting optical parameters includes the following steps: the camera module is set to use a first recommended optical parameter set in the automatic optical inspection system to capture an image of an object to be measured to obtain a recommended image of the object to be measured; the error calculation module is based on a Optimizing the error function, performing calculations on a standard image of the DUT and a recommended image of the DUT to obtain a recommended error value between the standard image of the DUT and the recommended image of the UUT; the error calculation module determines whether the recommended error value is convergence. When it is judged that the recommended error value has not converged, the optical parameter recommendation module performs calculations based on the recommended error value and the first recommended optical parameter set to obtain a second recommended optical parameter set, and automatically sets the module based on the second recommended optical parameter set Setting the automatic optical inspection system; and, when judging that the recommended error values converge, the error calculation module determines that the first recommended optical parameter set is one of the best optical parameter sets of the automatic optical inspection system.

根據本揭露之另一實施例,提出一種自動光學檢測系統。自動光學檢測系統包括一攝像模組、一誤差運算模組、一光學參數推薦模組及一自動設定模組。攝像模組經配置以執行:在一推薦光學參數下對一待測物取像,以取得一推薦待測物影像。誤差運算模組經配置以以執行: 依據一優化誤差函數,對一待測物標準圖與推薦待測物影像執行運算,以取得待測物標準圖與推薦待測物影像之間的一推薦誤差值;及,判斷推薦誤差值是否收斂。光學參數推薦模組經配置執行:當判斷推薦誤差值未收斂時,依據推薦誤差值及第一推薦光學參數組執行運算,而取得一第二推薦光學參數組。當判斷推薦誤差值收斂時,誤差運算模組更用以執行:決定推薦光學參數為自動光學檢測系統之一最佳光學參數組。According to another embodiment of the present disclosure, an automatic optical inspection system is provided. The automatic optical detection system includes a camera module, an error calculation module, an optical parameter recommendation module and an automatic setting module. The camera module is configured to perform: taking an image of an object under test under a recommended optical parameter, so as to obtain a recommended image of the object under test. The error calculation module is configured to perform: performing calculations on a DUT standard image and recommended DUT image according to an optimized error function to obtain a recommendation between the DUT standard image and the recommended DUT image an error value; and, judging whether the recommended error value converges. The optical parameter recommendation module is configured to execute: when it is judged that the recommended error value has not converged, the operation is performed according to the recommended error value and the first recommended optical parameter set to obtain a second recommended optical parameter set. When it is judged that the recommended error value converges, the error calculation module is further used to execute: determine the recommended optical parameter as one of the best optical parameter sets of the automatic optical inspection system.

為了對本揭露之上述及其他方面有更佳的瞭解,下文特舉實施例,並配合所附圖式詳細說明如下:In order to have a better understanding of the above and other aspects of the present disclosure, the following specific embodiments are described in detail in conjunction with the attached drawings as follows:

請參照第1~2及3A(a)~3H(b)圖,第1圖繪示依照本揭露一實施例之自動光學檢測(Automated Optical Inspection, AOI)系統100之示意圖,第2A及2B圖繪示第1圖之自動光學檢測系統100的光學參數自動設定方法的流程圖,而第3A(a)~3H(b)圖繪示第2A及2B圖之推薦光學參數

Figure 02_image001
的取得過程示意圖。 Please refer to Figures 1-2 and 3A(a)-3H(b), Figure 1 shows a schematic diagram of an automated optical inspection (Automated Optical Inspection, AOI) system 100 according to an embodiment of the present disclosure, Figures 2A and 2B The flow chart of the automatic optical parameter setting method of the automatic optical inspection system 100 in Fig. 1 is shown, and Fig. 3A(a) ~ 3H(b) show the recommended optical parameters in Fig. 2A and Fig. 2B
Figure 02_image001
Schematic diagram of the acquisition process.

如第1圖所示,自動光學檢測系統100包括優化模組110、誤差運算模組120、光學參數推薦模組130、攝像模組140、自動設定模組150及光源模組160。攝像模組140例如是光學攝影機或線性光學掃描器。光源模組160例如是包含至少一光源(未繪示)。優化模組110、誤差運算模組120、光學參數推薦模組130與自動設定模組150之至少一者例如是採用半導體製程所形成的實體電路(circuit),或為韌體而藉由一運算處理器來完成。此外,優化模組110、誤差運算模組120、光學參數推薦模組130與自動設定模組150之至少一者可整合成單一模組,或整合於一控制器(未繪示)或運算處理器(未繪示)中。As shown in FIG. 1 , the automatic optical inspection system 100 includes an optimization module 110 , an error calculation module 120 , an optical parameter recommendation module 130 , a camera module 140 , an automatic setting module 150 and a light source module 160 . The camera module 140 is, for example, an optical camera or a linear optical scanner. The light source module 160 includes at least one light source (not shown), for example. At least one of the optimization module 110, the error calculation module 120, the optical parameter recommendation module 130, and the automatic setting module 150 is, for example, a physical circuit (circuit) formed by using a semiconductor process, or a firmware through a calculation processor to complete. In addition, at least one of the optimization module 110, the error calculation module 120, the optical parameter recommendation module 130 and the automatic setting module 150 can be integrated into a single module, or integrated in a controller (not shown) or calculation processing device (not shown).

如第1圖所示,攝像模組140在該自動光學檢測系統100被設定為推薦光學參數組

Figure 02_image001
(例如,第3B圖之第一推薦光學參數組
Figure 02_image003
)下,對待測物取像,以取得推薦待測物影像
Figure 02_image005
。誤差運算模組120經配置以執行依據優化誤差函數EF,對待測物標準圖F2與推薦待測物影像
Figure 02_image005
執行運算,以取得待測物標準圖F2與推薦待測物影像
Figure 02_image005
之間的推薦誤差值
Figure 02_image007
。接著,誤差運算模組120判斷推薦誤差值
Figure 02_image007
是否收斂。當判斷推薦誤差值
Figure 02_image007
收斂時,誤差運算模組120決定推薦光學參數組
Figure 02_image001
(例如,第3B圖之第一推薦光學參數組
Figure 02_image009
)為自動光學檢測系統100之最佳光學參數組;當誤差運算模組120判斷推薦誤差值
Figure 02_image007
未收斂時,光學參數推薦模組130經配置以執行依據推薦誤差值
Figure 02_image007
及第一推薦光學參數組
Figure 02_image001
執行運算,而取得另一推薦光學參數組
Figure 02_image010
(例如,第3E圖之第二推薦光學參數組
Figure 02_image012
)。如此,自動光學檢測系統100可自動取得最佳光學參數組,改善習知人工調光的問題。 As shown in Figure 1, the camera module 140 is set as the recommended optical parameter set in the automatic optical inspection system 100
Figure 02_image001
(For example, the first recommended optical parameter set in Fig. 3B
Figure 02_image003
), take an image of the object to be measured to obtain the recommended image of the object to be measured
Figure 02_image005
. The error calculation module 120 is configured to execute the optimized error function EF, the standard image F2 of the object to be measured and the image of the recommended object to be measured
Figure 02_image005
Perform calculations to obtain the standard image F2 of the DUT and the recommended DUT image
Figure 02_image005
The recommended error value between
Figure 02_image007
. Next, the error calculation module 120 judges the recommended error value
Figure 02_image007
Whether to converge. When judging the recommended error value
Figure 02_image007
When converging, the error calculation module 120 decides to recommend the optical parameter set
Figure 02_image001
(For example, the first recommended optical parameter set in Fig. 3B
Figure 02_image009
) is the optimal optical parameter set of the automatic optical inspection system 100; when the error calculation module 120 judges the recommended error value
Figure 02_image007
When not converged, the optical parameter recommendation module 130 is configured to perform
Figure 02_image007
and the first recommended optical parameter set
Figure 02_image001
performing an operation to obtain another set of recommended optical parameters
Figure 02_image010
(For example, the second recommended optical parameter set in Fig. 3E
Figure 02_image012
). In this way, the automatic optical inspection system 100 can automatically obtain the optimal optical parameter set, which improves the conventional manual dimming problem.

本文的「光學參數組」例如是包含至少一光學參數類型,如

Figure 02_image014
等P種參數類型,其中
Figure 02_image016
可分別表示不同的光學參數類型,如光源模組160的光源參數及/或攝像模組140的攝像參數,其中光源參數例如是照射光的色溫、亮度、發光角、發光時間及/或照射角度等的光學參數類型,而攝像參數例如是攝像模組的曝光時間等的光學參數類型。P表示光學參數類型的數量,本揭露實施例不限定P的最大值。在本實施例中,光學參數類型係以二個為例說明,如
Figure 02_image017
Figure 02_image019
,例如是分別為攝像模組的曝光時間及光源模組的發光時間。光源模組160之照明模式可由自動設定模組150依據推薦光學參數組
Figure 02_image001
的相關光學參數類型執行設定,而攝像模組140之攝像模式可由自動設定模組150依據推薦光學參數組
Figure 02_image001
的相關光學參數類型執行設定。光源模組160提供照明光給待測物(未繪示),而攝像模組140對待測物攝像,以取得待測物之推薦待測物影像。前述「待測物」例如是任何可透過AOI系統進行線上檢測(如,缺陷檢測、產品種類檢測等)的產品,如半導體晶片、電路板等,然本揭露不限制待測物的種類。 The "optical parameter set" herein, for example, includes at least one optical parameter type, such as
Figure 02_image014
and other P parameter types, where
Figure 02_image016
Different types of optical parameters can be represented, such as the light source parameters of the light source module 160 and/or the imaging parameters of the camera module 140, where the light source parameters are, for example, the color temperature, brightness, luminous angle, luminous time and/or irradiating angle of the irradiated light and other types of optical parameters, and the imaging parameters are, for example, optical parameter types such as the exposure time of the camera module. P represents the number of optical parameter types, and the embodiment of the present disclosure does not limit the maximum value of P. In this embodiment, two types of optical parameters are used as examples to illustrate, such as
Figure 02_image017
and
Figure 02_image019
, for example, are respectively the exposure time of the camera module and the light emitting time of the light source module. The lighting mode of the light source module 160 can be set by the automatic setting module 150 according to the recommended optical parameter set
Figure 02_image001
The relevant optical parameter types are set, and the camera mode of the camera module 140 can be set by the automatic setting module 150 according to the recommended optical parameter set
Figure 02_image001
The related optical parameter type is set. The light source module 160 provides illumination light to the object under test (not shown), and the camera module 140 takes an image of the object under test to obtain a recommended image of the object under test. The aforementioned "object under test" is, for example, any product that can be inspected online (eg, defect inspection, product type inspection, etc.) through the AOI system, such as semiconductor chips, circuit boards, etc., but this disclosure does not limit the type of object under test.

以下係以第2A及2B圖之流程圖進一步說明本揭露實施例之自動光學檢測系統100的光學參數自動設定方法。The following is a further description of the automatic optical parameter setting method of the automatic optical inspection system 100 of the embodiment of the present disclosure by using the flow charts of FIGS. 2A and 2B .

在步驟S110中,取得優化誤差函數EF。本實施例的優化誤差函數EF是由優化模組110運算取得(如第1圖所示)。然而在其他實施方式中,優化誤差函數EF可在線下或離線執行運算來事先取得,因此自動光學檢測系統可不包含優化模組。In step S110, an optimized error function EF is obtained. The optimization error function EF of this embodiment is obtained through the operation of the optimization module 110 (as shown in FIG. 1 ). However, in other implementations, the optimization error function EF can be obtained in advance by performing calculations offline or offline, so the automatic optical inspection system may not include an optimization module.

在步驟S110中,優化模組110對訓練標準圖F1(繪示於第1圖)、至少一專家標準影像M11 S(繪示於第1圖)及至少一非專家標準影像M12 t(繪示於第1圖)執行運算,而取得優化誤差函數EF,其中S為等於或大於1的正整數,S之最大值視專家標準影像M11 S的總數而定,本揭露實施例不加以限定,而t為等於或大於1的正整數,t之最大值視非專家標準影像M11 t的總數而定,本揭露實施例不加以限定。訓練標準圖F1的數量例如是1個,專家標準影像M11 S的數量可以是至少一個。每個專家可從數張影像中,挑選出一張與訓練標準圖F1 最接近的影像(例如可以是色溫、亮度等各種色彩資訊方面最接近者),並將各個專家所選出的影像定義為「專家標準影像」,其餘未被選取得的影像定義為「非專家標準影像」。本揭露實施例不限定專家標準影像M11 S的數量以及非專家標準影像M12 t的數量。如第1圖所示,訓練標準圖F1、專家標準影像M11 S及非專家標準影像M12 t可儲存於第一資料庫D1,而待測物標準圖F2可儲存於第二資料庫D2。第一資料庫D1與第二資料庫D2至少一者可隸屬於自動光學檢測系統100,然本揭露實施例不受此限。 In step S110, the optimization module 110 performs training standard image F1 (shown in Figure 1), at least one expert standard image M11 S (shown in Figure 1), and at least one non-expert standard image M12 t (shown in Figure 1 Perform calculations in Fig. 1) to obtain an optimized error function EF, wherein S is a positive integer equal to or greater than 1, and the maximum value of S depends on the total number of expert standard images M11 S , which is not limited by the embodiments of this disclosure, and t is a positive integer equal to or greater than 1, and the maximum value of t depends on the total number of non-expert standard images M11 t , which is not limited in the embodiments of the present disclosure. The number of the training standard image F1 is, for example, one, and the number of the expert standard image M11S may be at least one. Each expert can select an image that is the closest to the training standard map F1 from several images (for example, it can be the closest in various color information such as color temperature, brightness, etc.), and the images selected by each expert are defined as "Expert standard images", and the rest of the unselected images are defined as "non-expert standard images". The embodiment of the present disclosure does not limit the number of expert standard images M11 S and the number of non-expert standard images M12 t . As shown in FIG. 1 , the training standard image F1 , the expert standard image M11 S and the non-expert standard image M12 t can be stored in the first database D1 , and the standard image F2 of the DUT can be stored in the second database D2 . At least one of the first database D1 and the second database D2 may belong to the automatic optical inspection system 100 , but the embodiment of the present disclosure is not limited thereto.

在一實施例中,優化模組110以最小化訓練標準圖F1與專家標準影像M11 S之間的誤差以及非最小化訓練標準圖F1與非專家標準影像M12 t之間的誤差為目標,取得優化誤差函數EF的優化權重

Figure 02_image021
。例如,優化模組110以訓練標準圖F1與專家標準影像M11 S之間的目標誤差TE1設為0(如下式 (1))以及訓練標準圖F1與非專家標準影像M12 t之間的目標誤差TE2設為1(如下式(2))為目標,取得優化誤差函數EF的優化權重
Figure 02_image021
(如下式(3))。式(1)及(2)的誤差運算函數f可採用各種誤差分析技術或數學方法對誤差運算函數f內的向量進行誤差分析,例如運算加權歐氏距離或馬氏距離,本揭露實施例在此不加以限制。 In one embodiment, the optimization module 110 aims at minimizing the error between the training standard image F1 and the expert standard image M11 s and non-minimizing the error between the training standard image F1 and the non-expert standard image M12 t , and obtains Optimizing the optimization weights of the error function EF
Figure 02_image021
. For example, the optimization module 110 sets the target error TE1 between the training standard image F1 and the expert standard image M11 S to 0 (as shown in the following formula (1)) and the target error between the training standard image F1 and the non-expert standard image M12 t TE2 is set to 1 (as shown in equation (2)) as the target to obtain the optimization weight of the optimization error function EF
Figure 02_image021
(as shown in formula (3)). The error calculation function f of formulas (1) and (2) can use various error analysis techniques or mathematical methods to perform error analysis on the vectors in the error calculation function f, such as calculating weighted Euclidean distance or Mahalanobis distance. This is not limited.

Figure 02_image023
Figure 02_image023

Figure 02_image025
Figure 02_image025

Figure 02_image027
Figure 02_image027

Figure 02_image029
Figure 02_image029

在式(1),向量

Figure 02_image031
例如是訓練標準圖F1的像素層級的特徵向量,向量
Figure 02_image033
例如是第S張專家標準影像M11 S的像素層級的特徵向量。在式(2),向量
Figure 02_image035
例如是第t張非專家標準影像M12 t的像素層級的特徵向量。在式(3),e為總誤差值,其運算目標是在所有專家標準影像之誤差值與所有非專家標準影像之誤差值之加總為0或接近0下取得優化權重
Figure 02_image021
。如式(4)所示,優化模組110可採用argmin的數學方式,對優化權重
Figure 02_image021
進行優化處理。例如,優化模組110可決定最小的總誤差值e所對應的優化權重
Figure 02_image021
為最佳優化權重
Figure 02_image037
。最佳優化權重
Figure 02_image037
例如是包含至少一常數,亦可以是包含多個常數的矩陣。本實施例中,向量
Figure 02_image031
、向量
Figure 02_image033
、向量
Figure 02_image035
為像素層級的特徵向量,例如表示RGB或HSV(色相、飽和度、明度),然而在其他實施方式中,向量
Figure 02_image031
、向量
Figure 02_image033
、向量
Figure 02_image035
也可以是圖像層級的特徵向量,例如深度學習模型抽取出來的特徵向量。 In formula (1), the vector
Figure 02_image031
For example, it is the feature vector of the pixel level of the training standard image F1, the vector
Figure 02_image033
For example, it is the pixel-level feature vector of the S-th expert standard image M11 S. In formula (2), the vector
Figure 02_image035
For example, it is the pixel-level feature vector of the t-th non-expert standard image M12 t . In formula (3), e is the total error value, and its calculation goal is to obtain the optimal weight when the sum of the error values of all expert standard images and the error values of all non-expert standard images is 0 or close to 0
Figure 02_image021
. As shown in formula (4), the optimization module 110 can use the mathematical method of argmin to optimize the weight
Figure 02_image021
for optimization. For example, the optimization module 110 can determine the optimization weight corresponding to the minimum total error value e
Figure 02_image021
Optimize weights for best
Figure 02_image037
. optimal optimization weight
Figure 02_image037
For example, it may contain at least one constant, or may be a matrix containing multiple constants. In this example, the vector
Figure 02_image031
,vector
Figure 02_image033
,vector
Figure 02_image035
is a feature vector at the pixel level, for example representing RGB or HSV (hue, saturation, lightness), however in other implementations, the vector
Figure 02_image031
,vector
Figure 02_image033
,vector
Figure 02_image035
It can also be an image-level feature vector, such as a feature vector extracted by a deep learning model.

在取得最佳優化權重

Figure 02_image037
後,即可依據最佳優化權重
Figure 02_image037
來建構優化誤差函數EF,如下式(5)。在式(5)中,向量
Figure 02_image039
為標準圖例如待測物標準圖)的像素層級的特徵向量,向量
Figure 02_image041
為待測物影像例如初始待測物影像及/或推薦待測物影像)的像素層級的特徵向量。本實施例中,向量
Figure 02_image039
及向量
Figure 02_image041
為像素層級的特徵向量,例如表示RGB或HSV(色相、飽和度、明度),然而在其他實施方式中,向量
Figure 02_image039
及向量
Figure 02_image041
也可以是圖像層級的特徵向量,例如深度學習模型抽取出來的特徵向量。 In obtaining the optimal optimization weight
Figure 02_image037
After that, the weights can be optimized according to the best
Figure 02_image037
To construct the optimization error function EF, the following formula (5). In formula (5), the vector
Figure 02_image039
is the pixel-level eigenvector of the standard image (such as the standard image of the object to be tested), and the vector
Figure 02_image041
is a pixel-level feature vector of the UUT image (such as the initial UUT image and/or the recommended UUT image). In this example, the vector
Figure 02_image039
and vector
Figure 02_image041
is a feature vector at the pixel level, for example representing RGB or HSV (hue, saturation, lightness), however in other implementations, the vector
Figure 02_image039
and vector
Figure 02_image041
It can also be an image-level feature vector, such as a feature vector extracted by a deep learning model.

在將向量

Figure 02_image043
及向量
Figure 02_image044
代入式(5)後,依據優化誤差函數EF運算向量
Figure 02_image045
及向量
Figure 02_image046
間之誤差值(例如初始誤差值 及/或推薦誤差值),其中誤差值表示待測物影像與標準圖F2的差異,誤差值愈小,表示向量
Figure 02_image043
及向量
Figure 02_image044
之間的差異愈小(例如圖像在色彩資訊上愈接近);反之則愈大。 in the vector
Figure 02_image043
and vector
Figure 02_image044
After substituting into formula (5), the calculation vector is based on the optimization error function EF
Figure 02_image045
and vector
Figure 02_image046
The error value between (such as the initial error value and/or recommended error value), where the error value represents the difference between the image of the object under test and the standard map F2, the smaller the error value, the vector
Figure 02_image043
and vector
Figure 02_image044
The smaller the difference between (for example, the closer the image is in color information); otherwise, the larger.

Figure 02_image047
Figure 02_image047

在取得優化誤差函數EF後,可執行步驟S120~S190來決定光學參數組以自動設定光學參數。為了清楚說明,在本實施例之光學參數自動方法的步驟S120~S190是用以決定光學參數組,光學參數組以包含二光學參數類型為例說明,如

Figure 02_image049
。在一實施例中,決定光學參數組的方法(如步驟S120~S190)是在
Figure 02_image051
為固定值的情況下決定
Figure 02_image052
(如,第3A(a)~3H(b)圖之座標橫軸)。在另一實施例中,決定光學參數組的方法(如步驟S120~S190)係在
Figure 02_image051
Figure 02_image052
皆為可變的情況決定
Figure 02_image051
Figure 02_image052
。在其它實施例中,光學參數組可包含P個光學參數類型
Figure 02_image016
,決定光學參數組的方法係在
Figure 02_image016
之至少一者的值變動下進行。 After obtaining the optimized error function EF, steps S120˜S190 may be performed to determine the optical parameter set to automatically set the optical parameters. For clarity, the steps S120-S190 of the optical parameter automatic method in this embodiment are used to determine the optical parameter set, and the optical parameter set includes two optical parameter types as an example for illustration, such as
Figure 02_image049
. In one embodiment, the method for determining the optical parameter set (such as steps S120~S190) is in
Figure 02_image051
Determined in the case of a fixed value
Figure 02_image052
(For example, the horizontal axis of the coordinates in Figures 3A(a)~3H(b)). In another embodiment, the method for determining the optical parameter set (such as steps S120-S190) is in
Figure 02_image051
and
Figure 02_image052
are determined by variable circumstances
Figure 02_image051
and
Figure 02_image052
. In other embodiments, the optical parameter set may contain P optical parameter types
Figure 02_image016
, the method for determining the optical parameter set is in
Figure 02_image016
Under the change of the value of at least one of them.

在步驟S120中,自動光學檢測系統100可依據優化誤差函數EF,對待測物標準圖F2與M個初始待測物影像

Figure 02_image056
進行運算,而取得第1個推薦光學參數組。符號MT m的下標m表示第m個初始待測物影像,其中m為介於1~M的正整數,M為初始待測物影像的總數量,本揭露實施例不限定M的最大值。 In step S120, the automatic optical inspection system 100 can, according to the optimized error function EF, the standard image F2 of the object to be tested and the M initial images of the object to be tested
Figure 02_image056
Perform calculations to obtain the first recommended optical parameter set. The subscript m of the symbol MT m represents the mth initial UUT image, where m is a positive integer ranging from 1 to M, and M is the total number of initial UUT images, and the embodiment of this disclosure does not limit the maximum value of M .

步驟S120可包含步驟S121~S123。Step S120 may include steps S121-S123.

在步驟S121中,攝像模組140在自動光學檢測系統100被用M個初始光學參數組

Figure 02_image058
設定的情況下,分別取得M個初始待測物影像
Figure 02_image056
,亦在自動光學檢測系統100被用初始光學參數組PT 1設定的情況下,攝像模組140對待測物執行取像以取得初始待測物影像MT 1;接著,在自動光學檢測系統100被用初始光學參數組PT 2設定的情況下,攝像模組140取得初始待測物影像MT 2,如此自動光學檢測系統100是被用M個初始光學參數組
Figure 02_image058
逐次設定,並攝像模組140逐次執行取像而取得M個初始待測物影像MT m。初始光學參數組
Figure 02_image058
包含的光學參數類型本揭露實施例不加以限定。如第3A(a)圖所示,本揭露實施例的初始光學參數組
Figure 02_image058
以三個為例(即M=3的情況)說明,分別是初始光學參數組
Figure 02_image061
Figure 02_image063
Figure 02_image065
。初始光學參數組
Figure 02_image061
Figure 02_image063
Figure 02_image065
可分別表示成
Figure 02_image070
Figure 02_image072
Figure 02_image074
,其餘光學參數組具有類似表達形式,於此不再贅述。 In step S121, the camera module 140 is used in the automatic optical inspection system 100 with M initial optical parameter sets
Figure 02_image058
In the case of setting, obtain M initial images of the object under test respectively
Figure 02_image056
, also in the case that the automatic optical inspection system 100 is set with the initial optical parameter set PT1, the camera module 140 performs imaging of the object to be tested to obtain the initial image MT1 of the object to be tested; then, when the automatic optical inspection system 100 is set In the case of setting with the initial optical parameter set PT 2 , the camera module 140 obtains the initial image MT 2 of the object to be measured, so that the automatic optical inspection system 100 uses M initial optical parameter sets
Figure 02_image058
It is set successively, and the camera module 140 performs image capturing successively to obtain M initial images MT m of the object under test. initial optical parameter set
Figure 02_image058
The types of optical parameters included are not limited in the embodiments of the present disclosure. As shown in Figure 3A(a), the initial optical parameter set of the disclosed embodiment
Figure 02_image058
Take three examples (that is, the case of M=3), which are the initial optical parameter groups
Figure 02_image061
,
Figure 02_image063
and
Figure 02_image065
. initial optical parameter set
Figure 02_image061
,
Figure 02_image063
and
Figure 02_image065
can be expressed as
Figure 02_image070
,
Figure 02_image072
and
Figure 02_image074
, and the rest of the optical parameter groups have similar expressions, which will not be repeated here.

在步驟S122中,誤差運算模組120依據優化誤差函數EF,對待測物標準圖F2與M個初始待測物影像

Figure 02_image056
執行運算,而分別取得M個初始待測物影像
Figure 02_image056
分別與待測物標準圖F2之間的M個初始誤差值
Figure 02_image076
,其中m為介於1~M的正整數。如第3A(a)圖所示,本揭露實施例的初始誤差值
Figure 02_image076
以三個(即,M=3的情況)為例說明,分別是初始誤差值
Figure 02_image078
Figure 02_image080
Figure 02_image082
。 In step S122, the error calculation module 120 calculates the standard image F2 of the object under test and the M initial images of the object under test according to the optimized error function EF
Figure 02_image056
Execute calculations to obtain M initial UUT images respectively
Figure 02_image056
M initial error values between the standard chart F2 of the test object
Figure 02_image076
, where m is a positive integer ranging from 1 to M. As shown in Figure 3A(a), the initial error value of the disclosed embodiment
Figure 02_image076
Take three (that is, the case of M=3) as an example, which are the initial error values
Figure 02_image078
,
Figure 02_image080
and
Figure 02_image082
.

第3A(a)圖之曲線C1表示第0次疊代中光學參數組與誤差值的對應關係,第3A(b)圖的各點表示不同疊代次數與第0次疊代結果之曲線C1中的數個誤差值中最小者(稱「最小誤差值」)的對應關係,第3B~3H(b)圖具有相似的定義,於此不再說明。光學參數自動設定方法在第3A(b)圖所示的階段中,推薦光學參數組

Figure 02_image084
尚未被引進運算(尚未執行步驟S140~S180的疊代流程),因此最小誤差值對應的疊代次為0。 Curve C1 in Figure 3A(a) represents the corresponding relationship between the optical parameter set and the error value in the 0th iteration, and each point in Figure 3A(b) represents the curve C1 between different iterations and the result of the 0th iteration Figures 3B~3H(b) have similar definitions for the smallest of several error values in (called "minimum error value"), and will not be described here. Optical parameter automatic setting method In the stage shown in Figure 3A(b), the optical parameter set is recommended
Figure 02_image084
The operation has not been introduced (the iterative process of steps S140-S180 has not been executed), so the iteration number corresponding to the minimum error value is 0.

在步驟S123中,光學參數推薦模組130 依據M個初始誤差值

Figure 02_image076
及M個初始光學參數組
Figure 02_image058
執行運算,而取得第1個推薦光學參數組
Figure 02_image086
。 In step S123, the optical parameter recommendation module 130 based on M initial error values
Figure 02_image076
and M initial optical parameter sets
Figure 02_image058
Execute the operation to obtain the first recommended optical parameter set
Figure 02_image086
.

光學參數自動設定方法中,光學參數推薦模組130可利用多種實施方式來決定推薦光學參數組,例如,光學參數推薦模組130可依據式(6)~(7),取得推薦光學參數組。然,只要能取得推薦光學參數組即可,本揭露實施例之推薦光學參數組的取得方式不限於使用式(6)~(7)。In the optical parameter automatic setting method, the optical parameter recommendation module 130 can use various implementation methods to determine the recommended optical parameter set. For example, the optical parameter recommendation module 130 can obtain the recommended optical parameter set according to formulas (6)-(7). However, as long as the recommended optical parameter set can be obtained, the method of obtaining the recommended optical parameter set in the embodiment of the present disclosure is not limited to using formulas (6)-(7).

Figure 02_image087
Figure 02_image087

Figure 02_image089
Figure 02_image089

在式(6)、(7)中,

Figure 02_image091
為候選光學參數組,其中j是介於1~J的正整數,用來表示
Figure 02_image091
是第j個候選光學參數組,並且J為候選光學參數組的數量。
Figure 02_image091
包含數個光學參數類型,可進一步以
Figure 02_image093
表示。候選光學參數組
Figure 02_image091
可以是所有光學參數組中尚未用以執行運算取得誤差值者。本揭露實施例不限定J的最大值,其可視光學參數類型的數目及/或其數值範圍而定。 In formula (6), (7),
Figure 02_image091
is a candidate optical parameter group, where j is a positive integer ranging from 1 to J, used to represent
Figure 02_image091
is the jth candidate optical parameter set, and J is the number of candidate optical parameter sets.
Figure 02_image091
Contains several optical parameter types, which can be further
Figure 02_image093
express. Candidate optical parameter set
Figure 02_image091
It may be those of all the optical parameter sets that have not been used to perform calculations to obtain error values. The embodiments of the present disclosure do not limit the maximum value of J, which may be determined by the number of optical parameter types and/or its value range.

在式(6)、(7)中,

Figure 02_image095
為已選光學參數組,其中i為介於1~Q的正整數,用來表示
Figure 02_image095
為第i個已選光學參數組,其中Q為已選光學參數組的數量。
Figure 02_image095
包含數個光學參數類型,可進一步以
Figure 02_image097
表示。已選光學參數組
Figure 02_image095
包含已求得誤差值的初始光學參數組
Figure 02_image058
及/或推薦光學參數組
Figure 02_image001
。例如,以第3B圖(進入第1次疊代)來說,已選光學參數組
Figure 02_image095
包含第3A(a)圖之初始光學參數組
Figure 02_image061
Figure 02_image063
Figure 02_image065
(以實心圓點表示)。以第3D圖(進入第2次疊代)來說,已選光學參數組
Figure 02_image095
包含第3C(a)圖之初始光學參數組
Figure 02_image061
Figure 02_image063
Figure 02_image065
及推薦光學參數組
Figure 02_image086
(以實心圓點表示)。在式(6)中,
Figure 02_image099
表示第k個光學參數類型
Figure 02_image101
的權重,其為常數,不同的數個光學參數類型
Figure 02_image103
的數個
Figure 02_image099
的值可相異或相同。此外,前述k為介於1~Q的正整數,其中Q為已選光學參數組
Figure 02_image095
的數量。推薦光學參數組的數量隨疊代次而增加,亦即Q的值隨之增加,Q的最大值視疊代次數而定,本揭露實施例不限定Q的最大值。 In formula (6), (7),
Figure 02_image095
is the selected optical parameter group, where i is a positive integer ranging from 1 to Q, used to represent
Figure 02_image095
is the i-th selected optical parameter set, where Q is the number of selected optical parameter sets.
Figure 02_image095
Contains several optical parameter types, which can be further
Figure 02_image097
express. Selected optical parameter set
Figure 02_image095
initial set of optical parameters containing the calculated error values
Figure 02_image058
and/or recommended optical parameter sets
Figure 02_image001
. For example, in Figure 3B (entering iteration 1), the selected optical parameter set
Figure 02_image095
Including the initial optical parameter set of Fig. 3A(a)
Figure 02_image061
,
Figure 02_image063
and
Figure 02_image065
(indicated by solid dots). Taking the 3D picture (entering the second iteration), the selected optical parameter group
Figure 02_image095
Including the initial optical parameter set of Fig. 3C(a)
Figure 02_image061
,
Figure 02_image063
and
Figure 02_image065
and recommended optical parameter set
Figure 02_image086
(indicated by solid dots). In formula (6),
Figure 02_image099
Indicates the kth optical parameter type
Figure 02_image101
The weight of , which is a constant, differs in several optical parameter types
Figure 02_image103
several of
Figure 02_image099
The values of can be different or the same. In addition, the aforementioned k is a positive integer ranging from 1 to Q, where Q is the selected optical parameter set
Figure 02_image095
quantity. The number of recommended optical parameter sets increases with the number of iterations, that is, the value of Q increases accordingly, and the maximum value of Q depends on the number of iterations. The embodiments of the present disclosure do not limit the maximum value of Q.

在式(6)中,

Figure 02_image104
表示第j個候選光學參數組
Figure 02_image106
相較於第i個已選光學參數組
Figure 02_image095
的差距。在指數函數exp的運算中,當第j個候選光學參數組
Figure 02_image107
與第i個已選光學參數組
Figure 02_image095
之間的差距愈大時,
Figure 02_image104
的數值愈小;反之則愈大。 In formula (6),
Figure 02_image104
Indicates the jth candidate optical parameter group
Figure 02_image106
Compared to the ith selected optical parameter set
Figure 02_image095
difference. In the operation of the exponential function exp, when the jth candidate optical parameter group
Figure 02_image107
and the ith selected optical parameter group
Figure 02_image095
When the gap between
Figure 02_image104
The smaller the value is, the larger it is vice versa.

在式(7)中,

Figure 02_image108
表示第j個候選光學參數組
Figure 02_image110
相較於所有已選光學參數組
Figure 02_image095
的第j個期望值(或機率),期望值
Figure 02_image108
的值例如是介於0~1之間。期望值分析函數E用以取得第j個候選光學參數組
Figure 02_image110
相較於所有已選光學參數組
Figure 02_image095
的期望值,其可採用各種統計或機率分析技術。Q表示所有已選光學參數組
Figure 02_image095
的數目,例如,以第3B圖(執行第1次疊代)來說,已選光學參數組
Figure 02_image095
係3個(如,實心圓點的數量),即Q等於3;以第3D圖(進入第2次疊代)來說,已選光學參數組
Figure 02_image111
係4個(如,實心圓點的數量),即Q等於4。 In formula (7),
Figure 02_image108
Indicates the jth candidate optical parameter group
Figure 02_image110
Compared to all selected optical parameter sets
Figure 02_image095
The jth expected value (or probability) of , expected value
Figure 02_image108
The value of is, for example, between 0 and 1. The expected value analysis function E is used to obtain the jth candidate optical parameter group
Figure 02_image110
Compared to all selected optical parameter sets
Figure 02_image095
The expected value of , which can employ various statistical or probabilistic analysis techniques. Q indicates all selected optical parameter groups
Figure 02_image095
The number of , for example, in Figure 3B (performing iteration 1), the selected optical parameter set
Figure 02_image095
There are 3 (for example, the number of solid dots), that is, Q is equal to 3; taking the 3D diagram (entering the second iteration), the selected optical parameter group
Figure 02_image111
Be 4 (eg, the number of solid dots), that is, Q is equal to 4.

在式(7)中,f min表示所有已選光學參數組

Figure 02_image095
對應的所有誤差值中的最小者,例如,第3B圖(執行第1次疊代)中,f min為當前疊代次最新的初始誤差值
Figure 02_image113
(如第3A(b)圖所示);在第3D圖(執行第2次疊代)中,f min為當前疊代次最新的最小誤差值,即第3C(b)圖最右邊的初始誤差值
Figure 02_image115
(即,
Figure 02_image115
為初始誤差值
Figure 02_image116
~
Figure 02_image118
中最小者);在第3F圖(執行第3次疊代)中,f min為當前疊代次最新的最小誤差值,即第3E(b)圖最右邊的初始誤差值
Figure 02_image115
(即,初始誤差值
Figure 02_image120
~
Figure 02_image118
與推薦誤差值
Figure 02_image121
中最小者)。 In formula (7), f min represents all selected optical parameter groups
Figure 02_image095
The minimum of all corresponding error values, for example, in Figure 3B (executing the first iteration), f min is the latest initial error value of the current iteration
Figure 02_image113
(as shown in Figure 3A(b)); in Figure 3D (executing the second iteration), f min is the latest minimum error value of the current iteration, that is, the initial value at the far right of Figure 3C(b) difference
Figure 02_image115
(which is,
Figure 02_image115
is the initial error value
Figure 02_image116
~
Figure 02_image118
the smallest among them); in Figure 3F (executing the third iteration), f min is the latest minimum error value of the current iteration, that is, the initial error value at the far right of Figure 3E(b)
Figure 02_image115
(i.e., the initial error value
Figure 02_image120
~
Figure 02_image118
and recommended error value
Figure 02_image121
the smallest).

在式(7)中,

Figure 02_image123
表示待測物標準圖F2的像素層級的特徵向量V2與第i張已選影像的像素層級的特徵向量
Figure 02_image125
,其中已選影像是指已被用以執行運算取得誤差值的影像,例如在第3B圖(執行第1次疊代)中,已選影像即是初始待測物影像
Figure 02_image127
(攝像模組140在基於第3A(a)圖之第1個初始光學參數組
Figure 02_image061
之設定下取得)、初始待測物影像
Figure 02_image129
(攝像模組140在基於第3A(a)圖之第2個初始光學參數組
Figure 02_image063
之設定下取得)及初始待測物影像
Figure 02_image131
(攝像模組140在基於第3A(a)圖之第3個初始光學參數組
Figure 02_image065
之設定下取得);在第3D圖中(執行第2次疊代)來說,已選影像即是初始待測物影像
Figure 02_image127
Figure 02_image129
Figure 02_image131
,以及第一個推薦待測物影像
Figure 02_image133
(攝像模組140在基於第3C(a)圖之第一個推薦光學參數組
Figure 02_image086
之設定下取得)。在本實施例中,特徵向量V2及特徵向量
Figure 02_image125
為像素層級的特徵向量,例如表示RGB或HSV(色相、飽和度、明度),然而在其他實施方式中,向量
Figure 02_image039
及向量
Figure 02_image125
也可以是圖像層級的特徵向量,例如深度學習模型抽取出來的特徵向量。 In formula (7),
Figure 02_image123
Represents the pixel-level feature vector V2 of the standard image F2 of the object to be tested and the pixel-level feature vector of the i-th selected image
Figure 02_image125
, where the selected image refers to the image that has been used to perform calculations to obtain the error value. For example, in Figure 3B (executing the first iteration), the selected image is the initial UUT image
Figure 02_image127
(The camera module 140 is based on the first initial optical parameter set in Fig. 3A(a)
Figure 02_image061
obtained under the setting), the initial image of the object under test
Figure 02_image129
(the camera module 140 is based on the second initial optical parameter set in Fig. 3A(a)
Figure 02_image063
Obtained under the setting) and the initial image of the object under test
Figure 02_image131
(camera module 140 is based on the 3rd initial optical parameter set of Fig. 3A(a)
Figure 02_image065
obtained under the setting); in the 3D diagram (executing the second iteration), the selected image is the initial UUT image
Figure 02_image127
,
Figure 02_image129
and
Figure 02_image131
, and the first recommended UUT image
Figure 02_image133
(the camera module 140 is based on the first recommended optical parameter set in Fig. 3C(a)
Figure 02_image086
obtained under the settings). In this embodiment, the eigenvector V2 and the eigenvector
Figure 02_image125
is a feature vector at the pixel level, for example representing RGB or HSV (hue, saturation, lightness), however in other implementations, the vector
Figure 02_image039
and vector
Figure 02_image125
It can also be an image-level feature vector, such as a feature vector extracted by a deep learning model.

如式(6)及(7)所示,當第j個候選光學參數組

Figure 02_image106
相較於第i個已選光學參數組
Figure 02_image135
的差距愈大時(即,
Figure 02_image104
的值愈小),期望值
Figure 02_image136
愈大,表示第j個候選光學參數組
Figure 02_image106
有愈大的機率能產生比f min更小的誤差值。每一組候選光學參數組
Figure 02_image106
可取得一個期望值
Figure 02_image138
。光學參數推薦模組130可使用J個不同數值的候選光學參數組
Figure 02_image140
,取得對應之J個期望值
Figure 02_image138
,並決定J個期望值
Figure 02_image141
中最大者所對應的第j個候選光學參數組
Figure 02_image106
為推薦光學參數組
Figure 02_image142
。 As shown in formulas (6) and (7), when the jth candidate optical parameter group
Figure 02_image106
Compared to the ith selected optical parameter set
Figure 02_image135
When the difference is larger (ie,
Figure 02_image104
The smaller the value), the expected value
Figure 02_image136
The larger the value, the jth candidate optical parameter group
Figure 02_image106
The greater the probability, the smaller the error value than f min will be. Each group of candidate optical parameter groups
Figure 02_image106
an expected value
Figure 02_image138
. The optical parameter recommendation module 130 can use J candidate optical parameter groups with different values
Figure 02_image140
, get the corresponding J expected values
Figure 02_image138
, and determine J expected values
Figure 02_image141
The jth candidate optical parameter group corresponding to the largest among
Figure 02_image106
For the recommended optical parameter set
Figure 02_image142
.

參考第3B~3C(b)圖,基於式(6)~(7)取得第1個推薦光學參數組

Figure 02_image086
的流程舉例說明如下。光學參數推薦模組130先取得數個候選光學參數組
Figure 02_image144
之分別相較於所有已選光學參數組
Figure 02_image095
的數個期望值
Figure 02_image146
,然後決定(挑選)此些期望值
Figure 02_image146
中之最大者之候選光學參數組
Figure 02_image144
為第1個推薦光學參數組。取得第1個候選光學參數組
Figure 02_image147
之期望值
Figure 02_image149
的過程舉例說明如下。 Referring to Figures 3B~3C(b), the first recommended optical parameter set is obtained based on formulas (6)~(7)
Figure 02_image086
An example of the process is as follows. The optical parameter recommendation module 130 first obtains several candidate optical parameter groups
Figure 02_image144
compared to all selected optical parameter sets
Figure 02_image095
several expected values of
Figure 02_image146
, and then decide (pick) these expected values
Figure 02_image146
The largest set of candidate optical parameters
Figure 02_image144
Recommended optical parameter set for the 1st. Get the first candidate optical parameter set
Figure 02_image147
expected value
Figure 02_image149
An example of the process is as follows.

如第3A(a)圖所示,在已選光學參數組

Figure 02_image095
的數量為3個(Q=3),且初始光學參數組
Figure 02_image151
包含
Figure 02_image152
Figure 02_image153
Figure 02_image154
的情況下,執行式(6)之運算。此時,在i等於1且j等於1的情況下,光學參數推薦模組130在執行式(6)之運算,取得第1個已選光學參數組
Figure 02_image155
(如,初始光學參數組
Figure 02_image152
)及第1個候選光學參數組
Figure 02_image157
Figure 02_image158
的值(計算式:
Figure 02_image160
);並且運算取得待測物標準圖F2之像素層級之特徵向量V2與第1張已選影像(如,第1張初始待測物影像
Figure 02_image162
)的像素層級的特徵向量
Figure 02_image164
的初始誤差值
Figure 02_image166
(初始誤差值
Figure 02_image166
為式(7)之
Figure 02_image168
的結果值)。 As shown in Figure 3A(a), in the selected optical parameter set
Figure 02_image095
The number of is 3 (Q=3), and the initial optical parameter set
Figure 02_image151
Include
Figure 02_image152
,
Figure 02_image153
and
Figure 02_image154
In the case of , execute the operation of formula (6). At this time, when i is equal to 1 and j is equal to 1, the optical parameter recommendation module 130 performs the operation of formula (6) to obtain the first selected optical parameter set
Figure 02_image155
(e.g., the initial set of optical parameters
Figure 02_image152
) and the first candidate optical parameter set
Figure 02_image157
Of
Figure 02_image158
value (calculation formula:
Figure 02_image160
); and obtain the pixel-level feature vector V2 of the standard image F2 of the object to be measured and the first selected image (for example, the first initial image of the object to be measured
Figure 02_image162
) pixel-level feature vector
Figure 02_image164
The initial error value of
Figure 02_image166
(initial error value
Figure 02_image166
is the formula (7)
Figure 02_image168
result value).

光學參數推薦模組130在i等於2且j等於1的情況下,執行式(6)之運算,取得第2個已選光學參數組

Figure 02_image170
(如,初始光學參數組
Figure 02_image172
)及第1個候選光學參數組
Figure 02_image157
Figure 02_image173
的值(計算式:
Figure 02_image175
);並且運算取得待測物標準圖F2之特徵向量V2與第2張已選影像(如,第2張初始待測物影像
Figure 02_image177
)的特徵向量
Figure 02_image179
的初始誤差值
Figure 02_image113
(初始誤差值
Figure 02_image113
為式(7)之
Figure 02_image181
的結果值)。 The optical parameter recommendation module 130 executes the operation of formula (6) when i is equal to 2 and j is equal to 1, and obtains the second selected optical parameter set
Figure 02_image170
(e.g., the initial set of optical parameters
Figure 02_image172
) and the first candidate optical parameter set
Figure 02_image157
Of
Figure 02_image173
value (calculation formula:
Figure 02_image175
); and obtain the eigenvector V2 of the standard image F2 of the DUT and the second selected image (for example, the second initial DUT image
Figure 02_image177
) eigenvector
Figure 02_image179
The initial error value of
Figure 02_image113
(initial error value
Figure 02_image113
is the formula (7)
Figure 02_image181
result value).

光學參數推薦模組130在i等於3(Q之值)及j等於1的情況下,執行式(6)之運算,取得第3個已選光學參數組

Figure 02_image183
(如,初始光學參數組
Figure 02_image185
)及第1個候選光學參數組
Figure 02_image157
Figure 02_image186
的值(計算式:
Figure 02_image188
);並且執行運算取得待測物標準圖F2之特徵向量V2與第3(即,i=3)張已選影像(如,第3張初始待測物影像
Figure 02_image190
)的特徵向量
Figure 02_image192
的初始誤差值
Figure 02_image194
(初始誤差值
Figure 02_image194
為式(7)之
Figure 02_image196
的結果值)。 The optical parameter recommendation module 130 executes the operation of formula (6) when i is equal to 3 (the value of Q) and j is equal to 1, and obtains the third selected optical parameter group
Figure 02_image183
(e.g., the initial set of optical parameters
Figure 02_image185
) and the first candidate optical parameter set
Figure 02_image157
Of
Figure 02_image186
value (calculation formula:
Figure 02_image188
); and perform calculations to obtain the feature vector V2 of the standard image F2 of the object to be measured and the third (ie, i=3) selected image (for example, the third initial image of the object to be measured
Figure 02_image190
) eigenvector
Figure 02_image192
The initial error value of
Figure 02_image194
(initial error value
Figure 02_image194
is the formula (7)
Figure 02_image196
result value).

然後,光學參數推薦模組130可依據式(7),取得

Figure 02_image198
之商值、
Figure 02_image200
之商值及
Figure 02_image202
之商值,並在取得此些商值之加總(和值計算式:
Figure 02_image204
)後,運算式(7)之期望值分析函數E,取得(或計算出)第1個候選光學參數組
Figure 02_image206
之期望值
Figure 02_image207
。 Then, the optical parameter recommendation module 130 can obtain
Figure 02_image198
the business value of
Figure 02_image200
The commercial value of and
Figure 02_image202
quotient value, and obtain the sum of these quotient values (sum value calculation formula:
Figure 02_image204
), calculate the expected value analysis function E of formula (7) to obtain (or calculate) the first candidate optical parameter group
Figure 02_image206
expected value
Figure 02_image207
.

依據前述原則,光學參數推薦模組130可取得在J個不同的候選光學參數組

Figure 02_image106
的J個期望值
Figure 02_image209
。光學參數推薦模組130可從J個期望值
Figure 02_image209
中挑選出最大者,並決定該最大者為第1 (即,n=1)個推薦光學參數組
Figure 02_image211
,如第3B圖所示。 According to the aforementioned principles, the optical parameter recommendation module 130 can obtain J different candidate optical parameter groups
Figure 02_image106
J expected value of
Figure 02_image209
. The optical parameter recommendation module 130 can select from J expected values
Figure 02_image209
Select the largest one, and decide that the largest one is the first (that is, n=1) recommended optical parameter set
Figure 02_image211
, as shown in Figure 3B.

在取得第1個推薦光學參數組

Figure 02_image086
後,執行步驟S124,自動設定模組150依據第1個推薦光學參數組
Figure 02_image086
設定自動光學檢測系統100。自動設定模組150可依據推薦光學參數組
Figure 02_image212
設定光源模組160及攝像模組140。例如,以推薦光學參數
Figure 02_image213
Figure 02_image215
為曝光時間而
Figure 02_image217
為發光時間來說,自動設定模組150設定攝像模組140的曝光時間為推薦光學參數組
Figure 02_image219
Figure 02_image215
的數值,且設定光源模組160的發光時間為推薦光學參數組
Figure 02_image220
Figure 02_image221
的數值。自動設定模組150可自動依據推薦光學參數組設定光源模組160及/或攝像模組140,不需人工操作,如此可減少光學參數自動設定的所需時,間且增加光學參數自動設定的效率。在另一實施例中,若以人工設定,自動光學檢測系統100可選擇性省略自動設定模組150。 After obtaining the first recommended optical parameter set
Figure 02_image086
Afterwards, step S124 is executed, and the automatic setting module 150 is based on the first recommended optical parameter group
Figure 02_image086
The automated optical inspection system 100 is set up. The automatic setting module 150 can be based on the recommended optical parameter set
Figure 02_image212
The light source module 160 and the camera module 140 are set. For example, to recommend optical parameters
Figure 02_image213
Of
Figure 02_image215
for exposure time
Figure 02_image217
For the luminescence time, the automatic setting module 150 sets the exposure time of the camera module 140 as the recommended optical parameter set
Figure 02_image219
Of
Figure 02_image215
value, and set the light emitting time of the light source module 160 as the recommended optical parameter set
Figure 02_image220
Of
Figure 02_image221
value. The automatic setting module 150 can automatically set the light source module 160 and/or the camera module 140 according to the recommended optical parameter set without manual operation, which can reduce the time required for automatic setting of optical parameters and increase the time required for automatic setting of optical parameters. efficiency. In another embodiment, if manual setting is used, the automatic optical inspection system 100 can optionally omit the automatic setting module 150 .

執行步驟S130中,誤差運算模組120將n的初始值設為1。步驟S130與S124的兩者間的執行順序不限,可以任一先執行或同時執行。In step S130 , the error calculation module 120 sets the initial value of n to 1. The order of execution between steps S130 and S124 is not limited, and may be executed first or at the same time.

在步驟S140中,攝像模組140在在該自動光學檢測系統100是用第1個推薦光學參數組

Figure 02_image086
設定下對待測物執行取像,以取得第1個推薦待測物影像
Figure 02_image222
。 In step S140, the camera module 140 uses the first recommended optical parameter set in the automatic optical inspection system 100
Figure 02_image086
Under the setting, perform imaging of the object under test to obtain the first recommended image of the object under test
Figure 02_image222
.

在步驟S150中,誤差運算模組120依據式(5)之優化誤差函數EF,對待測物標準圖F2之像素層級之特徵向量V2與第1個推薦待測物影像

Figure 02_image223
之像素層級之特徵向量U2執行運算,而取得待測物標準圖F2與第1個推薦待測物影像
Figure 02_image223
之間的第1個推薦誤差值
Figure 02_image224
,如第3C(a)圖所示。 In step S150, the error calculation module 120 calculates the pixel-level feature vector V2 of the standard image F2 of the object to be tested and the first recommended image of the object to be measured according to the optimized error function EF of formula (5).
Figure 02_image223
The pixel-level eigenvector U2 performs calculations to obtain the standard image F2 of the UUT and the first recommended UUT image
Figure 02_image223
The first recommended error value between
Figure 02_image224
, as shown in Figure 3C(a).

如第3C(a)圖所示,光學參數推薦模組130可採用曲線擬合方法,取得初始誤差值ET 1、ET 2、ET 3與推薦誤差值

Figure 02_image225
的擬合曲線C2。 As shown in Figure 3C(a), the optical parameter recommendation module 130 can use a curve fitting method to obtain initial error values ET 1 , ET 2 , ET 3 and recommended error values
Figure 02_image225
The fitting curve C2.

在步驟S160中,誤差運算模組120判斷推薦誤差值是否收斂。當誤差運算模組120判斷推薦誤差值收斂時,流程進入步驟S190;當判斷推薦誤差值未收斂時,流程進入步驟S170。In step S160 , the error calculation module 120 determines whether the recommended error value converges. When the error calculation module 120 judges that the recommended error value is convergent, the process proceeds to step S190; when it judges that the recommended error value is not convergent, the process proceeds to step S170.

在一實施例之步驟S160中,當推薦誤差值等於或小於一收斂門檻值或在數次疊代後之數個推薦誤差值之任二者的差值於一收斂變動範圍之間變動,則誤差運算模組120判斷誤差值已收斂。前述「收斂門檻值」例如是介於0.1~0.3之間的任一數值(包含端點值),「數次疊代」例如是等於或大於3次,而「收斂變動範圍」例如是介於0.1~0.3之間的任一數值(包含端點值),然本揭露實施例不以此為限。In step S160 of an embodiment, when the recommended error value is equal to or smaller than a convergence threshold or the difference between any two of several recommended error values after several iterations varies within a convergence variation range, then The error calculation module 120 determines that the error value has converged. The aforementioned "convergence threshold value" is, for example, any value between 0.1~0.3 (including the endpoint value), the "number of iterations" is, for example, equal to or greater than 3 times, and the "convergence variation range" is, for example, between Any value between 0.1-0.3 (including the endpoint value), but the embodiments of the present disclosure are not limited thereto.

如第3C(b)圖所示,經由步驟S150運算取得的第1個推薦誤差值

Figure 02_image226
,其並未小於前次疊代取得之最小誤差值 (在此即為第0次疊代次取得之多個初始誤差值中最小者初始誤差值
Figure 02_image227
),因此在第1次疊代後,最小誤差值仍為初始誤差值
Figure 02_image227
。由於第1個推薦誤差值
Figure 02_image226
並未小於前次疊代的最小誤差值(即為第0次疊代之初始誤差值
Figure 02_image227
),誤差運算模組120據此判斷最小誤差值尚未收斂,流程進入步驟S170。 As shown in Figure 3C(b), the first recommended error value obtained through step S150 calculation
Figure 02_image226
, which is not smaller than the minimum error value obtained in the previous iteration (here, it is the smallest initial error value among the multiple initial error values obtained in the 0th iteration
Figure 02_image227
), so after the first iteration, the minimum error value is still the initial error value
Figure 02_image227
. Due to the first recommended error value
Figure 02_image226
Not less than the minimum error value of the previous iteration (that is, the initial error value of the 0th iteration
Figure 02_image227
), the error calculation module 120 judges that the minimum error value has not yet converged, and the process enters step S170.

在步驟S170中,光學參數推薦模組130依據n個推薦誤差值、n個推薦光學參數組、M個初始誤差值及M個測試初始光學參數組執行運算,而取得第n+1個推薦光學參數組。換言之,光學參數推薦模組130採用式(6)及(7),運算所有已選光學參數組

Figure 02_image095
(包含n個推薦光學參數組及M個測試初始光學參數組)及所有已運算取得之誤差值(包含n個推薦誤差值及M個初始誤差值),取得下一個(即,n+1)推薦光學參數組
Figure 02_image228
(第n+1個推薦光學參數組)。 In step S170, the optical parameter recommendation module 130 performs calculations based on n recommended error values, n recommended optical parameter sets, M initial error values, and M test initial optical parameter sets to obtain the n+1th recommended optical parameter set parameter group. In other words, the optical parameter recommendation module 130 uses formulas (6) and (7) to calculate all the selected optical parameter sets
Figure 02_image095
(including n recommended optical parameter groups and M initial optical parameter groups for testing) and all calculated error values (including n recommended error values and M initial error values), get the next one (ie, n+1) Recommended Optical Parameter Set
Figure 02_image228
(the n+1th recommended optical parameter group).

以下進一步舉例說明透過式(6)~(7)取得第2個推薦光學參數組

Figure 02_image230
的流程(對應第3D~3E(b)圖)。過程中,光學參數推薦模組130先運算取得數個候選光學參數組
Figure 02_image144
之各者相較於所有已選光學參數組
Figure 02_image095
的數個期望值
Figure 02_image146
,然後決定此些期望值
Figure 02_image146
中之最大值者之候選光學參數組
Figure 02_image144
為第2個推薦光學參數組
Figure 02_image230
。以下以第1個候選光學參數組
Figure 02_image231
為例,來說明運算期望值
Figure 02_image146
的過程。 The following further illustrates how to obtain the second recommended optical parameter set through formulas (6)~(7)
Figure 02_image230
The process (corresponding to Figure 3D~3E(b)). During the process, the optical parameter recommendation module 130 first obtains several candidate optical parameter sets through calculation
Figure 02_image144
each compared to all selected optical parameter sets
Figure 02_image095
several expected values of
Figure 02_image146
, and then determine these expected values
Figure 02_image146
Candidate Optical Parameter Set of the Maximum Among
Figure 02_image144
Recommended optical parameter set for the 2nd
Figure 02_image230
. The following is the first candidate optical parameter set
Figure 02_image231
As an example, to illustrate the operation expected value
Figure 02_image146
the process of.

如第3C(a)圖所示,已選光學參數組

Figure 02_image095
的數量係4個(Q=4),包含3個初始光學參數組
Figure 02_image152
Figure 02_image153
Figure 02_image154
以及1個推薦光學參數組
Figure 02_image086
。 As shown in Figure 3C(a), the selected optical parameter set
Figure 02_image095
The number of is 4 (Q=4), including 3 initial optical parameter groups
Figure 02_image152
,
Figure 02_image153
and
Figure 02_image154
and a recommended optical parameter set
Figure 02_image086
.

在i等於1且j等於1的情況下運算式(6),光學參數推薦模組130依據式(6)運算第1 (即,i=1)個已選光學參數組

Figure 02_image155
(如,初始光學參數組
Figure 02_image152
)及第1 (即,j=1)個候選光學參數組
Figure 02_image231
Figure 02_image232
的值(計算式:
Figure 02_image234
),且運算待測物標準圖F2之像素層級之特徵向量V2與第1(即,i=1)張已選影像(如,第1張初始待測物影像
Figure 02_image162
)的像素層級的特徵向量
Figure 02_image164
的初始誤差值
Figure 02_image166
(初始誤差值
Figure 02_image166
為式(7)之
Figure 02_image168
的運算結果值)。 When i is equal to 1 and j is equal to 1, formula (6) is calculated, and the optical parameter recommendation module 130 calculates the first (i.e., i=1) selected optical parameter group according to formula (6)
Figure 02_image155
(e.g., the initial set of optical parameters
Figure 02_image152
) and the first (ie, j=1) candidate optical parameter set
Figure 02_image231
Of
Figure 02_image232
value (calculation formula:
Figure 02_image234
), and calculate the pixel-level feature vector V2 of the standard image F2 of the object under test and the first (ie, i=1) selected image (for example, the first initial image of the object under test
Figure 02_image162
) pixel-level feature vector
Figure 02_image164
The initial error value of
Figure 02_image166
(initial error value
Figure 02_image166
is the formula (7)
Figure 02_image168
operation result value).

在i等於2且j等於1的情況下運算式(6),光學參數推薦模組130依據式(6)運算第2 (即,i=2)個已選光學參數組

Figure 02_image170
(如,初始光學參數組
Figure 02_image172
)及第1 (即,j=1)個候選光學參數組
Figure 02_image231
Figure 02_image236
的值(計算式:
Figure 02_image238
),且運算待測物標準圖F2之特徵向量V2與第2(即,i=2)張已選影像(如,第2張初始待測物影像
Figure 02_image177
)的特徵向量
Figure 02_image179
的初始誤差值
Figure 02_image113
(初始誤差值
Figure 02_image113
為式(7)之
Figure 02_image181
的結果值)。 When i is equal to 2 and j is equal to 1, formula (6) is calculated, and the optical parameter recommendation module 130 calculates the second (i.e., i=2) selected optical parameter group according to formula (6).
Figure 02_image170
(e.g., the initial set of optical parameters
Figure 02_image172
) and the first (ie, j=1) candidate optical parameter set
Figure 02_image231
Of
Figure 02_image236
value (calculation formula:
Figure 02_image238
), and calculate the eigenvector V2 of the standard image F2 of the object under test and the second (ie, i=2) selected image (for example, the second initial image of the object under test
Figure 02_image177
) eigenvector
Figure 02_image179
The initial error value of
Figure 02_image113
(initial error value
Figure 02_image113
is the formula (7)
Figure 02_image181
result value).

在i等於3及j等於1的情況下運算式(6),光學參數推薦模組130依據式(6)運算第3 (即,i=3)個已選光學參數組

Figure 02_image183
(如,初始光學參數組
Figure 02_image185
)及第1 (即,j=1)個候選光學參數組
Figure 02_image240
Figure 02_image241
的值(計算式:
Figure 02_image242
),且運算待測物標準圖F2之特徵向量V2與第3(即,i=3)張已選影像(如,第3張初始待測物影像
Figure 02_image190
)的特徵向量
Figure 02_image192
的初始誤差值
Figure 02_image194
(初始誤差值
Figure 02_image194
為式(7)之
Figure 02_image196
的結果值)。 When i is equal to 3 and j is equal to 1, formula (6) is calculated, and the optical parameter recommendation module 130 calculates the third (i.e., i=3) selected optical parameter group according to formula (6).
Figure 02_image183
(e.g., the initial set of optical parameters
Figure 02_image185
) and the first (ie, j=1) candidate optical parameter set
Figure 02_image240
Of
Figure 02_image241
value (calculation formula:
Figure 02_image242
), and calculate the eigenvector V2 of the standard image F2 of the object under test and the third (ie, i=3) selected image (for example, the third initial image of the object under test
Figure 02_image190
) eigenvector
Figure 02_image192
The initial error value of
Figure 02_image194
(initial error value
Figure 02_image194
is the formula (7)
Figure 02_image196
result value).

在i等於4及j等於1的情況下運算式(6),光學參數推薦模組130依據式(6)運算第4 (即,i=4)個已選光學參數組

Figure 02_image244
(如,推薦光學參數組
Figure 02_image086
)及第1 (即,j=1)個候選光學參數組
Figure 02_image246
Figure 02_image247
的值(計算式:
Figure 02_image249
),且運算待測物標準圖F2之特徵向量V2與第4(即,i=4)張已選影像(如,推薦光學參數組
Figure 02_image086
)的特徵向量
Figure 02_image251
的推薦誤差值
Figure 02_image253
(推薦誤差值
Figure 02_image254
為式(7)之
Figure 02_image255
的結果值)。 When i is equal to 4 and j is equal to 1, formula (6) is calculated, and the optical parameter recommendation module 130 calculates the fourth (i.e., i=4) selected optical parameter group according to formula (6).
Figure 02_image244
(e.g. recommended optical parameter set
Figure 02_image086
) and the first (ie, j=1) candidate optical parameter set
Figure 02_image246
Of
Figure 02_image247
value (calculation formula:
Figure 02_image249
), and calculate the eigenvector V2 of the standard image F2 of the object to be measured and the fourth (ie, i=4) selected image (for example, the recommended optical parameter set
Figure 02_image086
) eigenvector
Figure 02_image251
The recommended error value of
Figure 02_image253
(recommended error value
Figure 02_image254
is the formula (7)
Figure 02_image255
result value).

然後,光學參數推薦模組130可利用前述運算結果執行運算,取得

Figure 02_image198
之商值、
Figure 02_image200
之商值、
Figure 02_image202
之商值及
Figure 02_image257
之商值,並運算此些商值之加總(計算式:
Figure 02_image259
)後,再進一步依據式(7)之期望值分析函數E執行運算,取得第1個候選光學參數組
Figure 02_image261
之期望值
Figure 02_image262
。 Then, the optical parameter recommendation module 130 can use the aforementioned calculation results to perform calculations to obtain
Figure 02_image198
the business value of
Figure 02_image200
the business value of
Figure 02_image202
The commercial value of and
Figure 02_image257
quotient value, and calculate the sum of these quotient values (calculation formula:
Figure 02_image259
), and then further perform operations according to the expected value analysis function E of formula (7), and obtain the first candidate optical parameter group
Figure 02_image261
expected value
Figure 02_image262
.

依據前述流程,光學參數推薦模組130可取得在J個不同的候選光學參數組

Figure 02_image106
的J個期望值
Figure 02_image209
。光學參數推薦模組130可從J個期望值
Figure 02_image209
中挑選出最大者,並決定期望值最大者之
Figure 02_image106
為第2(即,n+1)個推薦光學參數組
Figure 02_image230
,如第3D圖所示。 According to the aforementioned process, the optical parameter recommendation module 130 can obtain J different candidate optical parameter groups
Figure 02_image106
J expected value of
Figure 02_image209
. The optical parameter recommendation module 130 can select from J expected values
Figure 02_image209
Choose the largest among them, and determine the one with the largest expected value
Figure 02_image106
Recommended optical parameter set for the 2nd (i.e., n+1)
Figure 02_image230
, as shown in Figure 3D.

在取得第2個推薦光學參數組

Figure 02_image230
後,則執行步驟S175。 After obtaining the second recommended optical parameter set
Figure 02_image230
After that, step S175 is executed.

在步驟S175中,自動設定模組150依據第2個(第n+1個)推薦光學參數組

Figure 02_image264
設定自動光學檢測系統100。 In step S175, the automatic setting module 150 recommends an optical parameter set according to the second (n+1th)
Figure 02_image264
The automated optical inspection system 100 is set up.

在步驟S180中,累加n的值(n=2),然後執行下一輪疊代,也就是再次執行步驟S140,在第2(n=2)次疊代中,攝像模組140在該自動光學檢測系統被用第2個推薦光學參數組

Figure 02_image266
設定的情況下,對待測物執行取像,以取得第2個推薦待測物影像
Figure 02_image267
。然後,執行步驟S150,在第2次疊代中,光學參數推薦模組130依據式(5)之優化誤差函數EF,對待測物標準圖F2與第2個推薦待測物影像
Figure 02_image269
執行運算,而取得待測物標準圖F2與第2個推薦待測物影像
Figure 02_image270
之間的第2個推薦誤差值
Figure 02_image271
,如第3E(a)圖所示。在第3E(a)圖中,光學參數推薦模組130可採用曲線擬合方法,取得初始誤差值ET 1、ET 2及ET 3與推薦誤差值
Figure 02_image272
Figure 02_image273
的擬合曲線C3。執行步驟S160,光學參數推薦模組130判斷推薦誤差值是否收斂。當判斷推薦誤差值收斂時,則執行步驟S190;當判斷推薦誤差值未收斂時,則執行步驟S170。如第3E(b)圖所示,第2個推薦誤差值
Figure 02_image271
並未小於推薦誤差值
Figure 02_image274
以及前幾次疊代(第0次疊代與第1次疊代)決定之最小誤差值(初始誤差值
Figure 02_image113
),光學參數推薦模組130據此判斷推薦誤差值尚未收斂,則執行步驟S170。 In step S180, the value of n is accumulated (n=2), and then the next iteration is executed, that is, step S140 is executed again. In the second (n=2) iteration, the camera module 140 The detection system is used with the 2nd recommended optical parameter set
Figure 02_image266
If it is set, the object to be tested will be captured to obtain the second recommended image of the object to be tested
Figure 02_image267
. Then, step S150 is executed. In the second iteration, the optical parameter recommendation module 130 calculates the standard image F2 of the object to be measured and the second recommended image of the object to be measured according to the optimized error function EF of formula (5).
Figure 02_image269
Execute calculations to obtain the standard image F2 of the UUT and the second recommended UUT image
Figure 02_image270
The 2nd recommended error value between
Figure 02_image271
, as shown in Figure 3E(a). In Figure 3E(a), the optical parameter recommendation module 130 can use the curve fitting method to obtain the initial error values ET 1 , ET 2 and ET 3 and the recommended error values
Figure 02_image272
and
Figure 02_image273
The fitting curve C3. Step S160 is executed, and the optical parameter recommendation module 130 determines whether the recommended error value converges. When it is judged that the recommended error value is converged, step S190 is executed; when it is judged that the recommended error value is not converged, step S170 is executed. As shown in Figure 3E(b), the second recommended error value
Figure 02_image271
Not less than the recommended error value
Figure 02_image274
And the minimum error value determined by the previous iterations (the 0th iteration and the 1st iteration) (the initial error value
Figure 02_image113
), the optical parameter recommendation module 130 judges that the recommended error value has not yet converged, and then executes step S170.

在步驟S170中,光學參數推薦模組130採用前述決定推薦光學參數組之流程,運算取得第3個推薦光學參數組

Figure 02_image275
,並執行步驟S175依據第3個推薦光學參數組
Figure 02_image275
設定自動光學檢測系統100,及步驟S180以更新n(n=3)而進入下次疊代(第3次疊代)。在第3次疊代中,與前述第2次疊代相似地,執行步驟S140~S160,而運算取得第3個推薦誤差值
Figure 02_image277
(如第3F及3G(a)圖所示)。接著執行S160,如第3G(b)圖所示,雖然第3個推薦誤差值
Figure 02_image278
小於前幾次疊代結果之推薦誤差值
Figure 02_image274
Figure 02_image279
,及最小誤差值ET 2,但第3個推薦誤差值
Figure 02_image278
並未低於收斂門檻值,光學參數推薦模組130據此判斷推薦誤差值尚未收斂,而進入下一輪的疊代,執行步驟S170~S180,取得下一次疊代之第n個推薦光學參數組PR n。 In step S170, the optical parameter recommendation module 130 adopts the aforementioned process of determining the recommended optical parameter set, and calculates and obtains the third recommended optical parameter set
Figure 02_image275
, and execute step S175 according to the third recommended optical parameter set
Figure 02_image275
The automatic optical inspection system 100 is set, and step S180 is to update n (n=3) to enter the next iteration (the third iteration). In the third iteration, similar to the aforementioned second iteration, steps S140~S160 are executed, and the third recommended error value is obtained by the calculation
Figure 02_image277
(As shown in Figures 3F and 3G(a)). Then execute S160, as shown in Figure 3G(b), although the third recommended error value
Figure 02_image278
Smaller than the recommended error value for the results of previous iterations
Figure 02_image274
and
Figure 02_image279
, and the minimum error value ET 2 , but the third recommended error value
Figure 02_image278
If it is not lower than the convergence threshold, the optical parameter recommendation module 130 judges that the recommended error value has not yet converged, and enters the next iteration, and executes steps S170~S180 to obtain the nth recommended optical parameter set for the next iteration PR n .

如第3H(a)圖所示,光學參數推薦模組130依據前述原則,依序取得第4(即,n=4)次疊代之第4個推薦誤差值

Figure 02_image280
、第5(即,n=5)次疊代之第5個推薦誤差值
Figure 02_image282
、第6(即,n=6)次疊代之第6個推薦誤差值
Figure 02_image284
及第7(即,n=7)次疊代之第7個推薦誤差值
Figure 02_image286
。如第3H(b)圖所示,在第7次疊代的步驟S160中,第7個推薦誤差值
Figure 02_image288
已低於前述收斂門檻值,光學參數推薦模組130據此判斷推薦誤差值已收斂,則執行步驟S190,光學參數推薦模組130決定第7次疊代之最小推薦誤差值,也就是第7個推薦誤差值
Figure 02_image288
所對應之第7個推薦光學參數組
Figure 02_image289
為自動光學檢測系統100之最佳光學參數組。 As shown in Figure 3H(a), the optical parameter recommendation module 130 sequentially obtains the fourth recommended error value of the fourth iteration (ie, n=4) according to the aforementioned principles
Figure 02_image280
, the 5th recommended error value of the 5th (ie, n=5) iteration
Figure 02_image282
, the 6th recommended error value of the 6th (ie, n=6) iteration
Figure 02_image284
And the 7th recommended error value of the 7th (ie, n=7) iteration
Figure 02_image286
. As shown in Figure 3H(b), in step S160 of the seventh iteration, the seventh recommended error value
Figure 02_image288
has been lower than the aforementioned convergence threshold, and the optical parameter recommendation module 130 judges that the recommended error value has converged accordingly, then executes step S190, and the optical parameter recommendation module 130 determines the minimum recommended error value of the seventh iteration, that is, the seventh Recommended error value
Figure 02_image288
Corresponding to the seventh recommended optical parameter group
Figure 02_image289
is the optimal optical parameter set of the automatic optical inspection system 100 .

自動光學檢測系統100之光源模組160及攝像模組140可依據此最佳光學參數組設定於產線上運作,使攝像模組140對產品攝像所取得的產品影像具有最佳的品質(例如色彩呈現),以提升自動光學檢測系統100檢測產品的準確度。The light source module 160 and the camera module 140 of the automatic optical inspection system 100 can operate on the production line according to the optimal optical parameter set, so that the product image obtained by the camera module 140 has the best quality (such as color presented) to improve the accuracy of the automatic optical inspection system 100 in detecting products.

綜上,本揭露實施例提出一種光學參數自動設定方法及應用其之自動光學檢測系統,利用機器學習的技術,自動取得最佳光學參數組。在應用本揭露實施例之光學參數自動設定方法中,在短時間內須對P個或全部光學參數進行高達數萬、數十萬次或甚至更多次的疊代,且計算過程繁複,此必須由電腦執行,非人腦所能完成。由於是採用電腦執行光學參數自動設定方法,因此在執行過程可考慮自動光學檢測系統中可能影響攝像器所擷取之產品影像呈現(或品質)的所有光學參數的至少一者,提升攝像器所擷取之產品影像的品質,增加檢測正確率。相較於人工調光,本揭露實施例具備以下數個技術功效的至少一者:(1). 避免人為因素的誤判,因此可提升調光穩定性;(2). 減少調光所需時間;(3). 降低人力成本;(4). 加入調光流程的光學參數類型的數量可以較多;(5). 增加自動光學檢測系統的檢測正確率。To sum up, the embodiments of the present disclosure propose a method for automatically setting optical parameters and an automatic optical inspection system using the same, using machine learning technology to automatically obtain the optimal optical parameter set. In the application of the method for automatically setting optical parameters according to the disclosed embodiments, tens of thousands, hundreds of thousands or even more iterations must be performed on P or all optical parameters in a short period of time, and the calculation process is complicated. It must be executed by a computer, not by a human brain. Since the computer is used to execute the automatic setting method of optical parameters, at least one of all optical parameters in the automatic optical inspection system that may affect the presentation (or quality) of the product image captured by the camera can be considered during the execution process, so as to improve the performance of the camera. The quality of captured product images increases the detection accuracy. Compared with manual dimming, the disclosed embodiments have at least one of the following technical effects: (1). Avoid misjudgment by human factors, so the stability of dimming can be improved; (2). Reduce the time required for dimming ; (3). Reduce labor costs; (4). The number of optical parameter types added to the dimming process can be more; (5). Increase the detection accuracy of the automatic optical detection system.

綜上所述,雖然本揭露已以實施例揭露如上,然其並非用以限定本揭露。本揭露所屬技術領域中具有通常知識者,在不脫離本揭露之精神和範圍內,當可作各種之更動與潤飾。因此,本揭露之保護範圍當視後附之申請專利範圍所界定者為準。To sum up, although the present disclosure has been disclosed above with embodiments, it is not intended to limit the present disclosure. Those with ordinary knowledge in the technical field to which this disclosure belongs may make various changes and modifications without departing from the spirit and scope of this disclosure. Therefore, the scope of protection of this disclosure should be defined by the scope of the appended patent application.

100:自動光學檢測系統 110:優化模組 120:誤差運算模組 130:光學參數推薦模組 140:攝像模組 150:自動設定模組 160:光源模組 C1~C3:曲線 D1, D2:資料庫 F1:訓練標準圖 F2:待測物標準圖 f:誤差運算函數 f min:最小誤差值 E:期望值分析函數 EF:優化誤差函數

Figure 02_image166
,
Figure 02_image291
,
Figure 02_image194
,
Figure 02_image076
:初始誤差值
Figure 02_image078
,
Figure 02_image080
,
Figure 02_image292
,
Figure 02_image293
,
Figure 02_image295
,
Figure 02_image296
,
Figure 02_image297
,
Figure 02_image007
:推薦誤差值
Figure 02_image298
,
Figure 02_image300
,
Figure 02_image301
,
Figure 02_image303
,
Figure 02_image305
,
Figure 02_image307
,
Figure 02_image309
,
Figure 02_image005
:推薦待測物影像 M11 S:專家標準影像 M12 t:非專家標準影像
Figure 02_image056
:初始待測物影像
Figure 02_image086
,
Figure 02_image230
,
Figure 02_image275
,
Figure 02_image311
,
Figure 02_image313
,
Figure 02_image315
,
Figure 02_image317
,
Figure 02_image001
:推薦光學參數組
Figure 02_image061
,
Figure 02_image063
,
Figure 02_image065
,
Figure 02_image058
:初始光學參數組
Figure 02_image033
,
Figure 02_image041
,
Figure 02_image125
,
Figure 02_image320
,
Figure 02_image045
,
Figure 02_image035
:向量 S110~S190:步驟
Figure 02_image322
,
Figure 02_image037
:優化權重
Figure 02_image106
:候選光學參數組
Figure 02_image095
:已選光學參數組
Figure 02_image095
:已選光學參數組
Figure 02_image323
:光學參數類型
Figure 02_image104
:差距
Figure 02_image325
:期望值 100: Automatic Optical Inspection System 110: Optimization Module 120: Error Calculation Module 130: Optical Parameter Recommendation Module 140: Camera Module 150: Automatic Setting Module 160: Light Source Module C1~C3: Curve D1, D2: Data Library F1: training standard graph F2: standard graph of the object to be tested f: error operation function f min : minimum error value E: expected value analysis function EF: optimization error function
Figure 02_image166
,
Figure 02_image291
,
Figure 02_image194
,
Figure 02_image076
: initial error value
Figure 02_image078
,
Figure 02_image080
,
Figure 02_image292
,
Figure 02_image293
,
Figure 02_image295
,
Figure 02_image296
,
Figure 02_image297
,
Figure 02_image007
: recommended error value
Figure 02_image298
,
Figure 02_image300
,
Figure 02_image301
,
Figure 02_image303
,
Figure 02_image305
,
Figure 02_image307
,
Figure 02_image309
,
Figure 02_image005
: recommended object image M11 S : expert standard image M12 t : non-expert standard image
Figure 02_image056
: Initial UUT image
Figure 02_image086
,
Figure 02_image230
,
Figure 02_image275
,
Figure 02_image311
,
Figure 02_image313
,
Figure 02_image315
,
Figure 02_image317
,
Figure 02_image001
: recommended optical parameter set
Figure 02_image061
,
Figure 02_image063
,
Figure 02_image065
,
Figure 02_image058
: initial optical parameter set
Figure 02_image033
,
Figure 02_image041
,
Figure 02_image125
,
Figure 02_image320
,
Figure 02_image045
,
Figure 02_image035
: vector S110~S190: step
Figure 02_image322
,
Figure 02_image037
: optimize weight
Figure 02_image106
: candidate optical parameter set
Figure 02_image095
: Selected optical parameter group
Figure 02_image095
: Selected optical parameter group
Figure 02_image323
: Optical parameter type
Figure 02_image104
:gap
Figure 02_image325
: expected value

第1圖繪示依照本揭露一實施例之自動光學檢測系統之示意圖。 第2A及2B圖繪示第1圖之自動光學檢測系統的光學參數自動設定方法的流程圖。 第3A(a)~3H(b)圖繪示第2A及2B圖之推薦光學參數的取得過程示意圖。 FIG. 1 shows a schematic diagram of an automatic optical inspection system according to an embodiment of the present disclosure. 2A and 2B are flowcharts showing the automatic optical parameter setting method of the automatic optical inspection system in FIG. 1 . Figures 3A(a)~3H(b) illustrate the process of obtaining the recommended optical parameters in Figures 2A and 2B.

S110~S130:步驟 S110~S130: steps

Claims (16)

一種光學參數自動設定方法,適用於一自動光學檢測(Automated Optical Inspection, AOI)系統,該自動光學檢測系統包括一攝像模組、一誤差運算模組、一自動設定模組及一光學參數推薦模組,該光學參數自動設定方法包括: 該攝像模組在該自動光學檢測系統被用一第一推薦光學參數組設定下對一待測物執行取像,以取得一推薦待測物影像; 該誤差運算模組依據一優化誤差函數,對一待測物標準圖與該推薦待測物影像執行運算,以取得該待測物標準圖與該推薦待測物影像之間的一推薦誤差值; 該誤差運算模組判斷該推薦誤差值是否收斂; 當判斷該推薦誤差值未收斂時,該光學參數推薦模組依據該推薦誤差值及該第一推薦光學參數組執行運算,而取得一第二推薦光學參數組,並且該自動設定模組依據該第二推薦光學參數組設定該自動光學檢測系統;以及 當判斷該推薦誤差值收斂時,該誤差運算模組決定該第一推薦光學參數組為該自動光學檢測系統之一最佳光學參數組。 A method for automatically setting optical parameters, suitable for an automatic optical inspection (Automated Optical Inspection, AOI) system, the automatic optical inspection system includes a camera module, an error calculation module, an automatic setting module and an optical parameter recommendation module group, the optical parameter automatic setting method includes: The camera module captures an image of an object under test when the automatic optical inspection system is set with a first recommended optical parameter set, so as to obtain a recommended image of the object under test; The error calculation module executes calculations on a standard image of the DUT and the recommended image of the DUT according to an optimized error function, so as to obtain a recommended error value between the standard image of the DUT and the recommended image of the DUT ; The error calculation module judges whether the recommended error value converges; When it is judged that the recommended error value has not converged, the optical parameter recommending module executes an operation according to the recommended error value and the first recommended optical parameter set to obtain a second recommended optical parameter set, and the automatic setting module bases on the a second set of recommended optical parameters sets the AOI system; and When judging that the recommended error value converges, the error calculation module determines that the first recommended optical parameter set is one of the best optical parameter sets of the automatic optical inspection system. 如請求項1所述之光學參數自動設定方法,更包括: 該攝像模組在該自動光學檢測系統被用複數個初始光學參數組設定下分別對該待測物取得複數個初始待測物影像; 該誤差運算模組依據該優化誤差函數,對該待測物標準圖與該些初始待測物影像執行運算,以取得該些初始待測物影像分別與該待測物標準圖之間的複數個初始誤差值;以及 該光學參數推薦模組依據該些初始誤差值及該些初始光學參數組執行運算,以取得該第一推薦光學參數組。 The method for automatically setting optical parameters as described in claim 1 further includes: The camera module respectively obtains a plurality of initial images of the object under test when the automatic optical inspection system is set with a plurality of initial optical parameter sets; The error calculation module performs calculations on the standard image of the DUT and the initial images of the DUT according to the optimized error function, so as to obtain a complex number between the initial images of the DUT and the standard image of the DUT. an initial error value; and The optical parameter recommendation module executes calculations according to the initial error values and the initial optical parameter sets to obtain the first recommended optical parameter set. 如請求項2所述之光學參數自動設定方法,更包括: 當判斷該推薦誤差值未收斂時,該光學參數推薦模組還依據該些初始誤差值及該些初始光學參數組執行運算,以取得該第二推薦光學參數組。 The method for automatically setting optical parameters as described in claim 2 further includes: When it is judged that the recommended error value has not converged, the optical parameter recommendation module also performs calculations according to the initial error values and the initial optical parameter sets to obtain the second recommended optical parameter set. 如請求項2所述之光學參數自動設定方法,更包括: 該光學參數推薦模組運算取得複數個候選光學參數組分別相較於該些初始光學參數組的複數個期望值;以及 該光學參數推薦模組決定該些期望值中之最大者為該第一推薦光學參數組。 The method for automatically setting optical parameters as described in claim 2 further includes: The optical parameter recommendation module operates to obtain a plurality of expected values of the plurality of candidate optical parameter sets compared with the initial optical parameter sets; and The optical parameter recommendation module determines the maximum of the expected values as the first recommended optical parameter set. 如請求項4所述之光學參數自動設定方法,其中在運算取得該些候選光學參數組分別相較於該些初始光學參數組的該些期望值之步驟包括: 該光學參數推薦模組取得各該候選光學參數組相較於各該初始光學參數組之間的複數個差距;以及 該光學參數推薦模組依據該些差距及該些初始誤差值,運算取得該些期望值。 The method for automatically setting optical parameters as described in Claim 4, wherein the step of calculating and obtaining the expected values of the candidate optical parameter sets compared with the initial optical parameter sets includes: The optical parameter recommendation module obtains a plurality of gaps between each of the candidate optical parameter sets and each of the initial optical parameter sets; and The optical parameter recommendation module calculates and obtains the expected values according to the gaps and the initial error values. 如請求項1所述之光學參數自動設定方法,其中該自動光學檢測系統更包括一光源模組,該光學參數自動設定方法更包括: 該自動設定模組依據該最佳光學參數組,設定該攝像模組及/或該光源模組。 The method for automatically setting optical parameters as described in Claim 1, wherein the automatic optical inspection system further includes a light source module, and the method for automatically setting optical parameters further includes: The automatic setting module sets the camera module and/or the light source module according to the optimal optical parameter set. 如請求項1所述之光學參數自動設定方法,其中該自動光學檢測系統還包括一優化模組,該光學參數自動設定方法更包括: 該優化模組對一訓練標準圖、一專家標準影像及一非專家標準影像執行運算,而取得該優化誤差函數。 The method for automatically setting optical parameters as described in Claim 1, wherein the automatic optical inspection system further includes an optimization module, and the method for automatically setting optical parameters further includes: The optimization module performs operations on a training standard image, an expert standard image and a non-expert standard image to obtain the optimization error function. 如請求項7所述之光學參數自動設定方法,更包括: 該優化模組以最小化該訓練標準圖與該專家標準影像之間的誤差以及非最小化該訓練標準圖與該非專家標準影像之間的誤差為目標,運算取得該優化誤差函數的複數個優化權重。 The method for automatically setting optical parameters as described in claim item 7 further includes: The optimization module aims at minimizing the error between the training standard map and the expert standard image and non-minimizing the error between the training standard map and the non-expert standard image, and obtains a plurality of optimizations of the optimization error function Weights. 一種自動光學檢測系統,包括: 一攝像模組,經配置以執行在一第一推薦光學參數組下對一待測物執行取像,以取得一推薦待測物影像; 一誤差運算模組,經配置以執行依據一優化誤差函數,對一待測物標準圖與該推薦待測物影像執行運算,以取得該待測物標準圖與該推薦待測物影像之間的一推薦誤差值,並判斷該推薦誤差值是否收斂;以及 一光學參數推薦模組,經配置以執行當判斷該推薦誤差值未收斂時,依據該推薦誤差值及該第一推薦光學參數組執行運算,而取得一第二推薦光學參數組; 一自動設定模組,經配置以執行依據該第二推薦光學參數組設定該自動光學檢測系統; 其中,當判斷該推薦誤差值收斂時,該誤差運算模組更用以決定該第一推薦光學參數組為該自動光學檢測系統之一最佳光學參數組。 An automated optical inspection system comprising: A camera module configured to perform imaging on an object under test under a first recommended optical parameter set, so as to obtain a recommended image of the object under test; An error calculation module configured to perform calculations on a standard image of the DUT and the recommended image of the DUT according to an optimized error function, so as to obtain a difference between the standard image of the DUT and the recommended image of the DUT A recommended error value of , and judging whether the recommended error value converges; and An optical parameter recommendation module configured to execute calculations based on the recommended error value and the first recommended optical parameter set to obtain a second recommended optical parameter set when it is judged that the recommended error value has not converged; an automatic setting module configured to perform setting of the automatic optical inspection system according to the second set of recommended optical parameters; Wherein, when it is judged that the recommended error value converges, the error calculation module is further used to determine that the first recommended optical parameter set is one of the best optical parameter sets of the automatic optical inspection system. 如請求項9所述之自動光學檢測系統,其中, 該攝像模組更經配置以執行在複數個初始光學參數組下分別對該待測物取得複數個初始待測物影像; 該誤差運算模組更經配置以執行依據該優化誤差函數,對該待測物標準圖與該些初始待測物影像執行運算,以取得該些初始待測物影像分別與該待測物標準圖之間的複數個初始誤差值;以及 該光學參數推薦模組更經配置以執行依據該些初始誤差值及該些初始光學參數組執行運算,而取得該第一推薦光學參數組。 The automatic optical inspection system as claimed in item 9, wherein, The camera module is further configured to obtain a plurality of initial images of the object under test under the plurality of initial optical parameter sets; The error calculation module is further configured to perform calculations on the DUT standard image and the initial DUT images according to the optimized error function, so as to obtain the initial DUT images and the DUT standard respectively. a complex number of initial error values between plots; and The optical parameter recommendation module is further configured to perform calculations based on the initial error values and the initial optical parameter sets to obtain the first recommended optical parameter set. 如請求項10所述之自動光學檢測系統,其中該光學參數推薦模組更經配置以執行:當判斷該推薦誤差值未收斂時,依據該些初始誤差值及該些初始光學參數組執行運算,以取得該第二推薦光學參數組。The automatic optical inspection system as described in claim 10, wherein the optical parameter recommendation module is further configured to execute: when it is judged that the recommended error value has not converged, perform calculations based on the initial error values and the initial optical parameter sets , to obtain the second recommended optical parameter set. 如請求項10所述之自動光學檢測系統,其中該光學參數推薦模組更經配置以執行: 取得複數個候選光學參數組分別相較於該些初始光學參數組的複數個期望值;以及 決定該些期望值中之最大者為該第一推薦光學參數組。 The automatic optical inspection system as claimed in claim 10, wherein the optical parameter recommendation module is further configured to perform: Obtaining a plurality of expected values of the plurality of candidate optical parameter sets respectively compared with the initial optical parameter sets; and The maximum among the expected values is determined to be the first recommended optical parameter set. 如請求項12所述之自動光學檢測系統,其中該光學參數推薦模組更經配置以執行: 該光學參數推薦模組取得各該候選光學參數組相較於各該初始光學參數組之間的複數個差距;以及 依據該些差距及該些初始誤差值,運算取得該些期望值。 The automatic optical inspection system as claimed in claim 12, wherein the optical parameter recommendation module is further configured to perform: The optical parameter recommendation module obtains a plurality of gaps between each of the candidate optical parameter sets and each of the initial optical parameter sets; and According to the gaps and the initial error values, the expected values are obtained through calculation. 如請求項9所述之自動光學檢測系統,更包括一光源模組,該自動設定模組經配置以執行依據該最佳光學參數,及設定該攝像模組及/或該光源模組。The automatic optical inspection system as described in Claim 9 further includes a light source module, and the automatic setting module is configured to execute according to the optimal optical parameters, and set the camera module and/or the light source module. 如請求項9所述之自動光學檢測系統,更包括: 一優化模組,經配置以執行運算一訓練標準圖、一專家標準影像及一非專家標準影像,而取得該優化誤差函數。 The automatic optical inspection system as described in Claim 9, further comprising: An optimization module is configured to perform calculations on a training standard image, an expert standard image and a non-expert standard image to obtain the optimization error function. 如請求項15所述之自動光學檢測系統,其中該優化模組更經配置以執行: 以以最小化該訓練標準圖與該專家標準影像之間的誤差以及非最小化該訓練標準圖與該非專家標準影像之間的誤差為目標,運算取得該優化誤差函數的複數個優化權重。 The automated optical inspection system as recited in claim 15, wherein the optimization module is further configured to perform: Aiming at minimizing the error between the training standard map and the expert standard image and non-minimizing the error between the training standard map and the non-expert standard image, a plurality of optimization weights of the optimization error function are obtained through calculation.
TW110115481A 2021-04-29 2021-04-29 Method of automatically setting optical parameters and automated optical inspection system using the same TWI792291B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110115481A TWI792291B (en) 2021-04-29 2021-04-29 Method of automatically setting optical parameters and automated optical inspection system using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110115481A TWI792291B (en) 2021-04-29 2021-04-29 Method of automatically setting optical parameters and automated optical inspection system using the same

Publications (2)

Publication Number Publication Date
TW202242713A true TW202242713A (en) 2022-11-01
TWI792291B TWI792291B (en) 2023-02-11

Family

ID=85793303

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110115481A TWI792291B (en) 2021-04-29 2021-04-29 Method of automatically setting optical parameters and automated optical inspection system using the same

Country Status (1)

Country Link
TW (1) TWI792291B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2001041068A1 (en) * 1999-11-29 2004-01-08 オリンパス光学工業株式会社 Defect inspection system
CN107561737B (en) * 2017-08-21 2020-05-22 武汉精测电子集团股份有限公司 Method, device and tool for automatically adjusting IPC (International Process control) parameters of AOI (automatic Option identification) system
TWI683262B (en) * 2018-06-08 2020-01-21 財團法人工業技術研究院 Industrial image inspection method and system and computer readable recording medium
US10867108B2 (en) * 2018-09-18 2020-12-15 Taiwan Semiconductor Manufacturing Co., Ltd. Optical mode optimization for wafer inspection
CN111751279A (en) * 2019-03-27 2020-10-09 鸿富锦精密工业(武汉)有限公司 Optical image capturing parameter adjusting method and sensing device

Also Published As

Publication number Publication date
TWI792291B (en) 2023-02-11

Similar Documents

Publication Publication Date Title
CN107145908B (en) A kind of small target detecting method based on R-FCN
JP6869490B2 (en) Defect inspection equipment, defect inspection methods, and their programs
JP7015001B2 (en) Defect inspection equipment, defect inspection methods, and their programs
JP4559437B2 (en) Sky detection in digital color images
US11631230B2 (en) Method, device, system and computer-program product for setting lighting condition and storage medium
CN109902761B (en) Fishing situation prediction method based on marine environment factor fusion and deep learning
TW201825883A (en) Optimizing training sets used for setting up inspection-related algorithms
CN110310596B (en) GAMMA (GAMMA-GAMMA) adjustment initial value prediction method and system of OLED module
CN112903692B (en) Industrial hole wall defect detection system and identification algorithm based on AI
CN108445010A (en) Automatic optical detection method and device
WO2022059402A1 (en) Inspection device, inspection method, and inspection program
TWI792291B (en) Method of automatically setting optical parameters and automated optical inspection system using the same
CN114913086B (en) Face image quality enhancement method based on generation countermeasure network
CN116843618A (en) Method for detecting shallow apparent appearance defects of metal parts
CN111178229A (en) Vein imaging method and device based on deep learning
CN116486150A (en) Uncertainty perception-based regression error reduction method for image classification model
US20220157050A1 (en) Image recognition device, image recognition system, image recognition method, and non-transitry computer-readable recording medium
JP2020177429A (en) Information processing apparatus, information processing method, and program
US20220084171A1 (en) Systems and methods for recognition of user-provided images
CN115018787A (en) Anomaly detection method and system based on gradient enhancement
CN110672631B (en) Panel defect photographing method and panel defect photographing device
Chuquimarca et al. Banana Ripeness Level Classification Using a Simple CNN Model Trained with Real and Synthetic Datasets.
CN114486895A (en) Method for detecting sample substance concentration based on pushing of urine drying test strip to identification
US11788972B2 (en) Method of automatically setting optical parameters and automated optical inspection system using the same
CN112508946A (en) Cable tunnel abnormity detection method based on antagonistic neural network