Identity Verification (KYC) — OCR & Face Match
Two production AI services that power ID-card OCR, document-authenticity detection and biometric face matching for banking and finance customer onboarding.
- Sector
- Banking (KYC platform)
- Role
- Developer — IDOCR & IDBM (AI/CV modules)
- Scope
- ID OCR + MRZ, authenticity detection, biometric face match
- Integration
- Flask REST API (JWT), Docker/Kubernetes microservices
- Status
- Live (in production)
- Face-verification error rate
- 1 in 10M
- Tech stack
- Python, Flask, YOLO (Ultralytics), Tesseract OCR, OpenCV, PyTorch, DeepFace, TensorFlow, dlib, MediaPipe, ONNX, JWT, Docker, Kubernetes, PostgreSQL, Gunicorn
Context
I built two independent microservices that form the AI core of a KYC (Know Your Customer) identity-verification platform. IDOCR reads the front and back of a national ID card and extracts its fields (ID number, name/surname, date of birth, validity, serial number, MRZ); detects whether an image is an ID and its orientation; and verifies document authenticity through security features. IDBM is a biometric face-matching service that compares a selfie against the ID photo, and additionally provides face analysis and landmark extraction.
IDOCR — ID OCR & authenticity detection
- ID detection & orientation: YOLO-based detection of whether an image is an ID and whether it is the front or back side.
- Field OCR: Extraction of ID number, name/surname, date of birth, validity, gender and serial number from the front (YOLO region detection + Tesseract OCR).
- MRZ reading: Back-side MRZ parsing and cross-validation against the front-side fields.
- Authenticity / security features: Hologram and MLI detection on the front, guilloche detection on the back.
IDBM — Biometric face matching
- Face match (1:1): Selfie ↔ ID-photo comparison; distance- and threshold-based match decision.
- Multiple models & metrics: ArcFace, Facenet512, VGG-Face, SFace, etc.; cosine / euclidean_l2 metrics with per-model tuned thresholds.
- Face detection & landmarks: Face detection and landmark extraction via RetinaFace, MTCNN and MediaPipe.
- Liveness modules: Modules that check the verification is performed by a live person.
- Face analysis: Age, gender and emotion estimation; ONNX conversion for performance.
Deployment & operations
- Serving: Gunicorn + Flask; Docker images, scalable Kubernetes deployment.
- Security: JWT-based authentication and end-to-end encryption.
- Compliance: TSE documentation and certification for banking/KYC requirements.
Outcome
Beyond model development and service delivery, I also managed the TSE documentation and certification process. The face-verification system operates with a 1-in-10M error rate. Both services run in production as encrypted, JWT-protected REST APIs on Docker/Kubernetes and are used in banking customer-verification flows.