1.下载
https://trackingjs.com/
2.运行例子
纳总一下
发现效果
里面的代码为
<!doctype html> <html> <head> <meta charset="utf-8"> <title>tracking.js - face hello world</title> <link rel="stylesheet" href="assets/demo.css" rel="external nofollow" rel="external nofollow" > <script src="/UploadFiles/2021-04-02/tracking-min.js">这里要注意,人脸必须是解决跨域了的,读取本地图片可能会包跨域问题
读取摄像头
<!doctype html> <html> <head> <meta charset="utf-8"> <title>tracking.js - face with camera</title> <link rel="stylesheet" href="assets/demo.css" rel="external nofollow" rel="external nofollow" > <script src="/UploadFiles/2021-04-02/tracking-min.js">总结