APP下载

基于YOLOv3的教室人数检测

2020-12-24陈涛谢宁宁张曦张玉婵史新增李攀

科技创新与应用 2020年27期

陈涛 谢宁宁 张曦 张玉婵 史新增 李攀

摘  要:为了提高教室人数检测精度识别出教室的正确状态,克服学生上课姿态,座位远近、面部遮挡、尺度较小等因素而造成传统人脸检测技术识别精度较低,无法满足实际需求的问题。实验采用了如今热门的实时目标检测算法——YOLOv3(YOU ONLY LOOK ONCE v3),并根据教室这一特定场景采集大量图像信息样本,对其进行标注制成训练集。通过多次训练并不断调整参数,得出最佳的教室人数检测模型.实验结果表明,在1000张测试集图片样本中能得到90%以上的准确率,可以识别出教室人数并准确判断出教室状态,验证了基于YOLOv3的教室人数检测方法的有效性。

关键词:人数统计;目标检测;YOLO;图像识别

中图分类号:TP18 文献标志码:A 文章编号:2095-2945(2020)27-0030-04

Abstract: In order to improve the detection accuracy of the number of students in the classroom and recognize the correct state of the classroom, overcome the problems of students' classroom postures, seat distances, face occlusions, small scales and other factors which easily result in the low-accuracy recognition of traditional face detection technology, thereby can not meet the actual needs. In the experiment, we used the popular real-time target detection algorithm - YOLOv3 (YOU ONLY LOOK ONCE v3). A large number of image information samples are collected according to the specific scene of the classroom and labeled to make a training set. By training many times and adjusting the parameters continuously, we got the best number detection model of classroom. The experimental results show that the accuracy rate of more than 90% can be obtained in 1000 test set picture samples, and the number of students in the classroom can be identified and the state of classroom can be accurately determined, which verifies the effectiveness of the number detection method based on YOLOv3.

Keywords: number of students; target detection; YOLO; image recognition

引言

目前CNN(Convolutional Neural Networks)已经广泛应用于机器学习、语音识别、图像识别等多个领域[1-3]。以CNN为基础的目标检测算法、人群计数算法的发展也趋于稳定,在大部分场景中已有实际运用[4-5]。在课余时间,在校大学生往往有上自习的需求,而图书馆和自习室存在无座、拥挤等问题,因此教学楼中空闲的教室就为想上自习的学生提供了一个不错的选择。根据实际体验,因教室的课程安排或临时课程安排等诸多因素,同学将会花费大量时间寻找一个没有安排课程的教室。此外,找到的空闲教室中也存在不久就会上课的问题,存在频繁更换教室的问题。因此以神经网络为基础,通过识别教室人数判断教室状态并匹配课程表过滤有课教室,为同学推荐人数最少、可自习时间最长的教室具有重要意义,可极大的为在校生的学习生活提供便捷。……

登录APP查看全文