TWI473989B - Automatic optical inspection system for defect detection of dental floss stick - Google Patents

Automatic optical inspection system for defect detection of dental floss stick Download PDF

Info

Publication number
TWI473989B
TWI473989B TW100140136A TW100140136A TWI473989B TW I473989 B TWI473989 B TW I473989B TW 100140136 A TW100140136 A TW 100140136A TW 100140136 A TW100140136 A TW 100140136A TW I473989 B TWI473989 B TW I473989B
Authority
TW
Taiwan
Prior art keywords
image
floss
bar
dental floss
automatic optical
Prior art date
Application number
TW100140136A
Other languages
Chinese (zh)
Other versions
TW201319551A (en
Inventor
Quang Cherng Hsu
Chin Wen Lin
Original Assignee
Univ Nat Kaohsiung Applied Sci
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 Univ Nat Kaohsiung Applied Sci filed Critical Univ Nat Kaohsiung Applied Sci
Priority to TW100140136A priority Critical patent/TWI473989B/en
Publication of TW201319551A publication Critical patent/TW201319551A/en
Application granted granted Critical
Publication of TWI473989B publication Critical patent/TWI473989B/en

Links

Description

牙線棒瑕疵自動光學檢測系統Dental floss 瑕疵 automatic optical detection system

本發明是關於一種自動光學檢測系統,特別是關於一種可辨識牙線棒之缺料、線傷及髒污等瑕疵影像訊號之自動光學檢測系統。BACKGROUND OF THE INVENTION 1. Field of the Invention This invention relates to an automatic optical inspection system, and more particularly to an automatic optical inspection system for recognizing a missing image, a line injury, and a dirty image signal of a dental floss.

隨著經濟的發展,現代人不僅重視飲食上的健康,同時也更注重個人的口腔的健康狀況,因此人們往往會使用牙線棒在齒縫間進行清潔,各種具有清潔齒縫功能的牙線棒便應運而生。而牙線棒因為屬於個人衛生用品,所以在產品的潔淨程度及製作品質方面,與一般的塑膠射出成形製品比起來更受到消費者的要求。With the development of the economy, modern people not only pay attention to the health of the diet, but also pay more attention to the health of the individual's mouth. Therefore, people often use floss sticks to clean between the teeth, and various flosses with clean teeth function. The stick came into being. Because the dental floss stick belongs to personal hygiene products, it is more demanding by consumers than the general plastic injection molded products in terms of the cleanliness and quality of the products.

牙線棒產品由於製造成本的考量,業界方面對於瑕疵品的檢查及剔除等工作,大多是採用人工的方式來進行,因此在檢查過程當中瑕疵品的判定標準難以達到一致性,同時檢驗工作的進行效率端賴於檢驗人員的專注力,因此不確實的瑕疵管理使得產品的良率與品質受到限制。Due to the manufacturing cost considerations of the floss bar products, most of the work on the inspection and elimination of defective products in the industry is carried out manually. Therefore, it is difficult to achieve consistency in the judgment standard of the products during the inspection process. The efficiency depends on the concentration of the inspectors, so the inaccurate management of the products limits the yield and quality of the products.

塑膠射出成型加工是典型的現代大量生產方法之一,其優點有加工產品一致性高、生產速度快,是生產消耗性用品常見的加工方法,在量大生產又快速運作的生產線上,如何有效率及可靠地的檢驗每個產品是否發生瑕疵,是自工業化以來每個大規模生產者所關心的課題,在電腦技術發達的今日,使用電腦並搭配各種感測器來感知及判斷瑕疵,同時使用電腦控制的運動機構來排除或收集瑕疵品,乃是今日生產線上瑕疵檢驗程序常見的樣態。Plastic injection molding processing is one of the typical modern mass production methods. Its advantages are high consistency of processing products and fast production speed. It is a common processing method for producing consumable products. In the production line with large production and fast operation, how to have Efficient and reliable inspection of whether each product is flawed is a topic of concern to every large-scale producer since the industrialization. In today's computer technology, using computers and various sensors to sense and judge flaws, The use of computer-controlled motion mechanisms to exclude or collect counterfeit products is a common pattern in today's production line inspection procedures.

另一方面,在習知工業自動化檢測中,常利用自動光學檢測設備(Automated Optical Inspection;AOI)查驗一待測物之表面瑕疵。自動光學檢測設備是藉由一影像擷取裝置(Charge Coupled Device;以下簡稱CCD)擷取待測平面顯示器之一檢測影像。在影像擷取過程中,係使陣列式CCD沿一影像擷取路徑在複數個定點之間移動,並在每一定點對一單位擷取範圍擷取一單位檢測影像。該等單位檢測影像組合為一完整檢測影像以進行比對檢測。比對該檢測影像即可檢測該待測物是否具有缺陷瑕疵。工業用自動光學檢測設備具有精密度高,沒有人工目測的限制,再者檢測速度快的功效。然而,它的成本就必然相對的比較高。On the other hand, in the conventional industrial automatic inspection, the surface flaw of a test object is often checked by using an automated optical inspection (AOI). The automatic optical detecting device captures an image of one of the flat displays to be tested by means of a Charge Coupled Device (hereinafter referred to as CCD). In the image capturing process, the array CCD is moved along a image capturing path between a plurality of fixed points, and a unit detection image is captured for each unit of the capturing range at a certain point. The unit detection images are combined into a complete detection image for comparison detection. The detected image can be detected to have defect defects compared to the detected image. The industrial automatic optical inspection equipment has high precision, no artificial visual limitation, and the detection speed is fast. However, its cost is necessarily relatively high.

因此,有必要提供一種可辨識牙線棒瑕疵的影像訊號之自動光學檢測系統,能夠遠比一般工業用光學檢測設備較為廉價,同時在光學檢驗的精密度上,可以達到正確檢驗民生用塑膠射出產品的要求。Therefore, it is necessary to provide an automatic optical detection system capable of recognizing the image signal of the dental floss, which can be far cheaper than the general industrial optical detection equipment, and at the same time, in the precision of the optical inspection, the plastic injection of the plastics for the people can be correctly tested. Product requirements.

本發明之主要目的在於提供一種自動光學檢測裝置,適用於檢測一牙線棒的瑕疵,且是以現有的射出成形生產線為基礎,對現有設備的最小變更為前提,實現在生產程序當中加入射出成形品的全自動光學檢測功能。因此本設計使用個人電腦作為控制基礎,並使用網路攝影機(WEBCAM)作為取像媒介,在設備的建構成本上,能夠遠比一般工業用光學檢測設備較為低廉,同時在光學檢驗的精密度上,可以達到正確檢驗民生用塑膠射出產品的要求。The main object of the present invention is to provide an automatic optical detecting device suitable for detecting the flaw of a dental floss rod, and based on the existing injection molding production line, the minimum change of the existing equipment is premised, and the injection process is added in the production process. Fully automatic optical inspection of molded products. Therefore, this design uses a personal computer as the basis for control, and uses a webcam (WEBCAM) as the imaging medium. In terms of the construction of the device, it can be much cheaper than the general industrial optical inspection equipment, and at the same time in the precision of optical inspection. It can meet the requirements of correctly testing the plastic injection products of the people's livelihood.

為達成上述目的,本發明提供一種自動光學檢測裝置,適用於檢測一牙線棒的瑕疵,該自動光學檢測裝置包含:一輸送單元,承載一整片包含複數個待檢測之牙線棒朝一輸送方向運送;一控制單元,負責該輸送單元的起始、停止與暫停的控制;一取像單元,用以擷取整片牙線棒之大範圍影像與複數個檢測裝置個別牙線棒之小範圍影像;一資訊處理單元,用以處理該取像單元擷取之該牙線棒之影像訊號的輸入、瑕疵影像的辨識、以及該牙線棒的移動控制;以及一結構支架平台,集合並承載以上所有元件(即輸送單元、控制單元、取像單元與資訊處理單元)及運送該牙線棒的功能,使得牙線棒的瑕疵之自動光學檢測可輕易完成。In order to achieve the above object, the present invention provides an automatic optical detecting device suitable for detecting flaws of a dental floss bar, the automatic optical detecting device comprising: a conveying unit carrying a whole piece containing a plurality of dental floss rods to be detected for transporting Directional transport; a control unit responsible for the control of the start, stop and pause of the transport unit; an image capture unit for capturing a wide range of images of the entire floss bar and a plurality of individual floss bars of the detection device a range of image processing; an information processing unit for processing the input of the image signal of the floss stick captured by the image capturing unit, the identification of the image of the defect, and the movement control of the dental floss; and a structural support platform, Carrying all of the above components (ie, transport unit, control unit, imaging unit and information processing unit) and the function of transporting the dental floss bar, the automatic optical detection of the dental floss can be easily accomplished.

本發明之特色,是利用網路攝影機(WEBCAM),作為量測影像之拍攝媒介,搭配交流馬達提供運送目標物之動力,以及具有乘載所有元件、運送目標物功能的結構支架平台,並以個人電腦實現訊號整合及控制,在現有的生產流程當中,形成一個中間工作站,檢測目標物的各種缺陷,並作資料紀錄或發出警報供作業人員參考。The invention is characterized in that a webcam (WEBCAM) is used as a photographing medium for measuring images, and an AC motor is provided to provide power for transporting a target object, and a structural support platform having functions of carrying all components and transporting objects, and The personal computer realizes signal integration and control. In the existing production process, an intermediate workstation is formed to detect various defects of the target, and data records or alarms are issued for reference by the operator.

本發明之自動光學檢測裝置,雖然較佳適用於檢測一牙線棒的瑕疵,但並不以此為限,只要待測物的瑕疵特性可以被光學檢測設備所拍攝及顯現者,便可以運用在各種的塑膠或電子產品之上,所辨識的瑕疵形式可以是待測物的表面髒污、輪廓缺角或零件移位等等。The automatic optical detecting device of the present invention is preferably applied to detect the flaw of a dental floss stick, but is not limited thereto, and can be used as long as the flaw characteristic of the object to be tested can be photographed and visualized by the optical detecting device. On various plastic or electronic products, the identified form of 瑕疵 can be surface contamination of the object to be tested, contoured corners or part displacement.

在本發明之一實施例中,該輸送單元包含一裝設於該結構支架平台之一馬達與連繫該馬達之一皮帶輪模組,該馬達為一變頻馬達,能夠在一定距離範圍內調整轉速。In an embodiment of the present invention, the transport unit includes a motor mounted on the structural support platform and a pulley module connected to the motor. The motor is a variable frequency motor capable of adjusting the rotational speed within a certain distance range. .

在本發明之一實施例中,該控制單元包括裝設於該結構支架平台之上能夠提供非接觸式訊號作為牙線棒定位依據的複數個近接開關、與連繫該輸送單元與該資訊處理單元的一輸入輸出控制卡。In an embodiment of the present invention, the control unit includes a plurality of proximity switches mounted on the structural support platform to provide a non-contact signal as a basis for positioning the floss bars, and the connection unit and the information processing An input/output control card for the unit.

在本發明之一實施例中,該取像單元包含複數台網路攝影機,該網路攝影機其中之一負責該整片牙線棒之一大範圍取像,其餘以複數個並排方式擷取該整片牙線棒之複數排個別牙線棒。In an embodiment of the invention, the image capturing unit comprises a plurality of network cameras, one of the network cameras is responsible for one of the whole floss bars, and the rest is taken in a plurality of side by side manners. The entire floss bar is arranged in a plurality of individual floss bars.

在本發明之一實施例中,該資訊處理單元為一個人電腦。In an embodiment of the invention, the information processing unit is a personal computer.

在本發明之一實施例中,該資訊處理單元更包含一啟動判斷應用軟體程式,判斷該整片牙線棒是否完整呈現在大範圍影像之範圍內、與一輸入應用軟體程式,負責輸入該整片牙線棒影像訊號。In an embodiment of the present invention, the information processing unit further includes a startup determination application software program, determining whether the entire piece of the dental floss bar is completely displayed in a range of a wide range of images, and an input application software program is responsible for inputting the Whole floss bar image signal.

在本發明之一實施例中,該資訊處理單元更包含一影像處理軟體之一辨識函式庫,用來辨識該牙線棒缺料、線傷及髒污瑕疵等影像訊號。In an embodiment of the present invention, the information processing unit further includes an image recognition software library for identifying the image signal of the dental floss, such as lack of material, line damage and dirt.

在本發明之一實施例中,該結構支架平台更包含一導正板,該導正板限制該牙線棒的自由度,確保該整片牙線棒的送入能夠被本檢測裝置偵測出來。In an embodiment of the invention, the structural support platform further comprises a guiding plate, the guiding plate limits the degree of freedom of the floss bar, and ensures that the feeding of the whole floss bar can be detected by the detecting device. come out.

在本發明之一實施例中,該缺料為牙線棒半成品在射出成型階段所造成流料無法完整充填模穴,所形成缺料之瑕疵;該線傷包含所用線材之斷裂、鬆弛、及粗細不均之瑕疵;以及該髒污為模具的頂針滲入之油汙導致牙線棒半成品的頂出部位所造成汙點之瑕疵。In an embodiment of the present invention, the material shortage is caused by the fact that the flow of the floss bar semi-finished product during the injection molding stage cannot completely fill the cavity, and the wire defect comprises breaking, loosening, and The unevenness of the thickness; and the contamination of the thimble into the mold causes the stain on the ejector portion of the semi-finished product of the dental floss.

在本發明之一實施例中,該資訊處理單元是藉由一影像處理軟體之一辨識函式庫來辨識該整片牙線棒影像的該缺料瑕疵與辨識該待比對牙線棒影像之該線傷及該髒污瑕疵。In an embodiment of the present invention, the information processing unit identifies the missing material of the entire dental floss image and identifies the image of the dental floss bar to be compared by an image processing software identification library. The line hurts the dirt.

在本發明之一實施例中,該資訊處理單元辨識該整片牙線棒的缺料瑕疵之影像包括以下步驟:利用該辨識函式庫的圖塊比對模組依據預先設定之一標準牙線棒圖像搜尋出相同之每一待比對牙線棒之位置;將該標準牙線棒與該待比對之牙線棒作影像相減;以及利用該辨識函式庫的分析模組得到該待比對之牙線棒的缺料瑕疵資料。In an embodiment of the present invention, the information processing unit identifies the image of the missing piece of the whole piece of the dental floss includes the following steps: using the block comparison module of the identification library according to a preset standard tooth The bar image searches for the position of each of the identical floss bars; the standard floss bar is subtracted from the to-be-matched floss bar; and the analysis module using the identification library Obtain the missing material information of the floss bar to be compared.

在本發明之一實施例中,該資訊處理單元於辨識該待比對牙線棒的線傷瑕疵之影像,更包括以下步驟:由該辨識函式庫的邊緣偵測模組針對該待比對牙線棒之一線材之四周邊緣部位之影像進行偵測,得到該待比對牙線棒之該線材所佔有之區域;由該辨識函式庫的二值化模組針對該線材區域之影像進行二值化,並統計其灰度值,得到該待比對牙線棒之該線材在該二值化圖像中之一面積;以該線材之面積除以該線材之長度,得到該待比對線材之寬度;以及由該事先儲存之標準線材之寬度與該待比對線材之寬度之比對,即可得到該線傷瑕疵資料。In an embodiment of the present invention, the information processing unit is configured to identify the image of the line flaw to be compared with the floss bar, and further includes the following steps: the edge detection module of the identification library is for the waiting ratio Detecting an image of a peripheral edge portion of one of the floss rods to obtain an area occupied by the wire rod to be compared with the floss bar; the binarization module of the identification library is for the wire region The image is binarized, and the gray value is counted to obtain an area of the wire of the to-be-matched floss bar in the binarized image; the area of the wire is divided by the length of the wire to obtain the The line scar data can be obtained by comparing the width of the wire; and by comparing the width of the previously stored standard wire with the width of the wire to be compared.

在本發明之一實施例中,該資訊處理單元於辨識該待比對牙線棒的髒污瑕疵之影像,更包括以下步驟:在一打光環境下對該待比對牙線棒取像,得到一黑色汙點之初步影像;由該辨識函式庫的二值化模組針對該黑色汙點之初步影像進行二值化;以及利用該辨識函式庫的分析模組得出該圖像中所有的分析參數,再扣除事先儲存之標準分析參數,即可得到該汙點所形成之分析參數。In an embodiment of the present invention, the information processing unit further comprises the following steps: identifying the image of the dirty tooth to be compared with the dental floss bar, and capturing the image of the to-be-matched floss bar in a light-emitting environment. Obtaining a preliminary image of a black stain; binarizing the preliminary image of the black stain by the binarization module of the identification library; and using the analysis module of the identification library to obtain the image All the analysis parameters, after deducting the standard analysis parameters stored in advance, can obtain the analysis parameters formed by the stain.

在本發明之一實施例中,該資訊處理單元針對避免該影像相減後於該缺料影像邊緣所造成之殘留影像,更包括以下步驟:由該辨識函式庫的像素增加模組擴大該缺料圖像中該待比對牙線棒邊緣的界線;利用該辨識函式庫的反向二值化模組使黑白兩色缺料影像互換;利用該辨識函式庫的影像除法模組將該反向二值化後的缺料影像除以預先儲存之標準完整影像,得到一缺料部位的灰階值維持原值之完整圖像;將該缺料灰階值圖像與該反向二值化後的缺料影像相減,得到一缺料部位的灰階低於周遭之結果圖像;以及利用該辨識函式庫的分析模組得出該缺料部位的分析數值,便可進一步作該瑕疵的判斷、分類與儲存。In an embodiment of the present invention, the information processing unit further includes the following steps for avoiding the residual image caused by the image subtraction on the edge of the missing image: expanding the module by the pixel adding module of the identification library The boundary of the edge of the floss bar in the missing image; the reverse binarization module of the identification library is used to exchange the black and white missing image; the image dividing module using the identification library Dividing the inverse binarized missing image by the pre-stored standard complete image, obtaining a complete image of the grayscale value of the missing material portion maintaining the original value; and the missing grayscale value image and the inverse Subtracting the image of the missing material to obtain a result image of the missing portion is lower than the surrounding image; and using the analysis module of the identification library to obtain the analysis value of the missing portion, The judgment, classification and storage of the cockroach can be further performed.

有關本發明之特徵、實現與功效,配合圖式作最佳實施例詳細說明如下。The features, implementation and efficacy of the present invention will be described in detail with reference to the drawings.

牙線棒,其材料通常包含有塑膠與尼龍線兩部份,在其製造過程中所需的加工機有塑膠射出成形機與切斷機,且其製造流程首先要將牙線的線材置入塑膠射出模具的模穴之中,此手續稱之為拉線,拉線過程的實施媒介通常是由一個單一自由度的機械臂來擔任,在此一置入過程當中線材有可能放置歪斜或拉力不均,而造成線材方面的瑕疵,比如線材的鬆弛、移位或者是不同程度的斷裂,如第6A圖至第6B圖所示。Floss bar, the material usually contains two parts of plastic and nylon thread. The processing machine required in the manufacturing process has a plastic injection molding machine and a cutting machine, and the manufacturing process firstly puts the wire of the floss into the wire. The plastic is injected into the cavity of the mold. This procedure is called the pull wire. The implementation medium of the wire drawing process is usually carried out by a single degree of freedom mechanical arm. During this insertion process, the wire may be placed with skew or tension. Unevenness, which causes defects in the wire, such as slack, displacement or different degrees of breakage of the wire, as shown in Figures 6A to 6B.

當線材放置完成後,模具進行封模並開始充填,加熱加壓將塑膠料充填入模穴之中,待充填完畢並冷卻後要使射出完成品脫離模穴時,在模具當中會有頂出針的設計,而此頂出針因為要在針孔中進行伸縮的動作,所以在其周圍會發生摩擦的部位注入潤滑油,此潤滑油有可能在塑膠充填程序中,滲入模穴之中造成髒汙瑕疵,如第7A圖至第7B圖所示。After the wire is placed, the mold is sealed and filled, and the plastic material is filled into the cavity by heating and pressing. When the filling is completed and cooled, the finished product is removed from the cavity, and the mold is ejected. The design of the needle, and the ejector pin is to be telescoped in the pinhole, so that the lubricating oil is injected into the portion where the friction occurs around it, and the lubricating oil may penetrate into the cavity during the plastic filling process. Dirty, as shown in Figures 7A through 7B.

充填模穴的過程當中,也有可能因為模具部分的加熱或加壓不足,造成塑膠料沒有完整地充滿於模穴之中,而在牙線棒的尖腳部位形成棒體體積不完全的缺料瑕疵,或者脫模過程的不順利也可能產生尖腳部位的彎曲,如第5A圖至第5B圖所示。During the process of filling the cavity, there may be a lack of heating or pressurization of the mold part, so that the plastic material is not completely filled in the cavity, and the lack of volume of the rod body is formed at the tip of the floss bar.瑕疵, or the unsuccessful demolding process may also cause bending of the tip portion, as shown in Figures 5A-5B.

請參閱第1圖並一併參考第2圖。第1圖為本發明一實施例之自動光學檢測裝置之平面示意圖。第2圖為本發明一實施例之自動光學檢測裝置之立體組合圖。Please refer to Figure 1 and refer to Figure 2 together. 1 is a schematic plan view of an automatic optical detecting device according to an embodiment of the present invention. Fig. 2 is a perspective assembled view of an automatic optical detecting device according to an embodiment of the present invention.

第1圖與第2圖所示之自動光學檢測裝置10,適用於辨識一牙線棒的瑕疵,自動光學檢測裝置10包含:一輸送單元100,承載一整片牙線棒60包含複數個待檢測之牙線棒朝一輸送方向運送;一控制單元200,負責輸送單元100的起始、停止與暫停的控制;一取像單元300,用以擷取整片牙線棒60之大範圍影像與複數個檢測裝置個別牙線棒之小範圍影像;一資訊處理單元400,用以處理該取像單元300擷取之牙線棒影像訊號的輸入、瑕疵影像的辨識以及牙線棒的移動控制;以及一結構支架平台500,集合並承載以上所有元件(即輸送單元100、控制單元200、取像單元300與資訊處理單元400)及運送牙線棒。The automatic optical detecting device 10 shown in Figs. 1 and 2 is suitable for identifying the defect of a dental floss bar. The automatic optical detecting device 10 comprises: a conveying unit 100, which carries a whole piece of dental floss 60 and contains a plurality of The detecting floss bar is transported in a conveying direction; a control unit 200 is responsible for controlling the start, stop and pause of the conveying unit 100; and an image capturing unit 300 for capturing a wide range of images of the entire floss bar 60 a plurality of small-scale images of the individual floss bars of the detecting device; an information processing unit 400 for processing the input of the floss image signal captured by the image capturing unit 300, the identification of the image of the defect, and the movement control of the floss bar; And a structural support platform 500, which assembles and carries all of the above components (ie, the transport unit 100, the control unit 200, the image capturing unit 300, and the information processing unit 400) and the transport floss bar.

請參閱第1圖並一併參考第2圖所示之自動光學檢測裝置10,其中第1圖之輸送單元100包含一裝設於該結構支架平台之一馬達110與連繫該馬達之一皮帶 輪模組120,如第2圖所示,所包含之馬達110為一變頻馬達,能夠在一定距離範圍內調整轉速。Referring to FIG. 1 and referring to the automatic optical detecting device 10 shown in FIG. 2, the conveying unit 100 of FIG. 1 includes a motor 110 mounted on the structural support platform and a belt connected to the motor. The wheel module 120, as shown in Fig. 2, includes a motor 110 that is capable of adjusting the rotational speed over a range of distances.

請參閱第3圖並一併參考第1圖。第3圖為本發明一實施例之近接開關210之立體示意圖,其中控制單元200包括裝設於結構支架平台500之上能夠提供非接觸式訊號作為牙線棒定位依據的複數個近接開關210、與連繫輸送單元100與資訊處理單元400的一輸入輸出控制卡(未示於圖中)。然而,本發明亦可改變控制單元200上提供非接觸式訊號作為牙線棒定位依據的近接開關210為達成相同功能之感測器,並不以本發明所揭露之實施例為限。Please refer to Figure 3 and refer to Figure 1 together. 3 is a perspective view of a proximity switch 210 according to an embodiment of the present invention, wherein the control unit 200 includes a plurality of proximity switches 210 mounted on the structural support platform 500 to provide a non-contact signal as a basis for positioning the floss bar. And an input/output control card (not shown) connected to the transport unit 100 and the information processing unit 400. However, the present invention can also change the proximity switch 210 on the control unit 200 that provides the non-contact signal as the basis for the positioning of the floss bar, and is not limited to the embodiment disclosed in the present invention.

如第1圖所示之自動光學檢測裝置10,其中取像單元300包含複數台網路攝影機,該網路攝影機其中之一負責整片牙線棒60之一大範圍取像,其餘以複數個並排方式擷取整片牙線棒60之複數排個別牙線棒。值得注意的是,本實施例所使用的網路攝影機,於各種實際使用時機並不以此為限,本發明可根據實際使用需求而選用不同的攝影機種類。The automatic optical detecting device 10 as shown in FIG. 1 , wherein the image capturing unit 300 comprises a plurality of network cameras, one of which is responsible for one of the entire floss bars 60, and the rest is plural. Side by side, draw a plurality of individual floss bars of the entire floss bar 60. It should be noted that the network camera used in this embodiment is not limited to the actual use timing. The present invention can select different camera types according to actual use requirements.

本發明一實施例所述之自動光學檢測裝置10,其中資訊處理單元400為一個人電腦。資訊處理單元400包含一啟動判斷應用軟體程式,判斷整片牙線棒60是否完整呈現在大範圍影像之範圍內、與一輸入應用軟體程式,負責輸入整片牙線棒60之影像訊號。資訊處理單元400更包含一影像處理軟體之一辨識函式庫,用來辨識牙線棒缺料、線傷及髒污瑕疵等影像訊號。The automatic optical detecting device 10 according to an embodiment of the present invention, wherein the information processing unit 400 is a personal computer. The information processing unit 400 includes a startup determination application software program for determining whether the entire floss bar 60 is completely displayed in a range of a wide range of images, and an input application software program for inputting the image signal of the entire floss bar 60. The information processing unit 400 further includes an image processing software identification library for identifying image signals such as missing bars, line injuries and dirt.

請參閱第4圖。第4圖為本發明一實施例之導正板之示意圖。本實施例所述之自動光學檢測裝置10,其中結構支架平台500更包含一導正板510,導正板510限制牙線棒的自由度,確保整片牙線棒60的送入能夠被本檢測裝置偵測出來,本發明可根據實際使用需求而選用不同的導正板種類。。Please refer to Figure 4. Figure 4 is a schematic view of a guide plate according to an embodiment of the present invention. The automatic optical detecting device 10 of the embodiment, wherein the structural support platform 500 further comprises a guiding plate 510, the guiding plate 510 limits the degree of freedom of the floss bar, and ensures that the feeding of the whole floss bar 60 can be The detecting device detects that the invention can select different types of guiding plates according to actual use requirements. .

本發明一實施例之辨識牙線棒的瑕疵之自動光學檢測方法,於自動光學檢測裝置10設定後,包括以下步驟:以一取像單元300擷取一標準牙線棒,取得一標準影像,作為待比對牙線棒之瑕疵判定的依據;以取像單元300擷取一整片牙線棒60是否完全進入包含該整片牙線棒60之一大範圍影像的範圍內;以一輸送單元100輸送整片牙線棒60,朝一輸送方向運送;利用一控制單元200控制輸送單元100暫停於一個以上之取像位置;藉由取像單元300擷取整片牙線棒60之所有待比對牙線棒於一個以上之取像位置,以取得所有待比對牙線棒之小範圍影像;以一資訊處理單元400處理整片牙線棒60之大範圍影像,以辨識整片牙線棒60的缺料瑕疵,繼而輸入小範圍影像,以辨識待比對之牙線棒影像,決定待比對之牙線棒的線傷及髒污瑕疵;以及針對特定種類之瑕疵,由檢測值比對預先儲存之標準值,以得到瑕疵之完整資料。An automatic optical detection method for identifying a defect of a dental floss in accordance with an embodiment of the present invention includes the following steps: taking a standard floss stick from an image capturing unit 300 to obtain a standard image, As a basis for determining the defect of the floss bar; whether the entire floss bar 60 is completely taken into the range containing a large range of images of the whole floss bar 60 by the image capturing unit 300; The unit 100 transports the entire floss bar 60 and transports it in a transport direction; the control unit 200 controls the transport unit 100 to pause at more than one image capturing position; and the image taking unit 300 captures all the floss bars 60 Comparing the floss bars to more than one image capturing position to obtain a small range of images of the floss bars to be compared; processing a large range of floss bars 60 by an information processing unit 400 to identify the entire piece of teeth The lack of material of the wire rod 60, and then input a small range of images to identify the image of the floss bar to be compared, determine the line injury and dirtiness of the floss bar to be compared; and for the specific type of flaw, by detection Value comparison Storage of the standard values to get the complete information of the defect.

請參閱第5A圖至第7B圖。第5A圖為本發明一實施例之牙線棒半成品在射出成型階段所造成流料無法完整充填模穴所形成缺料瑕疵之影像。第5B圖為本發明一實施例之牙線棒半成品之缺料圖與完整圖直接進行影像相減之結果,牙線棒輪廓邊緣產生殘留像素之影像。第6A圖為本發明一實施例之牙線棒包含所用線材之鬆弛的瑕疵之影像。第6B圖為本發明一實施例之牙線棒包含所用線材之斷裂的瑕疵之影像。第7A圖為本發明一實施例之牙線棒因模具的頂針滲入之油汙導致牙線棒半成品的頂出部位所造成汙點等的髒污瑕疵之影像。第7B圖為本發明一實施例之牙線棒的髒污瑕疵經二值化之圖像,髒污部位呈現黑色之影像。Please refer to Figures 5A through 7B. FIG. 5A is an image of a defect of the missing material of the dental floss semi-finished product in the injection molding stage due to the inability of the filling material to completely fill the cavity. FIG. 5B is a result of direct subtraction of the missing image and the complete image of the dental floss semi-finished product according to an embodiment of the present invention, and the image of the residual pixel is generated at the edge of the contour of the floss bar. Fig. 6A is an image of a dental floss bar containing a slack of a wire used in an embodiment of the present invention. Fig. 6B is a view showing an image of a broken tooth of a dental floss in accordance with an embodiment of the present invention. Fig. 7A is an image of stains caused by stains and the like caused by the oil stain of the thimble of the mold due to the penetration of the thimble of the mold to the ejector portion of the semi-finished product of the dental floss. Fig. 7B is an image of the stain of the dental floss of the dental floss in accordance with an embodiment of the present invention, and the dirty portion presents a black image.

本發明一實施例之自動光學檢測方法,如第5A圖與第5B圖所示,其中缺料為牙線棒半成品在射出成型階段所造成流料無法完整充填模穴,所形成缺料之瑕疵;如第6A圖與第6B圖所示,其中線傷包含所用線材之斷裂、鬆弛、及粗細不均之瑕疵;以及如第7A圖與第7B圖所示,其中髒污為模具的頂針滲入之油汙導致牙線棒半成品的頂出部位所造成汙點之瑕疵。The automatic optical detecting method according to an embodiment of the present invention, as shown in FIG. 5A and FIG. 5B, wherein the material shortage is caused by the flow material in the injection molding stage cannot completely fill the cavity, and the defect is formed. As shown in Figs. 6A and 6B, wherein the line injury includes breakage, slack, and unevenness of the thickness of the wire used; and as shown in Figures 7A and 7B, where the dirt is the thimble infiltration of the mold The oil stain causes the stain of the ejector portion of the semi-finished product of the dental floss.

請參閱第5A圖至第7B圖。本發明一實施例之自動光學檢測方法,其中資訊處理單元400是藉由一影像處理軟體之一辨識函式庫來辨識整片牙線棒60影像的缺料瑕疵與辨識待比對牙線棒影像之線傷及髒污瑕疵。Please refer to Figures 5A through 7B. An automatic optical detection method according to an embodiment of the present invention, wherein the information processing unit 400 identifies the missing material of the entire dental floss 60 image and identifies the dental floss bar by an image processing software identification library. The line of the image is hurt and dirty.

請參閱第5A圖與第5B圖並一併參考第5C圖。第5C圖為本發明一實施例之牙線棒的缺料瑕疵辨識流程圖。本發明一實施例之自動光學檢測方法,其中,資訊處理單元400辨識整片牙線棒60的缺料瑕疵之影像包括以下步驟:利用辨識函式庫的圖塊比對模組依據預先設定之一標準牙線棒圖像搜尋出相同之每一待比對牙線棒之位置;將標準牙線棒與待比對之牙線棒作影像相減;以及利用辨識函式庫的分析模組得到待比對之牙線棒的缺料瑕疵資料。然而,本發明亦可以相似功能之缺料瑕疵辨識軟體來完成,並不以本發明所揭露之實施例為限。Please refer to Figures 5A and 5B and refer to Figure 5C. FIG. 5C is a flow chart for identifying the missing material of the dental floss according to an embodiment of the present invention. An automatic optical detection method according to an embodiment of the present invention, wherein the information processing unit 400 recognizes the image of the missing piece of the entire dental floss 60 includes the following steps: using the identification module of the identification library according to the preset setting A standard floss image searches for the same position of each floss bar; the standard floss bar is subtracted from the floss bar to be compared; and the analysis module using the identification library Get the missing material information of the floss bar to be compared. However, the present invention can also be implemented by a missing function identification software of similar functions, and is not limited to the embodiment disclosed by the present invention.

請參閱第6A圖至第6D圖。第6C圖為本發明一實施例之牙線棒的線傷瑕疵,經換算的線材平均寬度值,圖像當中的線傷部位得到偏高值之影像。第6D圖為本發明一實施例之牙線棒的線傷瑕疵辨識流程圖。檢驗影像中線傷的發生與否,所使用的程式邏輯為,將待辨識線材在影像中所佔的面積,除以線材在影像中所佔的長度,如此得到線材在影像中的平均寬度,而具有線傷的線材,其平均寬度會遠高或低於正常線材的平均寬度值,如第6C圖。本發明一實施例之自動光學檢測方法,其中,資訊處理單元400於辨識待比對牙線棒的線傷瑕疵之影像中,更包括以下步驟:由辨識函式庫的邊緣偵測模組針對待比對牙線棒之一線材之四周邊緣部位之影像進行偵測,得到待比對牙線棒之線材所佔有之區域;再由辨識函式庫的二值化模組針對線材區域之影像進行二值化,並統計其灰度值,得到待比對牙線棒之線材在二值化圖像中之一面積;以線材之面積除以線材之長度,得到待比對線材之寬度;以及由事先儲存之標準線材之寬度與待比對線材之寬度之比對,即可得到線傷瑕疵完整的資料。然而,本發明亦可以相似功能之線傷瑕疵辨識軟體來完成,並不以本發明所揭露之實施例為限。Please refer to Figures 6A to 6D. Fig. 6C is a view showing the line flaw of the dental floss rod according to an embodiment of the present invention, and the average width value of the converted wire is used to obtain an image of a high value of the line wound portion in the image. Fig. 6D is a flow chart showing the identification of the wire scar of the dental floss according to an embodiment of the present invention. To check the occurrence or failure of the line injury in the image, the logic used is to divide the area occupied by the wire to be recognized in the image by the length of the wire in the image, thus obtaining the average width of the wire in the image. For a wire with a wire injury, the average width will be much higher or lower than the average width of the normal wire, as shown in Figure 6C. An automatic optical detection method according to an embodiment of the present invention, wherein the information processing unit 400 further includes the following steps in the image identifying the line flaw of the floss bar: the edge detection module of the identification library is The image of the peripheral edge of one of the wires of the floss bar is detected, and the area occupied by the wire rod of the floss bar is obtained; and the image of the wire area is determined by the binarization module of the identification library. Performing binarization and counting the gray value thereof to obtain an area of the wire to be compared with the floss bar in the binarized image; dividing the area of the wire by the length of the wire to obtain the width of the wire to be compared; As well as the ratio of the width of the standard wire stored in advance to the width of the wire to be compared, the complete information of the wire defect can be obtained. However, the present invention can also be implemented by a similarly functional line scar recognition software, and is not limited to the embodiment disclosed by the present invention.

請參閱第7A圖與第7B圖並一併參考第7C圖。第7C圖為本發明一實施例之牙線棒的髒污瑕疵辨識流程圖。本發明一實施例之自動光學檢測方法,其中資訊處理單元400於辨識待比對牙線棒的髒污瑕疵之影像,更包括以下步驟:在一打光環境下對待比對牙線棒取像,得到一黑色汙點之初步影像;由辨識函式庫的二值化模組針對黑色汙點之初步影像進行二值化;以及利用辨識函式庫的分析模組得出圖像中所有的分析參數,再扣除事先儲存之標準分析參數,即可得到汙點所形成之分析參數。然而,本發明亦可以相似功能之髒污瑕疵辨識軟體來完成,並不以本發明所揭露之實施例為限。Please refer to Figures 7A and 7B and refer to Figure 7C. Fig. 7C is a flow chart showing the identification of the dirt of the dental floss stick according to an embodiment of the present invention. The automatic optical detecting method according to an embodiment of the present invention, wherein the information processing unit 400 identifies the image of the dirty sputum to be compared, further includes the following steps: treating the flossing bar in a light-emitting environment Obtaining a preliminary image of a black stain; binarizing the preliminary image of the black stain by the binarization module of the identification library; and using the analysis module of the identification library to obtain all the analysis parameters in the image The analytical parameters formed by the stain can be obtained by subtracting the standard analysis parameters stored in advance. However, the present invention can also be implemented by a similar function of the dirt recognition software, and is not limited to the embodiment disclosed by the present invention.

請參閱第8A圖、第8B圖與第8C圖。第8A圖為本發明一實施例之牙線棒之原始之缺料圖(第5A圖)經過像素增長擴大缺料圖中牙線棒的邊緣界線之影像。第8B圖為本發明一實施例之牙線棒經過像素增長及反向二值化處理之圖像結果之影像。第8C圖為本發明一實施例之牙線棒經過像素增長及反向二值化處理,再與完整圖作影像相減後的結果之影像。Please refer to Figures 8A, 8B and 8C. Fig. 8A is an image of the original missing line of the dental floss (Fig. 5A) according to an embodiment of the present invention, which is enlarged by the pixel growth to expand the edge line of the dental floss in the missing material. FIG. 8B is an image of an image result of a dental floss stick undergoing pixel growth and inverse binarization according to an embodiment of the present invention. FIG. 8C is an image of the result of the pixel sticking and the inverse binarization processing of the dental floss rod according to an embodiment of the present invention, and subtracting the image from the complete image.

於本實施例中資訊處理單元400針對避免影像相減後於缺料影像邊緣所造成之殘留影像,更包括以下步驟:由辨識函式庫的像素增加模組擴大缺料圖像中待比對牙線棒邊緣的界線;利用辨識函式庫的反向二值化模組使黑白兩色缺料影像互換;利用辨識函式庫的影像除法模組將反向二值化後的缺料影像除以預先儲存之標準完整影像,得到一缺料部位的灰階值維持原值之完整圖像;將缺料灰階值圖像與反向二值化後的缺料影像相減,得到一缺料部位的灰階低於周遭之結果圖像;以及利用辨識函式庫的分析模組得出缺料部位的分析數值,便可進一步作瑕疵的判斷、分類與儲存。In the embodiment, the information processing unit 400 further includes the following steps for avoiding the residual image caused by the image subtraction on the edge of the missing image image: expanding the missing image in the missing image by the pixel adding module of the identification library The boundary of the floss bar edge; the black and white two-color missing image is exchanged by the inverse binarization module of the identification library; the image binning module of the identification library is used to inversely binarize the missing image Dividing the pre-stored standard complete image to obtain a complete image of the gray-scale value of the missing material portion and maintaining the original value; subtracting the missing gray-scale value image from the inverse binarized missing image to obtain a The gray level of the missing part is lower than the surrounding image; and the analysis module of the identification library is used to obtain the analysis value of the missing part, which can be further judged, classified and stored.

於本實施例之自動光學檢測方法,其中兩張不同的圖像在進行影像相減時,由於拍攝物體放置角度的些微不同,相減後的圖像會在拍攝物的邊緣處產生殘留像素,並成為影像雜訊妨礙辨識工作的進行。為了避免影像相減後的邊緣殘留像素,所使用的邏輯方法為,擴大目標物的邊緣界線,邊緣以內令其為忽略區域,如此一來在進行影像相減時,原本在目標物邊緣會殘留像素的部位,將會被擴大的忽略區域所覆蓋,因而在影像相減後,成為無殘留像素的處理結果。因此處理步驟首先要使用辨識函式庫的像素增長功能,擴大缺料圖中牙線棒的邊緣界線。In the automatic optical detection method of the embodiment, when two different images are subjected to image subtraction, the subtracted image generates residual pixels at the edge of the subject due to the slight difference in the angle at which the object is placed. And become the image noise to hinder the identification work. In order to avoid edge residual pixels after image subtraction, the logical method used is to enlarge the edge boundary of the target, and the edge is used as a neglected area, so that when the image subtraction is performed, the edge of the target will remain. The portion of the pixel will be covered by the enlarged ignored area, and thus the result of the non-residual pixel processing after the image is subtracted. Therefore, the processing step first uses the pixel growth function of the recognition library to expand the edge boundary of the floss bar in the missing material map.

請參閱第9圖。第9圖為本發明一實施例之加強辨識牙線棒的細絲線傷瑕疵之影像。其中,加強辨識細絲線傷瑕疵之步驟由辨識函式庫模組的二值化針對細絲偵測區域處理,繼而由辨識函式庫模組分析模組取得細絲偵測區域白點細絲像素資料。Please refer to Figure 9. Fig. 9 is a view showing an image of a thin wire scar of an enhanced floss stick according to an embodiment of the present invention. The step of strengthening the identification of the flaws of the filaments is performed by the binarization of the identification library module for the processing of the filament detection area, and then the analysis module of the identification library module obtains the white dots of the filament detection area. Pixel data.

詳細而言,檢驗影中細絲線傷的發生與否,所使用的程式邏輯為,將線材白點總數除以線材長度得到之數值,為原本判斷線材瑕疵的數值依據,將該數值乘以線材長度會得到一個長方形的面積,此長方形就是代表線材所有的白點向中心線集縮而形成的區域,所以一個正常的線材在此區域之外不會存在任何白點,而具有細絲瑕疵的線材卻不然,因此利用這種現象來設計新的辨識邏輯,也就是針對線材集縮區域之外進行細絲偵測,取得白點統計及分類處理。In detail, to check whether the occurrence of the filament damage in the shadow occurs, the logic used is to divide the total number of white points of the wire by the length of the wire, and to determine the numerical value of the wire 原, multiply the value by the wire. The length will get a rectangular area, which is the area where all the white points of the wire are concentrated toward the center line, so a normal wire will not have any white spots outside this area, but has a thin wire. The wire is not the same, so the use of this phenomenon to design a new identification logic, that is, for the wire detection outside the wire collection area, to obtain white point statistics and classification processing.

請參閱第10圖。第10圖為本發明一實施例之加強辨識牙線棒的髒污瑕疵之影像。其中,加強辨識髒污瑕疵之步驟如下:辨識函式庫的圖像比對模組取得待比對牙線棒頂出區域之位置;利用辨識函式庫的邊緣強化模組針對牙線棒頂出區域進行邊緣強化;利用辨識函式庫的反像二值化模組使黑色髒污與白色背景影像互換;以及利用辨識函式庫的分析模組得出頂出部位髒污的分析計算數值,做為頂出部髒汙的判定依據。Please refer to Figure 10. Fig. 10 is a view showing an image for enhancing the stain of the dental floss stick according to an embodiment of the present invention. The steps of enhancing the identification of the dirty sputum are as follows: the image matching module of the identification library obtains the position of the escaping area of the floss stick; the edge reinforced module of the identification library is used for the top of the floss bar The edge enhancement is performed in the out-of-area; the black image is interchanged with the white background image by using the inverse binarization module of the identification library; and the analysis and calculation values of the contamination of the ejector portion are obtained by using the analysis module of the identification library. As the basis for determining the contamination of the ejector.

在加強髒汙檢測的性能驗證方面所使用邏輯首先在有效的打光環境下對牙線棒取像,對待測牙線棒頂出區域位置與事先儲存好的牙線棒頂出區域位置進行圖塊比對,確保檢測處理框能正確設定到待測影像的相對位置,之後將檢測框內進行邊緣強化,使得髒污特徵與牙線棒交接處黑白分明,並將已處理區域進行反向二值化,簡化影像計算環境,最後統計檢測框內白色像素點除於總面積像素並乘於百分比,分析白點像素(即為黑色頂出髒污)佔總頂出部位百分比,在無髒污的情況下白色像素為零,而零除於任意數皆等於零,零則做為判定正常的依據,所以當偵測到髒污瑕疵時,經過計算後所得知數值如為常數時,判定為頂出部髒污瑕疵。The logic used to enhance the performance verification of the soiling detection is to first take the image of the floss bar in an effective lighting environment, and to map the position of the ejecting rod to the top of the floss bar and the position of the pre-stored floss bar ejecting area. Block comparison ensures that the detection processing frame can be correctly set to the relative position of the image to be tested, and then the edge enhancement is performed in the detection frame, so that the intersection of the dirty feature and the floss bar is black and white, and the processed area is reversed. Value, simplify the image computing environment, and finally count the white pixels in the detection frame except the total area pixels and multiply by the percentage. Analyze the white point pixels (that is, the black top is dirty) as a percentage of the total ejector area. In the case of white, the white pixel is zero, and zero is divided into any number equal to zero, and zero is used as the basis for determining the normality. Therefore, when the dirtyness is detected, if the value is calculated as a constant, it is judged as the top. The out is dirty.

請參閱第11圖。第11圖為本發明一實施例之加強辨識牙線棒尾端的缺料瑕疵之影像。其中,加強辨識牙線棒尾端的缺料瑕疵之步驟如下:辨識函式庫的圖像比對模組取得待比對牙線棒尾端區域之位置;利用辨識函式庫的二值化模組針對牙線棒尾端區域之影像進行二值化;利用辨識函式庫的邊緣偵測模組取得牙線棒尾端區域的像素長度;以及由事先儲存之標準尾端區域之寬度與待比對之尾端區域之比對,即可得到尾端缺料完整的資料。Please refer to Figure 11. Fig. 11 is a view showing an image of a missing material at the end of the dental floss stick according to an embodiment of the present invention. The step of enhancing the missing defect of the end of the dental floss is as follows: the image matching module of the identification library obtains the position of the end region of the floss bar; the binarization mode of the identification library is used. The group binarizes the image of the end region of the floss bar; the edge detection module of the identification library is used to obtain the pixel length of the end region of the floss bar; and the width of the standard tail region stored in advance is to be By comparing the end regions of the alignment, the complete data of the tail end defects can be obtained.

針對辨識此種瑕疵本發明採用的辨識方法大致上分為兩個步驟,一為將待測件與完整件進行圖塊比對處理,取得牙線棒尾端相對位置並進行有效檢測框設定,其次將牙線棒尾端檢測框進行左白右黑邊緣偵測,取得白色X座標像素到檢測框原點X座標,計算得知牙線棒尾像素長度。一般牙線棒尾端缺料其白色像素長度,通常小於正常牙線棒尾端白色像素值,藉由大量正常牙線棒測試,取得正常牙線棒白色像素做為指標依據,如果小於指標數即為缺料情況。In order to identify such a method, the identification method adopted by the present invention is roughly divided into two steps. One is to compare the workpiece to be tested with the complete piece, and obtain the relative position of the end of the floss bar and set the effective detection frame. Next, the left edge of the floss bar detection frame is detected by the left and right black edges, and the white X coordinate pixel is obtained to the origin X coordinate of the detection frame, and the length of the floss bar tail pixel is calculated. Generally, the end of the dental floss bar lacks the white pixel length, which is usually smaller than the white pixel value at the end of the normal floss bar. With a large number of normal floss bar tests, the normal floss bar white pixel is used as the index basis, if it is smaller than the index number. It is a shortage of materials.

本發明之另一實施例所述之自動光學檢測裝置,從研究中得知以個人電腦為平台可以實現由一個程式整合五台網路攝影機(WEBCAM)的視訊擷取並對所拍攝圖片作影像處理,同時透過I/O卡進行外部設備的自動控制程序。在瑕疵辨識的性能驗證方面,於生產線上試行運轉並調整至最佳參數後,可量測出面積大於0.09mm2 之線傷與灰度差35以上之髒汙瑕疵,以及長度大於3mm的缺料瑕疵,並且透過統計十件牙線棒測試件的實測結果後發現,系統的瑕疵檢出率為線傷90.4%、髒污80.5%、缺料84.8%。The automatic optical detecting device according to another embodiment of the present invention learns from the research that a PC can be used to integrate the video capture of five web cameras (WEBCAM) by one program and image the captured pictures. Processing, and automatic control of external devices through the I/O card. In terms of performance verification of the defect identification, the production line after the trial run and adjusted to the optimal parameters can be measured with an area larger than the gray scale difference 0.09mm wound wire 2 of the 35 or more dirty defects, lack of 3mm and a length greater than After the measurement results of the ten dental floss test pieces, the system detected the sputum detection rate of 90.4%, 80.5% of the soil, and 84.8% of the material.

雖然本發明已以較佳實施例揭露,然其並非用以限制本發明,任何熟習此項技藝之人士,在不脫離本發明之精神和範圍內,當可作各種更動與修飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。The present invention has been disclosed in its preferred embodiments, and is not intended to limit the invention, and the present invention may be modified and modified without departing from the spirit and scope of the invention. The scope of protection is subject to the definition of the scope of the patent application.

10...自動光學檢測裝置10. . . Automatic optical inspection device

100...輸送單元100. . . Conveyor unit

110...馬達110. . . motor

120...皮帶輪模組120. . . Pulley module

200...控制單元200. . . control unit

210...近接開關210. . . Proximity switch

220...輸入輸出控制卡220. . . Input and output control card

300...取像單元300. . . Image capture unit

400...資訊處理單元400. . . Information processing unit

500...結構支架平台500. . . Structural support platform

510...導正板510. . . Guiding plate

60...一整片牙線棒60. . . a whole piece of dental floss

第1圖為本發明一實施例之自動光學檢測裝置之平面示意圖。1 is a schematic plan view of an automatic optical detecting device according to an embodiment of the present invention.

第2圖為本發明一實施例之自動光學檢測裝置之立體組合圖。Fig. 2 is a perspective assembled view of an automatic optical detecting device according to an embodiment of the present invention.

第3圖為本發明一實施例之近接開關之立體示意圖。FIG. 3 is a perspective view of a proximity switch according to an embodiment of the present invention.

第4圖為本發明一實施例之導正板之示意圖。Figure 4 is a schematic view of a guide plate according to an embodiment of the present invention.

第5A圖為本發明一實施例之牙線棒半成品在射出成型階段所造成流料無法完整充填模穴所形成缺料之瑕疵之影像。FIG. 5A is an image of a defect in the semi-finished product of the dental floss in the injection molding stage which cannot be completely filled by the cavity.

第5B圖為本發明一實施例之牙線棒半成品之缺料圖與完整圖直接進行影像相減之結果,牙線棒輪廓邊緣產生殘留像素之影像。FIG. 5B is a result of direct subtraction of the missing image and the complete image of the dental floss semi-finished product according to an embodiment of the present invention, and the image of the residual pixel is generated at the edge of the contour of the floss bar.

第5C圖為本發明一實施例之牙線棒的缺料瑕疵辨識流程圖。FIG. 5C is a flow chart for identifying the missing material of the dental floss according to an embodiment of the present invention.

第6A圖為本發明一實施例之牙線棒包含所用線材之鬆弛的瑕疵之影像。Fig. 6A is an image of a dental floss bar containing a slack of a wire used in an embodiment of the present invention.

第6B圖為本發明一實施例之牙線棒包含所用線材之斷裂的瑕疵之影像。Fig. 6B is a view showing an image of a broken tooth of a dental floss in accordance with an embodiment of the present invention.

第6C圖為本發明一實施例之牙線棒的線傷瑕疵,經換算的線材平均寬度值,圖像當中的線傷部位得到偏高值之影像。Fig. 6C is a view showing the line flaw of the dental floss rod according to an embodiment of the present invention, and the average width value of the converted wire is used to obtain an image of a high value of the line wound portion in the image.

第6D圖為本發明一實施例之牙線棒的線傷瑕疵辨識流程圖。Fig. 6D is a flow chart showing the identification of the wire scar of the dental floss according to an embodiment of the present invention.

第7A圖為本發明一實施例之牙線棒因模具的頂針滲入之油汙導致牙線棒半成品的頂出部位所造成汙點等的髒污之瑕疵之影像。Fig. 7A is an image of a stain of a stain such as a stain on a dentate portion of a dental floss semi-finished product due to oil infiltration of a thimble of a mold according to an embodiment of the present invention.

第7B圖為本發明一實施例之牙線棒的髒污之瑕疵經二值化之圖像,髒污部位呈現黑色之影像。Fig. 7B is a view showing the image of the stain of the dental floss in the embodiment of the present invention, and the stained portion is black.

第7C圖為本發明一實施例之牙線棒的髒污瑕疵辨識流程圖。Fig. 7C is a flow chart showing the identification of the dirt of the dental floss stick according to an embodiment of the present invention.

第8A圖為本發明一實施例之牙線棒之原始之缺料圖第5A圖經過像素增長擴大缺料圖中牙線棒的邊緣界線之影像。Fig. 8A is an image of the original missing line of the dental floss according to an embodiment of the present invention. Fig. 5A shows an image of the edge boundary of the dental floss in the missing image through the pixel growth.

第8B圖為本發明一實施例之牙線棒經過像素增長及反向二值化處理之圖像的結果之影像。FIG. 8B is an image of a result of an image of a dental floss stick undergoing pixel growth and inverse binarization according to an embodiment of the present invention.

第8C圖為本發明一實施例之牙線棒經過像素增長及反向二值化處理再與完整圖作影像相減後的結果之影像。FIG. 8C is an image of the result of the pixel rod growing and inverse binarization processing and subtracting the image from the complete image according to an embodiment of the present invention.

第9圖為本發明一實施例之加強辨識牙線棒的細絲線傷瑕疵之影像。Fig. 9 is a view showing an image of a thin wire scar of an enhanced floss stick according to an embodiment of the present invention.

第10圖為本發明一實施例之加強辨識牙線棒的髒污瑕疵之影像。Fig. 10 is a view showing an image for enhancing the stain of the dental floss stick according to an embodiment of the present invention.

第11圖為本發明一實施例之加強辨識牙線棒尾端的缺料瑕疵之影像。Fig. 11 is a view showing an image of a missing material at the end of the dental floss stick according to an embodiment of the present invention.

10...自動光學檢測裝置10. . . Automatic optical inspection device

60...一整片牙線棒60. . . a whole piece of dental floss

100...輸送單元100. . . Conveyor unit

200...控制單元200. . . control unit

300...取像單元300. . . Image capture unit

400...資訊處理單元400. . . Information processing unit

500...結構支架平台500. . . Structural support platform

Claims (13)

一種自動光學檢測裝置,用於辨識一牙線棒的瑕疵,該自動光學檢測裝置包含:一輸送單元,承載自動光學檢測裝置朝一輸送方向運送;一控制單元,負責該輸送單元的起始、停止與暫停的控制;一取像單元,用以擷取一整片牙線棒之大範圍影像與針對個別牙線棒之小範圍影像,其中該取像單元包含複數台網路攝影機,該網路攝影機其中之一負責該整片牙線棒之大範圍影像的擷取,其餘以複數個並排方式擷取該整片牙線棒之複數排個別牙線棒;一資訊處理單元,用以處理該取像單元擷取之該牙線棒之影像訊號的輸入、瑕疵影像的辨識以及該牙線棒的移動控制;以及一結構支架平台,集合並承載該輸送單元、控制單元、取像單元與資訊處理單元,以及運送該牙線棒。 An automatic optical detecting device for identifying a defect of a dental floss bar, the automatic optical detecting device comprising: a conveying unit carrying the automatic optical detecting device for transporting in a conveying direction; and a control unit responsible for starting and stopping the conveying unit And a pause control; an image capture unit for capturing a wide range of images of a whole floss bar and a small range of images for individual floss bars, wherein the image capture unit comprises a plurality of network cameras, the network One of the cameras is responsible for the capture of a wide range of images of the entire floss bar, and the remaining plurality of floss bars of the entire floss bar are taken in a plurality of side by side manners; an information processing unit for processing the The input of the image signal of the dental floss taken by the image capturing unit, the identification of the image and the movement control of the dental floss; and a structural support platform for assembling and carrying the conveying unit, the control unit, the image capturing unit and the information Processing unit, and transporting the dental floss stick. 如請求項1所述之自動光學檢測裝置,其中該輸送單元包含一裝設於該結構支架平台之一馬達與連繫該馬達之一皮帶輪模組,該馬達為一變頻馬達,用以在一定距離範圍內調整轉速。 The automatic optical detecting device of claim 1, wherein the conveying unit comprises a motor mounted on the structural support platform and a pulley module connected to the motor, the motor is a variable frequency motor for Adjust the speed within the distance range. 如請求項1所述之自動光學檢測裝置,其中該控制單元包括裝設於該結構支架平台之上用以提供非接觸式訊號作為牙線棒定位依據的複數個近接開關、與連 繫該輸送單元與該資訊處理單元的一輸入輸出控制卡。 The automatic optical detecting device of claim 1, wherein the control unit comprises a plurality of proximity switches mounted on the structural support platform for providing a non-contact signal as a basis for positioning the floss bar, and the connection An input/output control card of the transport unit and the information processing unit. 如請求項1所述之自動光學檢測裝置,其中該資訊處理單元更包含一啟動判斷應用軟體程式,以判斷該整片牙線棒是否完整呈現在該大範圍影像之範圍內、與一輸入應用軟體程式,負責輸入該整片牙線棒之影像訊號。 The automatic optical detecting device of claim 1, wherein the information processing unit further comprises a startup determining application software program to determine whether the entire dental floss bar is completely present in the range of the wide range of images, and an input application. The software program is responsible for inputting the image signal of the whole piece of dental floss. 如請求項1所述之自動光學檢測裝置,其中該資訊處理單元更包含一影像處理軟體之一辨識函式庫,用來辨識該牙線棒缺料、線傷及髒污瑕疵之影像訊號。 The automatic optical detecting device of claim 1, wherein the information processing unit further comprises an image processing software identification library for identifying the image signal of the dental floss, wire wound and dirty flaw. 如請求項1所述之自動光學檢測裝置,其中該結構支架平台更包含一導正板,該導正板限制該牙線棒的自由度,確保該整片牙線棒的送入能夠被本檢測裝置偵測出來。 The automatic optical detecting device of claim 1, wherein the structural support platform further comprises a guiding plate, the guiding plate limits the degree of freedom of the dental floss bar, and ensures that the feeding of the whole dental floss bar can be The detection device detects it. 一種辨識牙線棒的瑕疵之自動光學檢測方法,包括以下步驟:以一取像單元擷取一標準牙線棒,取得一標準影像,作為待比對牙線棒之瑕疵判定的依據;以該取像單元擷取一整片牙線棒是否完全進入包含該整片牙線棒之一大範圍影像的範圍內;以一輸送單元輸送該整片牙線棒,朝一輸送方向運送;利用一控制單元控制該輸送單元暫停於一個以上之取像位置; 藉由該取像單元擷取該整片牙線棒之所有該待比對牙線棒於該一個以上之取像位置,以取得所有該待比對牙線棒之小範圍影像;以一資訊處理單元處理該整片牙線棒之該大範圍影像,以辨識該整片牙線棒的缺料瑕疵,繼而輸入該小範圍影像,以辨識該待比對之牙線棒影像,決定該待比對之牙線棒的線傷及髒污瑕疵;以及針對該特定種類之瑕疵,由該檢測值比對其標準值,以得到該瑕疵之完整資料。 An automatic optical detection method for identifying a defect of a dental floss comprises the steps of: taking a standard floss stick by an image taking unit to obtain a standard image as a basis for determining the defect of the floss bar; The image taking unit captures whether a whole piece of floss bar completely enters a range of images including one of the whole floss bars; the whole floss bar is transported by a transport unit, and is transported in a transport direction; The unit controls the conveying unit to pause at more than one image capturing position; And acquiring, by the image capturing unit, all the to-be-matched floss bars of the whole piece of the floss bar at the one or more image capturing positions to obtain a small range image of all the to-be-matched floss bars; The processing unit processes the large-scale image of the whole piece of dental floss to identify the missing defect of the whole piece of the dental floss, and then inputs the small-range image to identify the image of the dental floss to be compared, and determines the waiting The line damage and dirt of the floss bar are compared; and for the particular type, the test value is compared to its standard value to obtain the complete data of the file. 如請求項8所述之自動光學檢測方法,其中該缺料為牙線棒半成品在射出成型階段所造成流料無法完整充填模穴,所形成缺料之瑕疵;該線傷包含所用線材之斷裂、鬆弛、及粗細不均之瑕疵;以及該髒污為模具的頂針滲入之油汙導致牙線棒半成品的頂出部位所造成汙點之瑕疵。 The automatic optical detecting method according to claim 8, wherein the material shortage is that the flow material of the dental floss semi-finished product in the injection molding stage cannot completely fill the cavity, and the defect is formed; the wire injury includes the break of the wire used. , slack, and unevenness of thickness; and the contamination is caused by the oozing of the thimble of the mold, which causes the stain on the ejector portion of the semi-finished product of the dental floss. 如請求項8所述之自動光學檢測方法,其中該資訊處理單元是藉由一影像處理軟體之一辨識函式庫來辨識該整片牙線棒影像的該缺料瑕疵與辨識該待比對牙線棒影像之該線傷及該髒污瑕疵。 The automatic optical detection method of claim 8, wherein the information processing unit identifies the missing material of the entire dental floss image by identifying an image recognition library of an image processing software and identifies the to-be-matched This line of floss image damages the dirt. 如請求項8所述之自動光學檢測方法,其中該資訊處理單元辨識該整片牙線棒的缺料瑕疵之影像包括以下步驟:利用該辨識函式庫的圖塊比對模組依據預先設定之一標準牙線棒圖像搜尋出相同之每一待比對牙線棒 之位置;將該標準牙線棒與該待比對之牙線棒作影像相減;以及利用該辨識函式庫的分析模組得到該待比對之牙線棒的缺料瑕疵資料。 The automatic optical detection method of claim 8, wherein the information processing unit identifies the image of the missing piece of the whole piece of the dental floss comprises the following steps: using the identification module of the identification library according to the preset One of the standard floss stick images finds the same each to be compared to the floss stick Position: the standard floss bar is subtracted from the to-be-matched floss bar; and the missing module of the floss bar to be compared is obtained by using the analysis module of the identification library. 如請求項8所述之自動光學檢測方法,其中該資訊處理單元於辨識該待比對牙線棒的線傷瑕疵之影像,更包括以下步驟:由該辨識函式庫的邊緣偵測模組針對該待比對牙線棒之一線材之四周邊緣部位之影像進行偵測,得到該待比對牙線棒之該線材所佔有之區域;由該辨識函式庫的二值化模組針對該線材區域之影像進行二值化,並統計其灰度值,得到該待比對牙線棒之該線材在該二值化圖像中之一面積;以該線材之面積除以該線材之長度,得到該待比對線材之寬度;以及由該事先儲存之標準線材之寬度與該待比對線材之寬度之比對,即可得到該線傷瑕疵資料。 The automatic optical detection method according to claim 8, wherein the information processing unit identifies the image of the line flaw to be compared with the floss bar, and further comprises the following steps: an edge detection module of the identification library Detecting an image of the peripheral edge portion of the wire rod of the floss bar to be obtained, and obtaining an area occupied by the wire rod of the floss bar to be compared; the binarization module of the identification function library is The image of the wire area is binarized, and the gray value is counted to obtain an area of the wire of the to-be-matched floss bar in the binarized image; the area of the wire is divided by the wire The length is obtained by obtaining the width of the wire to be compared; and the line scar data is obtained by comparing the width of the previously stored standard wire with the width of the wire to be compared. 如請求項8所述之自動光學檢測方法,其中該資訊處理單元於辨識該待比對牙線棒的髒污瑕疵之影像,更包括以下步驟:在一打光環境下對該待比對牙線棒取像,得到一黑色汙點之初步影像;由該辨識函式庫的二值化模組針對該黑色汙點之初 步影像進行二值化;以及利用該辨識函式庫的分析模組得出該圖像中所有的分析參數,再扣除事先儲存之標準分析參數,即可得到該汙點所形成之分析參數。 The automatic optical detection method of claim 8, wherein the information processing unit further comprises the following steps: identifying the image of the dirt to be compared with the dental floss, and the step of comparing the teeth in a light-emitting environment. The bar is taken to obtain a preliminary image of a black stain; the binarization module of the identification library is aimed at the black stain The step image is binarized; and the analysis module of the identification library is used to obtain all the analysis parameters in the image, and the analysis parameters formed by the stain are obtained by subtracting the standard analysis parameters stored in advance. 如請求項11所述之自動光學檢測方法,其中該資訊處理單元針對避免該影像相減後於該缺料影像邊緣所造成之殘留影像,更包括以下步驟:由該辨識函式庫的像素增加模組擴大該缺料圖像中該待比對牙線棒邊緣的界線;利用該辨識函式庫的反向二值化模組使黑白兩色缺料影像互換;利用該辨識函式庫的影像除法模組將該反向二值化後的缺料影像除以預先儲存之標準完整影像,得到一缺料部位的灰階值維持原值之完整圖像;將該缺料灰階值圖像與該反向二值化後的缺料影像相減,得到一缺料部位的灰階低於周遭之結果圖像;以及利用該辨識函式庫的分析模組得出該缺料部位的分析數值,便可進一步作該瑕疵的判斷、分類與儲存。The automatic optical detection method of claim 11, wherein the information processing unit further comprises the following steps for avoiding the residual image caused by the image subtraction at the edge of the missing image: increasing by the pixel of the identification library The module enlarges the boundary of the edge of the missing floss in the missing image; and uses the inverse binarization module of the identification library to exchange black and white missing images; using the identification library The image dividing module divides the reverse binarized missing image by the pre-stored standard complete image, and obtains a complete image of the gray level value of the missing portion to maintain the original value; Subtracting the image of the missing material after the inverse binarization, obtaining a grayscale of a missing portion lower than the surrounding image; and using the analysis module of the identification library to obtain the missing portion By analyzing the values, you can further judge, classify and store the defects.
TW100140136A 2011-11-03 2011-11-03 Automatic optical inspection system for defect detection of dental floss stick TWI473989B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW100140136A TWI473989B (en) 2011-11-03 2011-11-03 Automatic optical inspection system for defect detection of dental floss stick

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW100140136A TWI473989B (en) 2011-11-03 2011-11-03 Automatic optical inspection system for defect detection of dental floss stick

Publications (2)

Publication Number Publication Date
TW201319551A TW201319551A (en) 2013-05-16
TWI473989B true TWI473989B (en) 2015-02-21

Family

ID=48872447

Family Applications (1)

Application Number Title Priority Date Filing Date
TW100140136A TWI473989B (en) 2011-11-03 2011-11-03 Automatic optical inspection system for defect detection of dental floss stick

Country Status (1)

Country Link
TW (1) TWI473989B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI737499B (en) * 2020-09-22 2021-08-21 聯策科技股份有限公司 A parameter setting method of a visual inspection system and smart system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI244359B (en) * 2002-10-09 2005-11-21 Wei Kuang Mechanical Eng Co Lt Automatic optical detecting system for defect components on printed circuit board
US20070013772A1 (en) * 2005-07-12 2007-01-18 Tham Yew F In-circuit test fixture with integral vision inspection system
TW201009326A (en) * 2007-03-29 2010-03-01 Camtek Ltd Method and system for verifying suspected defects of a printed circuit board
CN101676712A (en) * 2008-09-16 2010-03-24 中茂电子(深圳)有限公司 Optical detecting system and method thereof
TWM384754U (en) * 2009-12-21 2010-07-21 Botheven Machinery Ind Co Ltd Conveyor of weaving bag forming machine
TW201111102A (en) * 2009-09-28 2011-04-01 Univ Nat Yunlin Sci & Tech Measurement method and apparatus for dimensional parameters of the engraving cutter

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI244359B (en) * 2002-10-09 2005-11-21 Wei Kuang Mechanical Eng Co Lt Automatic optical detecting system for defect components on printed circuit board
US20070013772A1 (en) * 2005-07-12 2007-01-18 Tham Yew F In-circuit test fixture with integral vision inspection system
TW201009326A (en) * 2007-03-29 2010-03-01 Camtek Ltd Method and system for verifying suspected defects of a printed circuit board
CN101676712A (en) * 2008-09-16 2010-03-24 中茂电子(深圳)有限公司 Optical detecting system and method thereof
TW201111102A (en) * 2009-09-28 2011-04-01 Univ Nat Yunlin Sci & Tech Measurement method and apparatus for dimensional parameters of the engraving cutter
TWM384754U (en) * 2009-12-21 2010-07-21 Botheven Machinery Ind Co Ltd Conveyor of weaving bag forming machine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI737499B (en) * 2020-09-22 2021-08-21 聯策科技股份有限公司 A parameter setting method of a visual inspection system and smart system

Also Published As

Publication number Publication date
TW201319551A (en) 2013-05-16

Similar Documents

Publication Publication Date Title
CN101566582B (en) Medicine bottle label information online detection system in powder injection production based on mechanical vision
CN102529019B (en) Method for mould detection and protection as well as part detection and picking
CN104729426B (en) Angle steel automatic on-line detecting system and method based on machine vision
CN207185897U (en) A kind of full cigarette presentation quality on-line measuring device and its cigarette machine
Liu et al. Automatic detection technology of surface defects on plastic products based on machine vision
KR20210008352A (en) System and method for detecting defects in imaged items
CN110146516B (en) Fruit grading device based on orthogonal binocular machine vision
CN205538710U (en) Inductance quality automatic check out system based on machine vision
JP2019211288A (en) Food testing system and program
CN102175692A (en) System and method for detecting defects of fabric gray cloth quickly
CN109507205A (en) A kind of vision detection system and its detection method
KR101838664B1 (en) Apparatus for inspecting surface of cable
CN111220544A (en) Lens quality detection device and detection method
CN109324056B (en) Sewing thread trace measuring method based on machine vision
CN110132983A (en) A kind of online hierarchical detection device and method of injecting products
TWI473989B (en) Automatic optical inspection system for defect detection of dental floss stick
KR20080060851A (en) Defect detecting method of log surface
Laucka et al. Research of the defects in anesthetic masks
CN207081666U (en) A kind of zipper detecting device based on machine vision
JPWO2003006969A1 (en) Method and apparatus for inspecting scratches on work
JP6360782B2 (en) Inspection method of screws
JP7207948B2 (en) Appearance inspection method and program
Yang et al. An automated visual inspection system for foreign fiber detection in lint
CN115170493A (en) Identification method and system for micro-defect of sterile package and storage medium
JP4998722B2 (en) Work defect inspection method by image processing

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees