[go: up one dir, main page]

TWI647658B - Device, system and method for automatically identifying image features - Google Patents

Device, system and method for automatically identifying image features Download PDF

Info

Publication number
TWI647658B
TWI647658B TW106133740A TW106133740A TWI647658B TW I647658 B TWI647658 B TW I647658B TW 106133740 A TW106133740 A TW 106133740A TW 106133740 A TW106133740 A TW 106133740A TW I647658 B TWI647658 B TW I647658B
Authority
TW
Taiwan
Prior art keywords
image
image feature
sample images
images
sample
Prior art date
Application number
TW106133740A
Other languages
Chinese (zh)
Other versions
TW201915941A (en
Inventor
黃哲瑄
黃璽軒
張書修
Original Assignee
樂達創意科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 樂達創意科技有限公司 filed Critical 樂達創意科技有限公司
Priority to TW106133740A priority Critical patent/TWI647658B/en
Application granted granted Critical
Publication of TWI647658B publication Critical patent/TWI647658B/en
Publication of TW201915941A publication Critical patent/TW201915941A/en

Links

Landscapes

  • Image Analysis (AREA)

Abstract

本發明公開一種影像特徵自動辨識裝置、系統及方法。影像特徵自動辨識方法包括下列步驟:對分別具有不同的影像特徵的多個樣品圖像進行影像處理程序,並分別將影像處理程序所產生的影像處理結果與標準圖像進行疊合以產生擴增的多個樣品圖像;將擴增前、後的多個樣品圖像提供給深度學習系統,以建立影像特徵自動辨識演算法,其包括有針對影像特徵的辨識標準;擷取待檢測物的待測圖像,以影像特徵自動辨識演算法對待測圖像進行分析,並根據辨識標準判斷待測圖像是否具有影像特徵。 The invention discloses an image feature automatic identification device, system and method. The image feature automatic identification method comprises the following steps: performing image processing procedures on a plurality of sample images respectively having different image features, and respectively superimposing the image processing results generated by the image processing program with the standard images to generate amplification. a plurality of sample images; providing a plurality of sample images before and after amplification to a deep learning system to establish an image feature automatic recognition algorithm, including an identification standard for image features; and extracting the object to be detected The image to be tested is analyzed by the image feature automatic recognition algorithm, and the image to be tested is determined according to the identification standard.

Description

影像特徵自動辨識裝置、系統及方法 Image feature automatic identification device, system and method

本發明涉及一種影像特徵自動辨識裝置、系統及方法,特別是涉及一種將用於深度學習系統的樣品圖像先進行擴增的影像特徵自動辨識裝置、系統及方法。 The present invention relates to an image feature automatic identification device, system and method, and more particularly to an image feature automatic identification device, system and method for amplifying a sample image for a deep learning system.

隨著機器學習(Machine Learning)技術的越趨成熟,無論在影像識別、語音辨識或自然語言處理等各方面,都有了更加多樣化的應用。 With the maturity of Machine Learning technology, there are more diverse applications in image recognition, speech recognition or natural language processing.

其中,影像辨識技術與機器學習技術的結合尤其出色,除了在基本的手寫文字辨識、物件識別以及人臉辨識等應用之外,深度學習(Deep Learning)和影像辨識整合的技術,也時常結合自動光學檢測(Automated Optical Inspection,簡稱AOI)系統,而被應用在產品生產過程中的產品品質管控。 Among them, the combination of image recognition technology and machine learning technology is particularly excellent. In addition to basic handwriting recognition, object recognition and face recognition applications, deep learning and image recognition integration technologies are often combined with automatic Automated Optical Inspection (AOI) system, which is applied to the quality control of products in the production process.

機器學習演算法是一類從資料中自動分析獲得規律,並利用規律對未知資料進行預測的演算法。很顯然,為了確保深度學習所產生出來的演算法能夠正確地判別未知資料,必須在深度學習的訓練過程(Training)中提供大量的樣品資料,尤其是,大量有標記(Label)的樣品資料,以便深度學習的模型(model)能夠充分且正確地學習到判別的關鍵。 The machine learning algorithm is a kind of algorithm that automatically analyzes and obtains the law from the data and uses the law to predict the unknown data. Obviously, in order to ensure that the algorithm generated by deep learning can correctly discriminate unknown data, a large amount of sample data must be provided in the deep learning training process, in particular, a large number of labeled sample materials. So that the model of deep learning can fully and correctly learn the key to the discrimination.

然而,大量樣品的蒐集並非易事,尤其當深度學習系統被應用在產品生產過程的品質管控上,通常要學習辨識的標記即為產 品的瑕疵特徵,假如要求產品的生產者先產出極大量的瑕疵產品,且人工挑選出大量的瑕疵樣品並進行標記後,才能夠有效應用深度學習系統協助產生能夠自動辨識瑕疵特徵的演算法,進而通過自動辨識瑕疵特徵的演算法,回過頭來協助生產者進行品質管控以及改善製程,這顯然並不是一個非常理想的方案。 However, the collection of a large number of samples is not an easy task. Especially when the deep learning system is applied to the quality control of the production process, it is usually necessary to learn the identification mark. The characteristics of the product, if the producer of the product is required to produce a very large number of tantalum products, and manually select a large number of tantalum samples and mark them, then the deep learning system can be effectively applied to help generate an algorithm that can automatically identify the characteristics of the flaw. Furthermore, by automatically recognizing the algorithm of the feature, it is obviously not an ideal solution to help the producer to carry out quality control and improve the process.

本發明所要解決的技術問題在於,針對現有技術的不足提供一種影像特徵自動辨識裝置、系統及方法,能通過大量擴增樣品圖像的數量,有效提升深度學習系統下的訓練過程所能接觸到的資料多樣性,進而能增進深度學習系統應用於影像特徵自動辨識的效率與正確性。 The technical problem to be solved by the present invention is to provide an automatic recognition device, system and method for image features according to the deficiencies of the prior art, which can effectively increase the number of sample images and effectively improve the training process under the deep learning system. The diversity of data can further improve the efficiency and correctness of the deep learning system applied to the automatic identification of image features.

為了解決上述的技術問題,本發明所採用的其中一技術方案是,提供一種影像特徵自動辨識裝置,其包括一儲存單元、一處理單元以及一影像擷取單元,其中,所述儲存單元儲存有一資料庫,所述資料庫儲存有一第一影像特徵類別群組以及至少一標準圖像,所述第一影像特徵類別群組儲存有多個第一樣品圖像,每一個所述第一樣品圖像分別具有不同的第一影像特徵;所述處理單元與所述儲存單元訊號連接;所述影像擷取單元與所述處理單元訊號連接,以用於擷取一待檢測物的一待測圖像。所述處理單元讀取所述資料庫中的多個所述第一樣品圖像,多個所述第一樣品圖像進行影像處理程序以分別產生多個影像處理結果,且多個所述影像處理結果分別與多個所述標準圖像進行疊合,以分別產生擴增的多個第一樣品圖像。所述處理單元根據擴增前以及擴增後的多個所述第一樣品圖像執行一深度學習系統的訓練程序,以建立一影像特徵自動辨識演算法,所述影像特徵自動辨識演算法包括有針對所述第一影像特徵的一第一辨識標準。所述處理單元自所述影像擷取單元取得所述待測圖像,所述處理單元執行所述影像特徵自動辨識演算法對所述待測圖像進行分析,且所述處理 單元根據所述第一辨識標準判斷所述待測圖像是否具有所述第一影像特徵。 In order to solve the above technical problem, one of the technical solutions adopted by the present invention is to provide an image feature automatic identification device, which includes a storage unit, a processing unit, and an image capturing unit, wherein the storage unit stores a database, the database storing a first image feature category group and at least one standard image, the first image feature category group storing a plurality of first sample images, each of the first The product images respectively have different first image features; the processing unit is connected to the storage unit signal; the image capturing unit is connected to the processing unit signal for capturing a to-be-detected object Measure the image. The processing unit reads a plurality of the first sample images in the database, and the plurality of first sample images perform an image processing program to respectively generate a plurality of image processing results, and the plurality of The image processing results are respectively superimposed with a plurality of the standard images to respectively generate a plurality of amplified first sample images. The processing unit executes a training program of the deep learning system according to the plurality of the first sample images before and after the amplification to establish an image feature automatic identification algorithm, and the image feature automatic identification algorithm A first identification criterion for the first image feature is included. The processing unit acquires the image to be tested from the image capturing unit, and the processing unit performs the image feature automatic identification algorithm to analyze the image to be tested, and the processing The unit determines, according to the first identification criterion, whether the image to be tested has the first image feature.

為了解決上述的技術問題,本發明所採用的另外一技術方案是,提供一種影像特徵自動辨識系統,其包括一伺服端以及一檢測端,其中,所述伺服端包括一儲存單元以及一處理單元,所述儲存單元儲存有一資料庫,所述資料庫儲存有一第一影像特徵類別群組以及至少一標準圖像,所述第一影像特徵類別群組儲存有多個第一樣品圖像,每一個所述第一樣品圖像分別具有不同的第一影像特徵;所述處理單元與所述儲存單元訊號連接。其中,所述處理單元讀取所述資料庫中的多個所述第一樣品圖像,並分別進行一影像處理程序,且分別將所述影像處理程序所產生的影像處理結果各自與所述標準圖像進行疊合以產生擴增的多個第一樣品圖像;所述處理單元根據擴增前以及擴增後的多個第一樣品圖像執行一深度學習系統的訓練程序,以建立一影像特徵自動辨識演算法,所述影像特徵自動辨識演算法包括有針對所述第一影像特徵的一第一辨識標準。所述檢測端與所述伺服端訊號連接,且能由所述伺服端接收所述影像特徵自動辨識演算法,所述檢測端包括一影像擷取模組以及一處理模組,所述影像擷取模組用以擷取一待檢測物的一待測圖像;所述處理模組與所述影像擷取模組訊號連接,以自所述影像擷取模組取得所述待測圖像,所述處理模組執行所述影像特徵自動辨識演算法對所述待測圖像進行分析,並根據所述第一辨識標準判斷所述待測圖像是否具有所述第一影像特徵。 In order to solve the above technical problem, another technical solution adopted by the present invention is to provide an image feature automatic identification system, which includes a server end and a detecting end, wherein the server end includes a storage unit and a processing unit. The storage unit stores a database, the database stores a first image feature category group and at least one standard image, and the first image feature category group stores a plurality of first sample images. Each of the first sample images has a different first image feature; the processing unit is coupled to the storage unit signal. The processing unit reads a plurality of the first sample images in the database, and respectively performs an image processing program, and respectively respectively respectively respectively the image processing results generated by the image processing program The standard image is superimposed to generate a plurality of amplified first sample images; the processing unit performs a training program of the deep learning system according to the plurality of first sample images before and after the amplification To establish an image feature automatic identification algorithm, the image feature automatic recognition algorithm includes a first identification criterion for the first image feature. The detecting end is connected to the servo end signal, and the image end automatic recognition algorithm is received by the server end, the detecting end includes an image capturing module and a processing module, and the image is The module is configured to capture a to-be-tested image of the object to be detected; the processing module is coupled to the image capturing module to obtain the image to be tested from the image capturing module The processing module performs the image feature automatic identification algorithm to analyze the image to be tested, and determines whether the image to be tested has the first image feature according to the first identification criterion.

為了解決上述的技術問題,本發明所採用的另外再一技術方案是,提供一種影像特徵自動辨識方法,其包括下列步驟:對分別具有不同的第一影像特徵的多個第一樣品圖像進行一影像處理程序,並分別將所述影像處理程序所產生的影像處理結果與不具有所述第一影像特徵的一標準圖像進行疊合以產生擴增的多個第 一樣品圖像;將擴增前以及擴增後的多個第一樣品圖像提供給一深度學習系統,以建立一影像特徵自動辨識演算法,所述影像特徵自動辨識演算法包括有針對所述第一影像特徵的一第一辨識標準;擷取一待檢測物的一待測圖像,以所述影像特徵自動辨識演算法對所述待測圖像進行分析,並根據所述第一辨識標準判斷所述待測圖像是否具有所述第一影像特徵。 In order to solve the above technical problem, another technical solution adopted by the present invention is to provide an image feature automatic identification method, which includes the following steps: a plurality of first sample images respectively having different first image features Performing an image processing program, and respectively superimposing the image processing result generated by the image processing program with a standard image not having the first image feature to generate a plurality of amplified images a sample image; providing a plurality of first sample images before and after the amplification to a depth learning system to establish an image feature automatic recognition algorithm, wherein the image feature automatic recognition algorithm includes a first identification criterion of the first image feature; capturing a to-be-tested image of the object to be detected, and analyzing the image to be tested by the image feature automatic recognition algorithm, and according to the An identification criterion determines whether the image to be tested has the first image feature.

本發明的有益效果在於,本發明技術方案所提供的影像特徵自動辨識裝置、系統及方法,其能通過“對分別具有不同影像特徵的多個樣品圖像進行影像處理程序,並與不具有所述影像特徵的標準圖像進行疊合以產生擴增的多個樣品圖像”以及“將擴增前以及擴增後的多個樣品圖像提供給深度學習系統”的技術特徵,以提升深度學習系統下的訓練過程所能接觸到的資料多樣性,進而能增進深度學習系統應用於影像特徵自動辨識的效率與正確性,且在尚未累積到及大量的瑕疵樣品的階段,就能夠採用深度學習系統產生影像特徵自動辨識演算法,在新產品製程的早期階段,就能有效地運用影像特徵自動辨識技術改善製程減少瑕疵,節省大量的時間與成本。 The invention has the beneficial effects of the image feature automatic identification device, system and method provided by the technical solution of the present invention, which can perform image processing procedures on a plurality of sample images respectively having different image features, and Technical features of superimposing standard images of image features to produce amplified multiple sample images" and "providing pre-amplification and post-amplification multiple sample images to a deep learning system" to enhance depth The diversity of data that can be accessed by the training process under the learning system can improve the efficiency and correctness of the deep learning system applied to the automatic identification of image features, and the depth can be adopted at the stage where a large number of samples are not accumulated. The learning system generates an automatic recognition algorithm for image features. In the early stage of the new product process, the image feature automatic identification technology can be effectively used to improve the process reduction and save a lot of time and cost.

為使能更進一步瞭解本發明的特徵及技術內容,請參閱以下有關本發明的詳細說明與附圖,然而所提供的附圖僅用於提供參考與說明,並非用來對本發明加以限制。 For a better understanding of the features and technical aspects of the present invention, reference should be made to the accompanying drawings.

1‧‧‧裝置 1‧‧‧ device

11、211‧‧‧儲存單元 11, 211‧‧‧ storage unit

111、2111‧‧‧資料庫 111, 2111‧‧ ‧ database

12、212‧‧‧處理單元 12.212‧‧‧Processing unit

13‧‧‧影像擷取單元 13‧‧‧Image capture unit

2‧‧‧系統 2‧‧‧System

21‧‧‧伺服端 21‧‧‧Server

22‧‧‧檢測端 22‧‧‧Detection

221‧‧‧處理模組 221‧‧‧Processing module

222‧‧‧影像擷取模組 222‧‧‧Image capture module

23‧‧‧樣品圖像供應端 23‧‧‧ Sample image supply end

P0‧‧‧標準圖像 P0‧‧‧ standard image

D1‧‧‧第一影像特徵 D1‧‧‧ first image features

P11...P1n、P1(n+1)...P1N、P111、P112、P113‧‧‧第一樣品圖像 P11...P1n, P1(n+1)...P1N, P111, P112, P113‧‧‧ first sample image

G1‧‧‧第一影像特徵類別群組 G1‧‧‧First Image Feature Category Group

D2‧‧‧第二影像特徵 D2‧‧‧Second image features

P21~P2N、P211、P212‧‧‧第二樣品圖像 P21~P2N, P211, P212‧‧‧ second sample image

G2‧‧‧第二影像特徵類別群組 G2‧‧‧Second image feature category group

圖1為本發明第一實施例的影像特徵自動辨識裝置功能方塊圖。 1 is a functional block diagram of an automatic image feature recognition apparatus according to a first embodiment of the present invention.

圖2A為通過本發明第一實施例的影像處理程序調整第一樣品圖像的影像形狀的調整結果示意圖。 2A is a schematic diagram showing an adjustment result of adjusting an image shape of a first sample image by the image processing program according to the first embodiment of the present invention.

圖2B為通過本發明第一實施例的影像處理程序調整第二樣品圖像的影像灰階的調整結果示意圖。 FIG. 2B is a schematic diagram showing an adjustment result of adjusting the gray scale of the image of the second sample image by the image processing program according to the first embodiment of the present invention.

圖3為本發明第二實施例的影像特徵自動辨識系統功能方塊 圖。 3 is a functional block of an image feature automatic identification system according to a second embodiment of the present invention; Figure.

圖4為本發明第三實施例的影像特徵自動辨識方法的主要流程圖。 FIG. 4 is a main flowchart of a method for automatically identifying an image feature according to a third embodiment of the present invention.

圖5為本發明第四實施例的影像特徵自動辨識方法執行預檢驗程序的流程圖。 FIG. 5 is a flowchart of a pre-verification procedure performed by an automatic image feature recognition method according to a fourth embodiment of the present invention.

以下是通過特定的具體實施例來說明本發明所公開有關“影像特徵自動辨識裝置、系統及方法”的實施方式,本領域技術人員可由本說明書所公開的內容瞭解本發明的優點與效果。本發明可通過其他不同的具體實施例加以施行或應用,本說明書中的各項細節也可基於不同觀點與應用,在不悖離本發明的精神下進行各種修飾與變更。另外,本發明的附圖僅為簡單示意說明,並非依實際尺寸的描繪,事先聲明。以下的實施方式將進一步詳細說明本發明的相關技術內容,但所公開的內容並非用以限制本發明的保護範圍。 The embodiments of the present invention relating to the "image feature automatic identification device, system and method" are described by way of specific embodiments, and those skilled in the art can understand the advantages and effects of the present invention from the contents disclosed in the specification. The present invention may be carried out or applied in various other specific embodiments, and various modifications and changes can be made without departing from the spirit and scope of the invention. In addition, the drawings of the present invention are merely illustrative and are not intended to be stated in the actual size. The following embodiments will further explain the related technical content of the present invention, but the disclosure is not intended to limit the scope of the present invention.

[第一實施例] [First Embodiment]

請參閱圖1、圖2A以及圖2B所示,圖1為本發明第一實施例的影像特徵自動辨識裝置功能方塊圖。圖2A為通過本發明第一實施例的影像處理程序調整第一樣品圖像的影像形狀的調整結果示意圖。圖2B為通過本發明第一實施例的影像處理程序調整第二樣品圖像的影像灰階的調整結果示意圖。由上述圖中可知,本發明第一實施例提供一種影像特徵自動辨識裝置1,其包括儲存單元11、處理單元12以及影像擷取單元13。 Referring to FIG. 1, FIG. 2A and FIG. 2B, FIG. 1 is a functional block diagram of an automatic image feature recognition apparatus according to a first embodiment of the present invention. 2A is a schematic diagram showing an adjustment result of adjusting an image shape of a first sample image by the image processing program according to the first embodiment of the present invention. FIG. 2B is a schematic diagram showing an adjustment result of adjusting the gray scale of the image of the second sample image by the image processing program according to the first embodiment of the present invention. As shown in the above figure, the first embodiment of the present invention provides an image feature automatic identification device 1 including a storage unit 11, a processing unit 12, and an image capturing unit 13.

請參閱圖1所示,儲存單元11儲存有資料庫111,資料庫111儲存有第一影像特徵類別群組G1、第二影像特徵類別群組G2以及至少一標準圖像P0。第一影像特徵類別群組G1儲存有多個第一樣品圖像P11~P1N;第二影像特徵類別群組G2儲存有多個第二 樣品圖像P21~P2N。處理單元12與儲存單元11訊號連接;影像擷取單元13與處理單元12訊號連接,以用於擷取待檢測物(圖式未顯示)的待測圖像。 Referring to FIG. 1 , the storage unit 11 stores a database 111. The database 111 stores a first image feature category group G1, a second image feature category group G2, and at least one standard image P0. The first image feature category group G1 stores a plurality of first sample images P11~P1N; the second image feature category group G2 stores a plurality of second Sample image P21~P2N. The processing unit 12 is connected to the storage unit 11 and the image capturing unit 13 is connected to the processing unit 12 for capturing the image to be detected (not shown).

為了方便說明,以下藉由隱形眼鏡的瑕疵檢測為例,說明本發明第一實施例的影像特徵自動辨識裝置1的運作方式。請搭配圖1的功能方塊圖,一併參閱圖2A以及圖2B所示。在本發明的第一實施例中,裝置1的儲存單元11儲存有人工篩選後認定為合格的隱形眼鏡圖像(即標準圖像P0)以及多個不同的瑕疵隱形眼鏡圖像(即第一樣品圖像P11~P1N及第二樣品圖像P21~P2N),前述合格的隱形眼鏡圖像以及多個不同的瑕疵隱形眼鏡圖像都被儲存在資料庫111中。 For convenience of description, the operation of the automatic image recognition apparatus 1 of the first embodiment of the present invention will be described below by taking the detection of the flaw of the contact lens as an example. Please refer to the function block diagram of FIG. 1 together with FIG. 2A and FIG. 2B. In the first embodiment of the present invention, the storage unit 11 of the device 1 stores a contact lens image (ie, a standard image P0) that is deemed to be qualified after manual screening, and a plurality of different contact lens images (ie, the first The sample images P11 to P1N and the second sample images P21 to P2N), the aforementioned acceptable contact lens images and a plurality of different contact lens images are stored in the database 111.

在本實施例中,多個第一樣品圖像P11~P1N分別具有不同的第一影像特徵D1,多個第二樣品圖像P21~P2N分別具有不同的第二影像特徵D2。更具體的說,當特定隱形眼鏡帶有氣泡時,拍攝該隱形眼鏡所獲得的樣品圖像,相較於合格的隱形眼鏡圖像,會具有「有氣泡」的瑕疵特徵(下稱「氣泡瑕疵」),在本實施例中便將此「氣泡瑕疵」的瑕疵特徵做為第一影像特徵D1,而具備第一影像特徵D1的樣品圖像即為本實施例中的第一樣品圖像P11~P1N。根據拍攝到的瑕疵隱形眼鏡,每一個第一樣品圖像P11~P1N上的第一影像特徵D1(即氣泡)都會略有不同。另一方面,當特定隱形眼鏡在生產的過程中,於脫模時在邊緣處產生瑕疵,則拍攝該隱形眼鏡所獲得的樣品圖像,相較於合格的隱形眼鏡圖像,會具有「邊緣處產生瑕疵」的瑕疵特徵(下稱「脫模瑕疵」),在本實施例中便將此「脫模瑕疵」的瑕疵特徵做為第二影像特徵D2,而具備第二影像特徵D2的樣品圖像即為本實施例中的第二樣品圖像P21~P2N。根據拍攝到的瑕疵隱形眼鏡,每一個第二樣品圖像P21~P2N上的第二影像特徵D2(即「脫模瑕疵」)也都會略有不同。 In this embodiment, the plurality of first sample images P11~P1N respectively have different first image features D1, and the plurality of second sample images P21~P2N respectively have different second image features D2. More specifically, when a specific contact lens has a bubble, the image of the sample obtained by photographing the contact lens has a "bubble" characteristic compared to a qualified contact lens image (hereinafter referred to as "bubble" In this embodiment, the 瑕疵 feature of the "bubble 瑕疵" is taken as the first image feature D1, and the sample image having the first image feature D1 is the first sample image in this embodiment. P11~P1N. According to the captured contact lens, the first image feature D1 (i.e., bubble) on each of the first sample images P11 to P1N is slightly different. On the other hand, when a specific contact lens is produced during the production process, a flaw is generated at the edge during demolding, and the image of the sample obtained by photographing the contact lens has an "edge" compared to a qualified contact lens image. In this embodiment, the 脱 feature of the "release 瑕疵" is used as the second image feature D2, and the sample having the second image feature D2 is produced. The image is the second sample image P21 to P2N in the present embodiment. According to the captured contact lens, the second image feature D2 (i.e., "release mold") on each of the second sample images P21 to P2N is also slightly different.

為了讓深度學習系統能夠正確的辨識出不同的瑕疵特徵,必須將瑕疵特徵適當地進行分類以及標記。此外,更重要的是,須提供足夠數量的樣品圖像供深度學習系統進行學習。在本實施例中,隱形眼鏡的生產者可能先以人工的方式(當然也可以在AOI檢測裝置的輔助下),圈選出有瑕疵的樣品圖像,並根據瑕疵的類型,分門別類地將具有第一影像特徵D1的第一樣品圖像P11~P1N儲存到資料庫111的第一影像特徵類別群組G1中、將具有第二影像特徵D2的第二樣品圖像P21~P2N儲存到資料庫111的第二影像特徵類別群組G2中。舉例來說,可以各自將100筆具有第一影像特徵D1的第一樣品圖像P11~P1N數據以及100筆具有第二影像特徵D2的第二樣品圖像P21~P2N數據儲存到資料庫111中。 In order for the deep learning system to correctly identify different defects, the features must be properly classified and labeled. In addition, it is more important to provide a sufficient number of sample images for deep learning systems to learn. In this embodiment, the manufacturer of the contact lens may first manually select a sample image of the flaw in an artificial manner (of course, with the aid of the AOI detection device), and according to the type of the flaw, it will be classified according to the type of the flaw. The first sample images P11~P1N of an image feature D1 are stored in the first image feature category group G1 of the database 111, and the second sample images P21~P2N having the second image feature D2 are stored in the database. The second image feature category group G2 of 111. For example, 100 pieces of first sample image P11~P1N data having the first image feature D1 and 100 pieces of second sample image P21~P2N data having the second image feature D2 may be separately stored in the database 111. in.

然而,為了讓後續產生的演算法能夠精準地進行影像特徵自動辨識,因此,本發明先對樣品圖像進行擴增。在本實施例中,處理單元12會先讀取資料庫111中的多個樣品圖像,並且對多個樣品圖像進行影像處理程序,以分別產生多個影像處理結果。影像處理程序包括影像形狀調整程序、影像對比度調整程序、影像灰階調整程序以及影像色溫調整程序之中的一種或兩種以上的組合。處理單元12將多個影像處理結果分別與多個標準圖像P0進行疊合,以分別產生擴增的多個樣品圖像。 However, in order to enable the subsequent generated algorithm to accurately identify the image features automatically, the present invention first amplifies the sample image. In this embodiment, the processing unit 12 first reads a plurality of sample images in the database 111, and performs image processing procedures on the plurality of sample images to respectively generate a plurality of image processing results. The image processing program includes one or a combination of two or more of an image shape adjustment program, an image contrast adjustment program, an image grayscale adjustment program, and an image color temperature adjustment program. The processing unit 12 superimposes the plurality of image processing results on the plurality of standard images P0 to generate a plurality of amplified sample images, respectively.

具體地舉例來說,請參閱圖2A所示,在本實施例中,處理單元12會先讀取資料庫111中的第一樣品圖像P11,並通過影像形狀調整程序對第一樣品圖像P11進行拉伸或變形,以產生多個影像處理結果,且多個影像處理結果分別與標準圖像P0進行疊合,以分別產生擴增的多個第一樣品圖像P111~P113。更具體地說,是針對第一樣品圖像P11的第一影像特徵D1(即圖像上被圈選出的「氣泡瑕疵」部分)進行拉伸或變形,並將變形後的影像處理結果分別與標準圖像P0進行疊合。 For example, as shown in FIG. 2A , in the embodiment, the processing unit 12 first reads the first sample image P11 in the database 111 and processes the first sample through the image shape adjustment program. The image P11 is stretched or deformed to generate a plurality of image processing results, and the plurality of image processing results are respectively superimposed with the standard image P0 to respectively generate the amplified plurality of first sample images P111 to P113. . More specifically, the first image feature D1 of the first sample image P11 (ie, the "bubble" portion of the circle that is circled on the image) is stretched or deformed, and the image processing results after the deformation are respectively It is superimposed with the standard image P0.

另請參閱圖2B所示,在本實施例中,處理單元12也可以先 讀取資料庫111中的第二樣品圖像P21,並通過影像灰階調整程序對第二樣品圖像P21的第二影像特徵D2(或僅針對圖像上位在隱形眼鏡邊緣的「脫模瑕疵」部分)進行灰階調整,以產生多個影像處理結果,且將多個影像處理結果分別與標準圖像P0進行疊合,以分別產生擴增的多個第二樣品圖像P211以及P212。 Referring to FIG. 2B, in the embodiment, the processing unit 12 can also be used first. Reading the second sample image P21 in the database 111 and the second image feature D2 of the second sample image P21 by the image grayscale adjustment program (or only for the image on the edge of the contact lens) The grayscale adjustment is performed to generate a plurality of image processing results, and the plurality of image processing results are respectively superimposed with the standard image P0 to respectively generate the plurality of amplified second sample images P211 and P212.

雖然在上面分別以影像形狀調整程序對第一樣品圖像P11進行拉伸或變形,並通過影像灰階調整程序對第二樣品圖像P21進行灰階調整,但是影像處理程序的類別與第一影像特徵D1或第二影像特徵D2的類別並沒有固定的對應關係。此外,前述影像形狀調整程序、影像對比度調整程序、影像灰階調整程序以及影像色溫調整程序之間也不是相互排斥的關係,而是可以相互組合搭配進行影像調整,甚至加入其他影像調整方法共同對樣品圖像進行調整,以增加影像處理結果的多樣性。據此,便能夠將原先各自只有100筆的第一樣品圖像P11~P1N以及第二樣品圖像P21~P2N數據大量擴增(例如,分別擴增至10萬筆數據)。 Although the first sample image P11 is stretched or deformed by the image shape adjustment program, and the grayscale adjustment is performed on the second sample image P21 by the image grayscale adjustment program, the type of the image processing program and the first There is no fixed correspondence between the categories of an image feature D1 or the second image feature D2. In addition, the image shape adjustment program, the image contrast adjustment program, the image grayscale adjustment program, and the image color temperature adjustment program are not mutually exclusive relationships, but can be combined with each other for image adjustment, and even other image adjustment methods are added. The sample image is adjusted to increase the diversity of image processing results. According to this, it is possible to amplify the first sample images P11 to P1N and the second sample images P21 to P2N, which originally had only 100 pens, in a large amount (for example, to 100,000 pieces of data, respectively).

需要特別一提的是,在本實施例中,資料庫111僅儲存有一個標準圖像P0,但是本發明並不以此為限,具體的作法,也可以在每一個影像特徵類別群組中,分別儲存一個標準圖像P0,並分別執行影像處理以及疊合等作業。 It should be particularly noted that, in this embodiment, the database 111 stores only one standard image P0, but the present invention is not limited thereto, and specific methods may also be used in each image feature category group. , respectively, store a standard image P0, and perform image processing and overlay operations, respectively.

接下來,處理單元12根據擴增前以及擴增後的多個第一樣品圖像P11~P1N以及多個第二樣品圖像P21~P2N,執行深度學習系統的訓練程序,以建立影像特徵自動辨識演算法。具體來說,所採用的深度學習系統可以是Caffe、Theano、TensorFlow或者Lasagne、Keras甚至DSSTNE等的框架,本發明並不具體限定採用何種框架進行。通過前述方式所產生的影像特徵自動辨識演算法,包括有針對第一影像特徵D1(在本實施例中為「氣泡瑕疵」)的第一辨識標準以及針對第二影像特徵D2(在本實施例中為「脫模瑕疵」)的第二辨識標準。 Next, the processing unit 12 performs a training program of the deep learning system to establish image features according to the plurality of first sample images P11 P P1N and the plurality of second sample images P21 P P2N before and after the amplification. Automatic identification algorithm. Specifically, the deep learning system used may be a framework of Caffe, Theano, TensorFlow, or Lasagne, Keras, or even DSSTNE, and the present invention does not specifically limit which framework to use. The image feature automatic recognition algorithm generated by the foregoing method includes a first identification criterion for the first image feature D1 ("bubble" in the embodiment) and a second image feature D2 (in the embodiment) The second identification standard for "demolition".

在影像特徵自動辨識演算法建立完成後,便能夠以本發明的裝置1對待檢測物進行檢測。具體地說,影像擷取單元13(如攝像鏡頭)擷取待檢測物的待測圖像,接著,處理單元12自影像擷取單元13取得待測圖像,並執行影像特徵自動辨識演算法對待測圖像進行分析。處理單元12根據第一辨識標準判斷待測圖像是否具有第一影像特徵D1,並根據第二辨識標準判斷待測圖像是否具有第二影像特徵D2。 After the image feature automatic recognition algorithm is established, the device 1 of the present invention can be detected. Specifically, the image capturing unit 13 (such as an image capturing lens) captures the image to be detected of the object to be detected, and then the processing unit 12 obtains the image to be tested from the image capturing unit 13 and performs an automatic image feature recognition algorithm. Analyze the image to be measured. The processing unit 12 determines whether the image to be tested has the first image feature D1 according to the first identification criterion, and determines whether the image to be tested has the second image feature D2 according to the second identification criterion.

至此,就是本發明的影像特徵自動辨識裝置1基礎的運作方式。在本實施例中,通過大量擴增第一樣品圖像P11~P1N以及第二樣品圖像P21~P2N,使得在深度學習系統的訓練程序中,能夠建立出更精準的影像特徵自動辨識演算法。 So far, it is the basic operation mode of the image feature automatic identification device 1 of the present invention. In this embodiment, by amplifying the first sample images P11~P1N and the second sample images P21~P2N in a large amount, a more accurate image feature automatic recognition calculation can be established in the training program of the deep learning system. law.

[瑕疵類別的發現與建立] [Discovery and establishment of 瑕疵 categories]

需要特別說明的是,雖然上面直接以「氣泡瑕疵」與「脫模瑕疵」做例子說明,但本發明並不限於在一開始就要設定多種瑕疵類型以進行檢測,也可以在最開始只設定一種瑕疵特徵做檢測,而在後續執行影像特徵自動辨識演算法對待測圖像進行分析的過程中,才根據檢測結果篩選並建立其他要進行檢驗的瑕疵特徵類別。 It should be particularly noted that although the above description is made by taking "bubble" and "release" as an example, the present invention is not limited to setting a plurality of types of defects for detection at the beginning, and may be set only at the beginning. A defect feature is detected, and in the process of performing the image feature automatic recognition algorithm to analyze the image, the other feature categories to be tested are selected and established according to the detection result.

舉例來說,假設原先資料庫111中僅儲存有第一影像特徵類別群組G1,且所產生的影像特徵自動辨識演算法僅僅設定了對第一樣品圖像P11~P1N的第一影像特徵D1進行辨識的第一辨識標準。然而,在通過影像特徵自動辨識演算法對多個待測圖像進行檢驗的過程中,處理單元12判斷多個待測圖像不符合標準圖像P0,但都具有第二影像特徵D2,此時,處理單元12能夠在資料庫111中建立第二影像特徵D2類別群組G2,並分別將多個具有第二影像特徵D2的待測圖像各自紀錄為多個第二樣品圖像P21,並儲存於第二影像特徵D2類別群組G2中。通過這個方式,有助於發現並建立新的瑕疵類別,以便能更主動地針對產品上未知的缺陷進行即時改善。 For example, it is assumed that only the first image feature category group G1 is stored in the original database 111, and the generated image feature automatic recognition algorithm only sets the first image feature of the first sample image P11~P1N. D1 is the first identification criterion for identification. However, in the process of verifying the plurality of images to be tested by the image feature automatic recognition algorithm, the processing unit 12 determines that the plurality of images to be tested do not conform to the standard image P0, but both have the second image feature D2. The processing unit 12 is configured to create a second image feature D2 category group G2 in the database 111, and record each of the plurality of image to be tested having the second image feature D2 as a plurality of second sample images P21, respectively. And stored in the second image feature D2 category group G2. In this way, it is helpful to discover and establish new categories of defects so that they can be more proactive in making immediate improvements to unknown defects on the product.

[正確率驗證與改善] [Verification rate verification and improvement]

通過上面介紹的流程,已經足以使本發明的深度學習系通能夠利用十分龐大且多樣的樣品圖像進行訓練,而能夠產生判斷較為精準的影像特徵自動辨識演算法。然而,前述擴增後所產生的樣品圖像,當然也可以再次進行影像處理程序,進一步擴增成為更大量的樣品圖像,而可能更進一步地提高影像特徵自動辨識演算法辨識的精準度。為了確認是否有必要再次對樣品圖像進行擴增,本發明的裝置1還可以在實際運用影像特徵自動辨識演算法對待測圖像進行檢驗前,預先驗證所產生的影像特徵自動辨識演算法進行辨識作業的正確率。 Through the flow described above, it is sufficient that the deep learning system of the present invention can perform training using a very large and diverse sample image, and can generate an image feature automatic recognition algorithm with relatively accurate judgment. However, the sample image generated after the amplification may of course be subjected to the image processing program again, and further amplified into a larger number of sample images, which may further improve the accuracy of the image feature automatic recognition algorithm recognition. In order to confirm whether it is necessary to amplify the sample image again, the device 1 of the present invention can pre-verify the generated image feature automatic identification algorithm before actually using the image feature automatic recognition algorithm to test the image to be tested. Identify the correct rate of the job.

具體的作法,是由處理單元12在執行一深度學習系統的訓練程序前,先將多個第一樣品圖像P11~P1N中的一部分(例如2成)第一樣品圖像P11~P1n選為第一驗證用圖像,並以其餘的多個(例如其餘的8成)第一樣品圖像P1(n+1)~P1N執行深度學習系統的訓練程序。並且,在深度學習系統建立影像特徵自動辨識演算法後,處理單元12執行影像特徵自動辨識演算法對先前挑選出的第一驗證用圖像進行驗證。也就是說,根據影像特徵自動辨識演算法中的第一辨識標準,判斷第一驗證用圖像是否具有第一影像特徵D1,以確認影像特徵自動辨識演算法中的第一辨識標準的正確性。如果無法辨識出第一驗證用圖像具有第一影像特徵D1,或將不具有第一影像特徵D1的圖像(例如標準圖像P0)辨識為具有第一影像特徵D1,則表示辨識結果錯誤;反之,表示辨識結果正確。 Specifically, before processing the training program of a deep learning system, the processing unit 12 firstly converts a part (for example, 20%) of the first sample images P11~P1n of the plurality of first sample images P11~P1N. The image for the first verification is selected, and the training program of the deep learning system is executed with the remaining plurality (for example, the remaining 80%) of the first sample images P1(n+1) to P1N. Moreover, after the image learning automatic identification algorithm is established in the deep learning system, the processing unit 12 performs an image feature automatic identification algorithm to verify the previously selected first verification image. That is to say, according to the first identification criterion in the image feature automatic recognition algorithm, it is determined whether the first verification image has the first image feature D1 to confirm the correctness of the first identification standard in the image feature automatic recognition algorithm. . If it is not recognized that the first verification image has the first image feature D1, or the image that does not have the first image feature D1 (eg, the standard image P0) is identified as having the first image feature D1, the recognition result is incorrect. Conversely, the recognition result is correct.

裝置1的使用者可以藉由處理單元12預先設定第一正確率門檻值,此外,還可以根據需要調整第一驗證用圖像的數量在多個 第一樣品圖像P11中所佔的比例。實際進行時,可以將第一驗證用圖像的數量設定在全部第一樣品圖像P11中的3%至50%。在執行影像特徵自動辨識演算法,並根據第一辨識標準判斷標準圖像P0以及多個第一驗證用圖像是否具有第一影像特徵D1後,記錄其辨識結果正確或錯誤,換句話說,根據判斷結果紀錄第一辨識標準對第一影像特徵D1的第一辨識正確率。 The user of the device 1 can preset the first correct rate threshold by the processing unit 12. In addition, the number of the first verification images can be adjusted as needed. The ratio occupied in the first sample image P11. When actually performed, the number of images for the first verification can be set to 3% to 50% in all the first sample images P11. After performing the image feature automatic identification algorithm, and determining whether the standard image P0 and the plurality of first verification images have the first image feature D1 according to the first identification criterion, the recognition result is recorded correctly or incorrectly, in other words, The first identification correctness rate of the first image feature D1 is recorded according to the determination result.

接下來,將第一辨識正確率與預先設定的第一正確率門檻值相互比較。在第一辨識正確率低於第一正確率門檻值時,表示提供給深度學習系統進行訓練的樣品圖像可能並不足夠,因此,為了能夠執行更進一步的訓練,處理單元12將多個第一樣品圖像P11再次進行影像處理程序,以進一步產生擴增的多個第一樣品圖像P11。當然,為了驗證再次重新擴增後的樣品圖像,被提供給深度學習系統進行訓練,並修正第一辨識標準後,是否已經能夠產生足夠精確的影像特徵自動辨識演算法,因此,仍要進行前述的驗證程序。具體地說,處理單元12從再次擴增後的多個第一樣品圖像P11中,再次選出3%至50%為第一驗證用圖像,並將其餘的多個第一樣品圖像P11再次提供給深度學習系統,以修正第一辨識標準,並以修正後的第一辨識標準再次判斷標準圖像P0以及多個第一驗證用圖像是否具有第一影像特徵D1,並再次獲得第一辨識正確率。也就是說,倘若不能達到第一正確率門檻值,便會回到影像處理程序將樣品圖像再進一步擴增。直到第一辨識正確率高於(包括剛好達到)第一正確率門檻值時,才將影像特徵自動辨識演算法實際應用於待檢測物的檢測,並由處理單元12執行影像特徵自動辨識演算法,以根據影像特徵自動辨識演算法中最終修正的第一辨識標準,判斷擷取自待檢測物的待測圖像是否具有第一影像特徵D1。為了避免一開始設定過高的第一正確率門檻值,導致一直達不到標準,而造成影像處理程序不斷地擴增樣品圖像,也可以設定其他停止條件,但其並非本發明所與強調的重 點,具體條件如何設定在這裡不另外贅述。 Next, the first identification accuracy rate is compared with a preset first correct rate threshold value. When the first recognition correct rate is lower than the first correct rate threshold, it may not be sufficient to indicate that the sample image provided for training by the deep learning system is performed. Therefore, in order to be able to perform further training, the processing unit 12 will have multiple A sample image P11 is again subjected to an image processing program to further generate a plurality of amplified first sample images P11. Of course, in order to verify the sample image after re-amplification, it is provided to the deep learning system for training, and after correcting the first identification standard, whether it has been able to generate an accurate image feature automatic recognition algorithm, therefore, still has to be performed The aforementioned verification procedure. Specifically, the processing unit 12 selects 3% to 50% of the plurality of first sample images P11 after re-amplification as the first verification image, and the remaining plurality of first sample images The P11 is again provided to the deep learning system to correct the first identification criterion, and the corrected first identification criterion is used to determine again whether the standard image P0 and the plurality of first verification images have the first image feature D1, and again Obtain the first identification correct rate. That is to say, if the first correct rate threshold cannot be reached, it will return to the image processing program to further amplify the sample image. The image feature automatic recognition algorithm is actually applied to the detection of the object to be detected until the first recognition accuracy rate is higher than (including just reaching) the first correct rate threshold, and the image feature automatic recognition algorithm is executed by the processing unit 12. And determining, according to the first identification criterion that is finally corrected in the algorithm according to the image feature, determining whether the image to be detected extracted from the object to be detected has the first image feature D1. In order to avoid setting the threshold of the first correct rate at the beginning to be too high, the standard is not up to standard, and the image processing program continuously enlarges the sample image, and other stop conditions can be set, but it is not emphasized by the present invention. Heavy Point, how to set the specific conditions is not described here.

[預檢驗] [pre-test]

另一方面,還需要考慮的一個問題是,假使在最初提供的樣品圖像中,第一影像特徵D1的多樣性就不足,那麼很可能會影響到後續建立的影像特徵自動辨識演算法在進行識別時的正確性,即使對樣品圖像進行反覆擴增,也可能因為一開始的多樣性太低而無法進行有效率的訓練程序。為了解決此一問題,在本實施例中,裝置1在執行影像處理程序前,還能夠使處理單元12預先執行一個預檢驗程序。 On the other hand, one problem that needs to be considered is that if the diversity of the first image feature D1 is insufficient in the sample image originally provided, it is likely to affect the subsequent image feature automatic recognition algorithm being performed. The correctness of the recognition, even if the sample image is repeatedly amplified, it may be impossible to carry out an efficient training program because the diversity at the beginning is too low. In order to solve this problem, in the present embodiment, the apparatus 1 can also cause the processing unit 12 to execute a pre-verification program in advance before executing the image processing program.

具體地說,處理單元12將多個第一樣品圖像P11~P1N(尚未進行任何影像處理程序)中的3%至50%選為第一預檢用圖像,並將第一樣品圖像P11中的其餘多個第一樣品圖像P11~P1N提供給深度學習系統,以建立包括有針對第一影像特徵D1的一第一預檢驗標準。在此一過程中,由於只是要初步確認所取得的第一樣品圖像P11~P1N是否具備足夠的多樣性,因此可以採用架構較簡化的深度學習系統進行。同樣地,也要通過處理單元12設定門檻,在此將其定義為第一預檢驗門檻值。由於只是對於第一樣品圖像P11~P1N的多樣性做一個初步判斷,因此,第一預檢驗門檻值不必設定太高。相較於前述用於確保最終判斷準確率的第一正確率門檻值,此處的第一預檢驗門檻值的數值要求較低,因此,在同時有採取預檢驗以及正確率驗證的情形下,第一預檢驗門檻值會低於第一正確率門檻值。處理單元12根據第一預檢驗標準判斷標準圖像P0以及多個第一驗證用圖像是否具有第一影像特徵D1,並且根據判斷結果紀錄第一預檢驗標準對第一影像特徵D1的第一預檢驗正確率。 Specifically, the processing unit 12 selects 3% to 50% of the plurality of first sample images P11 to P1N (which have not been subjected to any image processing program) as the first pre-examination image, and the first sample The remaining plurality of first sample images P11~P1N in the image P11 are provided to the depth learning system to establish a first pre-test standard including the first image feature D1. In this process, since it is only necessary to initially confirm whether the obtained first sample images P11 to P1N have sufficient diversity, it is possible to adopt a deep learning system with a simplified structure. Likewise, the threshold is also set by the processing unit 12, which is defined herein as the first pre-test threshold. Since only a preliminary judgment is made on the diversity of the first sample images P11 to P1N, the first pre-test threshold value does not have to be set too high. Compared with the foregoing first correct rate threshold for ensuring the final judgment accuracy, the value of the first pre-test threshold value here is required to be low, and therefore, in the case where both the pre-test and the correct rate verification are taken, The first pre-test threshold value will be lower than the first correct rate threshold. The processing unit 12 determines whether the standard image P0 and the plurality of first verification images have the first image feature D1 according to the first pre-verification standard, and records the first pre-test standard for the first image feature D1 according to the determination result. Pre-test the correct rate.

在前述預檢驗程序中,假使第一預檢驗正確率有達到第一預檢驗門檻值,表示第一樣品圖像P11~P1N的多樣性有達到期望的 標準,因此可以繼續進行本發明的主要流程,換句話說,可以接著執行影像處理程序;反之,假使第一預檢驗正確率低於第一預檢驗門檻值時,表示第一樣品圖像P11~P1N的多樣性其實是不足夠的,此時便應當終止程序,不要執行後續的影像處理程序,而應當先採集更多具有不同第一影像特徵D1的第一樣品圖像P11~P1N,以確保能夠對深度學習系統進行實質有效的訓練。 In the foregoing pre-test procedure, if the first pre-test correct rate has reached the first pre-test threshold value, it indicates that the diversity of the first sample image P11~P1N has reached the desired level. Standard, so the main flow of the present invention can be continued, in other words, the image processing program can be executed next; otherwise, if the first pre-test correct rate is lower than the first pre-test threshold, the first sample image P11 is indicated. The diversity of ~P1N is actually not enough. At this time, the program should be terminated. Do not perform subsequent image processing procedures. Instead, first collect more first sample images P11~P1N with different first image features D1. To ensure that the deep learning system can be effectively and effectively trained.

[第二實施例] [Second embodiment]

請參閱圖3所示,圖3為本發明第二實施例的影像特徵自動辨識系統2功能方塊圖。由上圖可知,本發明的第二實施例提供一種影像特徵自動辨識系統2,其包括伺服端21、檢測端22以及樣品圖像供應端23,樣品圖像供應端23也與伺服端21訊號連接,以提供。在本實施例中,伺服端21是影像特徵自動辨識演算法的提供者,檢測端22與伺服端21訊號連接,且能由伺服端21接收影像特徵自動辨識演算法,以使檢測端22能夠執行影像特徵自動辨識演算法,對待檢測物的待測圖像進行檢測與分析。至於樣品圖像供應端23也是與伺服端21訊號連接,而能夠提供多個第一樣品圖像P11~P1N至伺服端21。在系統2的實際架構上,檢測端22可能跟樣品圖像供應端23是同一的,但也可能被分別設置。 Referring to FIG. 3, FIG. 3 is a functional block diagram of an image feature automatic identification system 2 according to a second embodiment of the present invention. As can be seen from the above figure, the second embodiment of the present invention provides an image feature automatic identification system 2, which includes a servo end 21, a detecting end 22, and a sample image supply end 23, and the sample image supply end 23 is also connected to the servo end 21 signal. Connect to provide. In this embodiment, the server 21 is a provider of the image feature automatic identification algorithm, and the detecting end 22 is connected to the servo end 21 signal, and the image end automatic recognition algorithm can be received by the servo end 21, so that the detecting end 22 can The image feature automatic identification algorithm is executed, and the image to be tested of the object to be detected is detected and analyzed. As for the sample image supply end 23, it is also connected to the servo end 21 signal, and a plurality of first sample images P11 to P1N can be supplied to the servo end 21. In the actual architecture of system 2, detection terminal 22 may be identical to sample image supply 23, but may be separately provided.

特別說明的是,從圖3所示的方塊圖可以看出,在本實施例中,伺服端21、檢測端22以及樣品圖像供應端23是通過網路彼此訊號連接,而能夠彼此交換訊號(例如傳送樣品圖像或影像特徵自動辨識演算法),然而,本發明所稱的「訊號連接」並不限於此,將伺服端21、檢測端22以及樣品圖像供應端23其中任一端的資料儲存於光碟、快閃記憶體或硬碟等儲存媒介,再將資料提供給其他任何一端,也符合此處所稱的「訊號連接」,特此指明。 In particular, as can be seen from the block diagram shown in FIG. 3, in the present embodiment, the servo terminal 21, the detecting terminal 22, and the sample image supply terminal 23 are connected to each other via a network, and can exchange signals with each other. (for example, transmitting a sample image or an image feature automatic recognition algorithm), however, the "signal connection" referred to in the present invention is not limited thereto, and the servo terminal 21, the detection terminal 22, and the sample image supply terminal 23 are at either end. The data is stored in a storage medium such as a compact disc, a flash memory or a hard disk, and the data is provided to any other end. It also conforms to the "signal connection" referred to herein, and is hereby indicated.

同樣以隱形眼鏡的瑕疵檢測為例子,簡單來說,樣品圖像供應端23(隱形眼鏡生產與檢驗者)為了得到可以自動辨識「氣泡 瑕疵」(第一影像特徵D1)的影像特徵自動辨識演算法,因此將多個具有不同的第一影像特徵D1的第一樣品圖像P11~P1N提供給伺服端21(演算法提供者)。伺服端21在接收到多個第一樣品圖像P11~P1N後通過一連串的步驟產生影像特徵自動辨識演算法,並且將影像特徵自動辨識演算法提供給檢測端22(隱形眼鏡生產與檢驗者),以便檢測端22能夠將影像特徵自動辨識演算法應用在所生產的隱形眼鏡(待檢測物)的檢測上。換句話說,雖然伺服端21並不進行隱形眼鏡的檢測,但會從有需求的樣品圖像供應端23處取得產生影像特徵自動辨識演算法的材料,並且將成品(影像特徵自動辨識演算法)提供給同樣有需求且將會執行影像特徵自動辨識演算法的檢測端22。 Similarly, the detection of the contact lens is taken as an example. In short, the sample image supply end 23 (contact lens production and tester) can automatically recognize the "bubble" in order to obtain 影像" (first image feature D1) image feature automatic recognition algorithm, so a plurality of first sample images P11~P1N having different first image features D1 are supplied to the server 21 (algorithm provider) . After receiving the plurality of first sample images P11~P1N, the servo end 21 generates an image feature automatic identification algorithm through a series of steps, and provides an image feature automatic identification algorithm to the detecting end 22 (contact lens production and tester) So that the detecting end 22 can apply the image feature automatic recognition algorithm to the detection of the produced contact lens (to be detected). In other words, although the servo end 21 does not perform the detection of the contact lens, the material for generating the image feature automatic recognition algorithm is obtained from the sample image supply terminal 23 where it is required, and the finished product (image feature automatic recognition algorithm) Provided to the detection terminal 22 which is also in need and will perform an image feature automatic recognition algorithm.

具體的說,伺服端21包括儲存單元211以及處理單元212,儲存單元211儲存有資料庫2111,資料庫2111儲存有第一影像特徵類別群組G1以及至少一標準圖像P0,第一影像特徵類別群組G1儲存有多個第一樣品圖像P11~P1N(由樣品圖像供應端23所提供),每一個第一樣品圖像P11~P1N分別具有不同的第一影像特徵D1。處理單元212與儲存單元211訊號連接,而能夠讀取資料庫2111中的多個第一樣品圖像P11~P1N,並分別進行一影像處理程序。影像處理程序包括影像形狀調整程序、影像對比度調整程序、影像灰階調整程序以及影像色溫調整程序之中的一種或兩種以上的組合。處理單元212分別將影像處理程序所產生的影像處理結果各自與標準圖像P0進行疊合以產生擴增的多個第一樣品圖像P11~P1N。 Specifically, the server 21 includes a storage unit 211 and a processing unit 212. The storage unit 211 stores a database 2111. The database 2111 stores a first image feature category group G1 and at least one standard image P0. The category group G1 stores a plurality of first sample images P11 to P1N (provided by the sample image supply terminal 23), and each of the first sample images P11 to P1N has a different first image feature D1. The processing unit 212 is connected to the storage unit 211, and can read the plurality of first sample images P11~P1N in the database 2111, and respectively perform an image processing program. The image processing program includes one or a combination of two or more of an image shape adjustment program, an image contrast adjustment program, an image grayscale adjustment program, and an image color temperature adjustment program. The processing unit 212 respectively superimposes the image processing results generated by the image processing program with the standard image P0 to generate a plurality of amplified first sample images P11 to P1N.

處理單元212根據擴增前以及擴增後的多個第一樣品圖像P11~P1N執行一深度學習系統的訓練程序,以建立影像特徵自動辨識演算法,影像特徵自動辨識演算法包括有針對第一影像特徵D1的第一辨識標準。 The processing unit 212 performs a training program of the deep learning system according to the plurality of first sample images P11~P1N before and after the amplification to establish an automatic feature recognition algorithm for image features, and the image feature automatic recognition algorithm includes The first identification criterion of the first image feature D1.

更具體地說,在本實施例中,處理單元212在執行深度學習 系統的訓練程序前,便會先將多個第一樣品圖像P11~P1N中的至少一樣品圖像選為第一驗證用圖像,並以其餘的多個第一樣品圖像P11~P1N執行深度學習系統的訓練程序。實際操作時,第一驗證用圖像的數量為多個,且第一驗證用圖像的數量佔多個第一樣品圖像P11~P1N數量的3%至50%。此外,處理單元212設定第一正確率門檻值,並且在深度學習系統建立影像特徵自動辨識演算法後,處理單元212執行影像特徵自動辨識演算法,以根據第一辨識標準判斷標準圖像P0以及多個第一驗證用圖像是否具有第一影像特徵D1,以確認第一辨識標準的正確性。處理單元212根據判斷結果紀錄第一辨識標準對第一影像特徵D1的第一辨識正確率,並且將第一辨識正確率與前述第一正確率門檻值相比較。 More specifically, in the present embodiment, the processing unit 212 is performing deep learning. Before the training program of the system, at least one of the plurality of first sample images P11~P1N is selected as the first verification image, and the remaining plurality of first sample images P11 are selected. ~P1N performs the training program of the deep learning system. In actual operation, the number of first verification images is plural, and the number of first verification images accounts for 3% to 50% of the number of the plurality of first sample images P11 to P1N. In addition, the processing unit 212 sets a first correct rate threshold, and after the depth learning system establishes an image feature automatic identification algorithm, the processing unit 212 performs an image feature automatic identification algorithm to determine the standard image P0 according to the first identification criterion. Whether the plurality of first verification images have the first image feature D1 to confirm the correctness of the first identification criterion. The processing unit 212 records the first recognition accuracy rate of the first image feature D1 by the first identification criterion according to the determination result, and compares the first identification accuracy rate with the foregoing first correct rate threshold value.

當第一辨識正確率低於第一正確率門檻值時,處理單元212將多個第一樣品圖像P11~P1N再次進行影像處理程序,以進一步產生擴增的多個第一樣品圖像P11~P1N,並且從再次擴增後的多個第一樣品圖像P11~P1N中,再次選出3%至50%為第一驗證用圖像,並將其餘的多個第一樣品圖像P11~P1N再次提供給深度學習系統,以修正第一辨識標準,並以修正後的第一辨識標準再次判斷標準圖像P0以及多個第一驗證用圖像是否具有第一影像特徵D1,並再次獲得第一辨識正確率。反之,假使第一辨識正確率已經達到第一正確率門檻值,則可將影像特徵自動辨識演算法提供予檢測端22。 When the first identification correct rate is lower than the first correct rate threshold, the processing unit 212 performs the image processing procedure on the plurality of first sample images P11~P1N to further generate the amplified plurality of first sample images. Like P11~P1N, and from the plurality of first sample images P11 to P1N after re-amplification, 3% to 50% are again selected as the first verification image, and the remaining plurality of first samples are selected. The images P11~P1N are again provided to the deep learning system to correct the first identification criterion, and the first identification standard is corrected to determine whether the standard image P0 and the plurality of first verification images have the first image feature D1. And get the first recognition correct rate again. On the other hand, if the first identification correct rate has reached the first correct rate threshold, the image feature automatic recognition algorithm can be provided to the detecting end 22.

檢測端22包括影像擷取模組222以及處理模組221,影像擷取模組222用以擷取待檢測物的待測圖像。處理模組221與影像擷取模組222訊號連接,而能夠從影像擷取模組222取得待測圖像。檢測端22從伺服端21接收影像特徵自動辨識演算法後,處理模組221執行影像特徵自動辨識演算法對待測圖像進行分析,並根據第一辨識標準判斷待測圖像是否具有第一影像特徵D1。 The detecting end 22 includes an image capturing module 222 and a processing module 221, and the image capturing module 222 is configured to capture an image to be detected of the object to be detected. The processing module 221 is connected to the image capturing module 222, and the image to be tested can be obtained from the image capturing module 222. After the detecting end 22 receives the image feature automatic identification algorithm from the server 21, the processing module 221 performs an image feature automatic identification algorithm to analyze the image to be measured, and determines whether the image to be tested has the first image according to the first identification criterion. Feature D1.

需要特別一提的是,由於在本實施例中的資料庫2111是位於 伺服端21,而不在檢測端22,因此,在本實施例中,當檢測端22的處理模組221判斷多個待測圖像不符合標準圖像P0,但都具有第二影像特徵D2時,檢測端22會分別將多個具有第二影像特徵D2的待測圖像各自紀錄為多個第二樣品圖像,並將多個第二樣品圖像提供給伺服端21。在這之後,再由伺服端21的處理單元212於資料庫2111中建立第二影像特徵類別群組G2,並將多個接收自檢測端22的第二樣品圖像儲存於第二影像特徵類別群組G2中。 In particular, since the database 2111 in this embodiment is located The servo terminal 21 is not at the detecting end 22. Therefore, in the embodiment, when the processing module 221 of the detecting terminal 22 determines that the plurality of images to be tested do not conform to the standard image P0, but both have the second image feature D2, The detecting end 22 respectively records a plurality of images to be tested having the second image feature D2 as a plurality of second sample images, and supplies the plurality of second sample images to the servo end 21. After that, the processing unit 212 of the server 21 creates a second image feature category group G2 in the database 2111, and stores a plurality of second sample images received from the detecting terminal 22 in the second image feature category. In group G2.

在完成新的類別建立之後,伺服端21的處理單元212也可以進一步讀取資料庫2111中的多個第二樣品圖像,並分別進行影像處理程序,且分別將影像處理程序所產生的影像處理結果各自與標準圖像P0進行疊合以產生擴增的多個第二樣品圖像。且處理單元212根據擴增前以及擴增後的多個第一樣品圖像P11~P1N執行深度學習系統的訓練程序,以在影像特徵自動辨識演算法中建立針對第二影像特徵D2的第二辨識標準。完成之後,伺服端21可以重新提供影像特徵自動辨識演算法給檢測端22。當檢測端22重新接收到影像特徵自動辨識演算法後,且處理模組221以影像特徵自動辨識演算法對待測圖像進行分析時,其是根據第一辨識標準判斷待測圖像是否具有第一影像特徵D1,並根據第二辨識標準判斷待測圖像是否具有第二影像特徵D2。 After the new category is established, the processing unit 212 of the server 21 can further read the plurality of second sample images in the database 2111, and respectively perform image processing procedures, and separately generate images generated by the image processing program. The processing results are each superimposed with the standard image P0 to produce a plurality of amplified second sample images. And the processing unit 212 executes the training program of the deep learning system according to the plurality of first sample images P11~P1N before and after the amplification to establish the second image feature D2 in the image feature automatic recognition algorithm. Two identification criteria. After completion, the server 21 can re-provide the image feature automatic recognition algorithm to the detecting end 22. After the detecting end 22 receives the image feature automatic recognition algorithm again, and the processing module 221 analyzes the image to be measured by the image feature automatic identification algorithm, it determines whether the image to be tested has the first according to the first identification criterion. An image feature D1, and determining whether the image to be tested has the second image feature D2 according to the second identification criterion.

如同先前所說,本發明通過上述的技術特徵,可以使得檢測端22將影像特徵自動辨識演算法的實際使用結果,即時反饋給伺服端21,讓伺服端21能夠做更進一步的分析。 As described above, the present invention enables the detecting end 22 to immediately feed back the actual use result of the image feature automatic recognition algorithm to the servo terminal 21, so that the servo terminal 21 can perform further analysis.

另外一種實施方式,是在檢測端22使用影像特徵自動辨識演算法進行檢測後,發現有不良產品未被檢出(無論是否預先設定要辨識的瑕疵特徵),而由人工紀錄的方式將對應的待測圖像儲存成樣品圖像,並提供給伺服端21進行分析。若伺服端21在分析之後發現有新的瑕疵類別,則另行通知檢測端22調整、優化製程,形成一種良性的互動過程。 In another embodiment, after the detecting end 22 uses the image feature automatic identification algorithm to detect, it is found that a defective product is not detected (whether or not the 瑕疵 feature to be recognized is set in advance), and the manual recording method corresponds to The image to be tested is stored as a sample image and supplied to the servo terminal 21 for analysis. If the server 21 finds a new category after the analysis, the detection terminal 22 is separately notified to adjust and optimize the process to form a benign interaction process.

如同在第一實施例中提到的,假使在最初提供的樣品圖像中,第一影像特徵D1的多樣性就不足,那麼很可能會影響到後續建立的影像特徵自動辨識演算法在進行識別時的正確性。因此,在本實施例中,裝置1在執行影像處理程序前,還能夠使處理單元12預先執行一個預檢驗程序。伺服端21從樣品圖像供應端23接收到多個第一樣品圖像P11~P1N後,也能夠先進行育檢驗程序以確認所接收到的第一樣品圖像P11~P1N是否具有足夠的多樣性。具體來說,伺服端21的處理單元212將多個第一樣品圖像P11~P1N中的3%至50%(較佳為15%至25%)選為第一預檢用圖像,並將第一樣品圖像P11~P1N中的其餘多個第一樣品圖像P11~P1N(即50%至97%的第一樣品圖像P11~P1N,較佳為75%至85%的第一樣品圖像P11~P1N)提供給深度學習系統,以建立包括有針對第一影像特徵D1的第一預檢驗標準。同樣地,在本實施例中也會通過處理單元212設定第一預檢驗門檻值。處理單元212根據深度學習系統建立的第一預檢驗標準判斷標準圖像P0以及多個第一驗證用圖像是否具有第一影像特徵D1,並根據判斷結果紀錄第一預檢驗標準對第一影像特徵D1的第一預檢驗正確率。得到第一預檢驗正確率後,處理單元212將第一預檢驗正確率與預先設定的第一預檢驗門檻值相比較。 As mentioned in the first embodiment, if the diversity of the first image feature D1 is insufficient in the initially provided sample image, it is likely to affect the subsequent image feature automatic recognition algorithm for recognition. The correctness of time. Therefore, in the present embodiment, the apparatus 1 can also cause the processing unit 12 to execute a pre-verification program in advance before executing the image processing program. After the servo terminal 21 receives the plurality of first sample images P11 to P1N from the sample image supply terminal 23, it is also possible to perform the inspection program to confirm whether the received first sample images P11 to P1N have sufficient. Diversity. Specifically, the processing unit 212 of the servo terminal 21 selects 3% to 50% (preferably 15% to 25%) of the plurality of first sample images P11 to P1N as the first pre-inspection image, And the remaining plurality of first sample images P11 to P1N in the first sample images P11 to P1N (ie, 50% to 97% of the first sample images P11 to P1N, preferably 75% to 85) The % first sample images P11~P1N) are provided to the deep learning system to establish a first pre-test standard including the first image feature D1. Similarly, the first pre-check threshold is also set by the processing unit 212 in this embodiment. The processing unit 212 determines whether the standard image P0 and the plurality of first verification images have the first image feature D1 according to the first pre-test standard established by the depth learning system, and records the first pre-test standard against the first image according to the determination result. The first pre-test correct rate of feature D1. After obtaining the first pre-test correct rate, the processing unit 212 compares the first pre-test correct rate with a preset first pre-test threshold value.

假使第一預檢驗正確率低於第一預檢驗門檻值,則表示樣品圖像供應端23提供的第一樣品圖像P11~P1N多樣性不足,此時,在本實施例中,伺服端21不會執行後續影項擴增程序,而是向樣品圖像供應端23索取更多不同的第一樣品圖像P11~P1N,以充實第一樣品圖像P11~P1N的多樣性。理所當然地,在接收到更多第一樣品圖像P11~P1N後,仍然要再次通過育檢驗程序確認其多樣性是否已經達到標準。反之,在第一預檢驗正確率達到第一預檢驗門檻值時,伺服端21就可以繼續進行本發明的主要流程,換句話說,會對所接收到的執行第一樣品圖像P11~P1N影像處理程序 以進行擴增。 If the first pre-test correct rate is lower than the first pre-test threshold, it means that the first sample image P11~P1N provided by the sample image supply end 23 is insufficient in diversity. At this time, in this embodiment, the servo end 21 does not perform the subsequent movie item amplification process, but requests the sample image supply terminal 23 for more different first sample images P11 to P1N to enrich the diversity of the first sample images P11 to P1N. Of course, after receiving more first sample images P11~P1N, it is still necessary to confirm again whether the diversity has reached the standard by the inspection program. Conversely, when the first pre-test correct rate reaches the first pre-check threshold, the servo 21 can continue the main flow of the present invention. In other words, the first sample image P11 will be executed. P1N image processing program For amplification.

[第三實施例] [Third embodiment]

請參閱圖4所示。圖4為本發明第三實施例的影像特徵自動辨識方法的主要流程圖。以下通過圖4說明本發明所提供的影像特徵自動辨識方法的主要流程。本發明的影像特徵自動辨識方法主要包括下列步驟:S100:取得樣品圖像;S102:通過影像處理程序擴增樣品圖像;S104:在多個樣品圖像中選取驗證用圖像;S106:將其餘樣品圖像提供給深度學習系統進行訓練;S108:以驗證用圖像檢驗深度學習系統產出的影像特徵自動辨識演算法;S110:判斷辨識正確率是否達到正確率門檻值,若是,進入步驟S112;若否(低於),則回到步驟S102;S112:擷取待檢測物的待測圖像;S114:以影像特徵自動辨識演算法辨識待測圖像。 Please refer to Figure 4. FIG. 4 is a main flowchart of a method for automatically identifying an image feature according to a third embodiment of the present invention. The main flow of the automatic image feature recognition method provided by the present invention will be described below with reference to FIG. The image feature automatic identification method of the present invention mainly comprises the following steps: S100: obtaining a sample image; S102: amplifying the sample image by the image processing program; S104: selecting a verification image in the plurality of sample images; S106: The remaining sample images are provided for training in the deep learning system; S108: verifying the image feature automatic recognition algorithm generated by the depth learning system by the verification image; S110: determining whether the recognition correct rate reaches the correct rate threshold, and if so, entering the step S112; if not (below), return to step S102; S112: extract the image to be detected of the object to be detected; S114: identify the image to be tested by the image feature automatic recognition algorithm.

具體的說,本發明的影像特徵自動辨識方法在取得樣品圖像後,首先會針對樣品圖像進行影像處理程序以進行擴增(步驟S100以及步驟S102)。其具體作法是針對分別具有不同的第一影像特徵的多個第一樣品圖像,進行影像形狀調整程序、影像對比度調整程序、影像灰階調整程序以及影像色溫調整程序之中的一種或兩種以上的組合,並分別將影像處理程序所產生的影像處理結果與不具有第一影像特徵的標準圖像進行疊合以產生擴增的多個第一樣品圖像。 Specifically, after acquiring the sample image, the image feature automatic identification method of the present invention first performs an image processing program for the sample image to perform amplification (steps S100 and S102). The specific method is to perform one or two of an image shape adjustment program, an image contrast adjustment program, an image gray scale adjustment program, and an image color temperature adjustment program for a plurality of first sample images having different first image features. The above combination is performed, and the image processing result generated by the image processing program is superimposed with the standard image without the first image feature to generate a plurality of amplified first sample images.

為了驗證擴增後的第一樣品圖像是否已經足以建立出具有精確檢驗效果的影像特徵自動辨識演算法,因此,在此階段預先將 多個第一樣品圖像中的至少一樣品圖像選為第一驗證用圖像(步驟S104)。於此同時,也可以一併設定第一正確率門檻值。在本實施例中,第一驗證用圖像的數量佔多個第一樣品圖像數量的3%至50%(例如,採取20%)。第一正確率門檻值,可以視產品針對特定瑕疵的容錯率做適度調整,舉例來說,針對隱形眼鏡的「氣泡瑕疵」,由於屬於較嚴重的瑕疵,且檢測難度不是非常高,應當要求較高的正確率,此時,可將第一正確率門檻值設定為99%以上。另一方面,當本發明的影像特徵自動辨識方法同時被應用於檢測第二影像特徵時,也可以針對第二影像特徵以及具有第二影像特徵的第二樣品圖像,選出第二驗證用圖像,並設定第二正確率門檻值。針對隱形眼鏡的「脫模瑕疵」,由於屬於較難精確判斷的瑕疵,若第二影像特徵為隱形眼鏡的「脫模瑕疵」,此時可以考慮將第二正確率門檻值設定為90~95%左右。 In order to verify whether the image of the first sample after amplification is sufficient to establish an automatic image recognition algorithm with accurate inspection results, it is pre- At least one of the plurality of first sample images is selected as the first verification image (step S104). At the same time, the first correct rate threshold can also be set together. In the present embodiment, the number of first verification images accounts for 3% to 50% of the number of the plurality of first sample images (for example, 20% is taken). The first correct rate threshold can be adjusted according to the fault tolerance rate of the product. For example, the "bubble 瑕疵" for contact lenses is a serious flaw, and the detection difficulty is not very high. The high correct rate, at this time, the first correct rate threshold can be set to 99% or more. On the other hand, when the image feature automatic identification method of the present invention is simultaneously applied to detect the second image feature, the second verification image may be selected for the second image feature and the second sample image having the second image feature. Like, and set the second correct rate threshold. For the "release mold" of the contact lens, since it is difficult to accurately determine the flaw, if the second image feature is the "release mold" of the contact lens, the second correct rate threshold can be considered to be set to 90~95. %about.

接下來,將擴增前以及擴增後的多個第一樣品圖像(或包括第二樣品圖像)提供給深度學習系統進行訓練,以建立影像特徵自動辨識演算法(步驟S106)。影像特徵自動辨識演算法包括有針對第一影像特徵的第一辨識標準。 Next, a plurality of first sample images (or a second sample image) before and after the amplification are provided to the deep learning system for training to establish an image feature automatic recognition algorithm (step S106). The image feature automatic recognition algorithm includes a first identification criterion for the first image feature.

由於先前已經在多個第一樣品圖像中選出一部分做為第一驗證用圖像,因此,在深度學習系統建立影像特徵自動辨識演算法後,根據第一辨識標準判斷第一驗證用圖像是否具有第一影像特徵,藉此對深度學習系統產出的影像特徵自動辨識演算法進行檢驗(步驟S108)。具體做法是,執行影像特徵自動辨識演算法,並根據第一辨識標準判斷標準圖像以及多個第一驗證用圖像是否具有第一影像特徵,根據判斷結果紀錄第一辨識標準對第一影像特徵的第一辨識正確率,接著,將第一辨識正確率與預先設定的第一正確率門檻值做比較,以確認第一辨識正確率是否高於預先設定的第一正確率門檻值(步驟S110)。 Since a part of the plurality of first sample images has been selected as the first verification image, after the image learning automatic recognition algorithm is established in the deep learning system, the first verification map is determined according to the first identification criterion. Whether the image has the first image feature, thereby checking the image feature automatic recognition algorithm generated by the depth learning system (step S108). The specific method is: performing an image feature automatic identification algorithm, and determining, according to the first identification criterion, whether the standard image and the plurality of first verification images have the first image feature, and recording the first identification standard to the first image according to the determination result First identifying the correct rate of the feature, and then comparing the first identification correct rate with a preset first correct rate threshold to confirm whether the first identification correct rate is higher than a preset first correct rate threshold (step S110).

倘若第一辨識正確率低於第一正確率門檻值,則回到步驟 S102,將多個第一樣品圖像再次進行影像處理程序,以進一步產生擴增的多個第一樣品圖像,並且依序執行步驟S104至步驟S110,從再次擴增後的多個第一樣品圖像中,再次選出3%至50%為第一驗證用圖像,並將其餘的多個第一樣品圖像再次提供給深度學習系統,以修正第一辨識標準,並以修正後的第一辨識標準再次判斷標準圖像以及多個第一驗證用圖像是否具有第一影像特徵,並再次獲得第一辨識正確率。再次獲得第一辨識正確率後,再次與預先設定的第一正確率門檻值做比較,直到第一辨識正確率達到第一正確率門檻值。 If the first identification correct rate is lower than the first correct rate threshold, return to the step S102: Perform a video processing procedure on the plurality of first sample images to further generate the amplified plurality of first sample images, and sequentially perform steps S104 to S110 to re-amplify the plurality of samples. In the first sample image, 3% to 50% is again selected as the first verification image, and the remaining plurality of first sample images are again supplied to the depth learning system to correct the first identification standard, and And determining, by the corrected first identification criterion, whether the standard image and the plurality of first verification images have the first image feature, and obtaining the first recognition accuracy rate again. After obtaining the first identification correct rate again, the first correct rate threshold is compared with the preset first correct rate threshold until the first identification correct rate reaches the first correct rate threshold.

在第一辨識正確率達到第一正確率門檻值之後,就可以將所建立的影像特徵自動辨識演算法實際應用於檢測待檢測物。具體來說,首先要擷取待檢測物的待測圖像(步驟S112),接下來,以影像特徵自動辨識演算法對待測圖像進行分析,並根據第一辨識標準判斷待測圖像是否具有第一影像特徵(步驟S114)。 After the first identification correct rate reaches the first correct rate threshold, the established image feature automatic identification algorithm can be actually applied to detect the object to be detected. Specifically, the image to be tested of the object to be detected is first captured (step S112), and then the image to be measured is analyzed by the image feature automatic identification algorithm, and the image to be tested is determined according to the first identification criterion. There is a first image feature (step S114).

以上就是本發明的影像特徵自動辨識方法的主要流程。當然,本發明的影像特徵自動辨識方法,還能夠在判斷多個待測圖像不符合標準圖像,但都具有第二影像特徵時,分別將多個待測圖像紀錄為多個第二樣品圖像。此部分細節可參考第一及第二實施例,在此不重覆贅述。另外,在將本發明的影像特徵自動辨識方法應用於具有不同的第二影像特徵的多個第二樣品圖像時,同樣要進行如下程序:對分別具有不同的第二影像特徵的多個第二樣品圖像進行影像處理程序,並分別將影像處理程序所產生的影像處理結果與不具有第二影像特徵的標準圖像進行疊合以產生擴增的多個第二樣品圖像;將擴增前以及擴增後的多個第二樣品圖像提供給深度學習系統,以在影像特徵自動辨識演算法中建立針對第二影像特徵的一第二辨識標準;擷取待檢測物的待測圖像,以影像特徵自動辨識演算法對待測圖像進行分析;其中,根據第一辨識標準判斷待測圖像是否具有第一影像特徵;其中,根據第 二辨識標準判斷待測圖像是否具有第二影像特徵。 The above is the main flow of the image feature automatic identification method of the present invention. Of course, the image feature automatic identification method of the present invention can also record a plurality of images to be tested as multiple seconds when determining that a plurality of images to be tested do not conform to the standard image, but both have the second image feature. Sample image. For details of this part, reference may be made to the first and second embodiments, and the details are not repeated here. In addition, when the image feature automatic identification method of the present invention is applied to a plurality of second sample images having different second image features, the following procedure is also performed: a plurality of different images having different second image features The two sample images are subjected to an image processing program, and the image processing results generated by the image processing program are superimposed with the standard image having no second image features to generate a plurality of amplified second sample images; The plurality of second sample images before and after the amplification are provided to the deep learning system to establish a second identification standard for the second image feature in the image feature automatic recognition algorithm; and the object to be detected is to be tested The image is analyzed by the image feature automatic recognition algorithm for the image to be measured; wherein, according to the first identification criterion, it is determined whether the image to be tested has the first image feature; wherein, according to the first The second identification criterion determines whether the image to be tested has a second image feature.

[第四實施例] [Fourth embodiment]

為了確保最開始的樣品圖像具有足夠的多樣性,本發明的影像特徵自動辨識方法也可以在前述第三實施例的步驟S100至步驟S102的中間,再加上預檢驗流程。請參閱圖5所示,圖5為本發明第四實施例的影像特徵自動辨識方法執行預檢驗程序的流程圖。本發明的影像特徵自動辨識方法,在執行預檢驗程序時主要包括下列步驟:S100:取得樣品圖像;S116:在多個樣品圖像中選取預檢用圖像;S118:將其餘樣品圖像提供給深度學習系統進行訓練;S120:以預檢用圖像檢驗樣品圖像多樣性;S122:判斷辨識正確率是否高於預檢驗門檻值,若是,進入步驟S102;若否(低於),則回到步驟S100;S102:通過影像處理程序擴增樣品圖像;具體的說,本發明的影像特徵自動辨識方法在取得樣品圖像後,會先將多個第一樣品圖像中的3%至50%選為第一預檢用圖像(步驟S100以及步驟S116)。於此同時,也可以一併設定第一預檢驗門檻值。如同先前所說,第一預檢驗門檻值不必像第一正確率門檻值那麼高,因此,可以設定為70%至90%,當然,具體情況可視需要自行調整。 In order to ensure that the initial sample image is sufficiently diverse, the image feature automatic identification method of the present invention may be added to the middle of step S100 to step S102 of the foregoing third embodiment, plus a pre-test process. Referring to FIG. 5, FIG. 5 is a flowchart of a pre-verification program for performing automatic image feature recognition according to a fourth embodiment of the present invention. The image feature automatic identification method of the present invention mainly comprises the following steps when performing the pre-test procedure: S100: obtaining a sample image; S116: selecting a pre-test image in a plurality of sample images; S118: selecting the remaining sample image Providing training to the deep learning system; S120: checking the sample image diversity with the image for pre-test; S122: determining whether the recognition correct rate is higher than the pre-test threshold value, and if yes, proceeding to step S102; if not (below), Going back to step S100; S102: amplifying the sample image by the image processing program; specifically, the image feature automatic identification method of the present invention firstly takes a plurality of first sample images after obtaining the sample image 3% to 50% is selected as the first pre-examination image (step S100 and step S116). At the same time, the first pre-test threshold value can also be set together. As mentioned before, the first pre-test threshold value does not have to be as high as the first correct rate threshold, so it can be set to 70% to 90%. Of course, the specific situation can be adjusted as needed.

接下來,將第一樣品圖像中的其餘多個第一樣品圖像提供給深度學習系統進行訓練,以建立包括有針對第一影像特徵的第一預檢驗標準(步驟S118)。 Next, the remaining plurality of first sample images in the first sample image are provided to the deep learning system for training to establish a first pre-test criterion including the first image feature (step S118).

在前述步驟完成後,以預檢用圖像檢驗樣品圖像多樣性(步驟S120)。具體來說,是根據第一預檢驗標準判斷標準圖像以及多 個第一預檢用圖像是否具有第一影像特徵,根據判斷結果紀錄第一預檢驗標準對第一影像特徵的第一預檢驗正確率。 After the foregoing steps are completed, the sample image diversity is checked with the pre-examination image (step S120). Specifically, it is based on the first pre-test standard to judge the standard image and Whether the first pre-test image has the first image feature, and according to the determination result, the first pre-test correct rate of the first image feature is recorded by the first pre-test standard.

接下來,將第一預檢驗正確率與第一預檢驗門檻值相比較(步驟S122)。其中,在第一預檢驗正確率低於第一預檢驗門檻值時,表示第一樣品圖像的多樣性不足,有必要增加具有不同的第一影像特徵的第一樣品圖像的數量,因此回到步驟S100,取得更多具有不同的第一影像特徵的第一樣品圖像;反之,在第一預檢驗正確率達到第一預檢驗門檻值時,即可接續進行本發明影像特徵自動辨識方法的主要流程,換言之,即可進入步驟S102,執行影像處理程序擴增第一樣品圖像。 Next, the first pre-test correctness rate is compared with the first pre-test threshold value (step S122). Wherein, when the first pre-test correct rate is lower than the first pre-test threshold, indicating that the diversity of the first sample image is insufficient, it is necessary to increase the number of first sample images having different first image features. Therefore, returning to step S100, more first sample images having different first image features are obtained; otherwise, when the first pre-test correct rate reaches the first pre-test threshold, the image of the present invention can be successively performed. The main flow of the feature automatic identification method, in other words, proceeds to step S102, where the image processing program is executed to amplify the first sample image.

[實施例的有益效果] [Advantageous Effects of Embodiments]

本發明的有益效果在於,本發明技術方案所提供的影像特徵自動辨識裝置、系統及方法,其能通過“對分別具有不同影像特徵的多個樣品圖像進行影像處理程序,並與不具有影像特徵的標準圖像進行疊合以產生擴增的多個樣品圖像”以及“將擴增前以及擴增後的多個樣品圖像提供給深度學習系統”的技術特徵,以提升深度學習系統下的訓練過程所能接觸到的資料多樣性,進而能增進深度學習系統應用於影像特徵自動辨識的效率與正確性,且在尚未累積到及大量的瑕疵樣品的階段,就能夠採用深度學習系統產生影像特徵自動辨識演算法,在新產品製程的早期階段,就能有效地運用影像特徵自動辨識技術改善製程減少瑕疵,節省大量的時間與成本。 The invention has the beneficial effects of the image feature automatic identification device, system and method provided by the technical solution of the present invention, which can perform image processing procedures on a plurality of sample images respectively having different image features, and have no image The feature image of the feature is superimposed to produce a plurality of sample images of the amplification" and the technical features of "providing a plurality of sample images before and after the amplification to the deep learning system" to enhance the deep learning system The diversity of data that can be accessed during the training process can improve the efficiency and correctness of the deep learning system for automatic recognition of image features, and the deep learning system can be used at the stage where a large number of samples are not accumulated. The image feature automatic recognition algorithm is generated. In the early stage of the new product process, the image feature automatic identification technology can be effectively used to improve the process reduction and save a lot of time and cost.

以上所公開的內容僅為本發明的優選可行實施例,並非因此侷限本發明的申請專利範圍,所以凡是運用本發明說明書及附圖內容所做的等效技術變化,均包含於本發明的申請專利範圍內。 The above disclosure is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Therefore, any equivalent technical changes made by using the present specification and the contents of the drawings are included in the application of the present invention. Within the scope of the patent.

Claims (19)

一種影像特徵自動辨識裝置,其包括:一儲存單元,其儲存有一資料庫,所述資料庫儲存有一第一影像特徵類別群組以及至少一標準圖像,所述第一影像特徵類別群組儲存有多個第一樣品圖像,每一個所述第一樣品圖像分別具有不同的第一影像特徵;一處理單元,其與所述儲存單元訊號連接;以及一影像擷取單元,其與所述處理單元訊號連接,以用於擷取一待檢測物的一待測圖像:其中,所述處理單元讀取所述資料庫中的多個所述第一樣品圖像,多個所述第一樣品圖像進行影像處理程序以分別產生多個影像處理結果,且多個所述影像處理結果分別與多個所述標準圖像進行疊合,以分別產生擴增的多個第一樣品圖像;其中,所述處理單元根據擴增前以及擴增後的多個所述第一樣品圖像執行一深度學習系統的訓練程序,以建立一影像特徵自動辨識演算法,所述影像特徵自動辨識演算法包括有針對所述第一影像特徵的一第一辨識標準;其中,所述處理單元自所述影像擷取單元取得所述待測圖像,所述處理單元執行所述影像特徵自動辨識演算法對所述待測圖像進行分析,且所述處理單元根據所述第一辨識標準判斷所述待測圖像是否具有所述第一影像特徵;其中,所述處理單元在判斷多個所述待測圖像不符合所述標準圖像,但都具有一第二影像特徵時,在所述資料庫建立一第二影像特徵類別群組,並分別將多個具有所述第二影像特徵的所述待測圖像各自紀錄為多個第二樣品圖像,並儲存於所述第二影像特徵類別群組中。 An image feature automatic identification device includes: a storage unit storing a database, the database storing a first image feature category group and at least one standard image, the first image feature category group storing Having a plurality of first sample images, each of the first sample images having a different first image feature; a processing unit coupled to the storage unit signal; and an image capture unit Connected to the processing unit signal for capturing an image to be detected of the object to be detected: wherein the processing unit reads a plurality of the first sample images in the database, The first sample image is subjected to an image processing program to respectively generate a plurality of image processing results, and the plurality of the image processing results are respectively superimposed with the plurality of the standard images to respectively generate a plurality of amplification images respectively a first sample image; wherein the processing unit executes a training program of the deep learning system according to the plurality of the first sample images before and after the amplification to establish an image feature automatic identification algorithm The image feature automatic recognition algorithm includes a first identification criterion for the first image feature; wherein the processing unit acquires the image to be tested from the image capturing unit, the processing unit Performing the image feature automatic identification algorithm to analyze the image to be tested, and the processing unit determines, according to the first identification criterion, whether the image to be tested has the first image feature; When the processing unit determines that the plurality of the images to be tested do not conform to the standard image, but both have a second image feature, create a second image feature category group in the database, and respectively The images to be tested having the second image feature are each recorded as a plurality of second sample images and stored in the second image feature category group. 如請求項1所述的裝置,其中,所述影像處理程序包括影像形狀調整程序、影像對比度調整程序、影像灰階調整程序以及影像色溫調整程序之中的一種或兩種以上的組合。 The device according to claim 1, wherein the image processing program comprises one or a combination of two or more of an image shape adjustment program, an image contrast adjustment program, an image grayscale adjustment program, and an image color temperature adjustment program. 如請求項1所述的裝置,其中,所述處理單元還進一步執行下列程序:在執行一深度學習系統的訓練程序前,將多個所述第一樣品圖像中的至少一第一樣品圖像選為一第一驗證用圖像,並以其餘的多個所述第一樣品圖像執行所述深度學習系統的訓練程序;以及在所述深度學習系統建立所述影像特徵自動辨識演算法後,根據所述第一辨識標準判斷所述第一驗證用圖像是否具有所述第一影像特徵,以確認所述第一辨識標準的正確性。 The apparatus of claim 1, wherein the processing unit further performs the program of: at least one of the plurality of the first sample images is identical before performing a training program of a deep learning system The product image is selected as a first verification image, and the training program of the deep learning system is executed with the remaining plurality of the first sample images; and the image feature is automatically established in the depth learning system After the algorithm is identified, determining whether the first verification image has the first image feature according to the first identification criterion to confirm the correctness of the first identification criterion. 如請求項3所述的裝置,其中,所述第一驗證用圖像的數量為多個,且所述第一驗證用圖像的數量佔多個所述第一樣品圖像數量的3%至50%,所述處理單元還進一步執行下列程序:設定一第一正確率門檻值;以及執行所述影像特徵自動辨識演算法,並根據所述第一辨識標準判斷所述標準圖像以及多個所述第一驗證用圖像是否具有所述第一影像特徵,根據判斷結果紀錄所述第一辨識標準對所述第一影像特徵的一第一辨識正確率;其中,在所述第一辨識正確率低於所述第一正確率門檻值時執行下列步驟:將多個第一樣品圖像再次進行所述影像處理程序,以進一步產生擴增的多個第一樣品圖像;以及從再次擴增後的多個第一樣品圖像中,再次選出3%至50%為第一驗證用圖像,並將其餘的多個第一樣品圖像再次提 供給所述深度學習系統,以修正所述第一辨識標準,並以修正後的所述第一辨識標準再次判斷所述標準圖像以及多個所述第一驗證用圖像是否具有所述第一影像特徵,並再次獲得所述第一辨識正確率;其中,在所述第一辨識正確率達到所述第一正確率門檻值時,根據所述第一辨識標準判斷擷取自所述待檢測物的所述待測圖像是否具有所述第一影像特徵。 The device of claim 3, wherein the number of the first verification images is plural, and the number of the first verification images accounts for 3 of the plurality of first sample images. % to 50%, the processing unit further performs the following procedure: setting a first correct rate threshold; and performing the image feature automatic identification algorithm, and determining the standard image according to the first identification criterion and Whether a plurality of the first verification images have the first image feature, and recording, according to the determination result, a first recognition accuracy rate of the first image identification to the first image feature; wherein, in the Performing the following steps when the recognition correct rate is lower than the first correct rate threshold: performing the image processing procedure on the plurality of first sample images to further generate the amplified plurality of first sample images And from the plurality of first sample images after re-amplification, 3% to 50% are again selected as the first verification image, and the remaining plurality of first sample images are again extracted Supplying the depth learning system to correct the first identification criterion, and determining, by the corrected first identification criterion, whether the standard image and the plurality of first verification images have the first An image feature, and obtaining the first recognition accuracy rate again; wherein, when the first recognition accuracy rate reaches the first correct rate threshold, determining, according to the first identification criterion, extracting from the image Whether the image to be tested of the detected object has the first image feature. 如請求項1所述的裝置,其中,所述處理單元還進一步執行下列程序:讀取所述資料庫中的多個所述第二樣品圖像,並分別進行所述影像處理程序,且分別將所述影像處理程序所產生的影像處理結果各自與所述標準圖像進行疊合以產生擴增的多個第二樣品圖像;根據擴增前以及擴增後的多個第一樣品圖像執行所述深度學習系統的訓練程序,以在所述影像特徵自動辨識演算法中建立針對所述第二影像特徵的一第二辨識標準;以及根據所述第一辨識標準判斷所述待測圖像是否具有所述第一影像特徵,並根據所述第二辨識標準判斷所述待測圖像是否具有所述第二影像特徵。 The device of claim 1, wherein the processing unit further performs the following steps: reading a plurality of the second sample images in the database, and performing the image processing programs separately, and respectively And superimposing the image processing results generated by the image processing program with the standard image to generate a plurality of amplified second sample images; according to the plurality of first samples before and after the amplification Performing a training program of the depth learning system to establish a second identification criterion for the second image feature in the image feature automatic recognition algorithm; and determining the waiting according to the first identification criterion Detecting whether the image has the first image feature, and determining whether the image to be tested has the second image feature according to the second identification criterion. 如請求項1所述的裝置,其中,所述處理單元在執行所述影像處理程序前,還進一步執行下列程序:將多個所述第一樣品圖像中的3%至50%選為第一預檢用圖像,並將所述第一樣品圖像中的其餘多個第一樣品圖像提供給所述深度學習系統,以建立包括有針對所述第一影像特徵的一第一預檢驗標準;設定一第一預檢驗門檻值;以及 根據所述第一預檢驗標準判斷所述標準圖像以及多個所述第一驗證用圖像是否具有所述第一影像特徵,根據判斷結果紀錄所述第一預檢驗標準對所述第一影像特徵的一第一預檢驗正確率;其中,在所述第一預檢驗正確率達到所述第一預檢驗門檻值時,執行所述影像處理程序;以及其中,在所述第一預檢驗正確率低於所述第一預檢驗門檻值時,終止程序。 The device of claim 1, wherein the processing unit further performs the following procedure before executing the image processing program: selecting 3% to 50% of the plurality of the first sample images as a first pre-examination image, and providing a remaining plurality of first sample images in the first sample image to the depth learning system to establish a one including the first image feature a first pre-test standard; setting a first pre-test threshold; and Determining, according to the first pre-test standard, whether the standard image and the plurality of first verification images have the first image feature, and recording the first pre-test standard to the first according to the determination result a first pre-test accuracy rate of the image feature; wherein the image processing program is executed when the first pre-test correct rate reaches the first pre-test threshold; and wherein the first pre-test When the correct rate is lower than the first pre-test threshold, the program is terminated. 一種影像特徵自動辨識系統,其包括:一伺服端,其包括:一儲存單元,其儲存有一資料庫,所述資料庫儲存有一第一影像特徵類別群組以及至少一標準圖像,所述第一影像特徵類別群組儲存有多個第一樣品圖像,每一個所述第一樣品圖像分別具有不同的第一影像特徵;以及一處理單元,其與所述儲存單元訊號連接;其中,所述處理單元讀取所述資料庫中的多個所述第一樣品圖像,並分別進行一影像處理程序,且分別將所述影像處理程序所產生的影像處理結果各自與所述標準圖像進行疊合以產生擴增的多個第一樣品圖像;其中,所述處理單元根據擴增前以及擴增後的多個第一樣品圖像執行一深度學習系統的訓練程序,以建立一影像特徵自動辨識演算法,所述影像特徵自動辨識演算法包括有針對所述第一影像特徵的一第一辨識標準;以及一檢測端,其與所述伺服端訊號連接,且能由所述伺服端接收所述影像特徵自動辨識演算法,所述檢測端包括:一影像擷取模組,其用以擷取一待檢測物的一待測圖像;以及 一處理模組,其與所述影像擷取模組訊號連接,以自所述影像擷取模組取得所述待測圖像,所述處理模組執行所述影像特徵自動辨識演算法對所述待測圖像進行分析,並根據所述第一辨識標準判斷所述待測圖像是否具有所述第一影像特徵;其中,所述檢測端的所述處理模組在判斷多個所述待測圖像不符合所述標準圖像,但都具有一第二影像特徵時,分別將多個具有所述第二影像特徵的所述待測圖像各自紀錄為多個第二樣品圖像,並將多個所述第二樣品圖像提供給所述伺服端;其中,所述伺服端的所述處理單元在所述資料庫建立一第二影像特徵類別群組,並將多個所述第二樣品圖像儲存於所述第二影像特徵類別群組中。 An image feature automatic identification system, comprising: a server, comprising: a storage unit, wherein the storage unit stores a database, the database stores a first image feature category group and at least one standard image, An image feature category group stores a plurality of first sample images, each of the first sample images respectively having different first image features; and a processing unit connected to the storage unit signal; The processing unit reads a plurality of the first sample images in the database, and respectively performs an image processing program, and respectively respectively respectively respectively the image processing results generated by the image processing program The standard image is superimposed to generate a plurality of amplified first sample images; wherein the processing unit performs a deep learning system according to the plurality of first sample images before and after the amplification Training a program to establish an image feature automatic identification algorithm, the image feature automatic identification algorithm comprising a first identification standard for the first image feature; and a detecting end, The image sensor is connected to the server, and the image feature automatic recognition algorithm is received by the server. The detecting end includes: an image capturing module, which is used to capture a to-be-detected object. Measure image; a processing module, which is connected to the image capturing module signal to obtain the image to be tested from the image capturing module, and the processing module performs the image feature automatic identification algorithm Determining, according to the first identification criterion, whether the image to be tested has the first image feature, wherein the processing module of the detecting end determines a plurality of the to-be-processed When the measured images do not conform to the standard image, but each has a second image feature, each of the plurality of image to be tested having the second image feature is recorded as a plurality of second sample images, respectively. And providing a plurality of the second sample images to the server; wherein the processing unit of the server establishes a second image feature category group in the database, and the plurality of the first The two sample images are stored in the second image feature category group. 如請求項7所述的系統,其中,所述影像處理程序包括影像形狀調整程序、影像對比度調整程序、影像灰階調整程序以及影像色溫調整程序之中的一種或兩種以上的組合。 The system of claim 7, wherein the image processing program comprises one or a combination of two or more of an image shape adjustment program, an image contrast adjustment program, an image grayscale adjustment program, and an image color temperature adjustment program. 如請求項7所述的系統,其中,所述處理單元還進一步執行下列程序:在執行一深度學習系統的訓練程序前,將多個所述第一樣品圖像中的至少一樣品圖像選為第一驗證用圖像,並以其餘的多個第一樣品圖像執行所述深度學習系統的訓練程序;以及在所述深度學習系統建立所述影像特徵自動辨識演算法後,根據所述第一辨識標準判斷所述第一驗證用圖像是否具有所述第一影像特徵,以確認所述第一辨識標準的正確性。 The system of claim 7, wherein the processing unit further performs the program of: at least one sample image of the plurality of the first sample images before performing a training program of a deep learning system Selecting a first verification image, and executing a training program of the deep learning system with the remaining plurality of first sample images; and after the depth learning system establishes the image feature automatic recognition algorithm, according to The first identification criterion determines whether the first verification image has the first image feature to confirm the correctness of the first identification criterion. 如請求項9所述的系統,其中,所述第一驗證用圖像的數量為 多個,且所述第一驗證用圖像的數量佔多個所述第一樣品圖像數量的3%至50%,所述處理單元還進一步執行下列程序:設定一第一正確率門檻值;以及執行所述影像特徵自動辨識演算法,並根據所述第一辨識標準判斷所述標準圖像以及多個所述第一驗證用圖像是否具有所述第一影像特徵,根據判斷結果紀錄所述第一辨識標準對所述第一影像特徵的一第一辨識正確率;其中,在所述第一辨識正確率低於所述第一正確率門檻值時,執行下列步驟:將多個第一樣品圖像再次進行所述影像處理程序,以進一步產生擴增的多個第一樣品圖像;以及從再次擴增後的多個第一樣品圖像中,再次選出3%至50%為第一驗證用圖像,並將其餘的多個第一樣品圖像再次提供給所述深度學習系統,以修正所述第一辨識標準,並以修正後的所述第一辨識標準再次判斷所述標準圖像以及多個所述第一驗證用圖像是否具有所述第一影像特徵,並再次獲得所述第一辨識正確率;其中,在所述第一辨識正確率達到所述第一正確率門檻值時,將所述影像特徵自動辨識演算法提供予所述檢測端。 The system of claim 9, wherein the number of the first verification images is a plurality, and the number of the first verification images accounts for 3% to 50% of the number of the plurality of first sample images, and the processing unit further performs the following procedure: setting a first correct rate threshold And performing the image feature automatic identification algorithm, and determining, according to the first identification criterion, whether the standard image and the plurality of first verification images have the first image feature, according to the determination result Recording, by the first identification criterion, a first identification accuracy rate of the first image feature; wherein, when the first recognition accuracy rate is lower than the first correct rate threshold, performing the following steps: The first sample image is again subjected to the image processing program to further generate the amplified plurality of first sample images; and from the plurality of first sample images after the re-amplification, the third sample is again selected. % to 50% is the first verification image, and the remaining plurality of first sample images are again supplied to the depth learning system to correct the first identification criterion, and the corrected first An identification criterion again judges the standard image to And a plurality of the first verification images having the first image feature, and obtaining the first recognition accuracy rate again; wherein, the first recognition accuracy rate reaches the first correct rate threshold The image feature automatic recognition algorithm is provided to the detecting end. 如請求項7所述的系統,其中,所述處理單元還進一步執行下列程序:讀取所述資料庫中的多個所述第二樣品圖像,並分別進行所述影像處理程序,且分別將所述影像處理程序所產生的影像處理結果各自與所述標準圖像進行疊合以產生擴增的多個第二樣品圖像;以及根據擴增前以及擴增後的多個第一樣品圖像執行所述深度學習系統的訓練程序,以在所述影像特徵自動辨識演算法中建 立針對所述第二影像特徵的一第二辨識標準。 The system of claim 7, wherein the processing unit further performs the following program: reading a plurality of the second sample images in the database, and respectively performing the image processing programs, and respectively And superimposing the image processing results generated by the image processing program with the standard image to generate a plurality of amplified second sample images; and according to the plurality of pre-amplification and post-amplification The product image executes a training program of the depth learning system to be built in the image feature automatic recognition algorithm Establishing a second identification criterion for the second image feature. 如請求項11所述的系統,其中,所述處理模組以所述影像特徵自動辨識演算法對所述待測圖像進行分析時,是根據所述第一辨識標準判斷所述待測圖像是否具有所述第一影像特徵,並根據所述第二辨識標準判斷所述待測圖像是否具有所述第二影像特徵。 The system of claim 11, wherein the processing module determines the image to be tested according to the first identification criterion when the image feature automatic recognition algorithm analyzes the image to be tested. Whether the image has the first image feature, and determining whether the image to be tested has the second image feature according to the second identification criterion. 如請求項7所述的系統,還進一步包括:一樣品圖像供應端,其與所述伺服端訊號連接,以提供多個所述第一樣品圖像至所述伺服端;其中,所述伺服端的所述處理單元還進一步執行下列程序:將多個所述第一樣品圖像中的3%至50%選為第一預檢用圖像,並將所述第一樣品圖像中的其餘多個第一樣品圖像提供給所述深度學習系統,以建立包括有針對所述第一影像特徵的一第一預檢驗標準;設定一第一預檢驗門檻值;以及根據所述第一預檢驗標準判斷所述標準圖像以及多個所述第一驗證用圖像是否具有所述第一影像特徵,根據判斷結果紀錄所述第一預檢驗標準對所述第一影像特徵的一第一預檢驗正確率;其中,在所述第一預檢驗正確率低於所述第一預檢驗門檻值時,從所述樣品圖像供應端接收更多具有不同的第一影像特徵的所述第一樣品圖像;其中,在所述第一預檢驗正確率達到所述第一預檢驗門檻值時,執行所述影像處理程序。 The system of claim 7, further comprising: a sample image supply end coupled to the servo end signal to provide a plurality of the first sample images to the servo end; wherein The processing unit of the server further performs the following procedure: selecting 3% to 50% of the plurality of the first sample images as the first pre-examination image, and the first sample image And remaining a plurality of first sample images in the image are provided to the depth learning system to establish a first pre-test criterion including the first image feature; setting a first pre-check threshold; and Determining, by the first pre-test standard, whether the standard image and the plurality of first verification images have the first image feature, and recording the first pre-test standard to the first image according to the determination result a first pre-test correct rate of the feature; wherein, when the first pre-test correct rate is lower than the first pre-test threshold, more different first images are received from the sample image supply end The first sample image of the feature; wherein, in Said first pre-inspection when the correct rate of the first pre-inspection threshold, executing the image processing program. 一種影像特徵自動辨識方法,其包括下列步驟: 對分別具有不同的第一影像特徵的多個第一樣品圖像進行一影像處理程序,並分別將所述影像處理程序所產生的影像處理結果與不具有所述第一影像特徵的一標準圖像進行疊合以產生擴增的多個第一樣品圖像;將擴增前以及擴增後的多個第一樣品圖像提供給一深度學習系統,以建立一影像特徵自動辨識演算法,所述影像特徵自動辨識演算法包括有針對所述第一影像特徵的一第一辨識標準;擷取一待檢測物的一待測圖像,以所述影像特徵自動辨識演算法對所述待測圖像進行分析,並根據所述第一辨識標準判斷所述待測圖像是否具有所述第一影像特徵;以及在判斷多個所述待測圖像不符合所述標準圖像,但都具有一第二影像特徵時,分別將多個所述待測圖像紀錄為多個第二樣品圖像。 An image feature automatic identification method includes the following steps: Performing an image processing procedure on the plurality of first sample images respectively having different first image features, and separately performing image processing results generated by the image processing program and a standard not having the first image features The images are superimposed to generate a plurality of amplified first sample images; and the plurality of first sample images before and after the amplification are provided to a deep learning system to establish an automatic image feature recognition The algorithm, the image feature automatic identification algorithm includes a first identification criterion for the first image feature; capturing a to-be-tested image of the object to be detected, and automatically determining the algorithm pair by the image feature Performing analysis on the image to be tested, and determining, according to the first identification criterion, whether the image to be tested has the first image feature; and determining that the plurality of images to be tested do not meet the standard image For example, when all have a second image feature, a plurality of the images to be tested are respectively recorded as a plurality of second sample images. 如請求項14所述的方法,其中,所述影像處理程序包括影像形狀調整程序、影像對比度調整程序、影像灰階調整程序以及影像色溫調整程序之中的一種或兩種以上的組合。 The method of claim 14, wherein the image processing program comprises one or a combination of two or more of an image shape adjustment program, an image contrast adjustment program, an image grayscale adjustment program, and an image color temperature adjustment program. 如請求項14所述的方法,還進一步包括:在將多個第一樣品圖像提供給所述深度學習系統前,將多個所述第一樣品圖像中的至少一樣品圖像選為第一驗證用圖像,並將所述第一樣品圖像中的其餘多個第一樣品圖像提供給所述深度學習系統;以及在所述深度學習系統建立所述影像特徵自動辨識演算法後,根據所述第一辨識標準判斷所述第一驗證用圖像是否具有所述第一影像特徵,以確認所述第一辨識標準的正確性。 The method of claim 14, further comprising: at least one sample image of the plurality of the first sample images before providing the plurality of first sample images to the depth learning system Selecting a first verification image and providing the remaining plurality of first sample images in the first sample image to the depth learning system; and establishing the image feature in the depth learning system After the automatic recognition algorithm is performed, determining whether the first verification image has the first image feature according to the first identification criterion to confirm the correctness of the first identification criterion. 如請求項16所述的方法,其中,所述第一驗證用圖像的數量為多個,且所述第一驗證用圖像的數量佔多個所述第一樣品圖像數量的3%至50%,所述方法還進一步包括:設定一第一正確率門檻值;以及執行所述影像特徵自動辨識演算法,並根據所述第一辨識標準判斷所述標準圖像以及多個所述第一驗證用圖像是否具有所述第一影像特徵,根據判斷結果紀錄所述第一辨識標準對所述第一影像特徵的一第一辨識正確率;其中,在所述第一辨識正確率低於所述第一正確率門檻值時,執行下列步驟:將多個第一樣品圖像再次進行所述影像處理程序,以進一步產生擴增的多個第一樣品圖像;以及從再次擴增後的多個第一樣品圖像中,再次選出3%至50%為第一驗證用圖像,並將其餘的多個第一樣品圖像再次提供給所述深度學習系統,以修正所述第一辨識標準,並以修正後的所述第一辨識標準再次判斷所述標準圖像以及多個所述第一驗證用圖像是否具有所述第一影像特徵,並再次獲得所述第一辨識正確率;其中,在所述第一辨識正確率達到所述第一正確率門檻值時,根據所述第一辨識標準判斷擷取自所述待檢測物的所述待測圖像是否具有所述第一影像特徵。 The method of claim 16, wherein the number of the first verification images is plural, and the number of the first verification images accounts for 3 of the plurality of first sample images. % to 50%, the method further comprising: setting a first correct rate threshold; and performing the image feature automatic identification algorithm, and determining the standard image and the plurality of locations according to the first identification criterion Whether the first verification image has the first image feature, and according to the determination result, recording a first recognition accuracy rate of the first image standard to the first image feature; wherein, the first identification is correct When the rate is lower than the first correct rate threshold, performing the following steps: performing the image processing procedure on the plurality of first sample images to further generate the amplified plurality of first sample images; From the plurality of first sample images after re-amplification, 3% to 50% are again selected as the first verification image, and the remaining plurality of first sample images are again supplied to the deep learning System to correct the first identification criteria and to correct The first identification criterion again determines whether the standard image and the plurality of the first verification images have the first image feature, and obtains the first recognition accuracy rate again; wherein, in the When the first identification accuracy rate reaches the first correct rate threshold, determining whether the image to be detected extracted from the object to be detected has the first image feature according to the first identification criterion. 如請求項14所述的方法,還進一步包括:對分別具有不同的第二影像特徵的多個第二樣品圖像進行所述影像處理程序,並分別將所述影像處理程序所產生的影像處理結果與不具有所述第二影像特徵的所述標準圖像進行疊合以產生擴增的多個第二樣品圖像;將擴增前以及擴增後的多個第二樣品圖像提供給所述深度學 習系統,以在所述影像特徵自動辨識演算法中建立針對所述第二影像特徵的一第二辨識標準;以及擷取所述待檢測物的所述待測圖像,以所述影像特徵自動辨識演算法對所述待測圖像進行分析;其中,根據所述第一辨識標準判斷所述待測圖像是否具有所述第一影像特徵;其中,根據所述第二辨識標準判斷所述待測圖像是否具有所述第二影像特徵。 The method of claim 14, further comprising: performing the image processing procedure on the plurality of second sample images respectively having different second image features, and separately processing the image generated by the image processing program The result is superimposed with the standard image without the second image feature to generate a plurality of amplified second sample images; and the plurality of second sample images before and after the amplification are provided to The depth a system for establishing a second identification criterion for the second image feature in the image feature automatic recognition algorithm; and capturing the image to be detected of the object to be detected, the image feature The automatic identification algorithm analyzes the image to be tested, and determines whether the image to be tested has the first image feature according to the first identification criterion; wherein, the second identification criterion is determined according to the second identification criterion Determining whether the image to be tested has the second image feature. 如請求項14所述的方法,其中,在執行所述影像處理程序前,先執行一預檢驗程序,所述預檢驗程序包括:將多個所述第一樣品圖像中的3%至50%選為第一預檢用圖像,並將所述第一樣品圖像中的其餘多個第一樣品圖像提供給所述深度學習系統,以建立包括有針對所述第一影像特徵的一第一預檢驗標準;設定一第一預檢驗門檻值;以及根據所述第一預檢驗標準判斷所述標準圖像以及多個所述第一預檢用圖像是否具有所述第一影像特徵,根據判斷結果紀錄所述第一預檢驗標準對所述第一影像特徵的一第一預檢驗正確率;其中,在所述第一預檢驗正確率低於所述第一預檢驗門檻值時,增加具有不同的第一影像特徵的所述第一樣品圖像的數量;以及其中,在所述第一預檢驗正確率達到所述第一預檢驗門檻值時,執行所述影像處理程序。 The method of claim 14, wherein before performing the image processing program, a pre-verification program is executed, the pre-verification program comprising: 3% to a plurality of the first sample images 50% is selected as the first pre-examination image, and the remaining plurality of first sample images in the first sample image are provided to the deep learning system to establish including the first a first pre-verification criterion of the image feature; setting a first pre-test threshold value; and determining, according to the first pre-verification criterion, whether the standard image and the plurality of the first pre-test images have the Determining, by the first image feature, a first pre-test correct rate of the first image feature according to the determination result; wherein, the first pre-test correct rate is lower than the first pre-test When the threshold value is verified, the number of the first sample images having different first image features is increased; and wherein, when the first pre-test correct rate reaches the first pre-test threshold, the execution The image processing program.
TW106133740A 2017-09-29 2017-09-29 Device, system and method for automatically identifying image features TWI647658B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106133740A TWI647658B (en) 2017-09-29 2017-09-29 Device, system and method for automatically identifying image features

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106133740A TWI647658B (en) 2017-09-29 2017-09-29 Device, system and method for automatically identifying image features

Publications (2)

Publication Number Publication Date
TWI647658B true TWI647658B (en) 2019-01-11
TW201915941A TW201915941A (en) 2019-04-16

Family

ID=65803768

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106133740A TWI647658B (en) 2017-09-29 2017-09-29 Device, system and method for automatically identifying image features

Country Status (1)

Country Link
TW (1) TWI647658B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210010953A1 (en) * 2019-07-12 2021-01-14 SVXR, Inc. Methods and Systems for Defects Detection and Classification Using X-rays
WO2023102880A1 (en) * 2021-12-10 2023-06-15 曾稼志 Method and system for processing tracheal intubation images and method for evaluating tracheal intubation effectiveness

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201327418A (en) * 2011-12-19 2013-07-01 Ind Tech Res Inst Method and system for recognizing images
CN104102919A (en) * 2014-07-14 2014-10-15 同济大学 Image classification method capable of effectively preventing convolutional neural network from being overfit
CN104458755A (en) * 2014-11-26 2015-03-25 吴晓军 Multi-type material surface defect detection method based on machine vision
TW201523462A (en) * 2013-11-04 2015-06-16 Beijing Jingdong Shangke Information Technology Co Ltd Graphic object classification identification method and apparatus
US20160253359A1 (en) * 2013-05-07 2016-09-01 Picscout (Israel) Ltd. Efficient image matching for large sets of images
US20170186144A1 (en) * 2015-12-28 2017-06-29 Powerchip Technology Corporation Method, image processing system and computer-readable recording medium for item defect inspection

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201327418A (en) * 2011-12-19 2013-07-01 Ind Tech Res Inst Method and system for recognizing images
US20160253359A1 (en) * 2013-05-07 2016-09-01 Picscout (Israel) Ltd. Efficient image matching for large sets of images
TW201523462A (en) * 2013-11-04 2015-06-16 Beijing Jingdong Shangke Information Technology Co Ltd Graphic object classification identification method and apparatus
CN104102919A (en) * 2014-07-14 2014-10-15 同济大学 Image classification method capable of effectively preventing convolutional neural network from being overfit
CN104458755A (en) * 2014-11-26 2015-03-25 吴晓军 Multi-type material surface defect detection method based on machine vision
US20170186144A1 (en) * 2015-12-28 2017-06-29 Powerchip Technology Corporation Method, image processing system and computer-readable recording medium for item defect inspection

Also Published As

Publication number Publication date
TW201915941A (en) 2019-04-16

Similar Documents

Publication Publication Date Title
US20190197679A1 (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
KR100598381B1 (en) In-line type automatic wafer defect sorting device and control method
CN109685756A (en) Image feature automatic identifier, system and method
TWI647658B (en) Device, system and method for automatically identifying image features
CN113269769A (en) Defect detection method, system and equipment based on image registration
KR102666787B1 (en) Method, apparatus and program for inspecting defect
US8358831B2 (en) Probe mark inspection
CN115861161A (en) Machine learning system, learning data collection method, and storage medium
WO2023113773A1 (en) Manufacturing defect detection augmented training sets
CN117911365B (en) Workpiece quality detection method and system based on image processing technology
CN114494117A (en) Device glue distribution detection method and device, storage medium and electronic equipment
CN113808116A (en) Intelligent detection method, system and product detection system based on image recognition
CN113691804A (en) Detection function verification method, device, equipment and medium
US20240013369A1 (en) Image defect detecting system, generation method of image defect detecting system and non-transitory computer readable medium
CN118706838A (en) Product quality testing equipment testing method, device and electronic equipment
US11727673B1 (en) Visual analysis method for cable element identification
CN117630003A (en) Part defect detection method and device
CN116609359A (en) Chip bonding wire detection method and device, electronic equipment and storage medium
TWI757590B (en) Luminance uniform detection system and luminance uniform detection method
CN114494122A (en) Target object detection method, device, storage medium and electronic device
CN115346164A (en) Automatic model reconstruction method and system for component recognition model
CN113192021A (en) Detection method and device, detection equipment and storage medium
CN107123105A (en) Images match defect inspection method based on FAST algorithms
CN117906937B (en) Hydrostatic test method, test system and storage medium
CN113808067B (en) Circuit board detection method, visual detection equipment and device with storage function

Legal Events

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