MIT License

项目介绍

vectornguyen76/face-recognition 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 203 个 Star、53 次 Fork。

仓库全名
vectornguyen76/face-recognition
开源许可证
MIT License
Star 数
203
Fork 数
53
未关闭 Issue
9

README 摘要

Real-Time Face Recognition Face Recognition Table of Contents Architecture How to use Create Environment and Install Packages Add new persons to datasets Technology Face Detection Face Recognition Face Tracking Matching Algorithm Reference Architecture Sequence Diagram How to use Create Environment and Install Packages Add new persons to datasets 1. Create a folder with the folder name being the name of the person…

完整内容见 GitHub 原始 README 或本页 。

常见问题

face-recognition 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 203 个 Star。

face-recognition 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 face-recognition 的源码?

可以直接克隆仓库:git clone https://github.com/vectornguyen76/face-recognition.git,默认分支为 master;安装与运行步骤见仓库 README。

face-recognition 最近还在维护吗?

仓库最近一次更新为 2024年10月24日,当前有 9 个未关闭 Issue;Star 数为 203,可作为社区活跃度的参考。

关于

Real-Time Face Recognition use SCRFD, ArcFace, ByteTrack and Similarity Measure

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

语言占比

Python

README

Real-Time Face Recognition

Face Recognition
Face Recognition

Table of Contents

Architecture

Sequence Diagram
Sequence Diagram

How to use

Create Environment and Install Packages

conda create -n face-dev python=3.9
conda activate face-dev
pip install torch==1.9.1+cpu torchvision==0.10.1+cpu torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html
pip install -r requirements.txt

Add new persons to datasets

  1. Create a folder with the folder name being the name of the person

    datasets/
    ├── backup
    ├── data
    ├── face_features
    └── new_persons
        ├── name-person1
        └── name-person2
    
  2. Add the person’s photo in the folder

    datasets/
    ├── backup
    ├── data
    ├── face_features
    └── new_persons
        ├── name-person1
        │   └── image1.jpg
        │   └── image2.jpg
        └── name-person2
            └── image1.jpg
            └── image2.jpg
    
  3. Run to add new persons

    python add_persons.py
    
  4. Run to recognize

    python recognize.py
    

Technology

Face Detection

  1. Retinaface

    • Retinaface is a powerful face detection algorithm known for its accuracy and speed. It utilizes a single deep convolutional network to detect faces in an image with high precision.
  2. Yolov5-face

    • Yolov5-face is based on the YOLO (You Only Look Once) architecture, specializing in face detection. It provides real-time face detection with a focus on efficiency and accuracy.
  3. SCRFD

    • SCRFD (Single-Shot Scale-Aware Face Detector) is designed for real-time face detection across various scales. It is particularly effective in detecting faces at different resolutions within the same image.

Face Recognition

  1. ArcFace

    • ArcFace is a state-of-the-art face recognition algorithm that focuses on learning highly discriminative features for face verification and identification. It is known for its robustness to variations in lighting, pose, and facial expressions.

    ArcFace
    ArcFace

Face Tracking

  1. ByteTrack

    ByteTrack
    ByteTrack is a simple, fast and strong multi-object tracker.

Matching Algorithm

  1. Cosine Similarity Algorithm

    • The Cosine Similarity Algorithm is employed for matching faces based on the cosine of the angle between their feature vectors. It measures the similarity between two faces’ feature representations, providing an effective approach for face recognition.

    Cosine Similarity Algorithm
    Cosine Similarity Algorithm

Reference

评论

暂无评论