• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

计算机工程与科学 ›› 2023, Vol. 45 ›› Issue (06): 1063-1070.

• 图形与图像 • 上一篇    下一篇

基于改进的YOLOv5的航拍图像中小目标检测算法

杨慧剑,孟亮   

  1. (太原理工大学信息与计算机学院,山西 晋中 030600)
  • 收稿日期:2021-10-25 修回日期:2022-02-09 接受日期:2023-06-25 出版日期:2023-06-25 发布日期:2023-06-16

A small target detection algorithm based on improved YOLOv5 in aerial image

YANG Hui-jian,MENG Liang   

  1. (School of Information and Computer,Taiyuan University of Technology,Jinzhong 030600,China)
  • Received:2021-10-25 Revised:2022-02-09 Accepted:2023-06-25 Online:2023-06-25 Published:2023-06-16

摘要: 目前基于无人机航拍的目标检测技术广泛应用于军事和民用领域,但因其存在成像距离远、高空拍摄图像模糊和目标信息占比小等问题,目标检测准确率不高。针对这一问题,提出一种基于YOLOv5的改进算法。该算法首先在数据增强方面对原始图像进行加雾处理,提高其在雾天的鲁棒性;其次通过融合CBAM模块,来增强不同通道和空间的重要性;再者将原算法中的SPP更换为ASPP,以减小池化操作对特征信息的影响;最后在FPN结构中增加一层检测头,用于更细粒度的检测目标。以YOLOv5s为Baseline,实验表明,改进后的算法比原算法的mAP_0.5提高了6.9%,可以有效应用于航拍小目标的检测。

关键词: YOLOv5, 无人机, 注意力机制, 金字塔池化, 特征金字塔

Abstract: At present, the target detection technology based on UAV aerial photography is widely used in military and civil fields, but the accuracy of target detection is not high because of the long imag- ing distance, blurred images taken at high altitudes, and small proportion of target information. To solve this problem, an improved algorithm based on YOLOv5 is proposed. Firstly, the original image is fogged to improve its robustness on foggy days. Secondly, the importance of different channels and spaces is enhanced through the integration of CBAM modules. Furthermore, the SPP in the original algorithm is replaced by the ASPP to reduce the influence of pooling operation on feature information. Finally, a detection head is added to the FPN structure to detect targets with finer granularity. Taking YOLOv5s as baseline, the experiment proves that the improved algorithm increases mAP_0.5 by 6.9% in comparison to the original algorithm, and can be effectively applied to the detection of small targets in aerial photography.

Key words: YOLOv5, unmanned aerial vehicle(UAV), attention mechanism, spatial pyramid pool- ing, feature pyramid