DEV Community

Cover image for Open Source Emotion‑Aware Access Control with Face Verification

Open Source Emotion‑Aware Access Control with Face Verification

Gatekeeper: Emotion‑Aware Access Control with Face Verification

What if your system could deny access not just based on who you are, but on how you feel?

Gatekeeper is a Python‑based security framework that layers real‑time face verification with emotion analysis before granting access.

How it works

  1. Verify identity against a reference image or an admin pool.
  2. Analyze emotions (anger, fear, joy, etc.) and evaluate them against a configurable policy (blocked states, thresholds, weights).
  3. Only grant access if both checks pass.

Why it matters

Critical operations (financial systems, secure rooms, privileged commands) deserve more than binary yes/no. By assessing emotional state, you reduce the risk of coercion, panic, or compromised decision‑making in high‑impact environments.

Get started


bash
git clone https://github.com/arpahls/gatekeeper
cd gatekeeper
python -m venv .venv
.venv\Scripts\activate  # or 'source .venv/bin/activate' on Linux/macOS
pip install -r requirements.txt
python scripts/run_terminal.py
Enter fullscreen mode Exit fullscreen mode

Top comments (0)