人工智能之Python人脸识别技术--face_recognition模块
一、环境搭建
1.系统环境
Ubuntu 17.04 Python 2.7.14 pycharm 开发工具
-
1 2 3
2.开发环境,安装各种系统包
-
人脸检测基于dlib,dlib依赖Boost和cmake
$ sudo apt-get install build-essential cmake $ sudo apt-get install libgtk-3-dev $ sudo apt-get install libboost-all-dev
-
1 2 3
-
其他重要的包
$ pip install numpy $ pip install scipy $ pip install opencv-python $ pip install dlib
-
1 2 3 4
-
安装 face_recognition
# 安装 face_recognition $ pip install face_recognition # 安装face_recognition过程中会自动安装 numpy、scipy 等
-
1 2 3
二、使用教程
1、facial_features文件夹
此demo主要展示了识别指定图片中人脸的特征数据,下面就是人脸的八个特征,我们就是要获取特征数据
chin, left_eyebrow, right_eyebrow, nose_bridge, nose_tip, left_eye, right_eye, top_lip, bottom_lip
-
1 2 3 4 5 6 7 8 9
运行结果:
自动识别图片中的人脸,并且识别它的特征
下一篇:
力扣笔记——环形链表II