人脸识别api
The world’s simplest facial recognition API for Python and the command line
世界上最简单的Python和命令行面部识别API
In this article, we’ll explore the ‘face_recognition’ library and implement a face recognition system.
在本文中,我们将探索“ face_recognition”库并实现人脸识别系统。
大纲: (Outline:)
- Step 1: Installation 步骤1:安装
- Step 2: Finding Faces in Image 第2步:在图像中查找人脸
- Step 3: Identifying Facial Features 第3步:识别面部特征
- Step 4: Identifying Known Faces 步骤4:识别已知面Kong
步骤1:安装: (Step 1: Installation:)
要求 (Requirements)
- Python 3.3+ or Python 2.7 Python 3.3+或Python 2.7
- macOS or Linux (Windows not officially supported, but it will work fine) macOS或Linux(不正式支持Windows,但可以正常使用)
For windows, First make sure that you have dlib
installed. If you don’t have dlib
installed. Follow these steps
对于Windows,首先请确保已 安装 dlib
。 如果您尚未安装 dlib
。 跟着这些步骤
- Clone the code from GitHub: 从GitHub克隆代码:
git clone https://github.com/davisking/dlib.git
- Install with Python Extension: 使用Python Extension安装:
cd ..
python3 setup.py install
After this step, you should be able to run import dlib
successfully.
完成此步骤后,您应该能够成功运行import dlib