介绍一款人脸识别库
face-api.js (opens new window)
# 描述
在浏览器或者nodejs环境中用tensorflow.js实现的人脸探测和识别的js接口
JavaScript API for face detection and face recognition in the browser and nodejs with tensorflow.js
# 特点
- 人脸识别(Face Recognition)
- 人脸特征检测(Face Landmark Detection)
- 面部表情检测(Face Expression Recognition)
- 年龄测定(Age Estimation)
- 性别检测(Gender Recognition)
# demo address
click for demo (opens new window)
# 食用方法
# 克隆仓库
git clone https://github.com/justadudewhohacks/face-api.js.git
# 运行浏览器示例
cd face-api.js/examples/examples-browser
npm i
npm start
open http://localhost:3000/ (opens new window)
# 运行Nodejs示例
cd face-api.js/examples/examples-nodejs
npm i
- 利用ts-node运行例子
ts-node faceDetection.ts
- node编译运行
tsc faceDetection.ts
node faceDetection.js