
基于OpenCV的‘翠冠’梨多角度大小检测与分级
Multi-angle Volume Detection and Grading of ‘Cuiguan’ Pear Based on OpenCV
为提高‘翠冠’梨大小检测以及分级的智能化程度与效率,基于OpenCV机器视觉技术综合多角度进行‘翠冠’梨大小检测与分级研究。在自主构建的图像采集系统试验平台上多角度采集100个‘翠冠’梨图像作为试验样本,基于图像使用Python语言结合OpenCV计算机视觉库编程求解‘翠冠’梨单角度果实大小像素值,综合多角度对果实大小像素值进行测算,参照‘翠冠’梨福建省地方标准对其进行分级并与传统的果实质量分级法进行对比来验证分级的效果。试验结果表明,基于‘翠冠’梨图像采用机器视觉技术综合多角度来进行果实大小检测与分级是一种具有一定可行性地智能化分级方法,达到了97%的分级正确率。研究结果可为基于机器视觉的翠冠梨大小分级方法提供技术参考。
In order to improve the intelligence and efficiency of ‘Cuiguan’ pear size detection and grading, the research on ‘Cuiguan’ pear size detection and grading was conducted based on OpenCV machine vision technology from multiple perspectives. On the self-developed image acquisition system test platform, 100 images of ‘Cuiguan’ pear were collected from multiple angles as test samples. Based on the images, Python language and OpenCV computer vision library programming were used to solve the pixel values of the single angle size of ‘Cuiguan’ pear. Then the fruit size pixel values were calculated from multiple angles. To verify the effect of grading, ‘Cuiguan’ pear were graded according to the local standards of Fujian Province and compared with the traditional weight grading method. The test results show that using machine vision technology to detect and grade the fruit size from multiple angles based on the ‘Cuiguan’ pear image is an intelligent grading method with certain feasibility, reaching a grading accuracy of 97%. The research results can provide technical reference for the size grading method of ‘Cuiguan’ pear based on machine vision.
‘翠冠’梨 / 图像 / OpenCV / 分级 {{custom_keyword}} /
‘Cuiguan’ pear / image / OpenCV / grading {{custom_keyword}} /
表1 ‘翠冠’梨样本质量 |
样本号 | 质量/g | 样本号 | 质量/g |
---|---|---|---|
1 | 285.29 | 12 | 254.76 |
31 | 269.32 | 46 | 269.20 |
58 | 255.64 | 62 | 233.45 |
74 | 284.10 | 87 | 230.61 |
93 | 256.72 | 100 | 244.01 |
表2 ‘翠冠’梨试验样本等级评定 |
样本号 | 等级 | 样本号 | 等级 |
---|---|---|---|
1 | 特级 | 12 | 特级 |
31 | 特级 | 46 | 特级 |
58 | 特级 | 62 | 一级 |
74 | 特级 | 87 | 一级 |
93 | 特级 | 100 | 一级 |
表3 单角度‘翠冠’梨果实大小像素值 |
样本号 | 正上方 | 侧前方 | 右侧方 | 像素平均值/px | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
图像 | 像素值/px | 图像 | 像素值/px | 图像 | 像素值/px | |||||||||
1 | ![]() | 131708 | ![]() | 117560 | ![]() | 123450 | 124239 | |||||||
12 | ![]() | 120729 | ![]() | 109281 | ![]() | 111249 | 113753 | |||||||
31 | ![]() | 123326 | ![]() | 115864 | ![]() | 121601 | 120264 | |||||||
46 | ![]() | 124854 | ![]() | 112934 | ![]() | 116184 | 117990 | |||||||
58 | ![]() | 120000 | ![]() | 110209 | ![]() | 115199 | 115136 | |||||||
62 | ![]() | 111248 | ![]() | 102478 | ![]() | 104679 | 106135 | |||||||
74 | ![]() | 128252 | ![]() | 118527 | ![]() | 123610 | 123463 | |||||||
87 | ![]() | 103676 | ![]() | 100421 | ![]() | 104124 | 102740 | |||||||
93 | ![]() | 120145 | ![]() | 111641 | ![]() | 117394 | 116393 | |||||||
100 | ![]() | 109175 | ![]() | 105057 | ![]() | 108019 | 107417 |
表4 36号‘翠冠’梨样本果实大小像素值 |
方位 | 图像 | 像素值/px |
---|---|---|
正上方 | ![]() | 118850 |
侧前方 | ![]() | 108958 |
右侧方 | ![]() | 109414 |
表5 ‘翠冠’梨分级结果 |
样本号 | 基于图像 | 基于果实质量 | 样本号 | 基于图像 | 基于果实质量 |
---|---|---|---|---|---|
1 | 特级 | 特级 | 12 | 特级 | 特级 |
31 | 特级 | 特级 | 46 | 特级 | 特级 |
58 | 特级 | 特级 | 62 | 一级 | 一级 |
74 | 特级 | 特级 | 87 | 一级 | 一级 |
93 | 特级 | 特级 | 100 | 一级 | 一级 |
[1] |
盛宝龙, 蔺经, 程进, 等. 套袋对翠冠梨果实外观色泽及糖、酸含量的影响[J]. 江西农业大学学报, 2010, 32(4):705-709.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[2] |
杨晓平, 胡红菊, 田瑞, 等. 翠冠梨新梢与果实生长发育动态及相关性研究[J]. 湖北农业科学, 2009, 48(12):3050-3052.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[3] |
黄秀玲, 郑加强, 赵茂程. 水果分级支撑技术的研究进展[J]. 南京林业大学学报(自然科学版), 2007, 31(2):123-126.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[4] |
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[5] |
李江波, 黄文倩, 张保华, 等. 类球形水果表皮颜色变化校正方法研究[J]. 农业机械学报, 2014, 45(4):226-230.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[6] |
何文斌, 魏爱云, 明五一, 等. 基于机器视觉的水果品质检测综述[J]. 计算机工程与应用, 2020, 56(11):10-16.
随着经济的发展和消费水平的提升,消费者对水果的外观品质要求逐渐提高。目前,我国的水果分级主要依赖于人工与机械分级,存在分拣效率低、品质参差不齐的问题,很难满足消费者的需求。相对于传统的分级技术,机器视觉技术因具有高效、精确、非接触测量的优势,受到国内外学者的广泛关注。结合近年来国内外学者研究进展情况,对水果检测系统、图像去噪、图像分割技术以及特征提取做了详细介绍;对分类器识别算法进行了综合分析;阐述了基于机器视觉的水果分级研究现状及最新进展;并对未来可能发展趋势进行预测,为后续研究工作提供基础理论参考。
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[7] |
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[8] |
周海英, 化春键, 方程骏. 基于机器视觉的梨表面缺陷检测方法研究[J]. 计算机与数字工程, 2013, 41(9):1492-1494.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[9] |
田有文, 吴伟, 卢时铅, 等. 深度学习在水果品质检测与分级分类中的应用[J]. 食品科学, 2021, 42(19):260-270.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[10] |
杨再雄, 吴恋, 左建, 等. 基于人工智能的农产水果分级检测技术综述[J]. 科技创新与应用, 2021(22):41-43.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[11] |
崔巍, 高珏, 朱培逸, 等. 基于机器视觉的金桔大小分级研究[J]. 常熟理工学院学报(自然科学), 2012, 26(4):87-90.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[12] |
韩伟, 曾庆山. 基于计算机视觉的水果直径检测方法的研究[J]. 中国农机化, 2011(5):25-29.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[13] |
邓婉, 高珏, 朱培逸, 等. 基于机器视觉的水果的自动分级系统的设计[J]. 农产品学刊, 2012(10):154-156.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[14] |
胡发焕, 刘国平, 胡瑢华, 等. 基于机器视觉和支持向量机的脐橙品质分级检测[J]. 北京工业大学学报, 2014(11):1615-1620.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[15] |
李国进, 董第永, 陈双. 基于计算机视觉的芒果检测与分级研究[J]. 农机化研究, 2015(10):13-18.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[16] |
黄辰, 费继友. 基于图像特征融合的苹果在线分级方法[J]. 农业工程学报, 2017, 33(1):285-291.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[17] |
刘鸿飞, 黄敏敏, 赵旭东, 等. 基于机器视觉的温室番茄裂果检测[J]. 农业工程学报, 2018, 34(14):170-176.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[18] |
刘忠超, 盖晓华. 基于机器视觉和PLC的猕猴桃分级控制系统设计[J]. 中国农机化学报, 2020, 41(6):131-135.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[19] |
赵小霞, 李志强. 基于PLC和机器视觉的水果自动分级系统研究[J]. 农机化研究, 2021(8):75-79.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[20] |
杨小强. 机器视觉与PLC融合的自动分拣装置研究[J]. 农机化研究, 2022(2):237-240.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[21] |
饶剑, 吕自玉. 基于机器视觉的类球形水果外部品质分级方法研究[J]. 农机化研究, 2022(5):63-65.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[22] |
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[23] |
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[24] |
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[25] |
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[26] |
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[27] |
三明市经济作物技术推广站, 建宁县经济作物站, 宁化县经济作物站, 等. GB 35/760—2007,翠冠梨鲜果[S]. 福建: 福建省质量技术监督局, 2007:1-4.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[28] |
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[29] |
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[30] |
田有文, 吴伟, 卢时铅, 等. 深度学习在水果品质检测与分级分类中的应用[J]. 食品科学, 2021, 42(19):260-268.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[31] |
张正周, 李娟, 郑旗, 等. 计算机视觉技术在农产品加工业中的应用研究进展[J]. 农业与技术, 2014, 34(1):34-36.
{{custom_citation.content}}
{{custom_citation.annotation}}
|
[32] |
刘现, 杨航, 李健翔, 等. 基于图像的金桔重量预测方法研究[J]. 中国农学通报, 2022, 38(34):138-143.
为提高金桔重量检测的智能化程度,基于图像进行金桔重量预测研究。在自主构建的图像采集系统试验平台上采集600张金桔图像,基于图像使用Python语言结合OpenCV计算机视觉库编程求解金桔果实大小像素值,根据实际重量数据使用最小二乘法、线性法、多项式法等进行数据拟合,构建基于金桔图像的重量预测模型。试验结果表明,基于金桔图像构建数学模型对金桔的重量进行预测具有一定地可行性和科学研究价值,其中线性法的预测模型方程为y=7.27×10<sup>-6</sup>x+23.032,多项式法的预测模型方程为y=1.199×10<sup>-15</sup>x<sup>3</sup>-1.082×10<sup>-9</sup>x<sup>2</sup>+3.053×10<sup>-4</sup>x-2.773,最小二乘法的预测模型方程为y=2.564×10-8x(-9.688×10-6x2+2531870.247)。
{{custom_citation.content}}
{{custom_citation.annotation}}
|
{{custom_ref.label}} |
{{custom_citation.content}}
{{custom_citation.annotation}}
|
/
〈 |
|
〉 |