Abstract:Under the influence of COVID-19, wearing masks has become a daily necessary protection measure for people.??In order to better realize the intelligent management, in view of the public crowd wearing masks is correct detection of small target detection and occlusion problem, this paper proposes a real-time detection algorithm based on improved Yolo - V5s, by introducing the concentration mechanism, so as to improve the characteristic of the model, and optimized algorithm accuracy;??The convolution structure of Neck layer is changed, and the feature fusion object detection based on double scale is adopted to achieve better feature extraction.??Through experiments on the improved Yolo-V5s algorithm, it is proved that the proposed method has small model, fast detection speed and the average recognition accuracy is 4.4% higher than before, which can better solve the problem of detection and occlusion of too small targets in complex background.