Face Recognition

人臉辨識的實作過程分為幾個階段:

Face Detection: 使用 RetinaFace

Face Align

Feature extraction

Create Database: 使用 SQLite

Face Recognition: 使用 arcface

Project

環境安裝

$ pip install -r requirment.txt

將 Face Recognition 整合至專案,功能有: 設置資料庫、新增個人資料、辨識人臉

$ python main.py

主畫面如下

image

設置資料庫畫面

image

新增個人資料分為拍照及從電腦選取照片

  • 使用拍照功能

image

  • 從電腦選取照片

image

辨識人臉

image

執行單一照片辨識:

$ python recognize.py

image

確認是否寫入資料庫裡

$ python db_test.py

詳細流程可以參考我的 Medium: Face Recognition 人臉辨識 Python 教學