1 Star 0 Fork 2

WwyDev/face-recognize-platform

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

face-recognize-platform

🐧773323518

介绍

基于mtcnn+facenet深度学习模型的Flask人脸特征提取、特征比对平台

使用说明

  1. 下载模型 链接: https://pan.baidu.com/s/1S0sf2QVQwBArP7plNbZImw 提取码: s024
  2. 放置模型到faceRecognition/model_data目录下
  3. 导入conda环境 conda env create -f conda-env/env.yaml 并激活
  4. 执行 python app.py 启动接口服务

接口说明

提供docsify接口文档

docsify serve docs

同时也内部集成swagger文档

技术栈

  • keras
  • flask
  • cv2

mtcnn网络

检测人脸

原图片

输入图片说明

检测后

输入图片说明

facenet网络

使用googlenet InceptionV1训练,可以提取人脸128维特性向量(为了节省空间,所有特征向量均经过zlib压缩和base64转码)

先使用mtcnn获取到人脸,然后进行识别

人物-张飞

图片1

输入图片说明

图片2

输入图片说明

人物-曹操

图片1

输入图片说明

图片2

输入图片说明

特征比对(欧式距离)

越是相似的,距离越近

张飞1-张飞2

distance:0.5082446061984381

张飞1-曹操1

distance:0.8603647692832014

张飞1-曹操2

distance:0.8957766429361684

曹操1-曹操2

distance:0.7081217647804329

MIT License Copyright (c) 2021 吴文益 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

基于mtcnn+facenet模型的Flask人脸特征提取、特征比对平台 展开 收起
Python
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wu_wen_yi/face-recognize-platform.git
git@gitee.com:wu_wen_yi/face-recognize-platform.git
wu_wen_yi
face-recognize-platform
face-recognize-platform
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891