Face Mask Wearing Detection Based on YOLOv5

Author:

Xie Yunshan1,Hu Zhiyi2,Yu Jun1

Affiliation:

1. School of Computer Science and Engineering , Xi'an Technological University , Xi'an , , Shaanxi , China

2. Engineering Design Institute , Army Research Loboratory , Beijing , , China

Abstract

Abstract In recent years, COVID-19 has swept the world, and people in crowded public places are usually large. In order to reduce the risk of virus transmission, stop the spread of the epidemic and reduce cross-infection, wearing masks correctly has become an important measure to prevent the virus. Aiming at the time-consuming and laborious situation of wearing masks manually, this paper proposes a mask wearing detection method based on yolov5. The input layer is mainly used for mosaic data enhancement, that is, adaptive anchor box and adaptive image scaling technology; Yolov5 in backbone mainly adopts focus and CSP (cross stage partial) structure; The neck layer adopts spp (spatial pyramid pooling) module and FPN (feature pyramid networks) + pan (pixel aggregation network) structure; The output mainly adopts ciou for the bounding box loss function_Loss is the average index of NMS (non maximum suppression). This method uses 8000 preprocessed images as the data set and trains 200 epochs to get the final model. The algorithm visually displays the training and test results through tensor board, and inputs the pictures captured by the camera into the model to detect whether the face wears a mask. The accuracy, recall and mean accuracy (map) of the algorithm on the test set are 94.8%, 89.0% and 93.5% respectively, which are higher than the detection results of yolov3 and yolov4 algorithms.

Publisher

Walter de Gruyter GmbH

Subject

General Earth and Planetary Sciences,General Environmental Science

Reference31 articles.

1. Ren Yu, Liu Quanjin, Huang Zhong, Hu langtao, Liu Guoming. Mask wearing detection algorithm based on fast r-cnn and transfer learning [J] Journal of Anqing Normal University (NATURAL SCIENCE EDITION), 2021, 27(04): 25–30. DOI: 10.13757/j.cnki.cn34-1328/n.2021.04.005.

2. Dong Yanhua, Zhang Shumei, Zhao Junli. SSD mask detection based on residual structure [J] Computer technology and development, 2021, 31(12):67–72.

3. Cao chengshuo, Yuan Jie. Mask wearing detection method based on Yolo mask algorithm [J] Progress in laser and Optoelectronics, 2021, 58(08):211–218.

4. Cheng Tinghao, Cui Yuchao, Wu Xinmiao. Research on mask wearing detection in public places based on yolov4 [J] Modern computer, 2021(16):134–140.

5. https://zhuanlan.zhihu.com/p/172121380, 2021-04-2

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3