人脸识别(实验复现)

本文介绍了如何使用dlib和openface进行人脸识别的实验,包括环境配置、dlib安装中遇到的问题、数据准备以及程序构建流程。通过实验,作者展示了在人脸识别过程中可能出现的对齐和识别困难,并提供了数据集下载和视频处理的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

英文原文地址:https://medium.com/@ageitgey/machine-learning-is-fun-part-4-modern-face-recognition-with-deep-learning-c3cffc121d78

中文翻译版地址:https://zhuanlan.zhihu.com/p/24567586

实验脚本:https://github.com/YuTingLiu/human_face_detection.git

实验环境

1.安装 dlib

https://github.com/davisking/dlib.git

对人脸识别的算法不了解,但是一些研究过的人说实现了非常经典的算法.这个包的封装也非常好,对于检测人脸方便.实验过程中发现,一些人脸无法识别,一些人脸无法对齐.

2.安装opencv与openface

使用opencv2.sh安装opencv2(不行,需要安装opencv_python)
由github安装openface

3.安装torch.

openface需要torch,或者说openface的模型使用torch训练
http://torch.ch/docs/getting-started.html

git clone https://github.com/torch/distro.git ~/torch --recursive

4.安装torch的package

下载:
nn : https://github.com/torch/nn.git
dnn : https://github.com/nicholas-leonard/dpnn.git
使用luarocks install命令进行安装
luarocks install nn-master/rocks/nn-scm-1.rockspec

luarocks install dpnn-master/rocks/dpnn-scm-1.rockspec

实验

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值