看看这个例子本身实践一下:https://github.com/ageitgey/face_recognition/blob/master/examples/find_faces_in_picture.py
留意:想获得比较好的机能的话,你可能须要GPU加快(应用英伟达的CUDA库)。所以编译的时刻你也须要开启dlib的GPU加快选项。
你也可以经由过程这个例子实践一下:https://github.com/ageitgey/face_recognition/blob/master/examples/find_faces_in_picture_cnn.py
如不雅你有很多图片和GPU,你也可以并行快速辨认,看这篇文┞仿:https://github.com/ageitgey/face_recognition/blob/master/examples/find_faces_in_batches.py
主动辨认人脸特点
尝尝这个例子:https://github.com/ageitgey/face_recognition/blob/master/examples/find_facial_features_in_picture.py
辨认人脸剖断是哪小我
这里是一个例子:https://github.com/ageitgey/face_recognition/blob/master/examples/recognize_faces_in_pictures.py
还有更多的说阕和例子
请查看:https://github.com/ageitgey/face_recognition
【编辑推荐】
- 法度榜样员老司机们都要错的Python陷阱与缺点列表
- 十张图读懂PHP、Python、 Ruby三大年夜说话的差别
- Python上升到第二位,GitHub 2017开辟者年度申报
- 法度榜样员老司机都要错的Python陷阱与缺点列表
- 大年夜变量到封装:一文带你为机械进修打下坚实的Python基本
推荐阅读
沙龙晃荡 | 去哪儿、陌陌、ThoughtWorks在主动化运维中的实践!10.28不见不散!延长浏览:无线AP常识点及常用参数4. 一个AP带若干个客户端合适? >>>详细阅读
本文标题:3行Python代码完成人脸识别
地址:http://www.17bianji.com/lsqh/38004.html
1/2 1