English

中国农机化学报

中国农机化学报 ›› 2022, Vol. 43 ›› Issue (4): 153-159.DOI: 10.13733/j.jcam.issn.20955553.2022.04.022

• • 上一篇    下一篇

基于机器视觉的金银花图像识别处理算法研究

郑如新1,孙青云1,肖国栋2   

  1. 1. 南京林业大学机械电子工程学院,南京市,210037; 2. 天津微深科技有限公司,天津市,300000
  • 出版日期:2022-04-15 发布日期:2022-04-24
  • 基金资助:
    教育部产学合作协同育人项目(202002276033)

Research on honeysuckle image recognition processing algorithm based on machine vision

Zheng Ruxin, Sun Qingyun, Xiao Guodong.   

  • Online:2022-04-15 Published:2022-04-24

摘要: 运用机器视觉和图像处理的方法可实现金银花的自动化采摘,提高采摘效率。首先通过摄像机对金银花进行图像采集,将采集到的金银花图像进行中值滤波处理,有效消除图中的噪音;然后对金银花图像进行RGB和HSV颜色分割,找出金银花与背景区分最明显的分量B;再对分量B进行阈值分割处理,设定阈值,将金银花从背景中提取出来,运用形态学运算,使图像更加饱满;最后运用Canny算法,对金银花图像进行边缘检测研究,通过对Canny算法进行改进,使之达到更好的边缘检测效果。结果表明:通过阈值分割的金银花识别率为79.17%,传统Canny算法识别率为66.67%,改进的Canny算法识别率为93.75%,能够满足后续金银花采摘机器人的实时作业要求。

关键词: 机器视觉, 图像处理, 金银花识别, Canny算法, 边缘检测

Abstract: The automatic picking of honeysuckle can be realized using the methods of machine vision and image processing, and the picking efficiency can be improved. Firstly, the image of the honeysuckle was collected by cameras, and the collected honeysuckle image was processed by a median filter to eliminate the noise in the image effectively. Then, RGB and HSV color segmentation were carried out on the honeysuckle image to find out the component B that distinguishes the honeysuckle from the background most obviously. Then the threshold segmentation of component B was processed, the threshold was set, the honeysuckle was extracted from the background, and the morphological operation was used to make the image fuller. Finally, the Canny algorithm was used to study the edge detection of honeysuckle images, and the Canny algorithm was improved to achieve a better edge detection effect. The results showed that the recognition rate of honeysuckle through threshold segmentation was 79.17%, the recognition rate of the traditional Canny algorithm was 66.67%, and the recognition rate of the improved Canny algorithm was 93.75%, which can meet the realtime operation requirements of subsequent honeysuckle picking robot.


Key words: machine vision, image processing, honeysuckle distinguish, Canny algorithm, edge detection

中图分类号: