TWI745767B - Optical inspection secondary image classification method - Google Patents
Optical inspection secondary image classification method Download PDFInfo
- Publication number
- TWI745767B TWI745767B TW108137799A TW108137799A TWI745767B TW I745767 B TWI745767 B TW I745767B TW 108137799 A TW108137799 A TW 108137799A TW 108137799 A TW108137799 A TW 108137799A TW I745767 B TWI745767 B TW I745767B
- Authority
- TW
- Taiwan
- Prior art keywords
- image
- good
- image classification
- images
- defective
- Prior art date
Links
- 230000003287 optical effect Effects 0.000 title claims abstract description 64
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000007689 inspection Methods 0.000 title claims abstract description 34
- 238000013145 classification model Methods 0.000 claims abstract description 95
- 230000002950 deficient Effects 0.000 claims abstract description 93
- 238000012549 training Methods 0.000 claims abstract description 72
- 238000013528 artificial neural network Methods 0.000 claims abstract description 35
- 238000001514 detection method Methods 0.000 claims abstract description 35
- 238000012795 verification Methods 0.000 claims description 37
- 238000003860 storage Methods 0.000 claims description 25
- 238000012545 processing Methods 0.000 claims description 24
- 238000013527 convolutional neural network Methods 0.000 claims description 8
- 238000009826 distribution Methods 0.000 claims description 6
- 230000003321 amplification Effects 0.000 claims description 4
- 230000003190 augmentative effect Effects 0.000 claims description 4
- 238000003199 nucleic acid amplification method Methods 0.000 claims description 4
- 238000012790 confirmation Methods 0.000 claims description 3
- 230000001537 neural effect Effects 0.000 claims description 3
- 210000005036 nerve Anatomy 0.000 claims 1
- 238000012216 screening Methods 0.000 abstract description 13
- 206010047571 Visual impairment Diseases 0.000 abstract 1
- 238000004519 manufacturing process Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 238000002372 labelling Methods 0.000 description 4
- 238000013135 deep learning Methods 0.000 description 3
- 230000007547 defect Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000026676 system process Effects 0.000 description 1
- 238000010200 validation analysis Methods 0.000 description 1
Images
Landscapes
- Image Analysis (AREA)
- Image Processing (AREA)
Abstract
本發明之光學檢測二次圖像分類方法,係將良品圖像及瑕疵品圖像配對成為標記為1的圖像組,將良品圖像及過篩檢圖像配對成為標記為0的圖像組,逐一將各圖像組輸入類行經網路架構進行圖像分類模型訓練,並且在圖像分類模型產生且完成驗證後,記錄所輸入之圖像預測分類結果,將無法被準確預測分類的圖像進行數量擴增、配對、標記之後再次輸入圖像分類模型所屬之類神經網路架構加強訓練,始再產生另一圖像分類模型,透過至少一次加強訓練,可有效降低過度篩檢,提高檢測設備的辨別正確率及效率,並且降低進行二次篩選的成本。The optical inspection secondary image classification method of the present invention is to pair good product images and defective product images into an image group marked 1, and pair good product images and screened images into an image marked 0 Group, one by one input class of each image group through the network architecture for image classification model training, and after the image classification model is generated and verified, the input image prediction classification results are recorded, which will not be accurately predicted and classified After images are amplified, paired, and labeled, they are re-entered into a neural network architecture such as the image classification model for enhanced training, and then another image classification model is generated. Through at least one enhanced training, excessive screening can be effectively reduced. Improve the accuracy and efficiency of detection equipment, and reduce the cost of secondary screening.
Description
本發明係與深度學習圖像分類技術有關,特別是指一種尤適合應用於產品通過自動光學檢測之後,再次判別產品為良品或瑕疵品的光學檢測二次圖像分類方法。The present invention is related to the deep learning image classification technology, and particularly refers to an optical detection secondary image classification method that is particularly suitable for applying to the product after the product passes the automatic optical detection, and then discriminates the product as a good product or a defective product.
自動光學檢測(Automatic Optical Inspection;AOI)係以非接觸的方式,運用機器視覺技術擷取圖像進行分析,進而判斷產品(成品或半成品)是否存在瑕疵,可部署於自動化加工產線的節點中間進行檢測,同時不影響產能,為目前業界廣泛應用的檢測手法,更是電路板和顯示面板產業製程中比重甚高的必要投資。Automatic Optical Inspection (AOI) is a non-contact method that uses machine vision technology to capture images for analysis, and then determine whether the product (finished or semi-finished) is defective, and can be deployed in the middle of the node of the automated processing line Testing, without affecting production capacity, is a testing method widely used in the industry, and it is a necessary investment with a high proportion in the manufacturing process of the circuit board and display panel industry.
以應用最廣泛的電路板加工產線為例,AOI檢測系統流程主要係先利用光學儀器對待檢測的電路板進行掃描獲取圖像,然後系統對數據庫中的合格參數進行比對,經過電腦圖像處理技術檢查出電路板上是否存在缺陷。Taking the most widely used circuit board processing production line as an example, the AOI inspection system process is mainly to use optical instruments to scan the circuit board to be inspected to obtain images, and then the system compares the qualified parameters in the database and passes the computer image The processing technology detects whether there are defects on the circuit board.
通常電路板加工產線會有極高的良率要求,因此在AOI的參數上設定非常嚴格,加上光學原理容易使AOI因光影干擾而敏感,因此只要有些微外在光影的影響,設備便會自動判斷為瑕疵品,導致AOI檢測經常面臨過度篩檢(將良品誤判為瑕疵品)的現象。Usually the circuit board processing production line has extremely high yield requirements, so the AOI parameters are set very strict, and the optical principle is easy to make the AOI sensitive to light and shadow interference, so as long as there is some slight external light and shadow influence, the equipment is It will be automatically judged as defective, which causes AOI inspection to often face the phenomenon of over-screening (misjudgment of good products as defective).
已知,可透過人工智慧和深度學習類神經網路處理圖像資料,並利用規律對未知資料進行預測的演算法針對未知瑕疵進行識別,輔助AOI檢測的後續優化,藉以提高檢測設備的辨別正確率,降低人工進行第二次篩選的成本。It is known that the image data can be processed through artificial intelligence and deep learning neural networks, and the algorithm that uses the law to predict unknown data can identify unknown defects and assist the subsequent optimization of AOI detection, thereby improving the accuracy of detection equipment Rate, reduce the cost of manual second screening.
以類神經網路架構為基礎的影像分類模型之所以能夠充分且正確地學習到判別圖像的關鍵,除了必須在深度學習的訓練過程(Training)中提供大量有標記(Label)的圖像資料之外,改良類神經網路架構或許是一個可行的做法。The reason why the image classification model based on the neural network architecture can fully and correctly learn the key to distinguishing images, in addition to the need to provide a large amount of labeled image data in the training process of deep learning (Training) In addition, improved neural network architecture may be a feasible approach.
惟,類神經網路架構中可以調整的參數選項非常繁瑣,不易在繁瑣的參數選項中系統化地找出最好的排列組合;因此,如何在樣品數量有限的條件之下,提升影像分類模型之判別準確率,長久以來一直是產業界及學術界所亟欲解決之課題。However, the parameter options that can be adjusted in the neural network architecture are very cumbersome, and it is not easy to systematically find the best permutation and combination among the cumbersome parameter options; therefore, how to improve the image classification model under the condition of a limited number of samples The accuracy of the discrimination has long been a problem that the industry and academia desperately want to solve.
有鑑於此,本發明即在提供自動光學檢測一種可以有效降低過度篩檢,提升圖像分類模型之預測分類準確性的光學檢測二次圖像分類方法,為其主要目的者。In view of this, the present invention is to provide a secondary image classification method for optical detection that can effectively reduce excessive screening and improve the accuracy of predictive classification of the image classification model for automatic optical detection, as its main purpose.
本發明之光學檢測二次圖像分類方法,係使用於一設有自動光學檢測系統之加工產線所提供之產品為良品或瑕疵品之圖像分類判別;該光學檢測二次圖像分類方法,係包括下列步驟:(a)提供一圖像特徵自動辨識系統步驟,一圖像特徵自動辨識系統係整合有一儲存單元、一處理單元以及一圖像擷取單元,該儲存單元中載入有複數良品圖像、複數過度篩檢圖像、複數瑕疵品圖像;(b)建立訓練資料集步驟,至少於該圖像特徵自動辨識系統之該儲存單元中建立一訓練資料集,該訓練資料集係包括複數由該儲存單元中任一良品圖像及任一瑕疵品圖像配對成為標記為1的第一圖像組、複數由該儲存單元中任一良品圖像及任一過篩檢圖像配對成為標記為0的第二圖像組; (c)建立驗證資料集步驟,於該圖像特徵自動辨識系統之該儲存單元中建立一驗證資料集,該驗證資料集係至少包括複數良品圖像、複數瑕疵品圖像; (d)建立類神經網路架構步驟,於該圖像特徵自動辨識系統之該儲存單元中建立一由該處理單元執行運作,供用以對所輸入之圖像進行良品或瑕疵品預測分類的一類神經網路架構,該類神經網路架構係具有兩個可供獨立進行運作的特徵核心模組及一與該兩個特徵核心模組連接的全連接模組; (e)圖像分類模型訓練步驟,透過該圖像擷取單元將該訓練資料集當中複數標記為標籤0的第二圖像組、複數標記為標籤1的第二圖像組逐一輸入該類神經網路架構,經比對該類神經網路架構預測分類輸出結果之後調整該類神經網路架構之特徵和權重,並且儲存成功降低誤差的調整,始產生一更擅於對所輸入之圖像進行良品或瑕疵品預測分類的圖像分類模型; (f)圖像分類模型驗證步驟,在每次產生圖像分類模型時,透過該圖像擷取單元將該驗證資料集當中之複數良品圖像、複數瑕疵品圖像逐一輸入該次產生的圖像分類模型,由該次產生的圖像分類模型對輸入的各該良品圖像及各該瑕疵品圖像進行預測分類,藉以評估該次產生的圖像分類模型預測分類準確性;(g)統計分類預測錯誤分佈及加強訓練步驟,在每次產生圖像分類模型,且在該次產生的圖像分類模型完成驗證時,記錄所輸入之各該良品圖像及各該瑕疵品圖像之預測分類結果,並且統計預測分類錯誤分佈,依照該圖像分類模型訓練步驟當中該第一圖像圖及該第二圖像組之配對、標記模式及訓練模式,將各該實際為良品圖像卻無法被準確預測分類的圖像進行數量擴增之產生的各該良品圖像,與各該實際為瑕疵品圖像卻無法被準確預測分類的圖像進行數量擴增之後產生的各該瑕疵品圖像重新配對、標記之後再次輸入該次產生的圖像分類模型所屬之該類神經網路架構加強訓練,始再產生另一圖像分類模型; (h)確認模型步驟,經至少執行一次該步驟(f)至該步驟(g)之後,於該些圖像分類模型當中確認至少一圖像分類模型,即可利用該至少一被確認的圖像分類模型對該加工產線所提供之產品進行良品或瑕疵品之圖像分類判別。The optical inspection secondary image classification method of the present invention is used in the image classification judgment of a good product or defective product provided by a processing line equipped with an automatic optical inspection system; the optical inspection secondary image classification method , It includes the following steps: (a) The step of providing an image feature automatic identification system, an image feature automatic identification system integrates a storage unit, a processing unit and an image capture unit, and the storage unit is loaded with Multiple good images, multiple over-screened images, and multiple defective images; (b) the step of creating a training data set, at least creating a training data set in the storage unit of the image feature automatic identification system, the training data The set includes a plurality of first image groups marked as 1 paired by any good product image and any defective product image in the storage unit, and a plurality of first image groups marked as 1 by any good product image in the storage unit and any one that has been screened. The image pairing becomes the second image group marked as 0; (c) the step of creating a verification data set, a verification data set is created in the storage unit of the image feature automatic identification system, and the verification data set includes at least a plurality of Good product images, multiple defective product images; (d) a step of establishing a neural network-like architecture, in the storage unit of the image feature automatic identification system, creating a processing unit to perform operations on the input image A neural network architecture for predicting and categorizing good or defective products. This neural network architecture has two feature core modules that can be operated independently and a fully connected model connected to the two feature core modules. (E) The image classification model training step, through the image capturing unit, input the second image group with the plural number as label 0 and the second image group with the plural number as label 1 in the training data set one by one This type of neural network architecture, after comparing the prediction and classification output results of the type of neural network architecture, adjusts the characteristics and weights of the type of neural network architecture, and stores the adjustments that successfully reduce the error, and then produces a better understanding of the input An image classification model for predicting and classifying good or defective images of the image; (f) The image classification model verification step, each time an image classification model is generated, the image capture unit uses one of the verification data sets The multiple good images and multiple defective images are input into the image classification model generated this time one by one, and the image classification model generated this time predicts and classifies each input good image and each defective image, thereby Evaluate the prediction classification accuracy of the image classification model generated this time; (g) Statistical classification prediction error distribution and enhanced training steps, each time the image classification model is generated, and when the image classification model generated this time is verified, Record the input of the predicted classification results of each of the good image and each of the defective image, and calculate the predicted classification error distribution, according to the first image image and the second image group in the image classification model training step The pairing, labeling mode, and training mode are used to increase the quantity of each image that is actually a good image but cannot be accurately predicted and classified. The images that have been accurately predicted and classified are produced after the number is increased After re-pairing and labeling each defective product image, input the neural network architecture to which the generated image classification model belongs to strengthen training, and then generate another image classification model; (h) Model confirmation step After performing step (f) to step (g) at least once, confirm at least one image classification model among the image classification models, and then use the at least one confirmed image classification model to process the The products provided by the production line are distinguished by image classification of good or defective products.
依據上述技術特徵,該光學檢測二次圖像分類方法,於該確認模型步驟中,係在至少重複一次該步驟(f)至該步驟(g)之後,於該些圖像分類模型當中確認一準確性較佳的圖像分類模型,利用該被確認的圖像分類模型對該加工產線所提供之產品進行良品或瑕疵品之圖像分類判別。According to the above technical features, in the optical detection secondary image classification method, in the confirming model step, after repeating the step (f) to the step (g) at least once, confirming one of the image classification models An image classification model with better accuracy uses the confirmed image classification model to classify images of good or defective products provided by the processing line.
依據上述技術特徵,該光學檢測二次圖像分類方法,於該確認模型步驟中,係在至少重複一次該步驟(f)至該步驟(g)之後,於該些圖像分類模型當中確認複數準確性較佳的圖像分類模型,並且將該些被確認的圖像分類模型進行合併,利用該些合併後的圖像分類模型對該加工產線所提供之產品進行良品或瑕疵品之圖像分類判別。According to the above technical features, in the optical detection secondary image classification method, in the confirming model step, after repeating the step (f) to the step (g) at least once, confirm the plural number in the image classification models An image classification model with better accuracy, and the confirmed image classification models are combined, and the combined image classification models are used to map the products provided by the processing line for good or defective products Like classification and discrimination.
依據上述技術特徵,該訓練資料集與該驗證資料集之良品圖像數量係由複數經該自動光學檢測系統判別為良品且透過人工確認為良品的良品原始圖像擴增達成;該訓練資料集之過度篩檢圖像數量係由複數經該自動光學檢測系統判別為瑕疵品但透過人工確認為良品的良品原始圖像擴增達成;該訓練資料集與該驗證資料集之瑕疵品圖像數量係由複數經該自動光學檢測系統判別為瑕疵品且透過人工確認為瑕疵品的瑕疵品原始圖像擴增達成。According to the above-mentioned technical characteristics, the number of good product images in the training data set and the verification data set is determined by the automatic optical detection system as good products, and the original images of good products that are manually confirmed to be good are amplified by the number of good products; the training data set The number of over-screened images is achieved by amplifying multiple original images of good products that were judged to be defective by the automatic optical inspection system but confirmed to be good products manually; the number of defective images in the training data set and the verification data set It is achieved by amplifying a plurality of original images of defective products that are identified as defective by the automatic optical inspection system and manually confirmed as defective.
依據上述技術特徵,該驗證資料集當中之各該良品圖像係與該訓練資料集當中之各該良品圖像不完全相同,該驗證資料集當中之各該瑕疵品圖像係與該訓練資料集當中之各該瑕疵品圖像不完全相同。According to the above technical features, each of the good product images in the verification data set is not exactly the same as each of the good product images in the training data set, and each of the defective product images in the verification data set is the same as the training data The images of the defective products in the set are not exactly the same.
依據上述技術特徵,該訓練資料集與該驗證資料集之良品圖像數量係由複數經該自動光學檢測系統判別為良品且透過人工確認為良品的良品原始圖像擴增達成;該訓練資料集之過度篩檢圖像數量係由複數經該自動光學檢測系統判別為瑕疵品但透過人工確認為良品的良品原始圖像擴增達成;該訓練資料集與該驗證資料集之瑕疵品圖像數量係由複數經該自動光學檢測系統判別為瑕疵品且透過人工確認為瑕疵品的瑕疵品原始圖像擴增達成;以及,該驗證資料集當中之各該良品圖像係與該訓練資料集當中之各該良品圖像不完全相同,該驗證資料集當中之各該瑕疵品圖像係與該訓練資料集當中之各該瑕疵品圖像不完全相同。According to the above-mentioned technical characteristics, the number of good product images in the training data set and the verification data set is determined by the automatic optical detection system as good products, and the original images of good products that are manually confirmed to be good are amplified by the number of good products; the training data set The number of over-screened images is achieved by amplifying multiple original images of good products that were judged to be defective by the automatic optical inspection system but confirmed to be good products manually; the number of defective images in the training data set and the verification data set It is achieved by amplifying the original images of defective products identified as defective by the automatic optical inspection system and manually confirmed as defective; and, each of the good product images in the verification data set and the training data set Each of the good product images is not exactly the same, and each of the defective product images in the verification data set is not exactly the same as each of the defective product images in the training data set.
依據上述技術特徵,各該圖像分類模型之各該類神經網路架構對各輸入圖像之預測輸出值,係以0或1的輸出型態呈現。According to the above-mentioned technical characteristics, the predicted output value of each of the neural network architectures of each of the image classification models for each input image is presented in the output type of 0 or 1.
依據上述技術特徵,各該圖像分類模型之各該類神經網路架構對各輸入圖像之預測輸出值,係以預測為0之機率及預測為1之機率的輸出型態呈現。According to the above technical features, the predicted output value of each of the neural network architectures of each of the image classification models for each input image is presented in the output type with the probability of prediction being 0 and the probability of prediction being 1.
依據上述技術特徵,該光學檢測二次圖像分類方法,於建立類神經網路架構之步驟中,係於該圖像特徵自動辨識系統之該儲存單元中建立一供用以對所輸入之圖像進行良品或瑕疵品預測分類的卷積神經網路架構(Convolutional neural network , CNN)。According to the above technical features, in the optical detection secondary image classification method, in the step of building a neural network architecture, a storage unit of the image feature automatic identification system is created for the input image Convolutional neural network (CNN) for predicting and classifying good or defective products.
本發明所揭露的光學檢測二次圖像分類方法,係將一良品圖像及一瑕疵品圖像配對成為標記為1的圖像組,將一良品圖像及一過篩檢圖像配對成為標記為0的圖像組,逐一將各圖像組輸入類行經網路架構進行圖像分類模型訓練,並且在圖像分類模型產生且完成驗證後,記錄所輸入之圖像預測分類結果,將無法被準確預測分類的圖像進行數量擴增、配對、標記之後再次輸入圖像分類模型所屬之類神經網路架構加強訓練,始再產生另一圖像分類模型,透過至少一次加強訓練,有效降低過度篩檢,提升圖像分類模型之預測分類準確性,尤適合應用在產品通過自動光學檢測之後,再次判別產品為良品或瑕疵品,以相對更為積極、可靠之手段,提高檢測設備的辨別正確率及效率,並且降低進行二次篩選的成本。The optical detection secondary image classification method disclosed in the present invention pairs a good product image and a defective product image into an image group marked 1, and a good product image and a screening image are paired to form an image group. For image groups marked as 0, each image group is input into the network architecture one by one for image classification model training, and after the image classification model is generated and verified, the input image prediction classification results are recorded, and the After the images that cannot be accurately predicted and classified are amplified, matched, and labeled, they are re-entered into a neural network architecture such as the image classification model belongs to for enhanced training, and another image classification model is generated. Through at least one enhanced training, it is effective Reduce excessive screening and improve the predictive classification accuracy of the image classification model. It is especially suitable for applications after the product has passed the automatic optical inspection to determine the product as a good product or a defective product again, and use a relatively more active and reliable method to improve the performance of the testing equipment. Identify the correct rate and efficiency, and reduce the cost of secondary screening.
本發明主要提供自動光學檢測一種可以有效提升圖像分類準確率的光學檢測二次圖像分類方法,本發明之光學檢測二次圖像分類方法,係使用於一設有自動光學檢測系統之加工產線所提供之產品為良品或瑕疵品之圖像分類判別;如第1圖至第3圖所示,該光學檢測二次圖像分類方法100,係包括下列步驟:The present invention mainly provides automatic optical inspection, an optical inspection secondary image classification method that can effectively improve the accuracy of image classification. The optical inspection secondary image classification method of the present invention is used in a processing with an automatic optical inspection system The image classification of the product provided by the production line is good or defective; as shown in Figures 1 to 3, the optical inspection secondary
(a)提供一圖像特徵自動辨識系統步驟,一圖像特徵自動辨識系統10係整合有一儲存單元11、一處理單元12以及一圖像擷取單元13,該儲存單元11中載入有複數良品圖像、複數過度篩檢圖像、複數瑕疵品圖像;於實施時,該處理單元12係可以為一圖形處理器(Graphics Processing Unit , GPU)。(a) Provide an image feature automatic identification system step. An image feature
(b)建立訓練資料集步驟,至少於該圖像特徵自動辨識系統10之該儲存單元11中建立一訓練資料集20,該訓練資料集20係包括複數由該儲存單元11中任一良品圖像及任一瑕疵品圖像配對成為標記為1的第一圖像組(如第5圖所示)、複數由該儲存單元11中任一良品圖像及任一過篩檢圖像配對成為標記為0的第二圖像組(如第6圖所示)。(b) The step of creating a training data set is to create at least a training data set 20 in the
(c)建立驗證資料集步驟,於該圖像特徵自動辨識系統10之該儲存單元11中建立一驗證資料集30,該驗證資料集30係至少包括複數良品圖像、複數瑕疵品圖像。(c) The step of establishing a verification data set is to create a verification data set 30 in the
(d)建立類神經網路架構步驟,於該圖像特徵自動辨識系統10之該儲存單元11中建立一由該處理單元12執行運作,供用以對所輸入之圖像進行良品或瑕疵品預測分類的類神經網路架構40,該類神經網路架構40係具有兩個可供獨立進行運作的特徵核心模組41及一與該兩個特徵核心模組41連接的全連接模組42;於實施時,係可於該圖像特徵自動辨識系統10之該儲存單元中11建立一供用以對所輸入之圖像進行良品或瑕疵品預測分類的卷積神經網路架構(Convolutional neural network , CNN)。(d) A step of establishing a neural network-like architecture, in the
(e)圖像分類模型訓練步驟,透過該圖像擷取單元13將該訓練資料集20當中複數標記為標籤0的第二圖像組、複數標記為標籤1的第二圖像組逐一輸入該類神經網路架構40,經比對該類神經網路架構40預測分類輸出結果之後調整該類神經網a路架構40之特徵和權重,並且儲存成功降低誤差的調整,始產生一更擅於對所輸入之圖像進行良品或瑕疵品預測分類的圖像分類模型;於實施時,各第一圖像組或第二圖像組當中之兩個圖像係各輸入類神經網路架構40之其中任一特徵核心模組41,之後由全連接模組42完成圖像預測分類輸出(如第3圖所示)。(e) The image classification model training step, through the
(f)圖像分類模型驗證步驟,在每次產生圖像分類模型時,透過該圖像擷取單元13將該驗證資料集30當中之複數良品圖像、複數瑕疵品圖像逐一輸入該次產生的圖像分類模型,由該次產生的圖像分類模型對輸入的各該良品圖像及各該瑕疵品圖像進行預測分類,藉以評估該次產生的圖像分類模型預測分類準確性。(f) The image classification model verification step. Each time an image classification model is generated, the multiple good product images and the multiple defective product images in the
(g)統計分類預測錯誤分佈及加強訓練步驟,在每次產生圖像分類模型,且在該次產生的圖像分類模型完成驗證時,記錄所輸入之各該良品圖像及各該瑕疵品圖像之預測分類結果,並且統計預測分類錯誤分佈,依照該圖像分類模型訓練步驟當中該第一圖像圖及該第二圖像組之配對、標記模式及訓練模式,將各該實際為良品圖像卻無法被準確預測分類的圖像進行數量擴增之產生的各該良品圖像,與各該實際為瑕疵品圖像卻無法被準確預測分類的圖像進行數量擴增之後產生的各該瑕疵品圖像重新配對、標記之後再次輸入該次產生的圖像分類模型所屬之類神經網路架構加強訓練,始再產生另一圖像分類模型。(g) Statistical classification prediction error distribution and enhanced training steps, each time an image classification model is generated, and when the image classification model generated this time is verified, each input good image and each defective product are recorded The predicted classification result of the image, and the statistical prediction of the classification error distribution, according to the pairing, labeling mode and training mode of the first image image and the second image group in the image classification model training step, the actual is Good product images but cannot be accurately predicted and classified by the number of images that are generated by the number amplification of each good product image, and each of the actual defective images but cannot be accurately predicted and classified by the number of images generated after amplifying the number After re-pairing and labeling each defective product image, it is re-input to the neural network architecture to which the generated image classification model belongs to strengthen training, and then another image classification model is generated.
(h)確認模型步驟,經至少執行一次該步驟(f)至該步驟(g)之後,於該些圖像分類模型當中確認至少一圖像分類模型,即可利用該至少一被確認的圖像分類模型對該加工產線所提供之產品進行良品或瑕疵品之圖像分類判別。(h) The step of confirming the model, after performing steps (f) to (g) at least once, confirming at least one image classification model among the image classification models, and then using the at least one confirmed image The image classification model classifies the products provided by the processing line as good or defective images.
本發明之光學檢測二次圖像分類方法,於該確認模型步驟中,係可在至少重複一次該步驟(f)至該步驟(g)之後,於該些圖像分類模型當中確認一準確性較佳的圖像分類模型,利用該被確認的圖像分類模型對該加工產線所提供之產品進行良品或瑕疵品之圖像分類判別。In the optical detection secondary image classification method of the present invention, in the confirming model step, after repeating the steps (f) to (g) at least once, an accuracy can be confirmed among the image classification models A better image classification model uses the confirmed image classification model to classify images of good or defective products provided by the processing line.
本發明之光學檢測二次圖像分類方法,於該確認模型步驟中,亦可在至少重複一次該步驟(f)至該步驟(g)之後,於該些圖像分類模型當中確認複數準確性較佳的圖像分類模型,並且將該些被確認的圖像分類模型進行合併,利用該些合併後的圖像分類模型對該加工產線所提供之產品進行良品或瑕疵品之圖像分類判別。In the optical detection secondary image classification method of the present invention, in the step of confirming the model, after repeating the step (f) to the step (g) at least once, the plural accuracy of the image classification models can be confirmed A better image classification model, and combine the confirmed image classification models, and use the combined image classification models to classify the products provided by the processing line for good or defective images Discriminate.
由於本發明之光學檢測二次圖像分類方法,係將一良品圖像及一瑕疵品圖像配對成為標記為1的圖像組,將一良品圖像及一過篩檢圖像配對成為標記為0的圖像組,逐一將各圖像組輸入類行經網路架構進行圖像分類模型訓練,並且在圖像分類模型產生且完成驗證後,記錄所輸入之圖像預測分類結果,將無法被準確預測分類的圖像進行數量擴增、配對、標記之後再次輸入圖像分類模型所屬之類神經網路架構加強訓練,始再產生另一圖像分類模型,透過至少一次加強訓練,可有效降低過度篩檢,提升圖像分類模型之預測分類準確性,以相對更為積極、可靠之手段,提高檢測設備的辨別正確率及效率,並且降低進行二次篩選的成本。Because of the optical inspection secondary image classification method of the present invention, a good product image and a defective product image are paired to form an image group labeled 1, and a good product image and a screening image are paired to form a label If the image group is 0, input each image group one by one through the network architecture for image classification model training, and after the image classification model is generated and verified, the input image prediction classification results will be recorded. After accurate prediction and classification of images are amplified, matched, and labeled, they are re-entered into a neural network architecture such as the image classification model belongs to for enhanced training, and then another image classification model is generated. Through at least one enhanced training, it can be effective Reduce excessive screening, improve the predictive classification accuracy of the image classification model, use relatively more active and reliable means to improve the accuracy and efficiency of the detection equipment, and reduce the cost of secondary screening.
如第1圖及第4圖所示,本發明之光學檢測二次圖像分類方法,在上揭各種可能實施之樣態下,該訓練資料集20與該驗證資料集30之良品圖像數量係可以由複數經該自動光學檢測系統判別為良品且透過人工確認為良品的良品原始圖像擴增達成;該訓練資料集20之過度篩檢圖像數量係可以由複數經該自動光學檢測系統判別為瑕疵品但透過人工確認為良品的良品原始圖像擴增達成;該訓練資料集20與該驗證資料集30之瑕疵品圖像數量係由複數經該自動光學檢測系統判別為瑕疵品且透過人工確認為瑕疵品的瑕疵品原始圖像擴增達成。As shown in Figures 1 and 4, the optical detection secondary image classification method of the present invention reveals the number of good images in the training data set 20 and the verification data set 30 in various possible implementation modes. It can be achieved by amplifying the original images of good products that are judged to be good by the automatic optical detection system and manually confirmed as good; the number of over-screened images in the
以及,本發明之光學檢測二次圖像分類方法,在上揭各種可能實施之樣態下,該驗證資料集30當中之各該良品圖像係與該訓練資料集20當中之各該良品圖像不完全相同,該驗證資料集30當中之各該瑕疵品圖像係與該訓練資料集20當中之各該瑕疵品圖像不完全相同。And, in the optical detection secondary image classification method of the present invention, each of the good image in the verification data set 30 and each of the good images in the training data set 20 in the various possible implementation modes described above The images are not exactly the same, each of the defective product images in the verification data set 30 and each of the defective product images in the
當然,本發明之光學檢測二次圖像分類方法,在上揭各種可能實施之樣態下,又以該訓練資料集20與該驗證資料集30之良品圖像數量係可以由複數經該自動光學檢測系統判別為良品且透過人工確認為良品的良品原始圖像擴增達成;該訓練資料集20之過度篩檢圖像數量係可以由複數經該自動光學檢測系統判別為瑕疵品但透過人工確認為良品的良品原始圖像擴增達成;該訓練資料集20與該驗證資料集30之瑕疵品圖像數量係由複數經該自動光學檢測系統判別為瑕疵品且透過人工確認為瑕疵品的瑕疵品原始圖像擴增達成;以及,該驗證資料集30當中之各該良品圖像係與該訓練資料集20當中之各該良品圖像不完全相同,該驗證資料集30當中之各該瑕疵品圖像係與該訓練資料集20當中之各該瑕疵品圖像不完全相同為佳。Of course, the optical detection secondary image classification method of the present invention, in the various possible implementation modes, and the number of good images in the training data set 20 and the
本發明之光學檢測二次圖像分類方法,在上揭各種可能實施之樣態下,各該圖像分類模型之各該類神經網路架構對各輸入圖像之預測輸出值,係能夠選擇以0或1的輸出型態呈現;當然,各該圖像分類模型之各該類神經網路架構對各輸入圖像之預測輸出值,亦能夠選擇以預測為0之機率及預測為1之機率的輸出型態呈現。In the optical detection secondary image classification method of the present invention, in various possible implementation modes, the predicted output value of each type of neural network architecture of each image classification model for each input image can be selected It is presented in the output type of 0 or 1. Of course, the predicted output value of each of the neural network architectures of each image classification model for each input image can also be selected based on the probability of the prediction being 0 and the prediction being 1. Probability of the output pattern is presented.
具體而言,本發明所揭露的光學檢測二次圖像分類方法,係將一良品圖像及一瑕疵品圖像配對成為標記為1的圖像組,將一良品圖像及一過篩檢圖像配對成為標記為0的圖像組,逐一將各圖像組輸入類行經網路架構進行圖像分類模型訓練,並且在圖像分類模型產生且完成驗證後,記錄所輸入之圖像預測分類結果,將無法被準確預測分類的圖像進行數量擴增、配對、標記之後再次輸入圖像分類模型所屬之類神經網路架構加強訓練,始再產生另一圖像分類模型,透過至少一次加強訓練,有效降低過度篩檢,提升圖像分類模型之預測分類準確性,尤適合應用在產品通過自動光學檢測之後,再次判別產品為良品或瑕疵品,以相對更為積極、可靠之手段,提高檢測設備的辨別正確率及效率,並且降低進行二次篩選的成本。Specifically, the optical detection secondary image classification method disclosed in the present invention is to pair a good product image and a defective product image into an image group marked as 1, and combine a good product image and a screened image group. The images are paired into image groups marked as 0, and each image group is input into the network architecture for image classification model training, and after the image classification model is generated and verified, the input image prediction is recorded As a result of the classification, the number of images that cannot be accurately predicted and classified are amplified, paired, and labeled, and then re-entered into the neural network architecture of the image classification model to strengthen training, and then another image classification model is generated at least once Strengthen training, effectively reduce excessive screening, and improve the predictive classification accuracy of the image classification model. It is especially suitable for applications after the product has passed the automatic optical inspection to judge the product as a good product or a defective product again with a relatively more active and reliable method. Improve the accuracy and efficiency of detection equipment, and reduce the cost of secondary screening.
以上所述之實施例僅係為說明本發明之技術思想及特點,其目的在使熟習此項技藝之人士能夠瞭解本發明之內容並據以實施,當不能以之限定本發明之專利範圍,即大凡依本發明所揭示之精神所作之均等變化或修飾,仍應涵蓋在本發明之專利範圍內。The above-mentioned embodiments are only to illustrate the technical ideas and features of the present invention, and their purpose is to enable those who are familiar with the art to understand the content of the present invention and implement them accordingly. When they cannot be used to limit the patent scope of the present invention, That is, all equal changes or modifications made in accordance with the spirit of the present invention should still be covered by the patent scope of the present invention.
100:光學檢測二次圖像分類方法 10:圖像特徵自動辨識系統 11:儲存單元 12:處理單元 13:圖像擷取單元 20:訓練資料集 30:驗證資料集 40:類神經網路架構 41:特徵核心模組 42:全連接模組100: Optical inspection secondary image classification method 10: Image feature automatic identification system 11: storage unit 12: Processing unit 13: Image capture unit 20: Training data set 30: Validation data set 40: Neural Network Architecture 41: Feature Core Module 42: Fully connected module
第1圖係為本發明當中之圖像特徵自動辨識系統基本組成架構方塊示意圖。 第2圖係為本發明之光學檢測二次圖像分類方法基本流程圖。 第3圖係為本發明當中之一種可能實施之圖像分類模型訓練過程示意圖。 第4圖係為本發明當中之一種可能實施之原始圖像確認流程圖。 第5圖係為本發明當中之訓練資料集之第一圖像組配對架構圖。 第6圖係為本發明當中之訓練資料集之第二圖像組配對架構圖。Figure 1 is a block diagram of the basic structure of the image feature automatic recognition system in the present invention. Figure 2 is the basic flow chart of the optical detection secondary image classification method of the present invention. Figure 3 is a schematic diagram of a possible implementation of the image classification model training process in the present invention. Figure 4 is a flow chart of the original image confirmation in one of the possible implementations of the present invention. Figure 5 is the first image group pairing structure diagram of the training data set in the present invention. Figure 6 is the second image group pairing structure diagram of the training data set in the present invention.
100:光學檢測二次圖像分類方法100: Optical inspection secondary image classification method
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW108137799A TWI745767B (en) | 2019-10-18 | 2019-10-18 | Optical inspection secondary image classification method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW108137799A TWI745767B (en) | 2019-10-18 | 2019-10-18 | Optical inspection secondary image classification method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW202117592A TW202117592A (en) | 2021-05-01 |
| TWI745767B true TWI745767B (en) | 2021-11-11 |
Family
ID=77020581
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW108137799A TWI745767B (en) | 2019-10-18 | 2019-10-18 | Optical inspection secondary image classification method |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI745767B (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106127780A (en) * | 2016-06-28 | 2016-11-16 | 华南理工大学 | A kind of curved surface defect automatic testing method and device thereof |
| CN106875381A (en) * | 2017-01-17 | 2017-06-20 | 同济大学 | A kind of phone housing defect inspection method based on deep learning |
| CN107481231A (en) * | 2017-08-17 | 2017-12-15 | 广东工业大学 | A kind of handware defect classifying identification method based on depth convolutional neural networks |
| CN108230317A (en) * | 2018-01-09 | 2018-06-29 | 北京百度网讯科技有限公司 | Steel plate defect detection sorting technique, device, equipment and computer-readable medium |
| CN108428247A (en) * | 2018-02-27 | 2018-08-21 | 广州视源电子科技股份有限公司 | Method and system for detecting direction of soldering tin point |
| CN109146873A (en) * | 2018-09-04 | 2019-01-04 | 凌云光技术集团有限责任公司 | A kind of display screen defect intelligent detecting method and device based on study |
-
2019
- 2019-10-18 TW TW108137799A patent/TWI745767B/en active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106127780A (en) * | 2016-06-28 | 2016-11-16 | 华南理工大学 | A kind of curved surface defect automatic testing method and device thereof |
| CN106875381A (en) * | 2017-01-17 | 2017-06-20 | 同济大学 | A kind of phone housing defect inspection method based on deep learning |
| CN107481231A (en) * | 2017-08-17 | 2017-12-15 | 广东工业大学 | A kind of handware defect classifying identification method based on depth convolutional neural networks |
| CN108230317A (en) * | 2018-01-09 | 2018-06-29 | 北京百度网讯科技有限公司 | Steel plate defect detection sorting technique, device, equipment and computer-readable medium |
| CN108428247A (en) * | 2018-02-27 | 2018-08-21 | 广州视源电子科技股份有限公司 | Method and system for detecting direction of soldering tin point |
| CN109146873A (en) * | 2018-09-04 | 2019-01-04 | 凌云光技术集团有限责任公司 | A kind of display screen defect intelligent detecting method and device based on study |
Also Published As
| Publication number | Publication date |
|---|---|
| TW202117592A (en) | 2021-05-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10964004B2 (en) | Automated optical inspection method using deep learning and apparatus, computer program for performing the method, computer-readable storage medium storing the computer program, and deep learning system thereof | |
| CN111524478B (en) | Device and method for detecting faults | |
| US11029260B2 (en) | Solder paste printing quality inspection system and method | |
| CN110232406B (en) | A Statistical Learning-Based CF Image Recognition Method for Liquid Crystal Panels | |
| CN109060817B (en) | Artificial intelligence review system and method | |
| KR20220047535A (en) | AI-based pre-training model determination system and AI-based vision inspection management system for product production lines using the same | |
| CN118279272A (en) | Steel plate surface defect detection method based on improvement YOLOv8 | |
| TWI715051B (en) | Machine learning method and automatic optical inspection device using the method thereof | |
| CN110969600A (en) | A product defect detection method, device, electronic device and storage medium | |
| TWI707299B (en) | Optical inspection secondary image classification method | |
| WO2023282043A1 (en) | Inspection method, classification method, management method, steel material manufacturing method, training model generation method, training model, inspection device, and steel material manufacturing facility | |
| CN117689646A (en) | A high-precision defect detection method, system and medium for fusion of positive and negative samples | |
| JP2020077158A (en) | Image processing device and image processing method | |
| CN108268899A (en) | A kind of detection method of electronic component, device and equipment | |
| CN116468961A (en) | Image classification method and intelligent flaw detection system for injection molding product | |
| CN113554645B (en) | Industrial anomaly detection method and device based on WGAN | |
| TWI745767B (en) | Optical inspection secondary image classification method | |
| CN111191670A (en) | Neural network-based classification device and classification method | |
| CN117455917B (en) | Establishment of false alarm library of etched lead frame and false alarm on-line judging and screening method | |
| CN113267506A (en) | Wood board AI visual defect detection device, method, equipment and medium | |
| CN114692887A (en) | Semi-supervised learning system and semi-supervised learning method | |
| CN117576016A (en) | An intelligent detection method for smoke box appearance defects | |
| CN113642257A (en) | Wafer quality prediction method and system | |
| CN120219857B (en) | A quality tracing method based on AI image recognition | |
| CN120125943A (en) | A method and device for detecting complex graphics by laser scanning |