seathiefwang / FaceRecognition-tensorflow

基于TensorFlow训练的人脸识别神经网络
1.31k stars 414 forks source link

speed up the frame capture #5

Closed cookedsteak closed 1 year ago

cookedsteak commented 6 years ago

提升优化获取样例图片的速度。 参照了https://github.com/jrosebr1/imutils中的方法。 提取了一个WebcamVideoStream类。

blog4me commented 6 years ago

我看到你的方法里面,if img is not None,这是判断有没有提取出人脸来。我在想,如果我们只拍摄到脸的一部分,比如眼睛和鼻子或者鼻子和嘴,或者侧脸,那这样的是不是也应该放在拍摄的图片集里面啊?这样才能更充分的识别人脸的特征呢?所以我在想如果去掉这个判断条件的话,会不会有很大的影响呢?