How arya920/signatureverificationproj works
This is an offline handwritten-signature verification product: users upload signatures, identify a claimed writer, and receive a genuine/forged/unknown decision with distance and a downloadable CSV. The runtime loads a trained embedder, reference embeddings, and threshold, then preprocesses each image and compares its embedding with the claimed writer’s references. The README also documents a training and evaluation workflow. Training internals are represented at notebook level because its source was not sampled; the graph does not assume undocumented wiring from the standalone service helpers.
Main entry points: app.py Streamlit app · Inference.py Distance verification · AdHoc_Testing.py Bulk evaluation · embedding_db.pkl Writer reference embeddings
Components 17
Verification app
- Streamlit app
app.py - Name mapping
services/user_mapping.py - Results and CSV
app.py - Asset loader helper
services/model_loader.py - Single-signature helper
services/verification_service.py
Inference runtime
- Image preprocessing
Inference.py - Writer embedding model
Inference.py - Distance verification
Inference.py
Training and evaluation
- Training pipeline
training_notebook.ipynb - Bulk evaluation
AdHoc_Testing.py - Error analysis
report.py
Model artifacts
- Model weights
artifacts/signature_embedder.pth - Writer reference embeddings
artifacts/embedding_db.pkl - Decision threshold
artifacts/threshold.txt - Test results CSV
artifacts/signature_test_report.csv
Other components
- Signature submitter
- CEDAR dataset
Connections 25
- Signature submitter → Streamlit app: uploads signatures
README.md - Streamlit app → Name mapping: maps names
- Streamlit app → Writer embedding model: loads model
app.py - Streamlit app → Writer reference embeddings: loads references
app.py - Streamlit app → Decision threshold: loads threshold
app.py - Streamlit app → Distance verification: verifies image
app.py - Streamlit app → Results and CSV: displays and exports
app.py - Distance verification → Writer reference embeddings: compares references
Inference.py - Distance verification → Decision threshold: applies cutoff
Inference.py - Distance verification → Image preprocessing: preprocesses image
Inference.py - Distance verification → Writer embedding model: extracts embedding
Inference.py - Asset loader helper → Writer embedding model: loads model
services/model_loader.py - Asset loader helper → Writer reference embeddings: loads references
services/model_loader.py - Asset loader helper → Decision threshold: loads threshold
services/model_loader.py - Single-signature helper → Distance verification: delegates verification
services/verification_service.py - CEDAR dataset → Training pipeline: supplies signatures
README.md - Training pipeline → Model weights: produces weights
README.md - Training pipeline → Writer reference embeddings: builds references
README.md - Training pipeline → Decision threshold: selects threshold
README.md - Bulk evaluation → Writer embedding model: loads model
AdHoc_Testing.py - Bulk evaluation → Writer reference embeddings: loads references
AdHoc_Testing.py - Bulk evaluation → Decision threshold: loads threshold
AdHoc_Testing.py - Bulk evaluation → Distance verification: tests signatures
AdHoc_Testing.py - Bulk evaluation → Test results CSV: writes results
AdHoc_Testing.py - Error analysis → Test results CSV: analyzes CSV
report.py