/Dlib_face_recognition_from_camera

Detect and recognize the faces from camera / 调用摄像头进行人脸识别,支持多张人脸同时识别

Primary LanguagePython

Face recognition from camera

Using Dlib to detect and recognize faces from camera (support multi-faces) ;

调用摄像头进行人脸识别,支持多张人脸同时识别;


Three steps :

Face register >> Generate datebase >> Face recognition

人脸录入 >> 建立人脸数据库 >> 利用摄像头进行人脸识别

Python 源码介绍如下:

get_face_from_camera.py :

Face register / 人脸录入
请注意存储人脸图片时,矩形框不要超出摄像头范围,要不然无法保存到本地

get_features_into_CSV.py:

 Generate the features from the photos you captured and write the datas into CSV / 将图像文件中人脸数据提取出来存入CSV
 Will generate a "features_all.csv" ( size: n*128 , n means n people you registered and 128 means 128D features of the face)

face_reco_from_camera.py:

 Face recognition from camera (support multi-faces) / 实时进行人脸识别
 Compare the faces captured from camera with the faces you have registered which are saved in "features_all.csv"
 将捕获到的人脸数据和之前存的人脸数据进行对比计算欧式距离

For more details, please refer to my blog (in chinese) or contact me by e-mail:
> Blog: https://www.cnblogs.com/AdaminXie/p/9010298.html  
> Mail: coneypo@foxmail.com

Version: Face recognizer V2.5


Update date: 30, Oct
Description: Fix the issue when the face's rectangle is out of range you may cannot save the image of faces.
当人脸录入时,由于人脸特征矩形框有时超出摄像头范围,会导致程序退出,V2.5 新增了范围超出提醒,而且超出范围时不可以进行人脸录入无法保存照片;

Author : coneypo
Thanks for your support.