APP下载

基于AdaBoost算法的人脸识别佩戴眼镜问题研究

2021-03-22杜骏霖

河南科技 2021年26期

杜骏霖

摘 要:人脸识别技术在日常生活中的应用愈加广泛。本文着重研究如何在人脸识别过程中判断被识别者是否戴眼镜的问题。首先采用基于AdaBoost算法的Haar强特征级联分类器,把图像从起点到各个点之间形成的矩阵中所有像素点的和作为一个元素存进一个新的矩阵中,后将人脸眼部图像单独切割出来,并将眼部图像的像素点所占总像素点的比例作为一个判断是否戴眼镜的条件,运用回溯算法确定一个最佳阈值,最后得到人脸识别正确率为91.43%。

关键词:AdaBoost算法;Haar特征;回溯算法

中图分类号:TP391.41 文献标识码:A 文章编号:1003-5168(2021)26-0013-03

Research on Wearing Glasses in Face Recognition Based on

AdaBoost Algorithm

DU Junlin

(School of Remote Sensing and Geomatics Engineering, Nanjing University of Information Science and Technology, Nanjing Jiangsu 210044)

Abstract: Face recognition technology is more and more widely used in daily life. This paper focuses on how to judge whether the recognized person wears glasses or not in the process of face recognition. Firstly, the Haar strong feature cascade classifier based on AdaBoost algorithm is used to store the sum of all pixels in the matrix formed from the starting point to each point of the image into a new matrix as an element. Then the face eye image is cut out separately, and the proportion of the pixels in the eye image to the total pixels is taken as a condition to judge whether to wear glasses or not. The backtracking algorithm is used to determine an optimal threshold. Finally, the correct rate of face recognition is 91.43%.

Keywords: AdaBoost algorithm;Haar feature;backtracking algorithm

人臉识别技术作为一种新型的图像处理手段,正在逐步取代传统的身份验证模式。它通过摄像头采集含有人脸的图像或者视频流,自动检测人脸并进行定位,提取其中所蕴含的身份特征,然后将检测到的人脸与已有数据库中的人脸进行比对。人脸识别技术不仅具有非接触性、不易仿冒性等特点,还具有识别精度高、速度快等优点,能够大大提高重要关口的通行速度。目前,人脸识别技术还不够完善,尤其是面对人脸形状、颜色不同且有遮挡物(帽子、眼镜等)等情形时,检测较为困难。因此,加大对人脸识别技术研究方面的投入,进一步提高识别的效率与正确率,并将其应用于日常生活中显得尤为重要。

1 AdaBoost算法模型构建

1.1 模型介绍

AdaBoost是英文Adaptive Boosting(自适应增强)的缩写[1],其自适应性体现在前一个基本分类器被错误分类的样本权值会增大,而正确分类的样本权值会减小,并再次被用来训练下一个基本分类器。……

登录APP查看全文