# karuturinoushikajay/secure_gesture_based_voting architecture

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

- Interactive diagram: https://gitdiagram.com/karuturinoushikajay/secure_gesture_based_voting
- Repository: https://github.com/karuturinoushikajay/secure_gesture_based_voting

## Overview

This repository implements a Flask e-voting application with voter and administrator workflows, SQLite-backed records, and face/gesture security modules. The visible routes establish registration, voter dashboard, face-verification, voter administration, and constituency-results capabilities; the schema defines users, parties, votes, and results. Face-data preparation and gesture security are additional runtime subsystems. The README is empty, and app.py is only partially excerpted, so links for workflows hidden in its omitted sections are not asserted.

Main entry points: [`app.py`](https://github.com/karuturinoushikajay/secure_gesture_based_voting/blob/main/app.py) (Web routes), [`gesture_security.py`](https://github.com/karuturinoushikajay/secure_gesture_based_voting/blob/main/gesture_security.py) (Gesture security), [`evoting.db`](https://github.com/karuturinoushikajay/secure_gesture_based_voting/blob/main/evoting.db) (Election database), [`dataset.py`](https://github.com/karuturinoushikajay/secure_gesture_based_voting/blob/main/dataset.py) (Face enrollment data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Voting application"]
  node_app["Web routes<br/>[app.py]"]
end

subgraph group_security["Identity security"]
  node_face_data["Face enrollment data<br/>[dataset.py]"]
  node_face_match["Face recognition<br/>[recognition.py]"]
  node_face_align["Face detection"]
  node_gesture["Gesture recognition<br/>[secure_gestures.py]"]
  node_gesture_check["Gesture security"]
end

subgraph group_data["Election data"]
  node_sqlite[("Election database<br/>[evoting.db]")]
  node_schema["Database schema<br/>[init_database.py]"]
end

node_voter(("Voter"))
node_admin(("Administrator"))

node_voter -->|"uses routes"| node_app
node_admin -->|"uses routes"| node_app
node_app -->|"reads and writes"| node_sqlite
node_schema -->|"creates tables"| node_sqlite
node_face_data -->|"detects faces"| node_face_align
node_gesture -->|"validates frames"| node_gesture_check
node_gesture_check -->|"checks identity"| node_face_match

click node_app "https://github.com/karuturinoushikajay/secure_gesture_based_voting/blob/main/app.py"
click node_face_data "https://github.com/karuturinoushikajay/secure_gesture_based_voting/blob/main/dataset.py"
click node_face_match "https://github.com/karuturinoushikajay/secure_gesture_based_voting/blob/main/recognition.py"
click node_face_align "https://github.com/karuturinoushikajay/secure_gesture_based_voting/blob/main/detect_and_align.py"
click node_gesture "https://github.com/karuturinoushikajay/secure_gesture_based_voting/blob/main/secure_gestures.py"
click node_gesture_check "https://github.com/karuturinoushikajay/secure_gesture_based_voting/blob/main/gesture_security.py"
click node_sqlite "https://github.com/karuturinoushikajay/secure_gesture_based_voting/blob/main/evoting.db"
click node_schema "https://github.com/karuturinoushikajay/secure_gesture_based_voting/blob/main/init_database.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_app toneBlue
class node_face_data,node_face_match,node_face_align,node_gesture,node_gesture_check toneAmber
class node_sqlite,node_schema toneMint
class node_voter,node_admin toneIndigo
```

## Components

### Voting application

- [Web routes](https://github.com/karuturinoushikajay/secure_gesture_based_voting/blob/main/app.py): `app.py`

### Identity security

- [Face enrollment data](https://github.com/karuturinoushikajay/secure_gesture_based_voting/blob/main/dataset.py): `dataset.py`
- [Face recognition](https://github.com/karuturinoushikajay/secure_gesture_based_voting/blob/main/recognition.py): `recognition.py`
- [Face detection](https://github.com/karuturinoushikajay/secure_gesture_based_voting/blob/main/detect_and_align.py): `detect_and_align.py`
- [Gesture recognition](https://github.com/karuturinoushikajay/secure_gesture_based_voting/blob/main/secure_gestures.py): `secure_gestures.py`
- [Gesture security](https://github.com/karuturinoushikajay/secure_gesture_based_voting/blob/main/gesture_security.py): `gesture_security.py`

### Election data

- [Election database](https://github.com/karuturinoushikajay/secure_gesture_based_voting/blob/main/evoting.db): `evoting.db`
- [Database schema](https://github.com/karuturinoushikajay/secure_gesture_based_voting/blob/main/init_database.py): `init_database.py`

### Other components

- **Voter**
- **Administrator**

## Connections

- Voter → Web routes: uses routes (evidence: `app.py`)
- Administrator → Web routes: uses routes (evidence: `app.py`)
- Web routes → Election database: reads and writes (evidence: `app.py`)
- Database schema → Election database: creates tables (evidence: `init_database.py`)
- Face enrollment data → Face detection: detects faces (evidence: `dataset.py`)
- Gesture recognition → Gesture security: validates frames (evidence: `secure_gestures.py`)
- Gesture security → Face recognition: checks identity (evidence: `gesture_security.py`)
