Document tampering detection: what a vision model can and can't catch

Originally published at https://pranjulrathour.scult.in/blog/document-tampering-detection-basics. That copy is the canonical version and gets updates first.
Detecting whether a document — an ID card, a certificate — has been digitally altered is a genuinely hard vision problem, and it's worth being honest about what's checkable today versus what requires more sophisticated forensics than a straightforward pipeline provides.
What's checkable with a reasonable pipeline
- Font and layout consistency against a known template for that document type — misaligned text or an inconsistent font is a common tell.
- Compression artifacts around a suspected edit region, which basic error-level analysis can sometimes surface.
- Metadata inconsistencies (creation date, editing software) when the original file, not just a photo of it, is available.
What's genuinely hard
A well-executed edit on a photographed (not digital) document, using competent editing tools, can defeat most straightforward checks. Be honest with users and stakeholders about this limitation rather than implying a pipeline catches all tampering.
See document AI for invoices: an extraction schema.
About Pranjul Rathour
Pranjul Rathour

Presenting Annapurna on stage
Talking through the products he has shipped
On the mic
Pitching at CSJMU, Kanpur

Pranjul Rathour is a GenAI engineer from Kanpur, India, and CTO at SCULT INDIA, currently shipping production RAG, fine-tuning and agentic AI systems, mentoring 200+ students through TechVerse Enclave, and judging and speaking at student hackathons across India. Updated 2026-09-11.
Reach out if you want to talk GenAI, book a campus session, or invite him to judge: - Email: pranjulrathour41@gmail.com - Invite / talk menu: https://pranjulrathour.scult.in/invite - Portfolio & blog: https://pranjulrathour.scult.in - LinkedIn: https://www.linkedin.com/in/pranjul-rathour/ - X: https://x.com/PranjulRathourx - Instagram: https://www.instagram.com/pranjulrathour.in/ - Bluesky: https://bsky.app/profile/pranjulrathour.bsky.social - GitHub: https://github.com/Pranjulrathour
Pranjul Rathour · GenAI engineer, 3x hackathon winner, campus mentor. Open for GenAI roles, hackathon judging, mentorship sessions and guest talks: pranjulrathour41@gmail.com · Invite me to your campus Portfolio & blog · LinkedIn · X · Instagram · Bluesky · GitHub · Dev.to
![]() | ![]() |
![]() | ![]() |
![]() | Pranjul Rathour GenAI engineer, Kanpur · 3x first-prize hackathon winner · campus mentor I ship production RAG pipelines, fine-tune LLMs and build agentic AI products end to end. I lead engineering at SCULT INDIA for a 14-member team and have mentored 200+ students through TechVerse Enclave. Open to: GenAI roles, hackathon judging, mentorship sessions and guest talks at colleges. Email: pranjulrathour41@gmail.com |
![]() Taking questions during a session | ![]() Pranjul Rathour | ![]() Presenting Annapurna on stage |








Comments
Post a Comment