# sahilbhandare89/bioauthplus architecture

> Architecture diagram of the GitHub repository sahilbhandare89/bioauthplus, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sahilbhandare89/bioauthplus
- Repository: https://github.com/sahilbhandare89/bioauthplus

## Overview

BioAuthPlus is a small multi-modal biometric-authentication repository: separate face, palm, and voice implementations support enrolling identities and recognizing them from live camera or microphone input. Face enrollment and authentication share detection/alignment and embedding/search code; voice has a more layered capture, preprocessing, feature, embedding, and matching design. Palm recognition is implemented as a standalone application. The README gives no further product detail; voice and face relationships below are supported by excerpts or the source index, while the palm excerpt shows only part of its internal flow.

Main entry points: [`bioauth_face/enroll.py`](https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_face/enroll.py) (Enrollment), [`bioauth_face/authenticate.py`](https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_face/authenticate.py) (Authentication), [`bioauth_voice/enroll.py`](https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_voice/enroll.py) (Enrollment), [`bioauth_voice/authenticate.py`](https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_voice/authenticate.py) (Authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_face["Face Biometrics"]
  node_face_enrollment["Enrollment<br/>[enroll.py]"]
  node_face_auth["Authentication<br/>[authenticate.py]"]
  node_face_detect["Face Detection<br/>[detect_align.py]"]
  node_face_embed["Embedding Search<br/>[embed_match.py]"]
  node_face_store[("Embedding Files<br/>[embed_match.py]")]
end

subgraph group_palm["Palm Biometrics"]
  node_palm_app["Palm Recognition"]
  node_palm_store[("Palm User Data")]
end

subgraph group_voice["Voice Biometrics"]
  node_voice_enroll["Enrollment<br/>[enroll.py]"]
  node_voice_auth["Authentication<br/>[authenticate.py]"]
  node_voice_audio["Audio Capture &amp; Processing<br/>[audio_utils.py]"]
  node_voice_features["Feature Extraction"]
  node_voice_embed["Speaker Embeddings<br/>[embed_model.py]"]
  node_voice_match["Speaker Matching<br/>[match.py]"]
  node_voice_store[("FAISS Index<br/>[match.py]")]
end

node_face_user(("User"))
node_palm_user(("User"))
node_voice_user(("User"))

node_face_user -->|"enrolls"| node_face_enrollment
node_face_user -->|"requests match"| node_face_auth
node_face_enrollment -->|"detects and aligns"| node_face_detect
node_face_enrollment -->|"embeds samples"| node_face_embed
node_face_enrollment -->|"adds embedding"| node_face_store
node_face_auth -->|"loads embeddings"| node_face_store
node_face_auth -->|"detects and aligns"| node_face_detect
node_face_auth -->|"embeds and searches"| node_face_embed
node_face_embed -->|"reads and writes"| node_face_store
node_palm_user -->|"uses"| node_palm_app
node_palm_app -->|"loads user data"| node_palm_store
node_voice_user -->|"enrolls"| node_voice_enroll
node_voice_user -->|"requests authentication"| node_voice_auth
node_voice_enroll -->|"captures and preprocesses"| node_voice_audio
node_voice_enroll -->|"extracts embeddings"| node_voice_embed
node_voice_enroll -->|"stores samples"| node_voice_match
node_voice_auth -->|"captures and preprocesses"| node_voice_audio
node_voice_auth -->|"extracts embedding"| node_voice_embed
node_voice_auth -->|"matches speaker"| node_voice_match
node_voice_embed -->|"extracts features"| node_voice_features
node_voice_match -->|"reads and updates"| node_voice_store

click node_face_enrollment "https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_face/enroll.py"
click node_face_auth "https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_face/authenticate.py"
click node_face_detect "https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_face/detect_align.py"
click node_face_embed "https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_face/embed_match.py"
click node_face_store "https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_face/embed_match.py"
click node_palm_app "https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_palm/palm_recognition2.py"
click node_palm_store "https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_palm/palm_recognition2.py"
click node_voice_enroll "https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_voice/enroll.py"
click node_voice_auth "https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_voice/authenticate.py"
click node_voice_audio "https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_voice/audio_utils.py"
click node_voice_features "https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_voice/feature_extraction.py"
click node_voice_embed "https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_voice/embed_model.py"
click node_voice_match "https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_voice/match.py"
click node_voice_store "https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_voice/match.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_face_enrollment,node_face_auth,node_face_detect,node_face_embed,node_face_store,node_face_user,node_palm_user,node_voice_user toneBlue
class node_palm_app,node_palm_store toneAmber
class node_voice_enroll,node_voice_auth,node_voice_audio,node_voice_features,node_voice_embed,node_voice_match,node_voice_store toneMint
```

## Components

### Face Biometrics

- [Enrollment](https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_face/enroll.py): `bioauth_face/enroll.py`
- [Authentication](https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_face/authenticate.py): `bioauth_face/authenticate.py`
- [Face Detection](https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_face/detect_align.py): `bioauth_face/detect_align.py`
- [Embedding Search](https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_face/embed_match.py): `bioauth_face/embed_match.py`
- [Embedding Files](https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_face/embed_match.py): `bioauth_face/embed_match.py`

### Palm Biometrics

- [Palm Recognition](https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_palm/palm_recognition2.py): `bioauth_palm/palm_recognition2.py`
- [Palm User Data](https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_palm/palm_recognition2.py): `bioauth_palm/palm_recognition2.py`

### Voice Biometrics

- [Enrollment](https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_voice/enroll.py): `bioauth_voice/enroll.py`
- [Authentication](https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_voice/authenticate.py): `bioauth_voice/authenticate.py`
- [Audio Capture & Processing](https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_voice/audio_utils.py): `bioauth_voice/audio_utils.py`
- [Feature Extraction](https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_voice/feature_extraction.py): `bioauth_voice/feature_extraction.py`
- [Speaker Embeddings](https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_voice/embed_model.py): `bioauth_voice/embed_model.py`
- [Speaker Matching](https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_voice/match.py): `bioauth_voice/match.py`
- [FAISS Index](https://github.com/sahilbhandare89/bioauthplus/blob/main/bioauth_voice/match.py): `bioauth_voice/match.py`

### Other components

- **User**
- **User**
- **User**

## Connections

- User → Enrollment: enrolls (evidence: `bioauth_face/enroll.py`)
- User → Authentication: requests match (evidence: `bioauth_face/authenticate.py`)
- Enrollment → Face Detection: detects and aligns (evidence: `bioauth_face/enroll.py`)
- Enrollment → Embedding Search: embeds samples (evidence: `bioauth_face/enroll.py`)
- Enrollment → Embedding Files: adds embedding (evidence: `bioauth_face/enroll.py`)
- Authentication → Embedding Files: loads embeddings (evidence: `bioauth_face/authenticate.py`)
- Authentication → Face Detection: detects and aligns (evidence: `bioauth_face/authenticate.py`)
- Authentication → Embedding Search: embeds and searches (evidence: `bioauth_face/authenticate.py`)
- Embedding Search → Embedding Files: reads and writes (evidence: `bioauth_face/embed_match.py`)
- User → Palm Recognition: uses (evidence: `bioauth_palm/palm_recognition2.py`)
- Palm Recognition → Palm User Data: loads user data (evidence: `bioauth_palm/palm_recognition2.py`)
- User → Enrollment: enrolls (evidence: `bioauth_voice/enroll.py`)
- User → Authentication: requests authentication (evidence: `bioauth_voice/authenticate.py`)
- Enrollment → Audio Capture & Processing: captures and preprocesses (evidence: `bioauth_voice/enroll.py`)
- Enrollment → Speaker Embeddings: extracts embeddings (evidence: `bioauth_voice/enroll.py`)
- Enrollment → Speaker Matching: stores samples (evidence: `bioauth_voice/enroll.py`)
- Authentication → Audio Capture & Processing: captures and preprocesses (evidence: `bioauth_voice/authenticate.py`)
- Authentication → Speaker Embeddings: extracts embedding (evidence: `bioauth_voice/authenticate.py`)
- Authentication → Speaker Matching: matches speaker (evidence: `bioauth_voice/authenticate.py`)
- Speaker Embeddings → Feature Extraction: extracts features (evidence: `bioauth_voice/embed_model.py`)
- Speaker Matching → FAISS Index: reads and updates (evidence: `bioauth_voice/match.py`)
