Giter Site home page Giter Site logo

libface-detect-recognition's Introduction

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

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

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

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

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

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

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

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

libface-detect-recognition's People

Contributors

hpc203 avatar

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.