Giter Club home page Giter Club logo

libface-detect-recognition's Introduction

一种适合工业级应用的基于深度学习的实时人脸检测与识别算法的C++实现

本套程序仅仅只依赖opencv库,就可以正常运行

模型文件在百度网盘里,下载链接是 https://pan.baidu.com/s/1Cvw9925YhwsJosNB9fd5MQ 提取码: ev9g

下载完成后,把models文件夹与代码放在同一目录下,配置好opencv环境后就可以运行程序了。 我这边用的是opencv4.4.0,建议安装这个最新版的opencv库,不然就可能在程序运行时出现异常中断的。 在主函数里提供了4个功能,分别是:

(1).输入一幅图片,做人脸检测。

(2).输入一个文件夹,提取批量图片的人脸特征向量,然后把人脸特征向量保存为bin文件。

(3).读取人脸特征向量的bin文件,输入一幅图片,检测人脸并提取特征向量,然后计算特征向量的距离,做人脸识别。

(4).输入一幅图片,检测人脸,然后使用pfld网络检测人脸98个关键点

我的程序是在win10系统里运行的,如果切换到linux系统下运行,那么在执行第3个功能时,里面有遍历文件夹里的所有文件和目录的函数getAllFiles。 而这个函数在windows和linux里的代码实现是有所不同的。因此,如果你想在linux系统里运行人脸识别程序,那么需要按照代码里的注释说明去屏蔽一些代码打开另一些代码。 在windows系统里,路径分隔符可以是"/"或者"\",在Linux系统里,路径分隔符是"/",为了保证系统的兼容性,在本程序里, 路径分隔符统一使用"/"

这套程序里的人脸检测和人脸特征向量提取模块已经久远了,在2021年11月6日,我在github发布了使用OpenCV部署libface人脸检测和SFace人脸识别, 包含C++和Python两种版本的程序,仅仅只依赖OpenCV库就能运行。源码地址是: https://github.com/hpc203/libface-sface_detect-recognition-opencv

libface-detect-recognition's People

Contributors

hpc203 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

libface-detect-recognition's Issues

人脸识别模块失效

你好,经过简单的测试,该代码中提取的特征向量识别准确度较差,不知道是不是权重没转好的缘故。相似度度量的值相差都很小,难以区分不同的人脸

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.