TWI728708B - Automated optical inspection system and metod for inspecting defect in contact lens edge the same - Google Patents

Automated optical inspection system and metod for inspecting defect in contact lens edge the same Download PDF

Info

Publication number
TWI728708B
TWI728708B TW109105190A TW109105190A TWI728708B TW I728708 B TWI728708 B TW I728708B TW 109105190 A TW109105190 A TW 109105190A TW 109105190 A TW109105190 A TW 109105190A TW I728708 B TWI728708 B TW I728708B
Authority
TW
Taiwan
Prior art keywords
section
contact lens
similarity
edge
defect
Prior art date
Application number
TW109105190A
Other languages
Chinese (zh)
Other versions
TW202132754A (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 TW109105190A priority Critical patent/TWI728708B/en
Application granted granted Critical
Publication of TWI728708B publication Critical patent/TWI728708B/en
Publication of TW202132754A publication Critical patent/TW202132754A/en

Links

Images

Landscapes

  • Testing Of Optical Devices Or Fibers (AREA)

Abstract

An automated optical inspection (AOI) system and method for inspecting defect in contact lens edge the same are provided. The AOI system can divide the contact lens edge into a plurality of segments, and then perform similarity analysis s on these segments, and detect whether there are defect in the contact lens edge according to the results of the similarity analysis. Therefore, the AOI system does not need to use a qualified reference image to compare with the contact lens, the AOI system uses each part of the contact lens edge itself for self-inspection to improve the accuracy of detection.

Description

自動光學檢測系統及其檢測隱形眼鏡邊緣瑕疵的方法Automatic optical detection system and method for detecting edge defect of contact lens

本發明是關於一種檢測系統,且特別是關於一種自動光學檢測(Automated Optical Inspection,AOI)系統及其檢測隱形眼鏡邊緣瑕疵的方法。 The invention relates to a detection system, and more particularly to an automatic optical inspection (Automated Optical Inspection, AOI) system and a method for detecting edge defects of contact lenses.

隱形眼鏡邊緣的瑕疵包括變形、缺口、裂痕和毛邊等,而且為改善人工目視檢測的效率,目前業者使用AOI系統來進行自動化檢測。AOI系統可分為硬體及軟體兩大部分,硬體部分為利用攝像裝置搭配適當的光源以擷取隱形眼鏡影像,而軟體部分著重在演算法的開發,例如通過開發的邊緣檢測演算法,AOI系統可檢測出隱形眼鏡邊緣是否有瑕疵。 Defects on the edge of contact lenses include deformation, nicks, cracks, and burrs. In order to improve the efficiency of manual visual inspection, the industry currently uses AOI systems for automated inspection. The AOI system can be divided into two parts: hardware and software. The hardware part uses a camera device with an appropriate light source to capture contact lens images, while the software part focuses on the development of algorithms, such as edge detection algorithms developed. The AOI system can detect whether there are defects on the edge of the contact lens.

然而,已知的邊緣檢測演算法通常是將擷取到的隱形眼鏡影像與合格的參考影像作比對,以檢測出隱形眼鏡邊緣的瑕疵,但其缺點為針對一些較細微的瑕疵將仍難以被檢測出。另外,光照不均勻也會影響檢測的精準度。因此,如何設計出一種AOI系統及其檢測隱形眼鏡邊緣瑕疵的方法則成為本領域的一項重要課題。 However, the known edge detection algorithm usually compares the captured contact lens image with a qualified reference image to detect the flaws on the edge of the contact lens, but its disadvantage is that it is still difficult to target some subtle flaws. Was detected. In addition, uneven illumination will also affect the accuracy of detection. Therefore, how to design an AOI system and a method for detecting edge defects of contact lenses has become an important topic in this field.

有鑑於此,本發明實施例提供一種AOI系統,包括載盤、光源 模組、影像擷取模組和系統主機。載盤用來承載隱形眼鏡,光源模組則置於載盤下方,並用來發射平行光至隱形眼鏡上。影像擷取模組置於載盤上方,並對應於隱形眼鏡的位置,用來取得隱形眼鏡的輪廓影像。系統主機耦接影像擷取模組,用來將輪廓影像上的隱形眼鏡邊緣分為多個區段,然後對這些區段交互進行相似性分析,並根據相似性分析的結果,檢測隱形眼鏡邊緣是否有瑕疵。 In view of this, an embodiment of the present invention provides an AOI system, including a tray, a light source Module, image capture module and system host. The carrier plate is used to carry the contact lens, and the light source module is placed under the carrier plate and used to emit parallel light onto the contact lens. The image capturing module is placed on the top of the tray and corresponds to the position of the contact lens, and is used to obtain the contour image of the contact lens. The system host is coupled to the image capture module to divide the edge of the contact lens on the contour image into multiple segments, and then perform similarity analysis on the interaction of these segments, and detect the edge of the contact lens based on the results of the similarity analysis Whether there are blemishes.

除此之外,本發明實施例另提供一種檢測隱形眼鏡邊緣瑕疵的方法,執行於AOI系統中,AOI系統包括載盤、光源模組、影像擷取模組和系統主機,所述方法包括如下步驟。首先,利用載盤承載隱形眼鏡,並利用光源模組發射平行光至隱形眼鏡上。其次,利用影像擷取模組取得隱形眼鏡的輪廓影像。接著,利用系統主機將輪廓影像上的隱形眼鏡邊緣分為多個區段,然後對這些區段交互進行相似性分析,並根據相似性分析的結果,檢測隱形眼鏡邊緣是否有瑕疵。 In addition, embodiments of the present invention provide a method for detecting edge defects of contact lenses, which is implemented in an AOI system. The AOI system includes a tray, a light source module, an image capture module, and a system host. The method includes the following step. First, the contact lens is carried by the carrier plate, and the parallel light is emitted to the contact lens by the light source module. Secondly, the image capturing module is used to obtain the contour image of the contact lens. Then, the system host is used to divide the edge of the contact lens on the contour image into multiple segments, and then the similarity analysis is performed on the interaction of these segments, and according to the results of the similarity analysis, it is detected whether the edge of the contact lens is flawed.

為使能更進一步瞭解本發明的特徵及技術內容,請參閱以下有關本發明的詳細說明與圖式,然而所提供的圖式僅用於提供參考與說明,並非用來對本發明加以限制。 In order to further understand the features and technical content of the present invention, please refer to the following detailed description and drawings about the present invention. However, the drawings provided are only for reference and description, and are not used to limit the present invention.

1:AOI系統 1: AOI system

10:載盤 10: loading plate

12:光源模組 12: Light source module

14:影像擷取模組 14: Image capture module

16:系統主機 16: System host

20:隱形眼鏡 20: Contact lenses

30:緩衝液 30: buffer

S310~S350:流程步驟 S310~S350: Process steps

P1~P16:區段 P1~P16: section

圖1是本發明實施例所提供的AOI系統的示意圖。 Fig. 1 is a schematic diagram of an AOI system provided by an embodiment of the present invention.

圖2是本發明實施例所提供隱形眼鏡的輪廓影像的示意圖。 Fig. 2 is a schematic diagram of a contour image of a contact lens provided by an embodiment of the present invention.

圖3是本發明實施例所提供檢測隱形眼鏡邊緣瑕疵的方法的步驟流程圖。 FIG. 3 is a flowchart of the steps of a method for detecting edge defects of a contact lens provided by an embodiment of the present invention.

以下是通過特定的具體實施例來說明本發明的實施方式,本領域技術人員可由本說明書所提供的內容瞭解本發明的優點與效果。本發明可通過其他不同的具體實施例加以施行或應用,本說明書中的各項細節也可基於不同觀點與應用,在不悖離本發明的構思下進行各種修改與變更。另外,本發明的附圖僅為簡單示意說明,並非依實際尺寸的描繪,事先聲明。以下的實施方式將進一步詳細說明本發明的相關技術內容,但所提供的內容並非用以限制本發明的保護範圍。 The following are specific specific examples to illustrate the implementation of the present invention, and those skilled in the art can understand the advantages and effects of the present invention from the content provided in this specification. The present invention can be implemented or applied through other different specific embodiments, and various details in this specification can also be based on different viewpoints and applications, and various modifications and changes can be made without departing from the concept of the present invention. In addition, the drawings of the present invention are merely schematic illustrations, and are not drawn according to actual dimensions, and are stated in advance. The following embodiments will further describe the related technical content of the present invention in detail, but the provided content is not intended to limit the protection scope of the present invention.

應當理解的是,雖然本文中可能會使用到“第一”、“第二”、“第三”等術語來描述各種元件或者信號,但這些元件或者信號不應受這些術語的限制。這些術語主要是用以區分一元件與另一元件,或者一信號與另一信號。另外,本文中所使用的術語“或”,應視實際情況可能包含相關聯的列出項目中的任一個或者多個的組合。 It should be understood that although terms such as "first", "second", and "third" may be used herein to describe various elements or signals, these elements or signals should not be limited by these terms. These terms are mainly used to distinguish one element from another, or one signal from another signal. In addition, the term "or" used in this article may include any one or a combination of more of the associated listed items depending on the actual situation.

首先,請參閱圖1,圖1是本發明實施例所提供的AOI系統的示意圖。如圖1所示,AOI系統1包括載盤10、光源模組12、影像擷取模組14和系統主機16,其中光源模組12和影像擷取模組14可以是透過純硬體來實現,或者是透過硬體搭配韌體或軟體來實現,但本發明並不以此為限制。在本實施例中,載盤10用來承載隱形眼鏡20,且實務上,載盤10內可盛有緩衝液30,使得隱形眼鏡20浸泡於緩衝液30中以達到保護作用,但本發明亦不以此為限制。另外,光源模組12置於載盤10下方,並用來發射平行光至隱形眼鏡20上。需說明的是,平行光又稱為方向光,它是一組沒有衰減的平行光線。因此,AOI系統1將可避免受光照不均勻的影響。 First, please refer to FIG. 1, which is a schematic diagram of an AOI system provided by an embodiment of the present invention. As shown in Figure 1, the AOI system 1 includes a tray 10, a light source module 12, an image capture module 14 and a system host 16. The light source module 12 and the image capture module 14 can be implemented by pure hardware. , Or it can be realized through hardware and firmware or software, but the present invention is not limited by this. In this embodiment, the carrier plate 10 is used to carry the contact lens 20, and in practice, the carrier plate 10 can contain a buffer 30 so that the contact lens 20 is immersed in the buffer 30 for protection, but the present invention also Do not use this as a restriction. In addition, the light source module 12 is placed under the carrier plate 10 and used to emit parallel light to the contact lens 20. It should be noted that parallel light is also called directional light, which is a group of parallel light without attenuation. Therefore, the AOI system 1 will be able to avoid the effects of uneven illumination.

影像擷取模組14則置於載盤10上方,並對應於隱形眼鏡20的位置,用來取得隱形眼鏡20的輪廓影像,如圖2所示。實務上,影像擷取模組14可例如是由電荷耦合裝置(CCD)和鏡頭所組成,但本發明並不以此為限制。 另外,影像擷取模組14耦接系統主機16,並將取得到的輪廓影像傳輸至系統主機16。在本實施例中,系統主機16可例如是由個人電腦和週邊設備所組成,但本發明亦不以此為限制。總而言之,本技術領域中具有通常知識者應可理解到系統主機16包含作業系統(圖1未示),且作業系統將載有邊緣檢測演算法,以指示系統主機16用來將輪廓影像上的隱形眼鏡邊緣分為多個區段,然後對這些區段交互進行相似性分析,並根據相似性分析的結果,檢測隱形眼鏡邊緣是否有瑕疵。 The image capturing module 14 is placed above the tray 10 and corresponds to the position of the contact lens 20 to obtain the contour image of the contact lens 20, as shown in FIG. 2. In practice, the image capturing module 14 may be composed of, for example, a charge coupled device (CCD) and a lens, but the present invention is not limited thereto. In addition, the image capturing module 14 is coupled to the system host 16 and transmits the obtained contour image to the system host 16. In this embodiment, the system host 16 may be composed of, for example, a personal computer and peripheral devices, but the present invention is not limited thereto. All in all, those skilled in the art should understand that the system host 16 includes an operating system (not shown in FIG. 1), and the operating system will carry an edge detection algorithm to instruct the system host 16 to use the contour image The edge of the contact lens is divided into multiple segments, and then the similarity analysis is performed on the interaction of these segments, and according to the result of the similarity analysis, whether the edge of the contact lens is flawed is detected.

舉例來說,為了方便以下說明,本實施例僅以系統主機16將圖2的輪廓影像上的隱形眼鏡邊緣分為16個區段,即區段P1~區段P16的例子,但其並非用以限制本發明。也就是說,每一區段代表一小部分的隱形眼鏡邊緣,且實務上,沒有瑕疵的邊緣(區段)與沒有瑕疵的邊緣(區段)作相似性分析應該會得到高的相似度(Similarity Measure),但有瑕疵的邊緣(區段)與沒有瑕疵的邊緣(區段)作相似性分析則得到低的相似度。另外,因為每一個瑕疵都有它的獨特性,所以即使有某一瑕疵的邊緣(區段)與有另一瑕疵的邊緣(區段)作相似性分析也不會得到高的相似度。因此,在本實施例中,相似性分析的結果將用以相似度表示,而且系統主機16可將任二個邊緣(區段)的相似度和一門限值作比較,以檢測出隱形眼鏡邊緣是否有瑕疵。請注意,本發明並不限制門限值的具體數值,本技術領域中具有通常知識者應可依據實際需求或應用來進行設計。 For example, for the convenience of the following description, this embodiment only uses the system host 16 to divide the edge of the contact lens on the contour image of FIG. 2 into 16 sections, namely section P1 to section P16, but it is not used To limit the present invention. That is to say, each segment represents a small part of the edge of the contact lens, and in practice, the similarity analysis of the edge (segment) without a defect and the edge (segment) without a defect should give a high degree of similarity ( Similarity Measure), but the similarity analysis of the edges (sections) with flaws and the edges (sections) without flaws results in low similarity. In addition, because each defect has its own uniqueness, even if the edge (section) with a certain defect and the edge (section) with another defect are analyzed for similarity, a high degree of similarity will not be obtained. Therefore, in this embodiment, the result of the similarity analysis will be expressed by the similarity, and the system host 16 can compare the similarity of any two edges (sections) with a threshold to detect the edge of the contact lens. Whether there are blemishes. Please note that the present invention does not limit the specific value of the threshold value, and those skilled in the art should be able to design according to actual needs or applications.

如圖2所示,因為區段P1有缺口瑕疵但區段P2沒有瑕疵,所以區段P1和區段P2的相似度應低於門限值,且這時候的系統主機16尚未能知道是區段P1有瑕疵而區段P2沒有瑕疵。因此,當區段P1和區段P2的相似度低於門限值時,系統主機16則檢測出隱形眼鏡邊緣有瑕疵,並可判斷區段P1和區段P2的至少一者為有瑕疵的隱形眼鏡邊緣。接著,為了進一步確認有瑕疵的 是區段P1和/或區段P2,所以系統主機16可再對區段P1和區段P3進行相似性分析,以及對區段P2和區段P3進行相似性分析。然而,由於區段P3也沒有瑕疵,所以當區段P1和區段P3的相似度也低於門限值,但區段P2和區段P3的相似度高於門限值時,系統主機16則可判斷區段P1為有瑕疵的隱形眼鏡邊緣。 As shown in Figure 2, because the section P1 has notch defects but the section P2 has no defects, the similarity between the section P1 and the section P2 should be lower than the threshold, and the system host 16 at this time has not yet been able to know that it is a section. Segment P1 has defects and segment P2 has no defects. Therefore, when the similarity between the section P1 and the section P2 is lower than the threshold value, the system host 16 detects that the edge of the contact lens is flawed, and can determine that at least one of the section P1 and the section P2 is a flawed invisible The edge of the glasses. Next, in order to further confirm the flawed It is the section P1 and/or the section P2, so the system host 16 can analyze the similarity between the section P1 and the section P3, and perform the similarity analysis on the section P2 and the section P3. However, since the section P3 is not flawed, when the similarity between the section P1 and the section P3 is also lower than the threshold, but the similarity between the section P2 and the section P3 is higher than the threshold, the system host 16 can The segment P1 is judged to be a defective contact lens edge.

類似地,系統主機16可再對區段P1和區段P4進行相似性分析、對區段P2和區段P4進行相似性分析,以及對區段P3和區段P4進行相似性分析。因此,在其它實施例中,即使區段P1~區段P4為兩個區段有瑕疵的話,系統主機16也可根據這六個組合(即區段P1和區段P2、區段P1和區段P3、區段P1和區段P4、區段P2和區段P3、區段P2和區段P4,以及區段P3和區段P4)的相似度,判斷出區段P1~區段P4為哪兩個區段有瑕疵。總而言之,本發明並不限制從這些區段中取出兩個區段以進行相似性分析的順序。另外,假如區段P1~區段P4為三個以上區段有瑕疵的話,系統主機16就得再以其它區段和區段P1~區段P4交互進行相似性分析。也就是說,區段分得越多的話,區段所能交互進行相似性分析的組合則越多,而且根據越多組合的相似度,系統主機16就可有效判斷出越多個有瑕疵的區段,亦即提升了檢測的精準度。因此,本技術領域中具有通常知識者應可依據實際需求或應用來決定分割的區段數目。 Similarly, the system host 16 can perform similarity analysis on the section P1 and the section P4, perform similarity analysis on the section P2 and the section P4, and perform similarity analysis on the section P3 and the section P4. Therefore, in other embodiments, even if the sections P1 to P4 are defective in two sections, the system host 16 can also use these six combinations (that is, section P1 and section P2, section P1 and section P1). Section P3, section P1 and section P4, section P2 and section P3, section P2 and section P4, and section P3 and section P4) similarity, it is judged that section P1~section P4 are Which two sections are flawed. In a word, the present invention does not limit the sequence of taking out two sections from these sections for similarity analysis. In addition, if the section P1 to section P4 are defective in more than three sections, the system host 16 has to perform similarity analysis by interacting with other sections and section P1 to section P4. In other words, the more sections are divided, the more combinations of similarity analysis the sections can interact with, and based on the similarity of the more combinations, the system host 16 can effectively determine the more defective Section, which improves the accuracy of detection. Therefore, those skilled in the art should be able to determine the number of segments to be divided according to actual needs or applications.

另外,如前所述,AOI系統1因使用平行光而避免受光照不均勻的影響,但為了落實克服光照影響檢測的精準度,系統主機16更是以受光照程度相似的多個區段來交互進行相似性分析。例如,區段P1~區段P4為受光照程度相似的四個區段,因此,系統主機16是以受光照程度相似的區段P1~區段P4來交互進行相似性分析,並且根據前述六個組合的相似度,系統主機16可檢測出區段P1~區段P4是否有瑕疵。類似地,區段P5~區段P8為受光照程度相似的另四個區段,因此,系統主機16是以受光照程度相似的區段P5~ 區段P8來交互進行相似性分析。也就是說,系統主機16可再從區段P5~區段P8中交互取出兩個區段以進行相似性分析,即共可得到新的六個組合(即區段P5和區段P6、區段P5和區段P7、區段P5和區段P8、區段P6和區段P7、區段P6和區段P8,以及區段P7和區段P8)的相似度,並且根據這新的六個組合的相似度,系統主機16可檢測出區段P5~區段P8是否有瑕疵。由於判斷細節已如同前述內容所述,故於此就不再多加贅述。 In addition, as mentioned above, the AOI system 1 uses parallel light to avoid the impact of uneven illumination. However, in order to achieve the accuracy of overcoming the impact of illumination, the system host 16 uses multiple sections with similar illumination levels. Perform similarity analysis interactively. For example, section P1 to section P4 are four sections with similar light levels. Therefore, the system host 16 uses sections P1 to P4 with similar light levels to perform similarity analysis interactively, and according to the preceding six sections. Based on the similarity of each combination, the system host 16 can detect whether there is a defect in the section P1 to the section P4. Similarly, the sections P5~P8 are the other four sections with similar light levels. Therefore, the system host 16 is the section P5~ with similar light levels. Section P8 to interactively perform similarity analysis. In other words, the system host 16 can alternately take out two sections from section P5~section P8 for similarity analysis, that is, a total of six new combinations (that is, section P5 and section P6, section The similarity between section P5 and section P7, section P5 and section P8, section P6 and section P7, section P6 and section P8, and section P7 and section P8), and according to this new six Based on the similarity of each combination, the system host 16 can detect whether the section P5~section P8 are defective. Since the details of the judgment are as described in the foregoing content, it will not be repeated here.

同樣地,區段P9~區段P12又為受光照程度相似的另四個區段,且區段P13~區段P16為受光照程度相似的最後四個區段,因此,系統主機16是以受光照程度相似的區段P9~區段P12來交互進行相似性分析,並且是以受光照程度相似的區段P13~區段P16來交互進行相似性分析。如圖2所示,因為區段P10有變形瑕疵但區段P9沒有瑕疵,所以區段P9和區段P10的相似度應低於門限值,且這時候的系統主機16尚未能知道是區段P10有瑕疵而區段P9沒有瑕疵。因此,當區段P9和區段P10的相似度低於門限值時,系統主機16則可同樣判斷區段P9和區段P10的至少一者為有瑕疵的隱形眼鏡邊緣。接著,由於區段P11也沒有瑕疵,所以當區段P10和區段P11的相似度也低於門限值,但區段P9和區段P11的相似度高於門限值時,系統主機16則可判斷區段P10為有瑕疵的隱形眼鏡邊緣。由於運作細節皆已如同前述內容所述,故於此就不再多加贅述。 Similarly, section P9~section P12 are the other four sections with similar illumination levels, and section P13~section P16 are the last four sections with similar illumination levels. Therefore, the system host 16 is based on The section P9~section P12 with similar light intensity is used for interactive similarity analysis, and the section P13~section P16 with similar light intensity is used for interactive similarity analysis. As shown in Figure 2, because the section P10 has deformation defects but the section P9 has no defects, the similarity between the section P9 and the section P10 should be lower than the threshold, and the system host 16 at this time has not yet been able to know that it is a section. Segment P10 has a defect and segment P9 has no defect. Therefore, when the similarity between the section P9 and the section P10 is lower than the threshold value, the system host 16 can also determine that at least one of the section P9 and the section P10 is a defective contact lens edge. Then, since the section P11 is also free of defects, when the similarity between the section P10 and the section P11 is also lower than the threshold, but the similarity between the section P9 and the section P11 is higher than the threshold, the system host 16 can The segment P10 is judged to be a defective contact lens edge. Since the operation details are as described in the previous content, I will not repeat them here.

請注意,本實施例皆僅示意受光照程度相似的最初相鄰三個區段中為一個區段有瑕疵,並且根據從這三個區段中交互取出兩個區段以進行相似性分析的三個組合的相似度,系統主機16就能檢測出這三個區段為哪一個區段有瑕疵,但針對受光照程度相似的多個區段,且這多個區段中為一個以上任意位置的區段有瑕疵時,本技術領域中具有通常知識者應可瞭解到,系統主機16都能根據從這多個區段中交互取出兩個區段以進行相似性分析的 所有組合的相似度,檢測出這多個區段中為哪幾個區段有瑕疵,故其修改或變更的判斷細節於此就不再多加贅述。如前所述,本發明並不限制從這多個區段中取出兩個區段以進行相似性分析的順序,而且區段分得越多的話,區段所能交互進行相似性分析的組合則越多,並根據越多組合的相似度,系統主機16就可有效判斷出越多個有瑕疵的區段。 Please note that this embodiment only indicates that one of the first three adjacent sections with similar light levels is flawed, and the two sections are interactively extracted from these three sections for similarity analysis. Based on the similarity of the three combinations, the system host 16 can detect which of the three sections is defective, but for multiple sections with similar light levels, and there is more than one of these multiple sections. When the location section is defective, those with ordinary knowledge in the technical field should understand that the system host 16 can extract two sections from these multiple sections interactively for similarity analysis. For the similarity of all combinations, it is detected which of the multiple sections are defective, so the details of the judgment of the modification or change will not be repeated here. As mentioned above, the present invention does not limit the sequence of taking out two sections from these multiple sections for similarity analysis, and the more sections are divided, the combination of similarity analysis that the sections can interact with The more, and based on the similarity of the more combinations, the system host 16 can effectively determine the more defective sections.

最後,為了更進一步說明關於AOI系統1的運作流程,本發明進一步提供其運作方法的一種實施方式。請參閱圖3,圖3是本發明實施例所提供檢測隱形眼鏡邊緣瑕疵的方法的步驟流程圖。需說明的是,圖3的方法可以是執行於圖1的AOI系統1中,因此請一併參照圖1以利理解,但本發明並不限制圖3的方法僅能夠執行於圖1的AOI系統1中。 Finally, in order to further explain the operation process of the AOI system 1, the present invention further provides an implementation method of its operation method. Please refer to FIG. 3, which is a flow chart of the method for detecting edge defects of contact lenses provided by an embodiment of the present invention. It should be noted that the method in FIG. 3 can be executed in the AOI system 1 in FIG. 1, so please refer to FIG. 1 together to facilitate understanding, but the present invention does not limit the method in FIG. 3 to only be executed in the AOI system in FIG. System 1.

如圖3所示,在步驟S310中,利用載盤10承載隱形眼鏡20,並在步驟S320中,利用光源模組12發射平行光至隱形眼鏡20上。接著,在步驟S330中,利用影像擷取模組14取得隱形眼鏡20的輪廓影像,並在步驟S340中,利用系統主機16將輪廓影像上的隱形眼鏡邊緣分為多個區段,如圖2所示。然後,在步驟S350中,對這些區段交互進行相似性分析,並根據相似性分析的結果,檢測隱形眼鏡邊緣是否有瑕疵。由於其細節已如同前述內容所述,故於此就不再多加贅述。 As shown in FIG. 3, in step S310, the carrier plate 10 is used to carry the contact lens 20, and in step S320, the light source module 12 is used to emit parallel light onto the contact lens 20. Next, in step S330, the image capturing module 14 is used to obtain the contour image of the contact lens 20, and in step S340, the system host 16 is used to divide the edge of the contact lens on the contour image into multiple segments, as shown in FIG. 2 Shown. Then, in step S350, similarity analysis is performed on these section interactions, and according to the result of the similarity analysis, it is detected whether there is a defect on the edge of the contact lens. Since the details are as described in the previous content, it will not be repeated here.

綜上所述,本發明實施例提供一種AOI系統及其檢測隱形眼鏡邊緣瑕疵的方法,可以是將隱形眼鏡邊緣分為多個區段,然後對這些區段交互進行相似性分析,並根據相似性分析的結果,檢測隱形眼鏡邊緣是否有瑕疵。因此,本發明不需用到合格的參考影像來與隱形眼鏡作比對,而是利用隱形眼鏡邊緣本身的每個部分來進行自我檢測,其優點除了簡化複雜的影像處理外,針對一些較細微的瑕疵也都能夠通過各部分的相似度來檢測出,亦即提升了檢測的精準度。另外,本發明除了使用平行光照射隱形眼鏡,更以 受光照程度相似的多個區段來交互進行相似性分析,以達到克服光照不均勻影響檢測的問題。 In summary, the embodiments of the present invention provide an AOI system and a method for detecting edge defects of contact lenses. The edge of the contact lens can be divided into multiple segments, and then similarity analysis is performed on the interaction of these segments, and based on the similarity The result of the sexual analysis is to detect whether there are defects on the edge of the contact lens. Therefore, the present invention does not need to use a qualified reference image to compare with the contact lens, but uses each part of the edge of the contact lens to perform self-detection. Its advantages are not only simplifying the complicated image processing, but also aiming at some of the more subtle The flaws can also be detected by the similarity of each part, which improves the accuracy of detection. In addition, the present invention not only uses parallel light to illuminate the contact lens, but also Similarity analysis is performed interactively on multiple sections with similar illumination levels to overcome the problem of uneven illumination affecting detection.

以上所提供的內容僅為本發明的優選可行實施例,並非因此侷限本發明的申請專利範圍,所以凡是運用本發明說明書及圖式內容所做的等效技術變化,均包含於本發明的申請專利範圍內。 The content provided above is only the preferred and feasible embodiments of the present invention, and does not limit the scope of the patent application of the present invention. Therefore, all equivalent technical changes made by using the description and schematic content of the present invention are included in the application of the present invention. Within the scope of the patent.

S310~S350:流程步驟 S310~S350: Process steps

Claims (10)

一種自動光學檢測系統,包括:一載盤,用來承載一隱形眼鏡;一光源模組,置於該載盤下方,用來發射平行光至該隱形眼鏡上;一影像擷取模組,置於該載盤上方,並對應於該隱形眼鏡的位置,用來取得該隱形眼鏡的一輪廓影像;以及一系統主機,耦接該影像擷取模組,用來將該輪廓影像上的該隱形眼鏡邊緣分為多個區段,然後對該些區段交互進行相似性分析,並根據該相似性分析的結果,檢測該隱形眼鏡邊緣是否有瑕疵。 An automatic optical inspection system includes: a carrier plate for carrying a contact lens; a light source module placed under the carrier plate for emitting parallel light to the contact lens; and an image capturing module Above the carrier plate and corresponding to the position of the contact lens to obtain a contour image of the contact lens; and a system host coupled to the image capturing module for the invisible image on the contour image The edge of the lens is divided into multiple segments, and then the similarity analysis is performed on the interaction of these segments, and according to the result of the similarity analysis, it is detected whether the edge of the contact lens is flawed. 如請求項1所述的自動光學檢測系統,其中該相似性分析的結果用以一相似度表示,並當該些區段的一第一區段和一第二區段的該相似度低於一門限值時,該系統主機則檢測出該隱形眼鏡邊緣有該瑕疵,並判斷該第一區段和該第二區段的至少一者為有該瑕疵的該隱形眼鏡邊緣。 The automatic optical inspection system according to claim 1, wherein the result of the similarity analysis is expressed by a similarity, and when the similarity of a first section and a second section of the sections is lower than When a threshold value is reached, the system host detects that the edge of the contact lens has the defect, and determines that at least one of the first section and the second section is the edge of the contact lens with the defect. 如請求項2所述的自動光學檢測系統,其中當該第一區段和一第三區段的該相似度也低於該門限值,但該第二區段和該第三區段的該相似度高於該門限值時,該系統主機則判斷該第一區段為有該瑕疵的該隱形眼鏡邊緣。 The automatic optical inspection system according to claim 2, wherein when the similarity between the first section and the third section is also lower than the threshold value, the second section and the third section have the same degree of similarity. When the similarity is higher than the threshold, the system host determines that the first section is the edge of the contact lens with the defect. 如請求項2所述的自動光學檢測系統,其中當該第二區段和一第三區段的該相似度也低於該門限值,但該第一區段和該第三區段的該相似度高於該門限值時,該系統主機則判斷該第二區段為有該瑕疵的該隱形眼鏡邊緣。 The automatic optical inspection system according to claim 2, wherein when the similarity between the second section and the third section is also lower than the threshold value, the difference between the first section and the third section When the similarity is higher than the threshold value, the system host determines that the second section is the edge of the contact lens with the defect. 如請求項1所述的自動光學檢測系統,其中該系統主機是以受光照程度相似的該些區段來交互進行該相似性分析。 The automatic optical inspection system according to claim 1, wherein the system host performs the similarity analysis interactively with the sections with similar light levels. 一種檢測隱形眼鏡邊緣瑕疵的方法,執行於一自動光學檢測 系統中,該自動光學檢測系統包括一載盤、一光源模組、一影像擷取模組和一系統主機,該方法包括:利用該載盤承載該隱形眼鏡,並利用該光源模組發射平行光至該隱形眼鏡上;利用該影像擷取模組取得該隱形眼鏡的一輪廓影像;以及利用該系統主機將該輪廓影像上的該隱形眼鏡邊緣分為多個區段,然後對該些區段交互進行相似性分析,並根據該相似性分析的結果,檢測該隱形眼鏡邊緣是否有該瑕疵。 A method for detecting edge defects of contact lenses, implemented in an automatic optical inspection In the system, the automatic optical inspection system includes a carrier plate, a light source module, an image capture module, and a system host. The method includes: using the carrier plate to carry the contact lens, and using the light source module to emit parallel Light onto the contact lens; use the image capturing module to obtain a contour image of the contact lens; and use the system host to divide the edge of the contact lens on the contour image into a plurality of sections, and then the regions Segment interaction performs similarity analysis, and according to the results of the similarity analysis, it is detected whether the edge of the contact lens has the defect. 如請求項6所述的方法,其中該相似性分析的結果用以一相似度表示,並當該些區段的一第一區段和一第二區段的該相似度低於一門限值時,該系統主機則檢測出該隱形眼鏡邊緣有該瑕疵,並判斷該第一區段和該第二區段的至少一者為有該瑕疵的該隱形眼鏡邊緣。 The method according to claim 6, wherein the result of the similarity analysis is expressed by a similarity, and when the similarity of a first section and a second section of the sections is lower than a threshold At this time, the system host detects that the edge of the contact lens has the defect, and determines that at least one of the first section and the second section is the edge of the contact lens with the defect. 如請求項7所述的方法,其中當該第一區段和一第三區段的該相似度也低於該門限值,但該第二區段和該第三區段的該相似度高於該門限值時,該系統主機則判斷該第一區段為有該瑕疵的該隱形眼鏡邊緣。 The method according to claim 7, wherein when the similarity between the first section and a third section is also lower than the threshold value, but the similarity between the second section and the third section is high When the threshold is reached, the system host determines that the first section is the edge of the contact lens with the defect. 如請求項7所述的方法,其中當該第二區段和一第三區段的該相似度也低於該門限值,但該第一區段和該第三區段的該相似度高於該門限值時,該系統主機則判斷該第二區段為有該瑕疵的該隱形眼鏡邊緣。 The method according to claim 7, wherein when the similarity between the second section and a third section is also lower than the threshold value, but the similarity between the first section and the third section is high At the threshold, the system host determines that the second section is the edge of the contact lens with the defect. 如請求項6所述的方法,其中該系統主機是以受光照程度相似的該些區段來交互進行該相似性分析。 The method according to claim 6, wherein the system host performs the similarity analysis interactively with the sections with similar light levels.
TW109105190A 2020-02-18 2020-02-18 Automated optical inspection system and metod for inspecting defect in contact lens edge the same TWI728708B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109105190A TWI728708B (en) 2020-02-18 2020-02-18 Automated optical inspection system and metod for inspecting defect in contact lens edge the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109105190A TWI728708B (en) 2020-02-18 2020-02-18 Automated optical inspection system and metod for inspecting defect in contact lens edge the same

Publications (2)

Publication Number Publication Date
TWI728708B true TWI728708B (en) 2021-05-21
TW202132754A TW202132754A (en) 2021-09-01

Family

ID=77036320

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109105190A TWI728708B (en) 2020-02-18 2020-02-18 Automated optical inspection system and metod for inspecting defect in contact lens edge the same

Country Status (1)

Country Link
TW (1) TWI728708B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1285910A (en) * 1997-11-14 2001-02-28 韦斯利-杰森公司 Automatic lens inspection system
TW201344168A (en) * 2012-04-19 2013-11-01 Benq Materials Corp A contact lens detecting system
TW201350838A (en) * 2012-06-08 2013-12-16 Power Assist Instr Scient Corp Device for inspecting contact lens edge

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1285910A (en) * 1997-11-14 2001-02-28 韦斯利-杰森公司 Automatic lens inspection system
TW201344168A (en) * 2012-04-19 2013-11-01 Benq Materials Corp A contact lens detecting system
TWI458951B (en) * 2012-04-19 2014-11-01 Benq Materials Corp A contact lens detecting system
TW201350838A (en) * 2012-06-08 2013-12-16 Power Assist Instr Scient Corp Device for inspecting contact lens edge

Also Published As

Publication number Publication date
TW202132754A (en) 2021-09-01

Similar Documents

Publication Publication Date Title
TWI787296B (en) Optical inspection method, optical inspection device and optical inspection system
CN110018167A (en) A kind of Curved screen open defect rapid detection method and system
JP5086970B2 (en) Wood appearance inspection device, wood appearance inspection method
US6687396B1 (en) Optical member inspection apparatus, image-processing apparatus, image-processing method, and computer readable medium
WO2011152445A1 (en) Electroluminescence inspection device for solar panel and electroluminescence inspection method
JP2009293999A (en) Wood defect detector
JP2006284471A (en) Pattern inspection method, pattern inspection device and pattern inspecting program
KR101867015B1 (en) Device and method for inspecting defect of glass and inspection system
JP2008032433A (en) Substrate inspection device
JPH10148619A (en) Method and device for inspecting face defect of substrate under inspection
TW202024619A (en) Detecting defects in a logic region on a wafer
TWI728708B (en) Automated optical inspection system and metod for inspecting defect in contact lens edge the same
JP2001209798A (en) Method and device for inspecting outward appearance
KR20150011748A (en) Hole inspection apparatus
JP6168834B2 (en) Optical film defect determination method
TWI687672B (en) Optical inspection system and image processing method thereof
CN113567464B (en) Transparent medium stain position detection method and device
CN112987356B (en) Liquid crystal display panel bottom foreign matter filtering device
JP2019124518A (en) Tablet inspection method and tablet inspection device
TWI722817B (en) Automated optical inspection system and metod for inspecting defect on contact lens surface the same
JP3917431B2 (en) Optical member inspection method
CN113311006A (en) Automatic optical detection system and method for detecting edge defects of contact lens
JP2008026254A (en) Visual examination system of rubber hose
CN116523882B (en) Vision-based optical target area accuracy detection method and system
KR100505219B1 (en) The apparatus of inspection for flat panel display