Code Monkey home page Code Monkey logo

facelogin's Introduction

FaceLogin

使用 OpenCV 和 Qt 实现人脸(刷脸)登录

日常消遣开发中 _(:з」∠)_

部署

克隆 FaceLogin

git clone [email protected]:huihut/FaceLogin.git
cd FaceLogin
unzip att_faces.zip -d ./dataset  # 数据集文件夹名必须是 dataset

配置 OpenCV

MacOS

安装 OpenCV 和 pkg-config

brew update
brew tap homebrew/homebrew-science
brew install opencv
brew install pkg-config

查看 OpenCV 的 include 和 lib 安装路径

pkg-config --libs opencv
pkg-config --cflags opencv

FaceLogin/src/src.pro 中配置好 OpenCV 的 include、lib 路径

文件树

.
└── FaceLogin
    ├── FaceLogin.pro                       # 整个工程的 pro 文件,使用 Qt 打开它
    ├── README.md                           # FaceLogin 的 Readme 文件
    ├── dataset                             # 数据集文件夹
    │   ├── dataset_csv.txt                 # 数据集的 CSV 文件,录入人脸数据(注册)后生成
    │   ├── README
    │   ├── s1                              # 数据集每个人的名字
    │   │   ├── 1.pgm                       # 人脸数据(图片)
    │   │   └── ...
    │   └── ...
    ├── model                               # 模型文件夹
    │   └── lbpcascade_frontalface.xml      # 前置人脸分类器
    ├── release                             # 生成的可执行文件
    └── src                                 # 源码文件夹
        ├── ...
        ├── src.pro                         # 源码的 pro 文件,在这里配置 OpenCV 的 include、lib 路径
        └── ...

数据集

AT&T Facedatabase

分类器

lbpcascade_frontalface.xml

facelogin's People

Contributors

huihut 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.