推荐一款可以在浏览器中运行的人脸识别库

2019-11-27 17:18:18

推荐一款可以在浏览器中运行的人脸识别库

face

介绍一款人脸识别库--face-api.js

地址:https://github.com/justadudewhohacks/face-api.js

描述

在浏览器或者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

demo 地址⬇️

https://justadudewhohacks.github.io/face-api.js/

食用方法

克隆仓库

git clone https://github.com/justadudewhohacks/face-api.js.git

运行浏览器示例

cd face-api.js/examples/examples-browser
npm i
npm start

打开 http://localhost:3000

运行Nodejs示例

cd face-api.js/examples/examples-nodejsnpm i
  • 利用ts-node运行例子
ts-node faceDetection.ts
  • node编译运行
tsc faceDetection.tsnode faceDetection.js

直接在页面中引用js脚本

拷贝dist目录下的face-api.js到项目中直接引用。

文件链接:https://github.com/justadudewhohacks/face-api.js/tree/master/dist/face-api.js

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值