Face-Recognition-System

🌟🔥 Ultimate Face Recognition System 🔥🌟

High-performance. Real‑time. Beautifully engineered. Designed for creators who want power and style.

A complete face recognition toolkit built with InsightFace and OpenCV, including three modules:

This README summarizes all three scripts and how to use them.


📂 File Overview


🗂️ Modules At a Glance

Three scripts, three power levels.


1. advance.py – Long‑Distance + Smooth Real‑Time Recognition

Features:

2. semiadvance.py – Auto‑Add Photos + Multi‑Source Input

Features:

3. basic.py – Photo Imports + Simple Recognition

Features:


🚀 Installation


🔧 Quick Setup


Install dependencies:

pip install insightface opencv-python numpy

If using GPU (optional):

pip install onnxruntime-gpu

Create needed folders:

mkdir saved_faces
mkdir photos

▶️ Running the Scripts


🎬 Choose Your Mode


Basic Mode

python basic.py

Semi‑Advanced Mode

python semiadvance.py

Menu options:

Drop images directly into saved_faces/ to auto‑add people.


Advanced Mode

python advance.py

Controls:

This mode is ideal for:


🧠 How Recognition Works


🧩 Behind the Magic


  1. InsightFace detects the face
  2. A 512‑D embedding vector is generated
  3. The embedding is compared with saved .npz files
  4. If the distance < threshold (0.68–0.75), the identity is shown

📸 Saving New Faces

Method A (Camera)

Press S or N depending on script.

Method B (Drop Photos)

Just place .jpg/.png images in:

saved_faces/

The system converts them on next run.

Method C (Photos Folder)

Drop photos into:

photos/

The basic.py script will process them.


🎨 UI Features


💎 What You See




🎯 Tuning for Accuracy



📌 Folder Structure


🗃️ Project Layout


project/
│── advance.py
│── semiadvance.py
│── basic.py
│── saved_faces/
│   └── person_name.npz
│── photos/
│   └── image.jpg
│── README.md  ← this file

🙌 Credits


❤️ Contributors & Tech