Skip to content

Use tracking.js to realize front-end face recognition and automatic photography

License

Notifications You must be signed in to change notification settings

chachae/Tracking-With-Vue

Repository files navigation

face-tracking

https://img.shields.io/badge/license-Apache%202.0-blue.svg?longCache=true&style=flat-square https://img.shields.io/badge/vue-2.6.10-orange.svg?style=flat-square https://tokei.rs/b1/github/chachae/face-tracking?category=lines

一个简单的基于 trakcing.js 实现的人脸识别案例,使用 vue-cli 完成本案例。 由于百度上的案例实在不多,能找到的案例功能实现残缺基本不符合预期,GayHub 上的 Demo 试了几个都有不能关闭摄像头的问题,且 trakcing 自带的摄像头关闭方法也并不好事,故重新写了一个,域名需要配置 https 协议或者在本地使用。

功能实现

  • 自动人脸识别
  • 识别成功自动关闭摄像头
  • 重新识别
  • 人脸 Base64 编码

截图

face-tracking

项目打包

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

License

Copyright [2020] [chachae]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Use tracking.js to realize front-end face recognition and automatic photography

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages