TWI808845B - Fresh tea leaf grading method and device thereof - Google Patents

Fresh tea leaf grading method and device thereof Download PDF

Info

Publication number
TWI808845B
TWI808845B TW111128333A TW111128333A TWI808845B TW I808845 B TWI808845 B TW I808845B TW 111128333 A TW111128333 A TW 111128333A TW 111128333 A TW111128333 A TW 111128333A TW I808845 B TWI808845 B TW I808845B
Authority
TW
Taiwan
Prior art keywords
cyanine
batch
grade
information
fresh tea
Prior art date
Application number
TW111128333A
Other languages
Chinese (zh)
Other versions
TW202405750A (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 TW111128333A priority Critical patent/TWI808845B/en
Application granted granted Critical
Publication of TWI808845B publication Critical patent/TWI808845B/en
Publication of TW202405750A publication Critical patent/TW202405750A/en

Links

Abstract

The present invention discloses a fresh tea leaf grading method. With capturing a batch fresh tea image of a plurality of single fresh tea leaves; performing object detection operation to generate a plurality of single fresh tea information corresponding to the plurality of single fresh tea leaves; performing segmentation operation to each of the plurality of single fresh tea information to generate a fresh tea portion information; judging the fresh tea portion information according to a single fresh tea grade criteria to generate a single fresh tea grade information corresponding to each of the plurality of single fresh tea leaves. As a result, in conventional art, human identification errors and time spent can be reduced, and the single fresh tea grade criteria can be adjusted according to different tea species, seasons, origins and other factors without repeated use of human identification.

Description

茶菁等級鑑別方法及其裝置 Method and device for classifying tea cyanine

本發明係關於一種茶菁等級鑑別方法及其裝置,特別是一種用於商用茶菁技術領域的鑑別方法,用於改善現有的鑑別方法。 The invention relates to a method for identifying the grade of cyanine and its device, in particular to an identification method used in the technical field of commercial cyanine, which is used to improve the existing identification method.

在商用茶菁的領域,現有技術均是採用人工進行等級的鑑別,需要耗費大量時間以及人力。 In the field of commercial tea cyanine, the prior art uses manual grade identification, which requires a lot of time and manpower.

目前常見之茶菁品質判斷方式,多依賴人力觀察,其判別標準包括採收茶菁之長短(均勻性)、色澤(老嫩)、節間長(生長條件或季節)、葉梗比例(生長條件或季節)等。然人力判別高度仰賴長時的經驗累積,故判別人力有限,且難免出現主觀爭議,缺乏客觀標準。 The current common methods of judging the quality of tea greens rely mostly on human observation. The criteria for judging include the length (uniformity), color (old and tender), length of internodes (growth conditions or seasons), leaf stem ratio (growth conditions or seasons), etc. of harvested tea greens. However, human judgment is highly dependent on long-term accumulation of experience, so the human resources for judgment are limited, and subjective disputes inevitably arise, and there is a lack of objective standards.

近年來因茶飲料文化興起,國內商用茶菁需求量大增,國人飲茶量平均由1976年的0.27公斤上升至2017年的1.5公斤。然2019年底由於北部茶區商用茶菁採摘品質不穩定,而造成採購端的疑慮,首次爆發茶菁滯銷問題。 In recent years, due to the rise of the tea beverage culture, domestic demand for commercial tea greens has increased significantly. The average amount of tea consumed by Chinese people has risen from 0.27 kg in 1976 to 1.5 kg in 2017. However, at the end of 2019, due to the unstable quality of commercially picked tea extracts in northern tea regions, this caused doubts on the purchasing side, and the problem of unsalable tea extracts broke out for the first time.

故,若能訂定商用茶菁採摘標準,以協助提高商用茶菁品質,將有利茶農與製茶廠間達成銷售價格之共識。茶菁採摘品 質影響後續製茶品質,如能於茶菁階段進行分級,則茶廠可調整製茶條件並發揮茶菁品質,同時也節省後續精製加工之成本。 Therefore, if the picking standard for commercial tea greens can be established to help improve the quality of commercial tea greens, it will be beneficial for tea farmers and tea factories to reach a consensus on the sales price. tea leaf picking The quality of tea affects the quality of subsequent tea production. If grading can be carried out at the tea green stage, the tea factory can adjust the tea production conditions and give full play to the quality of tea green, and at the same time save the cost of subsequent refined processing.

因此,習知技術存在技術問題:1.茶菁等級鑑別仰賴人力觀察;2.沒有客觀數據可任意且即時調整分級依據。 Therefore, there are technical problems in the known technology: 1. The grade identification of tea cyanine relies on human observation; 2. There is no objective data to adjust the classification basis arbitrarily and in real time.

故,有必要提出一種茶菁等級鑑別方法及其裝置以解決上述技術問題。 Therefore, it is necessary to propose a method and device for identifying the grade of cyanine to solve the above-mentioned technical problems.

為解決上述習知技術的問題,本發明提供一種茶菁等級鑑別系統,其利用人工智慧對一批次茶菁影像進行影像處理取得對應複數單一茶菁的複數單一茶菁訊息、茶菁部位訊息;接著將該茶菁部位訊息進行判斷以確認每一個茶菁的等級以及評鑑出該批次茶菁的等級。 In order to solve the above-mentioned problems of the conventional technology, the present invention provides a cyanine grade identification system, which uses artificial intelligence to perform image processing on a batch of cyanine images to obtain multiple single cyanine information and cyanine part information corresponding to multiple single cyanine; then judge the cyanine part information to confirm the grade of each cyanine and evaluate the grade of the batch of cyanine.

為達上述目的,本發明提供一種茶菁等級鑑別方法,其包括:首先,擷取包含一批次茶菁的一批次茶菁影像,其中該批次茶菁包含複數單一茶菁;接著,由該批次茶菁影像進行物件偵測作業產生分別對應該複數單一茶菁的複數單一茶菁訊息;接著,由每一個該複數單一茶菁訊息進行區塊分割作業產生一茶菁部位訊息;接著,將該茶菁部位訊息以一單一茶菁等級準則進行判斷以產生對應每一該複數單一茶菁的一單一茶菁等級訊息。 In order to achieve the above object, the present invention provides a method for classifying cyanine, which includes: firstly, extracting a batch of cyanine images including a batch of cyanine, wherein the batch of cyanine contains a plurality of single cyanine; then, performing an object detection operation on the batch of cyanine images to generate a plurality of single cyanine information corresponding to the plurality of single cyanine; then, performing a block division operation on each of the plurality of single cyanine information to generate a cyanine part information; Judging to generate a single cyanine level message corresponding to each of the plurality of single cyanines.

在一較佳實施例中,該方法還包括:首先,擷取至少一訓練用影像;接著,以該至少一訓練用影像進行該單一茶菁部位之深度學習演算;接著,計算得到該單一茶菁等級準則。 In a preferred embodiment, the method further includes: firstly, capturing at least one training image; then, using the at least one training image to perform a deep learning calculation on the single cyanine part; and then, calculating the single cyanine level criterion.

在一較佳實施例中,該區塊分割作業係採用卷積神經網路的方式。 In a preferred embodiment, the block division operation adopts a convolutional neural network.

在一較佳實施例中,該方法還包含:融合每一該複數單一茶菁的該單一茶菁等級訊息產生一批次茶菁訊息;接著,將該批次茶菁訊息以一批次茶菁等級準則進行判斷以產生對應該批次茶菁的一批次茶菁等級訊息。 In a preferred embodiment, the method further includes: fusing the single cyanine grade information of each of the plurality of single cyanines to generate a batch of cyanine information; then, judging the batch of cyanine information according to a batch of cyanine grade criteria to generate a batch of cyanine grade information corresponding to the batch of cyanine.

在一較佳實施例中,該方法還包含:根據至少一參考訊息調整該單一茶菁等級準則及/或該批次茶菁等級準則。 In a preferred embodiment, the method further includes: adjusting the single cyanine grade criterion and/or the batch cyanine grade criterion according to at least one reference message.

在一較佳實施例中,該方法還包含:將該批次茶菁放置至少一比例尺模版上。 In a preferred embodiment, the method further comprises: placing the batch of cyanine on at least one scale template.

在一較佳實施例中,該方法還包含:使該複數單一茶菁之間存在間隙。 In a preferred embodiment, the method further comprises: making gaps exist between the plurality of single cyanines.

為達上述目的,本發明還提供一種茶菁等級鑑別裝置。該裝置利用上述的方法。其包括:一影像擷取單元、一影像處理單元以及一等級判斷單元。該影像擷取單元用於擷取該批次茶菁影像。該影像處理單元用於與該影像擷取單元電氣連接且處理該批次茶菁影像並得到該複數單一茶菁訊息及該茶菁部位訊息。該等級判斷單元用於與該影像處理單元電氣連接且產生該單一茶菁等級訊息。 To achieve the above purpose, the present invention also provides a cyanine level identification device. The device utilizes the method described above. It includes: an image capturing unit, an image processing unit and a grade judging unit. The image capture unit is used to capture the batch of cyanine images. The image processing unit is used to electrically connect with the image capture unit and process the batch of cyanine images to obtain the plurality of single cyanine information and the cyanine part information. The grade judging unit is used for electrically connecting with the image processing unit and generating the grade information of the single cyanine.

在一較佳實施例中,該裝置還包括一作動單元,用以與該影像處理單元電氣連接且配合該影像擷取單元使該複數單一茶菁之間存在間隙。 In a preferred embodiment, the device further includes an actuating unit, which is used to electrically connect with the image processing unit and cooperate with the image capturing unit to make a gap exist between the plurality of single cyanines.

在一較佳實施例中,該影像擷取單元、該影像處理單元以及該等級判斷單元係以函式庫、變數或運算元之形式而被編輯為至少一應用程式,進而被建立在該茶菁等級鑑別裝置100的一微處理器之中。 In a preferred embodiment, the image capture unit, the image processing unit, and the grade judging unit are compiled into at least one application program in the form of a library, variables or operands, and then built in a microprocessor of the cyanine grade identification device 100 .

相較習知技術,本發明藉由人工智慧對一批次茶菁影像進行影像處理取得對應複數單一茶菁的複數單一茶菁訊息、茶菁部位訊息;接著將該茶菁部位訊息進行判斷以確認每一個茶菁的等級以及評鑑出該批次茶菁的等級。 Compared with the conventional technology, the present invention uses artificial intelligence to perform image processing on a batch of cyanine images to obtain multiple single cyanine information and cyanine part information corresponding to multiple single cyanine; then judge the cyanine part information to confirm the grade of each cyanine and evaluate the grade of the batch of cyanine.

100:茶菁等級鑑別裝置 100: Cyanine level identification device

110:影像擷取單元 110: image capture unit

120:影像處理單元 120: Image processing unit

130:等級判斷單元 130: Level Judgment Unit

140:作動單元 140: Action unit

S01-S09:步驟 S01-S09: Steps

圖1,繪示根據本發明的茶菁等級鑑別方法的第一流程圖;圖2,繪示根據本發明的茶菁等級鑑別方法的第二流程圖;圖3,繪示根據本發明的茶菁等級鑑別方法的第三流程圖;圖4,繪示根據本發明中用於深度學習演算的人為判斷準則;圖5,繪示一批次茶菁影像的原始影像及對應複數單一茶菁訊息的區塊影像。 Fig. 1 shows the first flow chart of the cyanine level identification method according to the present invention; Fig. 2 shows the second flow chart of the cyanine level identification method according to the present invention; Fig. 3 shows the third flow chart of the cyanine level identification method according to the present invention; Fig. 4 shows the artificial judgment criterion used in deep learning calculation according to the present invention;

圖6,繪示圖4中的一單一茶菁訊息的區塊分割結果圖;圖7,繪示根據本發明的茶菁等級鑑別方法的應用程式實際操作圖A(單一茶菁/批次茶菁等級鑑別結果) Fig. 6 shows the block segmentation results of a single cyanine message in Fig. 4; Fig. 7 shows the actual operation diagram A of the application program of the cyanine grade identification method according to the present invention (single cyanine/batch cyanine grade identification result)

圖8,繪示根據本發明的茶菁等級鑑別方法的應用程式實際操作圖B(單一茶菁/批次茶菁等級準則);及圖9,繪示本發明的茶菁等級鑑別裝置的示意圖。 Fig. 8 shows the actual operation diagram B of the application program of the cyanine grade identification method according to the present invention (single cyanine/batch cyanine grade criterion); and Fig. 9 shows a schematic diagram of the cyanine grade identification device of the present invention.

以下各實施例的說明是參考圖式,用以說明本發明可用以實施的特定實施例。本發明所提到的方向用語,例如「上」、「下」、「前」、「後」、「左」、「右」、「內」、「外」、「側面」等,僅是參考圖式的方向。因此,使用的方向用語是用以說明及理解本發明,而非用以限制本發明。 The following descriptions of the various embodiments refer to the drawings to illustrate specific embodiments in which the present invention can be implemented. The directional terms mentioned in the present invention, such as "upper", "lower", "front", "rear", "left", "right", "inner", "outer", "side", etc., are only referring to the directions of the drawings. Therefore, the directional terms used are used to illustrate and understand the present invention, but not to limit the present invention.

深度學習是機器學習中一種基於對資料進行表徵學習的演算法。觀測值(例如一幅圖像)可以使用多種方式來表示,如每個像素強度值的向量,或者更抽象地表示成一系列邊、特定形狀的區域等。而使用某些特定的表示方法更容易從實例中學習任務(例如,臉部辨識或面部表情辨識)。深度學習的好處是用非監督式或半監督式的特徵學習和分層特徵提取高效演算法來替代手工取得特徵。 Deep learning is an algorithm based on representational learning of data in machine learning. Observations (such as an image) can be represented in a variety of ways, such as a vector of intensity values for each pixel, or more abstractly as a series of edges, regions of a specific shape, etc. Whereas it is easier to learn tasks from examples (e.g., face recognition or facial expression recognition) using certain representations. The advantage of deep learning is to use unsupervised or semi-supervised feature learning and hierarchical feature extraction efficient algorithms to replace manual feature acquisition.

表徵學習的目標是尋求更好的表示方法並建立更好的模型來從大規模未標記資料中學習這些表示方法。表示方法來自神經科學,並鬆散地建立在類似神經系統中的資訊處理和對通信模式的理解上,如神經編碼,試圖定義拉動神經元的反應之間的關係以及大腦中的神經元的電活動之間的關係。 The goal of representation learning is to seek better representations and build better models to learn these representations from large-scale unlabeled data. Representation methods come from neuroscience, and are loosely based on information processing in similar nervous systems and an understanding of communication patterns, such as neural codes, which attempt to define the relationship between the responses that pull neurons and the relationship between the electrical activity of neurons in the brain.

至今已有數種深度學習框架,如深度神經網路、卷積神經網路和深度置信網路和迴圈神經網路已被應用在電腦視覺、語音辨識、自然語言處理、音訊辨識與生物資訊學等領域並取得了極 好的效果。 So far, there have been several deep learning frameworks, such as deep neural network, convolutional neural network, deep belief network and loop neural network, which have been applied in the fields of computer vision, speech recognition, natural language processing, audio recognition and bioinformatics, and have achieved great results. Good results.

請參考圖1,繪示根據本發明的茶菁等級鑑別方法的流程圖。首先,執行步驟S01,擷取包含一批次茶菁的一批次茶菁影像,其中該批次茶菁包含複數單一茶菁;接著,執行步驟S02,由該批次茶菁影像進行物件偵測(Object Detection)作業產生分別對應該複數單一茶菁的複數單一茶菁訊息;接著,執行步驟S03,由每一個該複數單一茶菁訊息進行區塊分割(Segmentation)作業產生一茶菁部位訊息;接著,執行步驟S04,將該茶菁部位訊息以一單一茶菁等級準則進行判斷以產生對應每一該複數單一茶菁的一單一茶菁等級訊息。通過本發明的茶菁等級鑑別方法,可以將一張具有複數茶菁的影像經由區塊分割作業得到多個單一茶菁訊息(即影像),接著再利用區塊分割作業將每一個單一茶菁訊息進行區塊分割得到一茶菁部位訊息(即單一茶菁中的成熟葉Mature Leaf、老葉Old Leaf、心芽Bud、嫩葉Fresh Leaf、魚葉Fish Leaf、紅梗Red Stalk及節間長Internode Length等訊息)。最後經由一單一茶菁等級準則對該單一茶菁進行評定產生一單一茶菁等級訊息。舉例來說,單一茶菁等級可以分為A-C三級(A最好、C最差)。 Please refer to FIG. 1 , which shows a flow chart of the method for identifying the grade of cyanine according to the present invention. Firstly, step S01 is executed to capture a batch of cyanine images including a batch of cyanine, wherein the batch of cyanine contains a plurality of single cyanine; then, step S02 is executed to perform object detection (Object Detection) operation on the batch of cyanine images to generate a plurality of single cyanine messages respectively corresponding to the plurality of single cyanine; then, step S03 is executed to perform block segmentation (Segmentation) operation on each of the plurality of single cyanine information to generate a cyanine part message; then, execute step S 04. Judging the cyanine part information according to a single cyanine level criterion to generate a single cyanine level information corresponding to each of the plurality of single cyanine levels. Through the cyanine level identification method of the present invention, a plurality of cyanine information (i.e. images) can be obtained through block segmentation from an image with multiple cyanine, and then each single cyanine information is segmented into blocks to obtain a cyanine part information (i.e. Mature Leaf, Old Leaf, Bud, Fresh Leaf, Fish Leaf, Red Stalk and Internode Length in a single cyanine). Finally, a single cyanine grade information is generated by evaluating the single cyanine through a single cyanine grade criterion. For example, a single cyanine grade can be divided into three grades A-C (A is the best, C is the worst).

詳細地,該單一茶菁訊息及該茶菁部位訊息均是通過人工智慧進行自動運作,較佳地,可以採用卷積神經網路(Convolutional Neural Network,CNN),又或者如本發明採用快速區域卷積神經網路(Faster Region-based Convolutional Neural Networks,Faster R-CNN)及遮罩區域卷積神經網路(Mask Region- based Convolutional Neural Networks,Mask R-CNN)作為演算法進行深度學習(Deep Learning)。 Specifically, the single cyanine information and the cyanine part information are automatically operated by artificial intelligence. Preferably, a convolutional neural network (Convolutional Neural Network, CNN) can be used, or as in the present invention, a fast region-based convolutional neural network (Faster Region-based Convolutional Neural Networks, Faster R-CNN) and a mask region convolutional neural network (Mask Region-based based Convolutional Neural Networks, Mask R-CNN) as an algorithm for deep learning (Deep Learning).

CNN是一種專用的前饋神經網路,用於處理具有已知、格柵狀拓樸的資料,諸如影像資料。因此,CNN通常被用於計算視覺及影像識別應用。CNN輸入層中的節點被組織為一組「過濾器」(特徵檢測器靈感來自於視網膜中發現的接受域),並且每組過濾器的輸出被傳遞給網路的接續層中的節點。用於CNN的計算包括將卷積數學運算應用於每個過濾器以產生該過濾器的輸出。卷積是一種專門的數學運算,由兩個函數執行以產生第三個函數,其為兩個原始函數之一的修改版本。在卷積網路術語中,卷積的第一函數可被稱為輸入,而第二函數可被稱為卷積核(Convolution Kernel)。該輸出可被稱為特徵圖(Feature Map)。例如,卷積層的輸入可以是定義輸入影像的各種色彩分量的資料的多維矩陣。卷積核可以是參數的多維矩陣,其中透過神經網路的訓練過程來調整參數。 A CNN is a specialized feed-forward neural network for processing data with a known, grid-like topology, such as image data. Therefore, CNNs are often used in computational vision and image recognition applications. Nodes in the input layer of a CNN are organized as a set of "filters" (feature detectors inspired by receptive fields found in the retina), and the output of each set of filters is passed to nodes in subsequent layers of the network. Computation for CNNs involves applying convolution mathematical operations to each filter to produce that filter's output. Convolution is a specialized mathematical operation performed by two functions to produce a third function that is a modified version of one of the two original functions. In convolutional network terminology, the first function of convolution can be called input, and the second function can be called convolution kernel (Convolution Kernel). This output may be referred to as a Feature Map. For example, the input to a convolutional layer may be a multidimensional matrix of data defining the various color components of the input image. The convolution kernel can be a multi-dimensional matrix of parameters, where the parameters are adjusted through the training process of the neural network.

需特別注意的是,雖然本發明中是採用卷積神經網路作為主要的深度學習基礎,但是並不限制不能使用其他深度學習的人工智慧工具。 It should be noted that although the convolutional neural network is used as the main deep learning basis in the present invention, it does not limit the use of other artificial intelligence tools for deep learning.

需要特別說明的是,本發明所處理的茶菁為未經加工前的新鮮茶葉。 It should be noted that the cyanine treated in the present invention is unprocessed fresh tea leaves.

圖2,繪示根據本發明的茶菁等級鑑別方法的第二流程圖。本流程圖與第一流程圖的差異如下:在步驟S04之後,接 著,執行步驟S05,融合每一該複數單一茶菁的該單一茶菁等級訊息產生一批次茶菁訊息;接著,執行步驟S06,將該批次茶菁訊息以一批次茶菁等級準則進行判斷以產生對應該批次茶菁的一批次茶菁等級訊息。由步驟S04得到的多個該單一茶菁等級訊息產生一批次茶菁訊息再經由一批次茶菁等級準則對該批次茶菁進行評定產生一批次茶菁等級訊息。舉例來說,批次茶菁等級可以分為1-3級(1級最好、3級最差)。 Fig. 2 shows the second flowchart of the method for identifying the grade of cyanine according to the present invention. The difference between this flow chart and the first flow chart is as follows: after step S04, then Next, step S05 is executed to generate a batch of cyanine information by fusing the single cyanine grade information of each of the plurality of single cyanine; then, step S06 is executed to judge the batch of cyanine information according to a batch of cyanine grade criteria to generate a batch of cyanine grade information corresponding to the batch of cyanine. A batch of cyanine information is generated from the plurality of single cyanine grade information obtained in step S04 , and then a batch of cyanine grade information is generated by evaluating the batch of cyanine grade information through a batch of cyanine grade information. For example, the grade of a batch of cyanine can be divided into grades 1-3 (grade 1 is the best, grade 3 is the worst).

請參考圖3。圖3,繪示根據本發明的茶菁等級鑑別方法的第三流程圖;本流程圖與第二流程圖的差異如下:在步驟S01之前依序執行步驟S07,擷取至少一訓練用影像;接著,執行步驟S08,以該至少一訓練用影像進行該單一茶菁部位之深度學習演算;接著,執行步驟S09,計算得到該單一茶菁等級準則。學習的方式如下:對該至少一訓練用影像進行該單一茶菁部位的定義,請參考圖4,依序由紅梗、魚葉、長度、葉片數量、是否都是老葉為基準進行A-C級的判定。經過上述的訓練後,便會得到該單一茶菁等級準則。 Please refer to Figure 3. Fig. 3 shows the third flow chart of the cyanine level identification method according to the present invention; the difference between this flow chart and the second flow chart is as follows: step S07 is executed sequentially before step S01, and at least one training image is captured; then, step S08 is executed, and the deep learning calculation of the single cyanine part is performed with the at least one training image; then, step S09 is executed, and the single cyanine level criterion is calculated. The learning method is as follows: define the single cyanine part of the at least one training image, please refer to Figure 4, and make A-C judgments based on red stems, fish leaves, length, number of leaves, and whether they are all old leaves. After the above-mentioned training, the single cyanine level criterion will be obtained.

詳細地,本發明中採用了總共915影像(包含733張訓練用影像以及182張測試用影像),請參考表1。在733張訓練用影像中有3718個單一茶菁定義為A級、6434個單一茶菁定義為B級、6215個單一茶菁定義為C級;在182張測試用影像中有1081個單一茶菁定義為A級、1294個單一茶菁定義為B級、1623個單一茶菁定義為C級。 In detail, a total of 915 images (including 733 images for training and 182 images for testing) are used in the present invention, please refer to Table 1. In 733 images for training, 3718 single cyanines were defined as grade A, 6434 single cyanines were defined as grade B, and 6215 single cyanines were defined as grade C; in 182 images for testing, 1081 single cyanines were defined as grade A, 1294 single cyanines were defined as grade B, and 1623 single cyanines were defined as grade C.

Figure 111128333-A0305-02-0011-1
Figure 111128333-A0305-02-0011-1

進一步,此處的訓練方式可以季節(春、夏、六月白、秋、冬)、地區、海拔、茶菁種類甚至不同農家的茶菁作為不同的該單一茶菁等級準則的基準,在建立標準後,對該至少一訓練用影像進行該單一茶菁部位的定義,便能建立深度學習的模型、進而取得單一茶菁的等級/批次茶菁的等級。 Further, in the training method here, seasons (spring, summer, June white, autumn, winter), region, altitude, cyanine species, and even cyanine species from different farms can be used as benchmarks for different single cyanine level criteria. After the standard is established, the single cyanine part is defined on the at least one training image, and a deep learning model can be established to obtain the single cyanine grade/batch of cyanine grade.

需特別注意的是,本申請中通過採用半監督式學習(Semi-supervised Learning)以及監督式學習(Supervised Learning)的方式產生該單一茶菁等級準則/該批次茶菁等級準則。 It should be noted that in this application, the single cyanine level criterion/the batch cyanine level criterion is generated by using semi-supervised learning and supervised learning.

圖4,繪示根據本發明中用於深度學習演算的人為判斷準則。同時參考圖1-3,在特定情況下(豐收/歉收/春茶/冬茶等...),可能會需要將分級的標準提高/降低,還可以執行一步驟:根據至少一參考訊息調整該單一茶菁等級準則及/或該批次茶菁等級訊息。如此一來,可以在豐收/歉收的時候維持一定數量的A級單一茶菁或者一級批次茶菁。可以經由調整該單一茶菁等級準則及/或該批次茶菁等級訊息而不需要以人工方式重新對該單一茶菁進行分級。換言之,該至少一參考訊息是包含茶葉種類、季節、區域、甚至於產量都可以作為調整該單一茶菁等級準則及/或該批次茶菁等級訊息的依據。 FIG. 4 illustrates human judgment criteria used in deep learning algorithms according to the present invention. Referring to Figures 1-3 at the same time, under certain circumstances (harvest/bad harvest/spring tea/winter tea, etc.), it may be necessary to increase/decrease the grading standard, and a step can also be performed: adjusting the single cyanine grade criterion and/or the batch of cyanine grade information according to at least one reference information. In this way, a certain amount of A-grade single cyanine or a first-class batch of cyanine can be maintained during harvest/poor harvest. The single cyanine can be manually re-graded by adjusting the single cyanine grade criterion and/or the batch cyanine grade information. In other words, the at least one reference information includes tea type, season, region, and even yield, which can be used as a basis for adjusting the single cyanine grade criterion and/or the batch of cyanine grade information.

詳細地,該單一茶菁等級準則是由人工進行定義,如圖4中的標準就是一個經由專家學者定義出來的單一茶菁分級標準。 In detail, the single cyanine grading criterion is manually defined, for example, the standard shown in Figure 4 is a single cyanine grading standard defined by experts and scholars.

較佳地,還可以執行步驟,將該批次茶菁放置至少一比例尺模版上。如此一來,可以較輕易地確認茶菁的尺寸。 Preferably, the step of placing the batch of cyanine on at least one scale template can also be performed. In this way, the size of the cyanine can be confirmed more easily.

較佳地,還可以執行步驟,使該複數單一茶菁之間存在間隙。如此一來,能夠使物件偵測作業更為準確。 Preferably, a step may also be performed such that gaps exist between the plurality of single cyanines. In this way, the object detection operation can be made more accurate.

圖5,繪示一批次茶菁影像的原始影像及對應複數單一茶菁訊息的區塊影像。此處的茶菁為光輝茶廠(烏龍茶場)於民國2021年3月27日採收的台茶12號。可以得知經由物件偵測作業後將單一茶菁以方框框選及經由區塊分割作業後將其單一茶菁等級訊息標示在旁(A-C)。 FIG. 5 shows the original images of a batch of cyanine images and block images corresponding to a plurality of single cyanine information. The green tea here is Taicha No. 12 harvested by Guanghui Tea Factory (Oolong Tea Farm) on March 27, 2021 in the Republic of China. It can be known that after the object detection operation, a single cyanine is selected with a box and after the block division operation, its single cyanine grade information is marked beside it (A-C).

請參考圖6,繪示圖4中的一單一茶菁訊息的區塊分割結果圖。可以經由左側輸入使用者(茶廠)、季節、茶種、日期取得一單一茶菁等級準則及/或一批次茶菁等級訊息,進而得到右邊的茶菁部位資訊(心芽:1;嫩葉:1;成熟葉:5;老葉:0;魚葉:0;紅梗:1;節間長:4.66cm)。 Please refer to FIG. 6 , which shows a block segmentation result diagram of a single cyanine message in FIG. 4 . By inputting the user (tea factory), season, tea species, and date on the left side, you can obtain a single cyanine level criterion and/or a batch of cyanine level information, and then obtain the information on the cyanine part on the right (heart bud: 1; young leaf: 1; mature leaf: 5; old leaf: 0; fish leaf: 0; red stem: 1; internode length: 4.66cm).

圖7,繪示根據本發明的茶菁等級鑑別方法的應用程式實際操作圖A(單一茶菁/批次茶菁等級鑑別結果)。跟圖6的差異在於,圖7還包括一批次茶菁訊息及一批次茶菁等級訊息。該批次茶菁訊息為A級有4個、B級有5個、C級有20個、總共有29個單一茶菁訊息等。該批次茶菁等級訊息顯示該批次茶菁為3級。 Fig. 7 shows the actual operation diagram A of the application program of the cyanine grade identification method according to the present invention (identification result of a single cyanine/batch cyanine grade). The difference from FIG. 6 is that FIG. 7 also includes a batch of cyanine information and a batch of cyanine grade information. This batch of cyanine information includes 4 pieces of A grade, 5 pieces of B grade, 20 pieces of C grade, and a total of 29 single cyanine pieces. The grade information of this batch of cyanine shows that this batch of cyanine is grade 3.

本發明利用影像處理結合深度學習演算法帶來現有技術所無法完成的技術功效。利用上述的卷積神經網路對每一該批次茶菁影像進行物件偵測,將每一單一茶菁的影像獨立出來;接著進行區塊分割將單一茶菁中的不同部位(即上述的茶菁部位資訊)。當然可以通過電腦自行進行物件偵測及區塊分割作業;較佳地,本發明採用該至少一訓練用影像,對物件偵測及區塊分割作業進行訓練,可以讓判定結果大幅度提升。 The present invention uses image processing combined with deep learning algorithms to bring technical effects that cannot be achieved by the prior art. Using the above-mentioned convolutional neural network to perform object detection on each batch of cyanine images, and separate the images of each single cyanine; then perform block segmentation to separate different parts of a single cyanine (ie, the above-mentioned cyanine part information). Of course, the object detection and block segmentation operations can be performed by the computer itself; preferably, the present invention uses the at least one training image to train the object detection and block segmentation operations, which can greatly improve the judgment result.

參考圖8,繪示根據本發明的茶菁等級鑑別方法的應用程式實際操作圖B(單一茶菁/批次茶菁等級準則)。左側為單一茶菁等級準則,可以根據不同情況對任一批次的茶菁進行單一茶菁等級準則的調整。右側為批次茶菁等級準則,可以根據不同情況對任一批次的茶菁進行批次茶菁等級準則的調整。需特別注意的是,圖8與圖4中的參數限制條件均是可以依照該至少一參考訊息進而調整該單一茶菁等級準則及/或該批次茶菁等級準則 Referring to FIG. 8 , it shows the actual operation diagram B of the application program of the cyanine grade identification method according to the present invention (single cyanine/batch cyanine grade criterion). The single cyanine grade criterion is on the left, and the single cyanine grade criterion can be adjusted for any batch of cyanine according to different situations. The right side is the batch cyanine level criterion, and the batch cyanine level criterion can be adjusted for any batch of cyanine according to different situations. It should be noted that the parameter constraints in FIG. 8 and FIG. 4 can be adjusted according to the at least one reference information to adjust the single cyanine grade criterion and/or the batch cyanine grade criterion

請參考圖9,繪示本發明的茶菁等級鑑別裝置100的示意圖。請同時參考圖1-8,該茶菁等級鑑別裝置100是用於執行上述茶菁等級鑑別方法,其包含一影像擷取單元110、一影像處理單元120以及一等級判斷單元130。圖9中是將一批次茶菁放於一輸送帶上進行連續式的鑑別作業。該影像擷取單元110用於擷取該批次茶菁影像。該影像處理單元120用於與該影像擷取單元110電氣連接且處理該批次茶菁影像並得到該複數單一茶菁訊息及該茶菁部位訊息。該等級判斷單元130用於與該影像處理單元120電氣連接且產生 該單一茶菁等級訊息。較佳地,該等級判斷單元130在計算完該批次茶菁影像得到複數單一茶菁的該單一茶菁等級訊息後,也可會融合該複數單一茶菁的該單一茶菁等級訊息得到一批次茶菁訊息,最後。將該批次茶菁訊息以一批次茶菁等級準則進行判斷以產生對應該批次茶菁的一批次茶菁等級訊息。 Please refer to FIG. 9 , which is a schematic diagram of a cyanine level identification device 100 of the present invention. Please refer to FIGS. 1-8 at the same time. The cyanine level identification device 100 is used to implement the above-mentioned cyanine level identification method, which includes an image capture unit 110 , an image processing unit 120 and a level determination unit 130 . Among Fig. 9, put a batch of tea greens on a conveyer belt and carry out continuous identification operation. The image capture unit 110 is used to capture the batch of cyanine images. The image processing unit 120 is used to electrically connect with the image capture unit 110 and process the batch of cyanine images to obtain the plurality of single cyanine information and the cyanine part information. The level judging unit 130 is used to electrically connect with the image processing unit 120 and generate The single cyanine grade information. Preferably, after calculating the batch of cyanine images to obtain the single cyanine grade information of the plurality of single cyanines, the grade judging unit 130 may also fuse the single cyanine grade information of the plurality of single cyanines to obtain a batch of cyanine information, finally. The batch of cyanine information is judged by a batch of cyanine grade criteria to generate a batch of cyanine grade information corresponding to the batch of cyanine.

需要特別注意的是,該影像擷取單元110、該影像處理單元120以及該等級判斷單元130係以函式庫、變數或運算元之形式而被編輯為至少一應用程式,進而被建立在該茶菁等級鑑別裝置100的一微處理器之中。 It should be noted that the image capturing unit 110 , the image processing unit 120 and the grade judging unit 130 are compiled into at least one application program in the form of a library, variables or operands, and then built in a microprocessor of the cyanine grade identification device 100 .

較佳地,該茶菁等級鑑別裝置100還包括一作動單元140,用以與該影像處理單元120電氣連接且配合該影像擷取單元120使該複數單一茶菁之間存在間隙。其中該作動單元140可以是震動件或其他機構件。通過使該輸送帶震動或者用其他機械方式使間隙出現避免該影像處理單元120產生誤判(複數單一茶菁視為一個)。 Preferably, the cyanine grade identification device 100 further includes an actuating unit 140 for electrically connecting with the image processing unit 120 and cooperating with the image capturing unit 120 to make gaps exist between the plurality of single cyanines. The actuating unit 140 may be a vibrating element or other mechanical components. Misjudgment by the image processing unit 120 is avoided by vibrating the conveyer belt or using other mechanical means to make a gap (a plurality of single cyanines are regarded as one).

相較習知技術,本發明藉由人工智慧對一批次茶菁影像進行影像處理取得對應複數單一茶菁的複數單一茶菁訊息、茶菁部位訊息;接著將該茶菁部位訊息進行判斷以確認每一個茶菁的等級以及評鑑出該批次茶菁的等級。 Compared with the conventional technology, the present invention uses artificial intelligence to perform image processing on a batch of cyanine images to obtain multiple single cyanine information and cyanine part information corresponding to multiple single cyanine; then judge the cyanine part information to confirm the grade of each cyanine and evaluate the grade of the batch of cyanine.

以上僅是本發明的較佳實施方式,應當指出,對於熟悉本技術領域的技術人員,在不脫離本發明原理的前提下,還可以做出若干改進和潤飾,這些改進和潤飾也應視為本發明的保護範圍。 The above are only preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, some improvements and modifications can also be made, and these improvements and modifications should also be considered as protection scope of the present invention.

S01-S04:步驟 S01-S04: Steps

Claims (10)

一種利用電腦系統的茶菁等級鑑別方法,包括:擷取包含一批次茶菁的一批次茶菁影像,其中該批次茶菁包含複數單一茶菁;由該批次茶菁影像進行物件偵測作業產生分別對應該複數單一茶菁的複數單一茶菁訊息;由每一個該複數單一茶菁訊息進行區塊分割作業產生一茶菁部位訊息;及將該茶菁部位訊息以一單一茶菁等級準則進行判斷以產生對應每一該複數單一茶菁的一單一茶菁等級訊息;其中該茶菁部位訊息包括該每一個複數單一茶菁的成熟葉數量、老葉數量、心芽數量、嫩葉數量、魚葉數量、紅梗有無及節間長。 A method for identifying cyanine levels using a computer system, comprising: capturing a batch of cyanine images containing a batch of cyanine, wherein the batch of cyanine contains a plurality of single cyanine; performing an object detection operation on the batch of cyanine images to generate a plurality of single cyanine information corresponding to the plurality of single cyanine; performing a block division operation on each of the plurality of single cyanine information to generate a cyanine part information; A single cyanine level information; wherein the cyanine part information includes the number of mature leaves, the number of old leaves, the number of heart buds, the number of young leaves, the number of fish leaves, the presence or absence of red stems and the length of internodes of each of the plurality of single cyanines. 如請求項1所述的茶菁等級鑑別方法,其中還包含:擷取至少一訓練用影像;以該至少一訓練用影像進行茶菁深度學習演算;及計算得到該單一茶菁等級準則。 The method for identifying cyanine levels according to claim 1, further comprising: capturing at least one training image; performing cyanine deep learning calculations with the at least one training image; and calculating the single cyanine level criterion. 如請求項1所述的茶菁等級鑑別方法,其中該區塊分割作業係採用卷積神經網路的方式。 The method for discriminating cyanine grades as claimed in claim 1, wherein the block segmentation operation adopts a convolutional neural network. 如請求項1所述的茶菁等級鑑別方法,其中還包含:融合每一該複數單一茶菁的該單一茶菁等級訊息產生一批次茶菁訊息;及將該批次茶菁訊息以一批次茶菁等級準則進行判斷以產生對應該批次茶菁的一批次茶菁等級訊息。 The method for identifying the grade of cyanine according to claim 1, further comprising: fusing the single cyanine grade information of each of the plurality of single cyanine to generate a batch of cyanine information; and judging the batch of cyanine information based on a batch of cyanine grade criteria to generate a batch of cyanine grade information corresponding to the batch of cyanine. 如請求項4所述的茶菁等級鑑別方法,其中還包含:根據至少一參考訊息調整該單一茶菁等級準則及/或該批次茶菁等級準則。 The method for identifying cyanine grades according to claim 4, further comprising: adjusting the single cyanine grade criterion and/or the batch cyanine grade criterion according to at least one reference message. 如請求項1所述的茶菁等級鑑別方法,其中還包含:將該批次茶菁放置至少一比例尺模版上。 The method for identifying the grade of cyanine according to claim 1, further comprising: placing the batch of cyanine on at least one scale template. 如請求項1所述的茶菁等級鑑別方法,其中還包含:使該複數單一茶菁之間存在間隙。 The method for identifying the grade of cyanine according to claim 1, further comprising: making gaps exist between the plurality of single cyanine. 一種茶菁等級鑑別裝置,其係利用如請求項1-7任一項所述的茶菁等級鑑別方法,其包含:一影像擷取單元,用於擷取該批次茶菁影像;一影像處理單元,與該影像擷取單元電氣連接且用於處理該批次茶菁影像並得到該複數單一茶菁訊息及該茶菁部位訊息;一等級判斷單元,與該影像處理單元電氣連接且用於產生該單一茶菁等級訊息;其中該茶菁部位訊息包括該每一個複數單一茶菁的成熟葉數量、老葉數量、心芽數量、嫩葉數量、魚葉數量、紅梗有無及節間長。 A cyanine level identification device, which uses the cyanine level identification method as described in any one of claims 1-7, comprising: an image capture unit, used to capture the batch of cyanine images; an image processing unit, electrically connected to the image capture unit and used to process the batch of cyanine images and obtain the plurality of single cyanine information and the information of the cyanine part; a grade judgment unit, electrically connected to the image processing unit and used to generate the single cyanine level information; The number of mature leaves, the number of old leaves, the number of heart buds, the number of young leaves, the number of fish leaves, the presence or absence of red stems and the length of internodes of a single tea cyanine. 如請求項8所述的茶菁等級鑑別裝置,還包含一作動單元,用以與該影像處理單元電氣連接且配合該影像擷取單元使該複數單一茶菁之間存在間隙。 The cyanine grade identification device as claimed in claim 8 further comprises an actuating unit, which is used to electrically connect with the image processing unit and cooperate with the image capturing unit to make a gap exist between the plurality of single cyanines. 如請求項9所述的茶菁等級鑑別裝置,其中該影像擷取單元、該影像處理單元以及該等級判斷單元係以函式庫、變數或運算元之形式而被編輯為至少一應用程式,進而被建立在該茶菁等級鑑別裝置的一微處理器之中。 The cyanine level identification device as described in claim 9, wherein the image capture unit, the image processing unit and the level judgment unit are compiled into at least one application program in the form of a library, variable or operator, and then built in a microprocessor of the cyanine level identification device.
TW111128333A 2022-07-28 2022-07-28 Fresh tea leaf grading method and device thereof TWI808845B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW111128333A TWI808845B (en) 2022-07-28 2022-07-28 Fresh tea leaf grading method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW111128333A TWI808845B (en) 2022-07-28 2022-07-28 Fresh tea leaf grading method and device thereof

Publications (2)

Publication Number Publication Date
TWI808845B true TWI808845B (en) 2023-07-11
TW202405750A TW202405750A (en) 2024-02-01

Family

ID=88149432

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111128333A TWI808845B (en) 2022-07-28 2022-07-28 Fresh tea leaf grading method and device thereof

Country Status (1)

Country Link
TW (1) TWI808845B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112085017A (en) * 2020-08-04 2020-12-15 中南民族大学 Tea tender shoot image segmentation method based on significance detection and Grabcut algorithm

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112085017A (en) * 2020-08-04 2020-12-15 中南民族大学 Tea tender shoot image segmentation method based on significance detection and Grabcut algorithm

Also Published As

Publication number Publication date
TW202405750A (en) 2024-02-01

Similar Documents

Publication Publication Date Title
Yu et al. Automatic grading of apples based on multi-features and weighted K-means clustering algorithm
Lu et al. Generative adversarial network based image augmentation for insect pest classification enhancement
CN110479636B (en) Method and device for automatically sorting tobacco leaves based on neural network
CN112990103B (en) String mining secondary positioning method based on machine vision
CN109344699A (en) Winter jujube disease recognition method based on depth of seam division convolutional neural networks
CN108764242A (en) Off-line Chinese Character discrimination body recognition methods based on deep layer convolutional neural networks
CN109101891A (en) A kind of rice pest detection system and its detection method merging artificial intelligence
Tumang Pests and diseases identification in mango using MATLAB
CN106846334A (en) Field corn plant recognition methods based on Support Vector data description
CN106803257A (en) The dividing method of scab in a kind of crop disease leaf image
Selvi et al. Weed detection in agricultural fields using deep learning process
CN110827273A (en) Tea disease detection method based on regional convolution neural network
CN112001370A (en) Crop pest and disease identification method and system
CN111783693A (en) Intelligent identification method of fruit and vegetable picking robot
CN109874584A (en) A kind of fruit tree growing way monitoring system based on deep learning convolutional neural networks
Al Haque et al. Cnn based automatic computer vision system for strain detection and quality identification of banana
TWI808845B (en) Fresh tea leaf grading method and device thereof
Patil Pomegranate fruit diseases detection using image processing techniques: a review
Murugeswari et al. Automated sugarcane disease detection using faster RCNN with an android application
KR102393265B1 (en) System for detecting pests of shiitake mushrooms
CN110517226B (en) Tobacco stem region extraction method based on bilateral filtering and multi-feature texture image fusion
CN116524279A (en) Artificial intelligent image recognition crop growth condition analysis method for digital agriculture
Kumar et al. Leaf Disease Detection Using Image Processing
CN110766053A (en) Corn seed production ear screening method and device based on double-path convolutional neural network
Islam et al. An approach to evaluate classifiers for automatic disease detection and classification of plant leaf