[go: up one dir, main page]

TWI866395B - Hybrid trigger method for line scan camera, electronic device and defect inspection system - Google Patents

Hybrid trigger method for line scan camera, electronic device and defect inspection system Download PDF

Info

Publication number
TWI866395B
TWI866395B TW112130751A TW112130751A TWI866395B TW I866395 B TWI866395 B TW I866395B TW 112130751 A TW112130751 A TW 112130751A TW 112130751 A TW112130751 A TW 112130751A TW I866395 B TWI866395 B TW I866395B
Authority
TW
Taiwan
Prior art keywords
time interval
control device
encoder
line scan
scan camera
Prior art date
Application number
TW112130751A
Other languages
Chinese (zh)
Other versions
TW202509461A (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 TW112130751A priority Critical patent/TWI866395B/en
Application granted granted Critical
Publication of TWI866395B publication Critical patent/TWI866395B/en
Publication of TW202509461A publication Critical patent/TW202509461A/en

Links

Landscapes

  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

The present invention discloses a hybrid trigger method for line scan camera. The method is conducted by a control device, such that the control device is configured to generate a plurality of first trigger signals and a plurality of second trigger signals based on a specific distance that is detected by an encoder. According to the present invention, the plurality of second trigger signals is inserted between two said first trigger signals. Subsequently, the control device transmits the first trigger signals and the second trigger signals to a line scan camera, such that the line scan camera is triggered to acquire a plurality of image strips from an article, thereby generating a frame of article image that consisting of plurality of image strips. Thus, in case of conducting the hybrid trigger method according to the present invention, the line scan camera is still able to generate a high-resolution article image frame even though the encoder is not a high-resolution encoder.

Description

線掃描式攝像機的混合觸發方法、控制裝置、及瑕疵檢測系統Hybrid triggering method, control device, and defect detection system for line scan camera

本發明為自動光學檢查(AOI)之有關技術領域,尤指一種線掃描式攝像機的混合觸發方法。 This invention relates to the field of automatic optical inspection (AOI), and in particular to a hybrid triggering method for line scan cameras.

一般而言,利用工業技術生產製造的半成品或成品必須接受品質檢驗以判斷其是否符合工業標準,其中品質檢驗包括外觀(cosmetic)檢測和功能測試。因此,利用機器視覺(machine vision)技術的自動光學檢測(Automated optical inspection,AOI)系統於是被開發並導入自動化產線,用以取代人力以對工業半成品或成品執行外觀檢測。 Generally speaking, semi-finished or finished products manufactured using industrial technology must undergo quality inspection to determine whether they meet industrial standards, including cosmetic inspection and functional testing. Therefore, the automated optical inspection (AOI) system using machine vision technology was developed and introduced into the automated production line to replace manpower to perform cosmetic inspection on industrial semi-finished or finished products.

圖1為習知的一種瑕疵檢測系統的立體圖。如圖1所示,該瑕疵檢測系統1a係用於對由一卷對卷設備2a傳送的一箔狀物3a進行表面瑕疵檢測,且包括至少一個線掃描式攝像機11a、一控制裝置12a、以及一編碼器(encoder)13a、以及。正常工作時,該編碼器13a對該箔狀物3a進行一移動距離監測,並發出一編碼器輸出信號至該控制 裝置12a。應可理解,通過對該編碼器輸出信號進行解碼,該控制裝置12a可以掌握該箔狀物3a的移動速度(即,移動距離)與移動方向。接著,配合該箔狀物3a的移動速度,該控制裝置12a分時發出複數個觸發信號以控制該線掃描式攝像機11a對該箔狀物3a進行逐行(line-by-line)影像採集以獲得如圖2所示之箔狀物影像。 FIG1 is a three-dimensional diagram of a known defect detection system. As shown in FIG1, the defect detection system 1a is used to detect surface defects on a foil 3a transmitted by a roll-to-roll device 2a, and includes at least one line scanning camera 11a, a control device 12a, and an encoder 13a. During normal operation, the encoder 13a monitors the moving distance of the foil 3a and sends an encoder output signal to the control device 12a. It should be understood that by decoding the encoder output signal, the control device 12a can grasp the moving speed (i.e., moving distance) and moving direction of the foil 3a. Then, in accordance with the moving speed of the foil 3a, the control device 12a sends out multiple trigger signals in a time-sharing manner to control the line scanning camera 11a to perform line-by-line image acquisition of the foil 3a to obtain the foil image as shown in FIG2.

值得說明的是,為了保證瑕疵檢測的精度,有必要通過解析度設定以使一個瑕疵至少有3個像素的成像。換句話說,以90μm的瑕疵而言,解析度就必須設定在30μm/pixel。另一方面,影像處理中習慣以縱向為行(line)且以橫向為欄(column),故而可稱圖2所示之箔狀物影像圖係由Y個影像條組成,且每個影像條具有一行寬(line width)。 It is worth mentioning that in order to ensure the accuracy of defect detection, it is necessary to set the resolution so that a defect has at least 3 pixels in the image. In other words, for a 90μm defect, the resolution must be set at 30μm/pixel. On the other hand, in image processing, it is customary to use the vertical direction as a line and the horizontal direction as a column, so the foil image shown in Figure 2 can be said to be composed of Y image strips, and each image strip has a line width.

由前述說明可知,行寬越小則所述箔狀物影像的解析度越高。實務經驗指出,行寬和二個所述觸發信號之間的一時間間隔正相關。更詳細地說明,所述時間間隔指的是發送至該線掃描式攝像機11a的第i個觸發信號和第i+1個觸發信號之間的時間間隔,i=0~Y-1,且i、Y皆為正整數。舉例而言,當接收到第i個觸發信號之後,該線掃描式攝像機11a即受觸發而自該箔狀物3a擷取一第i個影像條。換句話說,該編碼器13a的精度與其可監測到的該箔狀物3a的最短移動距離正相關,亦即和二個所述觸發信號之間的時間間隔正相關,而行寬又和二個所述觸發信號之間的時間間隔正相關。因此,解析度和編碼器精度之間的關係可以利用下式(i)表示:

Figure 112130751-A0305-02-0004-1
As can be seen from the above description, the smaller the line width, the higher the resolution of the foil-like object image. Practical experience shows that the line width is positively correlated with a time interval between the two trigger signals. To be more specific, the time interval refers to the time interval between the i-th trigger signal and the i+1-th trigger signal sent to the line scan camera 11a, i=0~Y-1, and i and Y are both positive integers. For example, after receiving the i-th trigger signal, the line scan camera 11a is triggered to capture an i-th image strip from the foil-like object 3a. In other words, the accuracy of the encoder 13a is positively correlated with the shortest movement distance of the foil-like object 3a that can be monitored, that is, positively correlated with the time interval between the two trigger signals, and the line width is positively correlated with the time interval between the two trigger signals. Therefore, the relationship between the resolution and the encoder accuracy can be expressed by the following formula (i):
Figure 112130751-A0305-02-0004-1

在上式(i)中,C為該編碼器13a的米輪(wheel)周長,P為編碼器13a的精度,用以表示為編碼器13a在米輪轉動一圈的過程中所產生的脈衝數量(即,1幀編碼器輸出信號所包含的脈衝數量)。 In the above formula (i), C is the circumference of the encoder 13a's wheel, and P is the accuracy of the encoder 13a, which is expressed as the number of pulses generated by the encoder 13a during one rotation of the wheel (i.e., the number of pulses contained in one frame of the encoder output signal).

由式(1)式(2)可知,米輪周長越小則該瑕疵檢測系統1a的解析度越高(如:50μm/pixel→30μm/pixel)。然而,實務經驗指出,具小米輪的編碼器13a因其體積過小而不好架設在該卷對卷設備2a之上。另一方面,由式(1)式(2)還可知,亦可通過增加該編碼器13a的精度的方式來提升該瑕疵檢測系統1a的解析度。然而,實務上,高精度的編碼器13a必然伴隨著昂貴售價。 From equation (1) and equation (2), it can be seen that the smaller the circumference of the rice wheel, the higher the resolution of the defect detection system 1a (e.g., 50μm/pixel→30μm/pixel). However, practical experience shows that the encoder 13a with a rice wheel is too small to be installed on the roll-to-roll device 2a. On the other hand, from equation (1) and equation (2), it can also be seen that the resolution of the defect detection system 1a can be improved by increasing the accuracy of the encoder 13a. However, in practice, a high-precision encoder 13a is inevitably accompanied by an expensive price.

綜上所述,習知技術的線掃描式攝像機的觸發方法存在解析度受限的問題。有鑑於此,本案之發明人係極力加以研究發明,而終於研發完成本發明之一種線掃描式攝像機的混合觸發方法。 In summary, the triggering method of the conventional line scan camera has the problem of limited resolution. In view of this, the inventor of this case has made great efforts to study and invent, and finally developed and completed the hybrid triggering method of the line scan camera of this invention.

本發明之主要目的在於提供一種混合觸發方法,係由一控制裝置執行,從而依據一編碼器的一檢測距離而產生複數個第一觸發信號和複數個第二觸發信號以控制一線掃描式攝像機自一物件拍攝獲得複數個影像條以組成一物件影像,其中,該複數個第二觸發信號係插設在任二個所述第一觸發信號之間。如此,在應用本發明之混合觸發方法的情況下,即使採用低精度的編碼器亦能夠觸發該線掃描式攝像機生成高解析度的物件影像。 The main purpose of the present invention is to provide a hybrid triggering method, which is executed by a control device, thereby generating a plurality of first triggering signals and a plurality of second triggering signals according to a detection distance of an encoder to control a line scan camera to capture a plurality of image strips from an object to form an object image, wherein the plurality of second triggering signals are inserted between any two of the first triggering signals. In this way, when the hybrid triggering method of the present invention is applied, even if a low-precision encoder is used, the line scan camera can be triggered to generate a high-resolution object image.

為達成上述目的,本發明提出所述混合觸發方法的一實施例,係由一控制裝置執行,其中該控制裝置整合在包含至少一個線掃描 式攝像機以及一編碼器的一瑕疵檢測系統之中,且該線掃描式攝像機受控於該控制裝置而自一物件拍攝獲得複數個影像條以組成一物件影像;所述混合觸發方法包括以下步驟: 自該編碼器接收一編碼器輸出信號,且依據該編碼器輸出信號產生用以分時觸發該線掃描式攝像機的複數個第一觸發信號;其中,任二個所述第一觸發信號之間具有一第一時間間距;依據所述影像條的寬度、該第一時間間距以及該編碼器的一檢測距離計算出一第二時間間距;以及產生用以分時觸發該線掃描式攝像機的複數個第二觸發信號,其中,該複數個第二觸發信號係插設在任二個所述第一觸發信號之間,二個所述第二觸發信號係具有所述第二時間間距,且所述第二觸發信號和所述第一觸發信號之間具有一第三時間間距。 To achieve the above-mentioned purpose, the present invention proposes an embodiment of the hybrid triggering method, which is executed by a control device, wherein the control device is integrated into a defect detection system including at least one line scan camera and an encoder, and the line scan camera is controlled by the control device to capture a plurality of image strips from an object to form an object image; the hybrid triggering method includes the following steps: receiving an encoder output signal from the encoder, and generating a plurality of first time-sharing triggering signals for the line scan camera according to the encoder output signal; Trigger signal; wherein there is a first time interval between any two of the first trigger signals; a second time interval is calculated according to the width of the image strip, the first time interval and a detection distance of the encoder; and a plurality of second trigger signals are generated for time-sharing triggering the line scan camera, wherein the plurality of second trigger signals are inserted between any two of the first trigger signals, two of the second trigger signals have the second time interval, and there is a third time interval between the second trigger signal and the first trigger signal.

在一實施例中,該控制裝置係利用下式(1)和式(2)計算出所述第二時間間距:

Figure 112130751-A0305-02-0006-2
In one embodiment, the control device calculates the second time interval using the following equations (1) and (2):
Figure 112130751-A0305-02-0006-2

Figure 112130751-A0305-02-0006-3
Figure 112130751-A0305-02-0006-3

其中,D為所述檢測距離,t IN1為所述第一時間間距,t IN2為所述第二時間間距,V為速率,且R為所述影像條的寬度。 Wherein, D is the detection distance, t IN 1 is the first time interval, t IN 2 is the second time interval, V is the rate, and R is the width of the image strip.

在一實施例中,該物件為由一卷對卷設備所傳送的一箔狀物,且該箔狀物為選自於由金屬箔、軟性基材、紙、和覆有外層的軟性基材所組成群組之中的任一者。 In one embodiment, the object is a foil-like object conveyed by a roll-to-roll device, and the foil-like object is any one selected from the group consisting of metal foil, flexible substrate, paper, and flexible substrate covered with an outer layer.

在一實施例中,該控制裝置為選自於由電路板組件(circuit board assembly)、電子裝置、筆記型電腦、桌上型電腦、工業電腦、平板電腦、和智慧型手機所組成群組之中的任一者。 In one embodiment, the control device is any one selected from the group consisting of a circuit board assembly, an electronic device, a laptop computer, a desktop computer, an industrial computer, a tablet computer, and a smart phone.

本發明同時提供一種控制裝置的一實施例,其用以整合在包含至少一個線掃描式攝像機以及一編碼器的一瑕疵檢測系統之中;其特徵在於,該控制裝置被配置以執行一混合觸發方法,從而產生複數個第一觸發信號和複數個第二觸發信號用以控制該線掃描式攝像機自一物件拍攝獲得複數個影像條以組成一物件影像,且該混合觸發方法包括以下步驟:自該編碼器接收一編碼器輸出信號,且依據該編碼器輸出信號產生用以分時觸發該線掃描式攝像機的複數個所述第一觸發信號;其中,任二個所述第一觸發信號之間具有一第一時間間距;依據所述影像條的寬度、該第一時間間距以及該編碼器的一檢測距離計算出一第二時間間距;以及產生用以分時觸發該線掃描式攝像機的複數個所述第二觸發信號,其中,該複數個第二觸發信號係插設在任二個所述第一觸發信號之間,二個所述第二觸發信號係具有所述第二時間間距,且所述第二觸發信號和所述第一觸發信號之間具有一第三時間間距。 The present invention also provides an embodiment of a control device for integration into a defect detection system including at least one line scan camera and an encoder; the control device is configured to execute a hybrid triggering method to generate a plurality of first triggering signals and a plurality of second triggering signals for controlling the line scan camera to capture a plurality of image strips from an object to form an object image, and the hybrid triggering method includes the following steps: receiving an encoder output signal from the encoder, and generating a time-sharing triggering signal for the line scan camera according to the encoder output signal; A plurality of the first trigger signals of the camera; wherein there is a first time interval between any two of the first trigger signals; a second time interval is calculated according to the width of the image strip, the first time interval and a detection distance of the encoder; and a plurality of the second trigger signals for time-sharing triggering the line scan camera are generated, wherein the plurality of the second trigger signals are inserted between any two of the first trigger signals, the two second trigger signals have the second time interval, and there is a third time interval between the second trigger signal and the first trigger signal.

在一實施例中,該控制裝置為選自於由電路板組件(circuit board assembly)、電子裝置、筆記型電腦、桌上型電腦、工業電腦、平板電腦、和智慧型手機所組成群組之中的任一者。 In one embodiment, the control device is any one selected from the group consisting of a circuit board assembly, an electronic device, a laptop computer, a desktop computer, an industrial computer, a tablet computer, and a smart phone.

在一實施例中,該控制裝置包括一處理器與一記憶體,該記憶體儲存有包含複數個子程式的一應用程式,且該複數個子程式包括:一第一子程式,其中該處理器通過存取該記憶體以執行該第一子程式,從而對所述編碼器輸出信號進行解碼以獲得所述檢測距離;以及 一第二子程式,其中該處理器通過存取該記憶體以執行該第二子程式,從而執行所述混合觸發方法。 In one embodiment, the control device includes a processor and a memory, the memory stores an application including a plurality of subroutines, and the plurality of subroutines include: a first subroutine, wherein the processor accesses the memory to execute the first subroutine, thereby decoding the encoder output signal to obtain the detection distance; and a second subroutine, wherein the processor accesses the memory to execute the second subroutine, thereby executing the hybrid triggering method.

在一實施例中,該處理器係利用下式(1)和式(2)計算出所述第二時間間距:

Figure 112130751-A0305-02-0008-6
In one embodiment, the processor calculates the second time interval using the following equations (1) and (2):
Figure 112130751-A0305-02-0008-6

Figure 112130751-A0305-02-0008-5
Figure 112130751-A0305-02-0008-5

其中,D為所述檢測距離,t IN1為所述第一時間間距,t IN2為所述第二時間間距,V為速率,且R為所述影像條的寬度。 Wherein, D is the detection distance, t IN 1 is the first time interval, t IN 2 is the second time interval, V is the rate, and R is the width of the image strip.

在一實施例中,該物件為由一卷對卷設備所傳送的一箔狀物,且該箔狀物為選自於由金屬箔、軟性基材、紙、和覆有外層的軟性基材所組成群組之中的任一者。 In one embodiment, the object is a foil-like object conveyed by a roll-to-roll device, and the foil-like object is any one selected from the group consisting of metal foil, flexible substrate, paper, and flexible substrate covered with an outer layer.

進一步地,本發明還提供一種瑕疵檢測系統的一實施例,其係用以對由一卷對卷設備傳送的一箔狀物進行表面瑕疵檢測,其特徵在於,所述瑕疵檢測系統包括至少一個線掃描式攝像機、一編碼器以及如前所述本發明之控制裝置。 Furthermore, the present invention also provides an embodiment of a defect detection system, which is used to detect surface defects on a foil-like object transmitted by a roll-to-roll device, and is characterized in that the defect detection system includes at least one line scan camera, an encoder, and the control device of the present invention as described above.

1a:瑕疵檢測系統 1a: Defect detection system

11a:線掃描式攝像機 11a: Line scan camera

12a:控制裝置 12a: Control device

13a:編碼器 13a: Encoder

2a:卷對卷設備 2a: Roll-to-roll equipment

3a:箔狀物 3a: Foil

1:瑕疵檢測系統 1: Defect detection system

11:線掃描式攝像機 11: Line scan camera

12:控制裝置 12: Control device

12P:處理器 12P: Processor

12M:記憶體 12M: Memory

12M1:解碼單元 12M1: decoding unit

12M2:混合觸發單元 12M2: Hybrid trigger unit

13:編碼器 13: Encoder

2:卷對卷設備 2: Roll-to-roll equipment

3:箔狀物 3: Foil

S1~S3:步驟 S1~S3: Steps

TS1:第一觸發信號 TS1: First trigger signal

TS2:第二觸發信號 TS2: Second trigger signal

圖1為習知的一種瑕疵檢測系統的立體圖;圖2為驅動圖1所示之線掃描式攝像機拍攝獲得的一箔狀物影像圖;圖3為本發明之一種瑕疵檢測系統的立體圖;圖4為本發明之瑕疵檢測系統的方塊圖; 圖5為驅動圖3所示之線掃描式攝像機拍攝獲得的一箔狀物影像圖;圖6為本發明之一種混合觸發方法的流程圖;圖7A為複數個第一觸發信號和複數個第二觸發信號的第一示意性時序圖;以及圖7B為複數個第一觸發信號和複數個第二觸發信號的第二示意性時序圖。 FIG. 1 is a three-dimensional diagram of a known defect detection system; FIG. 2 is an image of a foil-like object captured by driving the line scan camera shown in FIG. 1; FIG. 3 is a three-dimensional diagram of a defect detection system of the present invention; FIG. 4 is a block diagram of the defect detection system of the present invention; FIG. 5 is an image of a foil-like object captured by driving the line scan camera shown in FIG. 3; FIG. 6 is a flow chart of a hybrid triggering method of the present invention; FIG. 7A is a first schematic timing diagram of a plurality of first trigger signals and a plurality of second trigger signals; and FIG. 7B is a second schematic timing diagram of a plurality of first trigger signals and a plurality of second trigger signals.

為了能夠更清楚地描述本發明之一種線掃描式攝像機的混合觸發方法、控制裝置、及瑕疵檢測系統,以下將配合圖式,詳盡說明本發明之較佳實施例。 In order to more clearly describe the hybrid triggering method, control device, and defect detection system of a line scan camera of the present invention, the following will be accompanied by drawings to explain in detail the preferred embodiment of the present invention.

圖3為本發明之一種瑕疵檢測系統的立體圖,且圖4為本發明之瑕疵檢測系統的方塊圖。如圖3與圖4所示,該瑕疵檢測系統1係用於對由一卷對卷設備2傳送的一箔狀物3進行表面瑕疵檢測,且包括至少一個線掃描式攝像機11、一編碼器(encoder)12、以及一控制裝置12。在可行的實施例中,該箔狀物3可以是但不限於金屬箔、軟性基材、紙、或覆有外層的軟性基材。並且,該控制裝置12可以是但不限於電路板組件(circuit board assembly)、電子裝置、筆記型電腦、桌上型電腦、工業電腦、平板電腦、或智慧型手機。 FIG. 3 is a perspective view of a defect detection system of the present invention, and FIG. 4 is a block diagram of the defect detection system of the present invention. As shown in Figures 3 and 4, the defect detection system 1 is used to detect surface defects on a foil 3 transported by a roll-to-roll device 2, and includes at least one line scan camera 11 and an encoder. (encoder) 12, and a control device 12. In a feasible embodiment, the foil 3 may be, but is not limited to, a metal foil, a flexible substrate, paper, or a flexible substrate covered with an outer layer. Furthermore, the control device 12 may be, but is not limited to, a circuit board assembly, an electronic device, a notebook computer, a desktop computer, an industrial computer, a tablet computer, or a smart phone.

具體地,該控制裝置12包括一處理器12P與一記憶體12M,且該記憶體12M儲存有包含複數個子程式的一應用程式。如圖4所示,該複數個子程式包括:一以解碼單元12M1呈現的第一子程式以及一 以混合觸發單元12M2呈現的第二子程式。正常工作時,該編碼器13對由該卷對卷設備2傳送的該箔狀物3進行一移動距離監測,並發出一編碼器輸出信號至該處理器12P。之後,該處理器12P通過存取該記憶體12M以執行該第一子程式(即,解碼單元12M1),從而對所述編碼器輸出信號進行解碼以獲得一檢測距離(即,該箔狀物3的移動距離)。接著,配合該箔狀物3的移動速度(即,移動距離)以及該編碼器13的精度,該控制裝置12通過存取該記憶體12M以執行該第二子程式,從而執行本發明之一種混合觸發方法,藉此產生複數個第一觸發信號和複數個第二觸發信號用以控制該線掃描式攝像機11自該箔狀物3拍攝獲得複數個影像條以組成一物件影像(如圖5所示)。 Specifically, the control device 12 includes a processor 12P and a memory 12M, and the memory 12M stores an application program including a plurality of subroutines. As shown in FIG4 , the plurality of subroutines include: a first subroutines presented by a decoding unit 12M1 and a second subroutines presented by a mixing trigger unit 12M2. When working normally, the encoder 13 monitors the moving distance of the foil-like object 3 transmitted by the roll-to-roll device 2 and sends an encoder output signal to the processor 12P. Thereafter, the processor 12P accesses the memory 12M to execute the first subroutine (i.e., the decoding unit 12M1), thereby decoding the encoder output signal to obtain a detection distance (i.e., the moving distance of the foil-like object 3). Then, in accordance with the moving speed (i.e., moving distance) of the foil-like object 3 and the accuracy of the encoder 13, the control device 12 accesses the memory 12M to execute the second subroutine, thereby executing a hybrid triggering method of the present invention, thereby generating a plurality of first triggering signals and a plurality of second triggering signals for controlling the line scan camera 11 to capture a plurality of image strips from the foil-like object 3 to form an object image (as shown in FIG. 5 ).

圖6為本發明之一種混合觸發方法的流程圖。如圖6所示,方法流程首先執行步驟S1:自該編碼器13接收一編碼器輸出信號,且依據該編碼器輸出信號產生用以分時觸發該線掃描式攝像機11的複數個所述第一觸發信號。圖7A為複數個第一觸發信號和複數個第二觸發信號的第一示意性時序圖。如圖7A所示,在對該編碼器輸出信號進行解碼後,該處理器12P獲得該箔狀物3的一檢測距離(即,移動距離)。接著,依據該編碼器13a的精度與該檢測距離,該處理器12P可以產生複數個第一觸發信號TS1,且其中任二個所述第一觸發信號TS1之間具有一第一時間間距t IN1FIG6 is a flow chart of a hybrid triggering method of the present invention. As shown in FIG6, the method flow first executes step S1: receiving an encoder output signal from the encoder 13, and generating a plurality of first trigger signals for time-sharing triggering the line scan camera 11 according to the encoder output signal. FIG7A is a first schematic timing diagram of a plurality of first trigger signals and a plurality of second trigger signals. As shown in FIG7A, after decoding the encoder output signal, the processor 12P obtains a detection distance (i.e., moving distance) of the foil-like object 3. Next, according to the accuracy of the encoder 13a and the detection distance, the processor 12P can generate a plurality of first trigger signals TS1, and any two of the first trigger signals TS1 have a first time interval t IN 1 .

應可理解,所述第一時間間距t IN1指的是發送至該線掃描式攝像機11a的第i個第一觸發信號TS1和第i+1個第一觸發信號TS1之間的時間間隔,i=0~Y-1(即,圖5所示Y行)。舉例而言,當接收到第i個第一觸發信號TS1之後,該線掃描式攝像機11即受觸發而自該箔狀物3擷取一第i個影像條。因此,該編碼器13的精度與其可監測到的 該箔狀物3的最短移動距離(即,最短的所述檢測距離)正相關,亦即和二個所述第一觸發信號TS1之間的時間間隔(即,所述)正相關,而行寬又和二個所述第一觸發信號TS1之間的第一時間間距正相關。故而,行寬的最小值係受限於編碼器的精度及/或其米輪周長。 It should be understood that the first time interval t IN 1 refers to the time interval between the i-th first trigger signal TS1 and the i+1-th first trigger signal TS1 sent to the line scan camera 11a, i=0~Y-1 (i.e., row Y shown in FIG. 5 ). For example, after receiving the i-th first trigger signal TS1, the line scan camera 11 is triggered to capture an i-th image strip from the foil-like object 3. Therefore, the accuracy of the encoder 13 is positively correlated with the shortest moving distance of the foil-like object 3 that can be monitored (i.e., the shortest detection distance), that is, positively correlated with the time interval between the two first trigger signals TS1 (i.e., the), and the line width is positively correlated with the first time interval between the two first trigger signals TS1. Therefore, the minimum value of the line width is limited by the accuracy of the encoder and/or the circumference of its meter wheel.

繼續地,如圖6所示,方法流程接著執行步驟S2:依據所述影像條的寬度、該第一時間間距以及該編碼器13的一檢測距離計算出一第二時間間距。接著,方法流程係執行步驟S3:產生用以分時觸發該線掃描式攝像機11的複數個所述第二觸發信號TS2。具體地,該處理器12P係利用下式(1)和式(2)計算出所述第二時間間距t IN2

Figure 112130751-A0305-02-0011-7
Continuing, as shown in FIG6 , the method flow then executes step S2: a second time interval is calculated according to the width of the image strip, the first time interval and a detection distance of the encoder 13. Then, the method flow executes step S3: a plurality of second trigger signals TS2 are generated for time-sharing triggering the line scan camera 11. Specifically, the processor 12P calculates the second time interval t IN 2 using the following equations (1) and (2):
Figure 112130751-A0305-02-0011-7

Figure 112130751-A0305-02-0011-8
Figure 112130751-A0305-02-0011-8

於上式(1)和式(2)中,D為所述檢測距離,t IN1為所述第一時間間距,t IN2為所述第二時間間距,V為速率,且R為所述影像條的寬度。如圖7所示,計算出所述第二時間間距t IN2之後,該處理器12P便可接著產生用以分時觸發該線掃描式攝像機11的複數個第二觸發信號TS2,其中,該複數個第二觸發信號TS2係插設在任二個所述第一觸發信號TS1之間,二個所述第二觸發信號TS2之間係具有所述第二時間間距t IN2,且所述第二觸發信號TS2和所述第一觸發信號TS1之間具有一第三時間間距t IN3。如此,該處理器12P發送複數個第一觸發信號TS1和複數個第二觸發信號TS2至該線掃描式攝像機11,從而控制該線掃描式攝像機11自該箔狀物3攝得Y個影像條以組成如圖5所示之箔狀物影像。並且,由上式(2)可知,各影像條的行寬為R=t IN2/V。換句話說,該箔狀物影像的解析度也不再與該編碼器13的精度及/或米輪周長直接相關。 In the above formula (1) and formula (2), D is the detection distance, t IN 1 is the first time interval, t IN 2 is the second time interval, V is the speed, and R is the width of the image strip. As shown in FIG7 , after calculating the second time interval t IN 2 , the processor 12P can then generate a plurality of second trigger signals TS2 for time-sharing triggering the line scan camera 11, wherein the plurality of second trigger signals TS2 are inserted between any two of the first trigger signals TS1, the two second trigger signals TS2 have the second time interval t IN 2 , and the second trigger signal TS2 and the first trigger signal TS1 have a third time interval t IN 3 . Thus, the processor 12P sends a plurality of first trigger signals TS1 and a plurality of second trigger signals TS2 to the line scan camera 11, thereby controlling the line scan camera 11 to capture Y image strips from the foil 3 to form a foil image as shown in FIG5 . Moreover, from the above formula (2), it can be seen that the line width of each image strip is R= t IN 2 /V. In other words, the resolution of the foil image is no longer directly related to the accuracy of the encoder 13 and/or the circumference of the meter wheel.

圖7B為複數個第一觸發信號和複數個第二觸發信號的第二示意性時序圖。比較圖7A與圖7B可以得知,在圖7B中所述第一時間間距t IN1變長,這可以理解為原所述編碼器13被替換為另一較低精度者。由於t IN1和D為已知,因此,在確定影像條的目標行寬(target line width,即R值)的情況下,該處理器12P利用上式(1)、(2)計算出所述第二時間間距t IN2,接著產生用以分時觸發該線掃描式攝像機11的複數個第二觸發信號TS2。 FIG7B is a second schematic timing diagram of a plurality of first trigger signals and a plurality of second trigger signals. Comparing FIG7A with FIG7B, it can be seen that the first time interval t IN 1 in FIG7B becomes longer, which can be understood as the original encoder 13 is replaced by another one with lower precision. Since t IN 1 and D are known, when the target line width (i.e., R value) of the image strip is determined, the processor 12P calculates the second time interval t IN 2 using the above formulas (1) and (2), and then generates a plurality of second trigger signals TS2 for time-sharing triggering the line scan camera 11.

綜上所述,即使該瑕疵檢測系統1係使用低經度的編碼器13而導致影像條的最小行寬受到限制,在應用本發明之混合觸發方法的情況下,該控制裝置12亦可產生插設於二個第一觸發信號TS1之間的複數個第二觸發信號TS2,藉此方式進一步縮短影像條的行寬,從而提高包含Y個影像條的箔狀物影像的解析度。換句話說,在應用本發明之混合觸發方法的情況下,該瑕疵檢測系統1被允許搭配低精度、便宜的編碼器,而不需要使有高精度、昂貴的編碼器。 In summary, even if the defect detection system 1 uses a low-precision encoder 13, which results in a limit on the minimum line width of the image strip, the control device 12 can generate a plurality of second trigger signals TS2 inserted between two first trigger signals TS1 when the hybrid trigger method of the present invention is applied, thereby further shortening the line width of the image strip, thereby improving the resolution of the foil image containing Y image strips. In other words, when the hybrid trigger method of the present invention is applied, the defect detection system 1 is allowed to be used with a low-precision, cheap encoder, without the need for a high-precision, expensive encoder.

如此,上述係已完整且清楚地說明本發明所提出的一種線掃描式攝像機的混合觸發方法、控制裝置、及瑕疵檢測系統。必須加以強調的是,上述之詳細說明係針對本發明之可行實施例之具體說明,惟該實施例並非用以限制本發明之專利範圍,凡未脫離本發明創作的技藝精神所為之等效實施或變更,均應包含於本案之專利範圍中。 Thus, the above has completely and clearly described the hybrid triggering method, control device, and defect detection system of a line scan camera proposed by the present invention. It must be emphasized that the above detailed description is a specific description of the feasible implementation example of the present invention, but the implementation example is not used to limit the patent scope of the present invention. Any equivalent implementation or modification that does not deviate from the technical spirit of the invention should be included in the patent scope of this case.

S1~S3:步驟 S1~S3: Steps

Claims (10)

一種混合觸發方法,係由一控制裝置執行,其中該控制裝置整合在包含至少一個線掃描式攝像機以及一編碼器的一瑕疵檢測系統之中,且該線掃描式攝像機受控於該控制裝置而自一物件拍攝獲得複數個影像條以組成一物件影像;所述混合觸發方法包括以下步驟: 自該編碼器接收一編碼器輸出信號,且依據該編碼器輸出信號產生用以分時觸發該線掃描式攝像機的複數個第一觸發信號;其中,任二個所述第一觸發信號之間具有一第一時間間距; 依據所述影像條的寬度、該第一時間間距以及該編碼器的一檢測距離計算出一第二時間間距;以及 產生用以分時觸發該線掃描式攝像機的複數個第二觸發信號,其中,該複數個第二觸發信號係插設在任二個所述第一觸發信號之間,二個所述第二觸發信號係具有所述第二時間間距,且所述第二觸發信號和所述第一觸發信號之間具有一第三時間間距。 A hybrid triggering method is performed by a control device, wherein the control device is integrated into a defect detection system including at least one line scan camera and an encoder, and the line scan camera is controlled by the control device to capture a plurality of image strips from an object to form an object image; the hybrid triggering method includes the following steps: Receiving an encoder output signal from the encoder, and generating a plurality of first triggering signals for time-sharing triggering the line scan camera according to the encoder output signal; wherein there is a first time interval between any two of the first triggering signals; Calculating a second time interval according to the width of the image strip, the first time interval and a detection distance of the encoder; and Generate a plurality of second trigger signals for time-sharing triggering the line scan camera, wherein the plurality of second trigger signals are inserted between any two of the first trigger signals, the two second trigger signals have the second time interval, and there is a third time interval between the second trigger signal and the first trigger signal. 如請求項1所述之混合觸發方法,其中,該控制裝置係利用下式(1)和式(2)計算出所述第二時間間距: ··································· (1); ··································· (2); 其中,D為所述檢測距離, 為所述第一時間間距, 為所述第二時間間距,V為速率,且R為所述影像條的寬度。 The hybrid triggering method as described in claim 1, wherein the control device calculates the second time interval using the following equations (1) and (2): ···································(1); ································ (2); wherein D is the detection distance, is the first time interval, is the second time interval, V is the rate, and R is the width of the image strip. 如請求項1所述之混合觸發方法,其中,該物件為由一卷對卷設備所傳送的一箔狀物,且該箔狀物為選自於由金屬箔、軟性基材、紙、和覆有外層的軟性基材所組成群組之中的任一者。A hybrid triggering method as described in claim 1, wherein the object is a foil-like object conveyed by a roll-to-roll device, and the foil-like object is any one selected from the group consisting of metal foil, a flexible substrate, paper, and a flexible substrate covered with an outer layer. 如請求1所述之混合觸發方法,其中,該控制裝置為選自於由電路板組件(circuit board assembly)、電子裝置、筆記型電腦、桌上型電腦、工業電腦、平板電腦、和智慧型手機所組成群組之中的任一者。The hybrid triggering method as described in claim 1, wherein the control device is any one selected from the group consisting of a circuit board assembly, an electronic device, a laptop computer, a desktop computer, an industrial computer, a tablet computer, and a smart phone. 一種控制裝置,用以整合在包含至少一個線掃描式攝像機以及一編碼器一瑕疵檢測系統之中;其特徵在於,該控制裝置被配置以執行一混合觸發方法,從而產生複數個第一觸發信號和複數個第二觸發信號用以控制該線掃描式攝像機自一物件拍攝獲得複數個影像條以組成一物件影像,且該混合觸發方法包括以下步驟: 自該編碼器接收一編碼器輸出信號,且依據該編碼器輸出信號產生用以分時觸發該線掃描式攝像機的複數個所述第一觸發信號;其中,任二個所述第一觸發信號之間具有一第一時間間距; 依據所述影像條的寬度、該第一時間間距以及該編碼器的一檢測距離計算出一第二時間間距;以及 產生用以分時觸發該線掃描式攝像機的複數個所述第二觸發信號,其中,該複數個第二觸發信號係插設在任二個所述第一觸發信號之間,二個所述第二觸發信號係具有所述第二時間間距,且所述第二觸發信號和所述第一觸發信號之間具有一第三時間間距。 A control device for integration into a defect detection system including at least one line scan camera and an encoder; the control device is configured to execute a hybrid triggering method, thereby generating a plurality of first triggering signals and a plurality of second triggering signals for controlling the line scan camera to capture a plurality of image strips from an object to form an object image, and the hybrid triggering method comprises the following steps: Receiving an encoder output signal from the encoder, and generating a plurality of the first triggering signals for time-sharing triggering the line scan camera according to the encoder output signal; wherein there is a first time interval between any two of the first triggering signals; A second time interval is calculated according to the width of the image strip, the first time interval and a detection distance of the encoder; and A plurality of the second trigger signals are generated for time-sharing triggering the line scan camera, wherein the plurality of second trigger signals are inserted between any two of the first trigger signals, the two second trigger signals have the second time interval, and there is a third time interval between the second trigger signal and the first trigger signal. 如請求5所述之控制裝置,其中,該控制裝置為選自於由電路板組件(circuit board assembly)、電子裝置、筆記型電腦、桌上型電腦、工業電腦、平板電腦、和智慧型手機所組成群組之中的任一者。The control device as described in claim 5, wherein the control device is any one selected from the group consisting of a circuit board assembly, an electronic device, a laptop computer, a desktop computer, an industrial computer, a tablet computer, and a smart phone. 如請求5所述之控制裝置,其中,該控制裝置包括一處理器與一記憶體,該記憶體儲存有包含複數個子程式的一應用程式,且該複數個子程式包括: 一第一子程式,其中該處理器通過存取該記憶體以執行該第一子程式,從而對所述編碼器輸出信號進行解碼以獲得所述檢測距離;以及 一第二子程式,其中該處理器通過存取該記憶體以執行該第二子程式,從而執行所述混合觸發方法。 A control device as described in claim 5, wherein the control device includes a processor and a memory, the memory stores an application including a plurality of subroutines, and the plurality of subroutines include: a first subroutine, wherein the processor accesses the memory to execute the first subroutine, thereby decoding the encoder output signal to obtain the detection distance; and a second subroutine, wherein the processor accesses the memory to execute the second subroutine, thereby executing the hybrid triggering method. 如請求7所述之控制裝置,其中,該處理器係利用下式(1)和式(2)計算出所述第二時間間距: ··································· (1); ··································· (2); 其中,D為所述檢測距離, 為所述第一時間間距, 為所述第二時間間距,V為速率,且R為所述影像條的寬度。 The control device as claimed in claim 7, wherein the processor calculates the second time interval using the following equations (1) and (2): ···································(1); ································ (2); wherein D is the detection distance, is the first time interval, is the second time interval, V is the rate, and R is the width of the image strip. 如請求項5所述之控制裝置,其中,該物件為由一卷對卷設備所傳送的一箔狀物,且該箔狀物為選自於由金屬箔、軟性基材、紙、和覆有外層的軟性基材所組成群組之中的任一者。A control device as described in claim 5, wherein the object is a foil-like object conveyed by a roll-to-roll device, and the foil-like object is any one selected from the group consisting of metal foil, a flexible substrate, paper, and a flexible substrate covered with an outer layer. 一種瑕疵檢測系統,用以對由一卷對卷設備傳送的一箔狀物進行表面瑕疵檢測,其特徵在於,所述瑕疵檢測系統包括至少一個線掃描式攝像機、一編碼器以及如請求項5至請求項9之中任一項所述之控制裝置。A defect detection system for detecting surface defects on a foil-like object conveyed by a roll-to-roll device, characterized in that the defect detection system comprises at least one line scan camera, an encoder and a control device as described in any one of claim 5 to claim 9.
TW112130751A 2023-08-16 2023-08-16 Hybrid trigger method for line scan camera, electronic device and defect inspection system TWI866395B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW112130751A TWI866395B (en) 2023-08-16 2023-08-16 Hybrid trigger method for line scan camera, electronic device and defect inspection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW112130751A TWI866395B (en) 2023-08-16 2023-08-16 Hybrid trigger method for line scan camera, electronic device and defect inspection system

Publications (2)

Publication Number Publication Date
TWI866395B true TWI866395B (en) 2024-12-11
TW202509461A TW202509461A (en) 2025-03-01

Family

ID=94769313

Family Applications (1)

Application Number Title Priority Date Filing Date
TW112130751A TWI866395B (en) 2023-08-16 2023-08-16 Hybrid trigger method for line scan camera, electronic device and defect inspection system

Country Status (1)

Country Link
TW (1) TWI866395B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201105956A (en) * 2009-06-04 2011-02-16 Panasonic Corp Image-pickup inspection method
CN106596574A (en) * 2017-01-13 2017-04-26 深圳市视觉龙科技有限公司 Device and method for detecting object surface defects
US20180348146A1 (en) * 2017-05-31 2018-12-06 Keyence Corporation Image Inspection Apparatus
CN112557408A (en) * 2021-02-25 2021-03-26 中科慧远视觉技术(北京)有限公司 Stroboscopic step lighting defect detection system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201105956A (en) * 2009-06-04 2011-02-16 Panasonic Corp Image-pickup inspection method
CN106596574A (en) * 2017-01-13 2017-04-26 深圳市视觉龙科技有限公司 Device and method for detecting object surface defects
US20180348146A1 (en) * 2017-05-31 2018-12-06 Keyence Corporation Image Inspection Apparatus
CN112557408A (en) * 2021-02-25 2021-03-26 中科慧远视觉技术(北京)有限公司 Stroboscopic step lighting defect detection system

Also Published As

Publication number Publication date
TW202509461A (en) 2025-03-01

Similar Documents

Publication Publication Date Title
CN103369347A (en) Camera blemish defects detection
CN110620887B (en) Image generation device and image generation method
US20150042784A1 (en) Image photographing method and image photographing device
DE112021004793T5 (en) Device for three-dimensional measurements
JP5128699B1 (en) Wiring inspection method and wiring inspection apparatus
KR100837459B1 (en) Image pickup method of display panel and image pickup apparatus of display panel
JPH0865000A (en) Printed circuit board visual inspection device
TWI866395B (en) Hybrid trigger method for line scan camera, electronic device and defect inspection system
US20090022406A1 (en) Method for finding specific pattern and method for compensating image offset
CN118488329A (en) Pixel dead pixel correction method and device, electronic equipment and storage medium
JP5417997B2 (en) Imaging inspection method
CN119492744A (en) Hybrid triggering method, control device, and defect detection system for line scan camera
JP4947887B2 (en) Process evaluation method and apparatus in semiconductor product manufacturing process
TWM633152U (en) Abnormal inspection apparatus
JP7305509B2 (en) Information processing device, its control method, program, and storage medium
EP3477588B1 (en) Image processing apparatus, image processing method, and recording medium
TWI469089B (en) Image determining method and object coordinate computing apparatus
JP2021148720A (en) Inspection system, learning device, learning program, learning method, inspection device, inspection program, and inspection method
JP2799032B2 (en) Visual recognition position correction method
JPH066796A (en) Monitoring device
JP4560969B2 (en) Defect inspection method
CN110958447B (en) Camera optical center testing method and device, computer equipment and medium
CN117667735B (en) Image enhancement software response time calibration device and method
TW202401373A (en) Abnormal inspection apparatus and abnormal inspection method
JP2010276481A (en) Image processing device