{"id":17968408,"url":"https://github.com/huihut/facelogin","last_synced_at":"2025-06-16T23:39:35.230Z","repository":{"id":90855595,"uuid":"112849389","full_name":"huihut/FaceLogin","owner":"huihut","description":":man: 使用 OpenCV 和 Qt 实现人脸（刷脸）登录","archived":false,"fork":false,"pushed_at":"2018-06-18T09:26:06.000Z","size":3712,"stargazers_count":25,"open_issues_count":0,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-03T16:05:45.090Z","etag":null,"topics":["face-detection","face-recognition","frontal-face","lbp","lbp-features","opencv","qt"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/huihut.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-12-02T14:40:29.000Z","updated_at":"2025-05-27T09:27:15.000Z","dependencies_parsed_at":"2024-02-09T00:03:59.554Z","dependency_job_id":"38193ed5-3f14-4bb8-ac87-e20f438263e0","html_url":"https://github.com/huihut/FaceLogin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/huihut/FaceLogin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huihut%2FFaceLogin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huihut%2FFaceLogin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huihut%2FFaceLogin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huihut%2FFaceLogin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huihut","download_url":"https://codeload.github.com/huihut/FaceLogin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huihut%2FFaceLogin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260261912,"owners_count":22982705,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["face-detection","face-recognition","frontal-face","lbp","lbp-features","opencv","qt"],"created_at":"2024-10-29T14:21:16.278Z","updated_at":"2025-06-16T23:39:35.206Z","avatar_url":"https://github.com/huihut.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FaceLogin\n\n使用 OpenCV 和 Qt 实现人脸（刷脸）登录\n\n日常消遣开发中 _\\(:з」∠)\\_\n\n## 部署\n\n### 克隆 FaceLogin\n\n```\ngit clone git@github.com:huihut/FaceLogin.git\ncd FaceLogin\nunzip att_faces.zip -d ./dataset  # 数据集文件夹名必须是 dataset\n```\n\n### 配置 OpenCV\n\n#### MacOS\n\n安装 OpenCV 和 pkg-config\n\n```\nbrew update\nbrew tap homebrew/homebrew-science\nbrew install opencv\nbrew install pkg-config\n```\n\n查看 OpenCV 的 include 和 lib 安装路径\n\n```\npkg-config --libs opencv\npkg-config --cflags opencv\n```\n\n在 `FaceLogin/src/src.pro` 中配置好 OpenCV 的 include、lib 路径\n\n\n## 文件树\n\n```\n.\n└── FaceLogin\n    ├── FaceLogin.pro                       # 整个工程的 pro 文件，使用 Qt 打开它\n    ├── README.md                           # FaceLogin 的 Readme 文件\n    ├── dataset                             # 数据集文件夹\n    │   ├── dataset_csv.txt                 # 数据集的 CSV 文件，录入人脸数据（注册）后生成\n    │   ├── README\n    │   ├── s1                              # 数据集每个人的名字\n    │   │   ├── 1.pgm                       # 人脸数据（图片）\n    │   │   └── ...\n    │   └── ...\n    ├── model                               # 模型文件夹\n    │   └── lbpcascade_frontalface.xml      # 前置人脸分类器\n    ├── release                             # 生成的可执行文件\n    └── src                                 # 源码文件夹\n        ├── ...\n        ├── src.pro                         # 源码的 pro 文件，在这里配置 OpenCV 的 include、lib 路径\n        └── ...\n```\n\n## 数据集\n\n[AT\u0026T Facedatabase](http://www.cl.cam.ac.uk/research/dtg/attarchive/facedatabase.html)\n\n## 分类器\n\n[lbpcascade_frontalface.xml](https://github.com/opencv/opencv/blob/master/data/lbpcascades/lbpcascade_frontalface.xml)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuihut%2Ffacelogin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuihut%2Ffacelogin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuihut%2Ffacelogin/lists"}