研究了茶叶图像处理的关键技术和方法,包括茶叶图像的阈值变换、中值滤波、图像标记、边界轮廓跟踪等,解决了茶叶外形特征参数的快速准确提取和计算;设计了基于数字图像处理的茶叶外形特征检测软件,实现了茶叶图像的实时采集、图像预处理、特征参数提取等功能;最后运用该软件提取3种不同茶叶样品共108片茶叶图像的17项外形特征参数,并以其中6项参数作为BP神经网络的输入,建立不同茶叶样品与外形特征之间的BP神经网络预测模型,并对30片未知茶叶样本进行预测,鉴别准确率达到80%。
The key methods of tea image processing were studied, including threshold transforming, median filter, image mark and boundary following. These methods solved the problem of how to accurately extract and calculate the characteristic parameters of tea shape. The software for tea quality detection based on digital image was developed. The functions, such as collection of tea image, image processing and extraction of characteristic parameter, could be accomplished. Using the software, 17 shape characteristic parameters were collected from 108 pieces of three different kinds of tea. And 6 characteristic parameters were used to build the back propagation-artificial neural network (BP-ANN) model. The variety from thirty unknown samples were predicted by this model and the recognition rate of eighty percent was achieved.
[1] 蔡军. 我国茶叶出口现状及思考[J]. 中国茶叶, 2009, 31(2): 14-15.
[2] 李芸, 姚国伟, 李宁. 茶叶标准与技术性贸易壁垒[J]. 中国标准化, 2005(8): 23-24.
[3] Yu Huichun, Wang Jun, Yao Cong, et al. Quality grade identification of green tea using E-nose by CA and ANN[J]. Food Science and Technology, 2008, 41(7): 1268-1273.
[4] Ritaban Dutta E L, Hines J W, Gardner K R, et al. Tea quality prediction using a tin oxide-based electronic nose: an artificial intelligence approach[J]. Sensors and Actuators B, 2003, 94(2): 228-237.
[5] He Yong, Li Xiaoli, Deng Xunfei.Discrimination of varieties of tea using near infrared spectroscopy by principal component analysis and BP model[J]. Journal of Food Engineering, 2007, 79(4): 1238-1242.
[6] Wang Li-Fei, Lee Joo-Yeon, Chung Jin-Oh, et al. Discrimination of teas with different degree of fermentation by SPME-GC analysis of the characteristic volatile flavour compounds[J]. Food Chemistry, 2008, 109(1): 196-206.
[7] 刘洋, 卫洪春, 杜诚. VC++6.0在灰度数字图像增强处理中的应用[J]. 计算机与信息技术, 2006(9): 75-79.
[8] 魏煜, 朱善安. 最优阈值变换和轮廓跟踪在轮廓检测中的应用[J]. 计算机工程与应用, 2004(24): 88-90.
[9] 曾莹, 陈晓柱. VC++下的图像处理算法[J]. 电脑与电信, 2007(6): 61-62.
[10] 齐小明, 张录达,杜晓林, 等. PLS—BP法近红外光谱定量分析研究[J]. 光谱学与光谱分析, 2003, 23(5): 870-872.