English

中国农机化学报

中国农机化学报 ›› 2023, Vol. 44 ›› Issue (12): 193-199.DOI: 10.13733/j.jcam.issn.2095-5553.2023.12.029

• 农业智能化研究 • 上一篇    下一篇

基于YOLOv5-CP的复杂环境下油茶果检测

肖章,彭江,刘俊杰,孙二杰,彭如恕   

  • 出版日期:2023-12-15 发布日期:2024-01-16
  • 基金资助:
    湖南省企业科技特派员计划项目(2021GK5049);南华大学科研启动基金(200XQD022)

Detection of Camellia oleifera fruit in complex environment based on YOLOv5-CP

Xiao Zhang, Peng Jiang, Liu Junjie, Sun Erjie, Peng Rushu   

  • Online:2023-12-15 Published:2024-01-16

摘要: 为解决复杂环境下油茶果的检测精度不高的问题,提出一种YOLOv5-CP的油茶果检测方法。首先利用RealSense D435i深度相机在自然场景下采集各种环境下的油茶果图像,使用LabelImg软件进行油茶果的标注;然后引入Cutout数据增强方法和坐标注意力模块(Coordinate Attention),以及提出一种改进的PANet特征提取层对YOLOv5模型进行优化,构建一种新的油茶果检测模型YOLOv5-CP;最后将YOLOv5-CP与现有模型在复杂环境下进行油茶果检测对比试验。试验表明:YOLOv5-CP模型的检测准确率、召回率以及平均精度分别为98%、946%以及984%,遮挡和重叠环境下对比原YOLOv5模型检测准确率分别提升113%和108%。本文方法有效提升油茶果检测过程中遮挡、重叠等复杂环境下果实的检测准确率,为后续开发油茶采摘机器人提供理论基础。

关键词: 油茶果, 目标检测, YOLOv5算法, 数据增强, 坐标注意力模块

Abstract: In order to solve the problem of low detection accuracy of Camellia oleifera fruit in complex environment, a YOLOv5-CP Camellia oleifera fruit detection method was proposed. Firstly, the RealSense D435i depth camera was used to collect the images of Camellia oleifera fruit in various environments in natural scenes, and the Labelimg software was used to label the Camellia oleifera fruit. Then the cutout data enhancement method and coordinate attention module were introduced, and an improved PANet feature extraction layer was proposed to optimize the YOLOv5 model, and a new detection model YOLOv5-CP of Camellia oleifera fruit was constructed. Finally, YOLOv5-CP was compared with the existing model in the detection of Camellia oleifera fruit in complex environment, the experiments showed that the detection accuracy, recall and average accuracy of YOLOv5-CP model were 98%, 94.6% and 98.4%,  respectively. The detection accuracy of YOLOv5-CP model in occluded and overlapping environments was improved by 11.3% and 108% respectively compared with the original YOLOv5 model. This method effectively improves the detection accuracy of Camellia oleifera fruit in complex environments such as occlusion and overlap, and provides a theoretical basis for the subsequent development of Camellia oleifera picking robot.

Key words: Camellia oleifera fruit, target detection, YOLOv5 algorithm, data enhancement, coordinate attention module

中图分类号: