湖北农业科学 ›› 2021, Vol. 60 ›› Issue (20): 158-163.doi: 10.14088/j.cnki.issn0439-8114.2021.20.032

• 农业工程 • 上一篇    下一篇

复杂背景下茶树害虫图像计数算法研究

黄灿灿, 陈亚龙, 张伟, 蔡强   

  1. 浙江清华长三角研究院,浙江 嘉兴 314006
  • 收稿日期:2021-06-16 出版日期:2021-10-25 发布日期:2021-11-05
  • 通讯作者: 张 伟(1980-),男,山东沂南人,讲师,博士,主要从事物联网与智能硬件和农业智能装备研究。
  • 作者简介:黄灿灿(1986-),女,浙江龙游人,副研究员,硕士,主要从事现代化分析测试技术及科学仪器制造研究,(电话)18857372322(电子信箱)huangcancan0105@163.com。
  • 基金资助:
    浙江省公益技术研究计划(LGN19F020001)

Research on the algorithm counting tea pests by image in complex background

HUANG Can-can, CHEN Ya-long, ZHANG Wei, CAI Qiang   

  1. Yangtze Delta Region Institute of Tsinghua University,Jiaxing 314006,Zhejiang,China
  • Received:2021-06-16 Online:2021-10-25 Published:2021-11-05

摘要: 依托南方地区茶树田间常用的某型号捕虫设备,采集害虫样本图像,研究基于图像处理技术的害虫计数方法。为了提取样本图像中害虫区域图像,通过几种常见的分离背景方法的试验,如颜色直方图分割和灰度阈值分割,得出样本图像中害虫区域难以分离的原因,进而提出一种网格划分图像的处理方法,即将图像按10×10划分,对划分后的图像做处理以提取害虫区域,该方法能够将害虫区域从背景中完整分离出来;针对图像中害虫区域存在粘连影响害虫计数准确率的问题,提出基于标记控制的分水岭分割算法,利用扩展极小值的方法建立标记,进而完成对粘连区域分割与害虫计数,并进行了噪声测试与害虫计数试验。结果表明,针对该型号捕虫设备采集的样本图像,害虫计数的平均准确率为91.8%,该算法能够完整地提取害虫区域,有效分离粘连重叠的害虫,适用于复杂背景下茶树害虫图像计数。

关键词: 茶树害虫, 分离背景, 粘连, 标记控制, 计数

Abstract: Based on a kind of insect trap lamp equipment, the sample images gained and the counting algorithms with image processing were addressed. Adopted some common algorithms of separating background areas, such as color histogram segmentation and gray threshold segmentation, the sample images were difficult to be separated. This paper develops an image processing algorithm which depend on grid division. Segmented the image as 10×10, and then extracted the pests areas from the separated images. For the overlapping areas will affect the accuracy of counting, developed the marker-controlled watershed segmentation algorithm. Marking the image with minimum extension transform to segment the overlapping areas and then realizing the pests counting, the noise test and counting test were developed furtherly. Experimental results showed that, for the sample images which collected from this kind of pests trap equipment, the average accuracy of the algorithm was 91.8%. This algorithm could extract the pests areas from the sample image completely and segment the overlapped pests effectively. And the algorithm was applicable for tea pests counting in complex background.

Key words: tea pests, image processing, overlap, background area separation, counting

中图分类号: