基于机器视觉技术的小米品质检测方法研究
Research on Detection Method of Millet Quality Based on Machine Vision Technology
DOI: 10.12677/CSA.2019.910206, PDF,    科研立项经费支持
作者: 闫朋涛, 王昆伦, 张学雨, 孙家亮, 张 旭*:大连工业大学机械工程与自动化学院,辽宁 大连;闫涛格:黄淮学院生物与食品工程学院,河南 驻马店
关键词: 机器视觉小米分级颜色特征支持向量机(SVM)特征选择检测识别Machine Vision Millet Grading Color Feature Support Vector Machine (SVM) Feature Selection Detection and Identification
摘要: 为实现小米品质的快速鉴评,以“豫谷18”新米和陈米为研究对象,利用工业相机采集出样本的RGB图像,通过图像处理裁剪出同样大小感兴趣区域(ROI)图像块。由于新米与陈米在颜色方面差异较大,为更好提取颜色特征,将RGB图像转换到HSV颜色空间并提取HSV颜色空间下ROI区域的色调(H)和饱和度(S)对应的中心矩特征。根据特征值的分布图,筛选出更易区分的特征,组成特征向量作为分类器的输入,建立基于支持向量机(SVM)的识别模型。通过留一校验方法进行模型的训练测试,结果表明,当选择饱和度(S)中心矩特征作为特征向量输入模型时,识别率达到95%,且耗时较少,可以应用于小米的品质检测。
Abstract: In order to study the rapid detection and identification of millet quality, taking the latest millet and aging millet of the “Yugu 18” as the research object, the RGB image of each sample is captured by an industrial camera, and the same size region of interest (ROI) image block is cropped by image processing. Since the latest millet and aging millet differ greatly in color, in order to extract the color features better, the RGB image is converted to the HSV color space and the central moment corresponding to the hue (H) and saturation (S) of the ROI region under the HSV color space is extracted. In terms of the eigenvalue distribution map, feature vectors with distinct features are selected as input of classifier, and a detection model based on support vector machine (SVM) is established. Training and testing the model by leave-one-out cross-validation method, the results show that when the center moment feature of saturation (S) is selected as the input model of eigenvector, the recognition rate can reach 95% and it takes less time, which can be applied to millet quality detection.
文章引用:闫朋涛, 王昆伦, 张学雨, 闫涛格, 孙家亮, 张旭. 基于机器视觉技术的小米品质检测方法研究[J]. 计算机科学与应用, 2019, 9(10): 1839-1846. https://doi.org/10.12677/CSA.2019.910206

参考文献

[1] 陈相艳. 我国小米加工产业现状及发展趋势[J]. 农产品加工(学刊), 2011(7): 131-133.
[2] 钱丽丽, 宋雪健, 类彦波, 王月, 左锋, 张丽媛. 近红外漫反射光谱技术对小米产地的快速检测[J]. 食品工业, 2018, 39(6): 257-261.
[3] 张敏, 刘辉. 基于主成分分析法的小米食用品质评价模型的建立[J]. 东北农业大学学报, 2011, 42(8): 7-12.
[4] 阎聪, 朱荣光, 黄昆鹏. 光学在线检测技术在食品品质检测中的应用[J]. 食品工业, 2018, 39(4): 292-296.
[5] 张琛, 房胜, 王风云, 等. 基于机器学习的免套袋苹果缺陷分级[J]. 河南农业科学, 2019, 48(4): 154-160.
[6] Yang, G.L., Luo, L., Feng, Y.Q., et al. (2014) Research of Navel Orange Defect and Color Detection Based on Machine Vision. Applied Mechanics and Materials, 513-517, 3442-3445. [Google Scholar] [CrossRef
[7] 张凯, 李振华, 郁豹, 胡安翔. 基于机器视觉的花生米品质分选方法[J]. 食品科技, 2019(5): 297-302.
[8] 李庆中, 张漫, 汪懋华. 基于遗传神经网络的苹果颜色实时分级方法[J]. 中国图象图形学报, 2000, 5(9): 71-76.
[9] Noordam, J.C., Otten, G.W., Timmermans, T.J.M., et al. (2000) High-Speed Potato Grading and Quality Inspection Based on a Color Vision System. Machine Vi-sion Applications in Industrial Inspection VIII, Volume 3966, 206-217. [Google Scholar] [CrossRef
[10] 张书慧, 陈晓光, 张晓梅, 等. 苹果、桃等农副产品品质检测与分级图像处理系统的研究[J]. 农业工程学报, 1999, 15(1): 201-204.
[11] 孙海峰, 王丽霞, 王玉文, 李文德. 小米陈化过程中脂肪氧合酶与黄色素变化特征的研究[J]. 中国粮油学报, 2008, 23(6): 93-97.
[12] 杨延兵, 管延安, 秦岭, 石慧, 王海莲, 张华文. 不同地区谷子小米黄色素含量与外观品质研究[J]. 中国粮油学报, 2012, 27(1): 14-19.
[13] 候蕊. 谷子脂氧合酶(LOX)与小米储藏过程中褪色关系的研究[D]: [硕士学位论文]. 晋中: 山西农业大学, 2016.
[14] 罗雪宁, 彭云发, 代希君, 等. 基于MATLAB的红枣图像处理研究[J]. 农机化研究, 2015, 37(3): 183-186.
[15] 徐贵力, 毛罕平, 李萍萍. 彩色图像颜色和纹理特征提取的应用算法[J]. 计算机工程, 2002, 28(6): 25-27.
[16] 王彦林. 基于HSV颜色特征图像检索算法在Matlab中的实现[J]. 电脑编程技巧与维护, 2013(16): 86-87.
[17] Li, B. (2009) Illumination-Independent Descriptors Using Color Moment Invariants. Optical En-gineering, 48, Article ID: 027005. [Google Scholar] [CrossRef
[18] 张铮. 精通Matlab数字图像处理与识别[M]. 北京: 人民邮电出版社, 2013.
[19] 姚峰林. 数字图像处理及在工程中的应用[M]. 北京: 北京理工大学出版社, 2014.
[20] Gonzalez, R.C., et al. 数字图像处理的MATLAB实现[M]. 北京: 清华大学出版社, 2013.
[21] Gonzalez, R., Woods, R. and Eddins, S. (2013) Digital Image Processing Using MATLAB. Electronic In-dustry Press, Beijing.
[22] 梁韶聪, 周明, 李安安. 基于步态能量图的KPCA和SVM的步态识别方法[J]. 计算机应用研究, 2010, 27(7): 2798-2800.
[23] 王蒙军. 唇读发声器中视觉信息的检测与处理[D]: [博士学位论文]. 天津: 天津大学, 2007.
[24] 徐爽, 何建国, 贺晓光, 等. 基于高光谱技术的长枣内外品质同时检测[J]. 光电子•激光, 2013(10): 1972-1976.