介绍一款人脸识别库
# 描述
在浏览器或者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
# 食用方法
# 克隆仓库
git clone https://github.com/justadudewhohacks/face-api.js.git
# 运行浏览器示例
cd face-api.js/examples/examples-browser
npm i
npm start
# 运行Nodejs示例
cd face-api.js/examples/examples-nodejs
npm i
- 利用ts-node运行例子
ts-node faceDetection.ts
- node编译运行
tsc faceDetection.ts
node faceDetection.js
本文介绍了如何使用face-api.js库在浏览器和Node.js环境中进行人脸检测、识别,包括面部表情、年龄和性别分析。通过git克隆仓库并运行示例,演示了如何在实际项目中轻松集成这项技术。
633

被折叠的 条评论
为什么被折叠?



