🆔 Egyptian National ID Card Corner & Boundary Detector
📌 Model Overview
This specialized computer vision model detects the 4 structural corners and orientation boundaries of both the Front and Back of the Egyptian National ID card.
It is designed to enable automatic 4-point perspective dewarping, correcting severe camera perspective distortion, angle tilts, and non-flat scanning before text recognition.
🎯 Classes
0: back-bottom1: back-left2: back-right3: back-up4: front-bottom5: front-left6: front-right7: front-up
⚡ Usage Example
from ultralytics import YOLO
from huggingface_hub import hf_hub_download
# Download weights
model_path = hf_hub_download(repo_id="moshabann/egyptian-id-card-detector", filename="detect_id_card.pt")
model = YOLO(model_path)
# Predict corners
results = model.predict("national_id_sample.jpg")
results[0].show()
👨💻 Author & Contact
- Engineer: Mohamed Shaban Ibrahim
- GitHub: @m0shaban
- PyPI: msalatmani
- Website: msalatmani.org