From fb012de76b9111f4bc8c95956c54497f056c4609 Mon Sep 17 00:00:00 2001 From: Subinacls Date: Fri, 5 Jun 2026 14:02:43 -0400 Subject: [PATCH] updated to DNN for face detections --- .gitignore | 94 +++++++-- README.md | 6 +- backup | 13 -- config.example.json | 1 + face_enrollment.py | 36 +++- main.py | 49 ++++- requirements.txt | 4 +- src/iceyou/camera.py | 26 ++- src/iceyou/dnn_face_recognizer.py | 323 ++++++++++++++++++++++++++++++ src/iceyou/dnn_verify_worker.py | 143 +++++++++++++ src/iceyou/monitor.py | 14 +- src/iceyou/tray_app.py | 53 ++++- src/iceyou/white_screen.py | 35 +++- 13 files changed, 733 insertions(+), 64 deletions(-) delete mode 100644 backup create mode 100644 src/iceyou/dnn_face_recognizer.py create mode 100644 src/iceyou/dnn_verify_worker.py diff --git a/.gitignore b/.gitignore index 1f5d81a..7a86af6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,10 @@ -# Python +# ========================================================================== +# ICEYOU .gitignore +# Goal: never commit secrets, credentials, biometric/DNN data, captured +# media, logs, or local environment artifacts. +# ========================================================================== + +# --- Python --------------------------------------------------------------- __pycache__/ *.py[cod] *$py.class @@ -20,32 +26,96 @@ wheels/ .installed.cfg *.egg -# Virtualenv +# --- Virtual environments ------------------------------------------------- .venv/ venv/ ENV/ env/ -# Config & secrets +# ========================================================================== +# SECRETS & CONFIGURATION (NEVER COMMIT) +# ========================================================================== +# Real runtime config (contains email creds + unlock password). config.json -*.log +config.*.json +config.local.json +*.local.json +# ...but keep the safe placeholder template tracked. +!config.example.json +!config.sample.json + +# Environment / credential files +.env +.env.* +*.env +secrets* +*secret* +credentials* +*credentials* +*.pem +*.key +*.pfx +*.p12 +token* +*.token + +# ========================================================================== +# BIOMETRIC / FACE-RECOGNITION & DNN MODEL DATA (NEVER COMMIT) +# ========================================================================== +# Enrolled face images + all per-identity folders +faces/ +faces/** + +# Model + encoding artifacts (DNN / LBPH) wherever they live +*.pkl +*.dat +*.h5 +*.onnx +*.caffemodel +*.pb +*.tflite +*.npy +*.npz +model.yml +trainer*.yml +face_encodings.pkl +dnn_labels.json +labels.json + +# Temp images written during face-unlock verification +iceyou_dnn_*.png +iceyou_verify_*.png + +# ========================================================================== +# CAPTURED MEDIA, LOGS & RUNTIME ARTIFACTS (NEVER COMMIT) +# ========================================================================== snapshots/ motion_clips/ -faces/ -events.log +backup backup/ +*.log +events.log +iceyou_crash.log -# IDE +# Loose captured media +*.avi +*.mp4 +*.mkv +*.mov +*.jpg +*.jpeg +*.png +*.bmp + +# --- IDE / editor --------------------------------------------------------- .vscode/ .idea/ *.swp *.swo -# OS +# --- OS ------------------------------------------------------------------- Thumbs.db .DS_Store -# PyInstaller -*.spec -build/ -dist/ \ No newline at end of file +# --- PyInstaller ---------------------------------------------------------- +*.spec \ No newline at end of file diff --git a/README.md b/README.md index 6eb74f0..91518ae 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,11 @@ Optional second unlock path next to the password. - Hold a steady face ≥ 2 s — auto-capture - **R** restart, **Q / ESC** quit - For glasses / headphones / hats, **re-run with the same `--name`** so LBPH learns all your looks under one identity. Each session appends to `faces/