Giter Site home page Giter Site logo

easyface's Introduction

logo

简体中文 | English

EasyFace

A light weight face recognition project, high accuracy, real-time, cross-platform.

一个轻量级人脸识别项目,准确率高,实时运行,跨平台。在酷睿i7 CPU上耗时410ms。人脸检测模型RetinaFace在WIDER Face Hard上的准确率为0.791,人脸识别模型MobileFacenet在LFW上的准确率为99.55%。

result

特性

  • 纯C++代码
  • 与ncnn、opencv一样,可跨平台部署
  • 可以使用自己的数据集重新训练人脸检测模型与人脸表征模型
  • 方便集成各种的人脸检测模型和人脸表征模型
  • 已集成的人脸检测算法:RetinaFace
  • 已集成的人脸表征算法:MobileFacenet

人脸识别原理

face_theory

实现细节

使用RetinaFace进行人脸检测,然后用SimilarTransformOpenCV Affine Transformations获取对齐的人脸图像,再用MobileFacenet提取128维的特征向量,最后用余弦相似度计算人脸相似度。

依赖

编译依赖库,并修改CMakeLists.txt

编译

Linux

./build_linux.sh

aarch64 Linux

./build_aarch64-linux-gnu.sh

运行

Linux

./run_demo.sh

运行结果

Start face register... 
filename: images/register/huge.jpg
username: huge
filename: images/register/liuyifei.jpg
username: liuyifei
Finish face register. 
Start face identify 
identify result: liuyifei, 0.55
save result to: images/identify/liuyifei.result.jpg
blank frame grabbed
Finish face identify.

Total time is about 410ms on Core i7 CPU.

time_comsume_cpu_i7.jpg

aarch64 Linux

./build-linux/bin/face_system_demo models/retinaface/ models/mobilefacenet/ images/register/ images/identify/img1.jpg

效果演示

已注册人脸:huge、liuyifei

未注册人脸:unknown

cp1 cp2 cp3

TODO

  • 人脸质量评估
  • 人脸活体检测
  • 性别年龄预测

高效的人脸搜索

联系方式

Email:[email protected]

CSDN技术博客: https://blog.csdn.net/zhongqianli

EasyFace人脸技术交流群:1070763980

qqgroup

许可证书

BSD 3 Clause

致谢

insightface

SeetaFace

ncnn

ncnn_example

opencv

easyface's People

Contributors

zhongqianli 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

Watchers

 avatar

easyface's Issues

不能进行编译

您好,之前向您发送邮件没有得到回应,在linux中编译build后报错缺少pthread_key_delete符号(libncnn.a(cpu.cpp.o): undefined reference to symbol 'pthread_key_delete@@GLIBC_2.2.5'
/usr/bin/ld: /lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
)。环境依赖项按照您的标准配置,请问该如何解决?

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.