How koi-nykwak/seal-verification-source works
This repository implements stamp verification: a caller supplies document or stamp images, and StampVerificationProcessor uses configured ONNX models and image-processing helpers to extract stamps, assess stamp shape and quality, and compare stamp images. The excerpts show document-type extraction branches and comparison logic, but not a public API or all routing details, so the graph focuses on the processor and the evidenced model/helper calls.
Main entry points: processor.py Verification processor · baseModel.py ONNX inference base · obbModel.py Oriented detection · segModel.py Stamp segmentation
Components 15
Verification workflow
- Verification processor
processor.py - Stamp extraction
processor.py - Stamp assessment
processor.py - Stamp comparison
processor.py - Verification result
processor.py - Model configuration
config.py
Inference models
- ONNX inference base
models/baseModel.py - Oriented detection
models/obbModel.py - Stamp segmentation
models/segModel.py - Shape and quality
models/shapeModel.py - Stamp embedding
models/edgeFace.py - Stamp classification
models/clsModel.py - Object detection
models/detModel.py
Image processing
- Image helpers
utils.py
Other components
- Image caller
Connections 24
- Image caller → Verification processor: provides images
- Verification processor → Model configuration: uses settings
processor.py - Verification processor → Stamp extraction: dispatches extraction
processor.py - Verification processor → Stamp comparison: runs comparison
processor.py - Verification processor → Stamp assessment: assesses stamps
processor.py - Verification processor → Oriented detection: runs detection
processor.py - Verification processor → Stamp segmentation: runs masks
processor.py - Verification processor → Shape and quality: gets shape
processor.py - Verification processor → Stamp embedding: gets embeddings
processor.py - Verification processor → Image helpers: uses helpers
processor.py - Stamp extraction → Oriented detection: detects stamp regions
processor.py - Stamp extraction → Image helpers: crops stamp images
processor.py - Stamp assessment → Shape and quality: checks quality
processor.py - Stamp assessment → Oriented detection: detects stamp marks
processor.py - Stamp comparison → Stamp embedding: compares embeddings
processor.py - Stamp comparison → Stamp segmentation: creates masks
processor.py - Stamp comparison → Image helpers: extracts scanner stamps
processor.py - Verification processor → Verification result: returns results
processor.py - Oriented detection → ONNX inference base: inherits inference
models/obbModel.py - Stamp segmentation → ONNX inference base: inherits inference
models/segModel.py - Shape and quality → ONNX inference base: inherits inference
models/shapeModel.py - Stamp embedding → ONNX inference base: inherits inference
models/edgeFace.py - Stamp classification → ONNX inference base: inherits inference
models/clsModel.py - Object detection → ONNX inference base: inherits inference
models/detModel.py