计算机工程与应用 ›› 2021, Vol. 57 ›› Issue (16): 283-290.DOI: 10.3778/j.issn.1002-8331.2103-0505

• 工程与应用 • 上一篇    下一篇

多尺度融合的YOLOv3人群口罩佩戴检测方法

张路达,邓超   

  1. 河南理工大学 物理与电子信息学院,河南 焦作 454003
  • 出版日期:2021-08-15 发布日期:2021-08-16

Multi-scale Fusion of YOLOv3 Crowd Mask Wearing Detection Method

ZHANG Luda, DENG Chao   

  1. School of Physics and Electronic Information Engineering, Henan Polytechnic University, Jiaozuo, Henan 454003, China
  • Online:2021-08-15 Published:2021-08-16

摘要:

在新型冠状病毒疫情防控要求下,商场、车站等公共场所人群环境下佩戴口罩成为人们出行的必要条件。由于在人群环境下往往存在人员密集,容易相互遮挡,且目标尺度较小等影响,口罩佩戴检测容易出现误检、漏检等问题。针对这些问题,在YOLOv3算法的基础上,提出一种基于改进YOLOv3的人群口罩佩戴检测算法。添加浅层特征图,在原来的3尺度检测结构上增加浅层检测尺度形成4尺度检测结构,提高检测准确率;引入自上而下和自下而上的多尺度融合结构,进一步利用特征信息,实现特征增强;选用CIoU损失函数进行边框回归,提高定位精度。实验结果表明,改进的YOLOv3算法的平均精度均值达到了93.66%,相比于原YOLOv3算法提高了5.61个百分点。相比于其他主流算法,该算法在口罩佩戴检测任务中有更高的检测精度,具有很好的实用性。

关键词: 人群环境, YOLOv3, 口罩佩戴检测, 特征增强, 损失函数

Abstract:

Under the requirements of the COVID-19 epidemic prevention and control, wearing masks under crowd environment in public places such as shopping malls and stations has become a necessary condition for people to travel. Because there are often crowded personnel in the crowd environment, easy to block each other, and the target size is small, it is easy to misdiagnose and miss the inspection of mask wearing. To solve these problems, based on the YOLOv3 algorithm, a crowd mask wearing detection algorithm based on improved YOLOv3 is proposed. First, add a shallow feature map, increase the shallow detection scale to the original 3-scale detection structure to form a 4-scale detection structure, and improve the detection accuracy. Then, the top-down and bottom-up multi-scale fusion structures are introduced to further use the feature information to achieve feature enhancement. Finally, the CIoU loss function is used for frame regression to improve the positioning accuracy. Experimental results show that the average accuracy of the improved YOLOV3 algorithm reaches 93.66%, which is 5.61 percentage points higher than the original YOLOV3 algorithm. Compared with other mainstream algorithms, this algorithm has higher detection accuracy in the mask wearing detection task and has good practicability.

Key words: crowd environment, YOLOv3, mask wearing detection, feature enhancement, loss function