VeriDoc
VeriDoc: See What the Human Eye Can't
The problem VeriDoc solves
What is VeriDoc and Why Does it Matter?
VeriDoc is an intelligent forensic engine designed to restore trust in digital documents. In a world where anyone can edit a bank statement or ID card using free tools like Canva or Photoshop, trusting a file based on "how it looks" is no longer safe. VeriDoc acts as an automated forensic expert, analyzing the "Digital DNA" of a document to detect invisible fraud that the human eye misses.
- What People Can Use It For (Use Cases)
VeriDoc serves as a critical defense layer for any industry that relies on documents for trust:
🏦 Digital Lending & Banks: Automatically verifying Bank Statements and Salary Slips for loan approvals. It ensures borrowers haven't inflated their income or deleted transaction rows to hide debts.
🆔 KYC & Identity Verification: Instantly validating Aadhaar and PAN cards to ensure the name, photo, or date of birth hasn't been digitally patched or swapped.
🏢 HR & Employment Screening: Helping HR teams verify candidate salary slips during hiring, ensuring that the "Current Salary" hasn't been edited to negotiate a higher pay package.
🏠 Tenant Verification: Landlords can verify a tenant's financial proof to ensure they have the funds to pay rent, without falling for forged statements.
- How It Makes Tasks Easier & Safer
🚀 Makes Verification Faster (From 20 Minutes to 2 Seconds)
The Old Way: A human loan officer manually reads a bank statement, uses a calculator to check the totals, and squints at the screen to see if fonts match. This is slow and prone to error.
The VeriDoc Way: The system instantly reads the entire document, performing hundreds of mathematical and visual checks in under 3 seconds. It turns a manual bottleneck into an instant "Green Light/Red Light" decision.
🛡️ Makes Ecosystems Safer (Catches "Invisible" Fraud)
Stops "Lazy Fraud": A human might not notice if someone edits a "5,000" to "50,000" if the font looks perfect. VeriDoc’s Math Logic Engine catches this by recalculating the entire ledger row-by-row. If the balance doesn't add up mathematically, it flags the fraud instantly.
Sees What Humans Can't: It analyzes the file's Metadata (hidden code) to see if software like "Photoshop" was used. It uses Computer Vision (ELA) to detect if pixels have been tampered with, identifying "patches" where text was erased or changed.
🧠 Makes Technology Smarter (Reduces False Alarms)
Smart Screenshot Mode: Unlike older tools that reject everything that looks digital, VeriDoc is intelligent. It distinguishes between a clean, genuine mobile screenshot (which is verified) and a manipulated image (which is rejected). This ensures genuine users aren't blocked just for uploading a screenshot.
Challenges we ran into
Challenges I ran into
Building a forensic engine in 48 hours came with significant hurdles. Here are the three biggest challenges I faced and how I overcame them:
- The "False Positive" Trap with Screenshots
The Problem: Initially, my Visual Forensics layer (Error Level Analysis) was too aggressive. It flagged every clean mobile screenshot as "Fake" because the sharp contrast of text on a digital background looked like "high noise" to the computer vision algorithm.
The Fix: I implemented a "Smart Screenshot Mode". I wrote logic to calculate the Global Mean Noise of the image. If the image is extremely clean (low noise), the system identifies it as a digital screenshot and automatically relaxes the threshold, preventing false alarms while still catching actual patch edits.
- PDF Parsing & Math Inconsistencies
The Problem: When verifying bank statements, I ran into a critical bug where the PDF extraction library (pdfplumber) would sometimes drop the decimal point from numbers (e.g., reading 100.00 as 10000). This caused my "Math Logic Engine" to flag valid statements as fraud because the numbers didn't add up.
The Fix: I developed a "Fuzzy Logic" Math Verifier. Instead of just checking if A + B = C, the code now also checks if A + B = C / 100 (handling missing decimals). This made the system robust enough to handle messy PDF parsing without rejecting valid users.
- Tesseract OCR Integration on Windows
The Problem: Getting the Optical Character Recognition (OCR) to work reliably was tricky. The system kept throwing "File Not Found" errors even though Tesseract was installed.
The Fix: I learned how to manually configure the binary path in Python (pytesseract.tesseract_cmd) and added a fallback mechanism. If the OCR fails to read a file, the system now degrades gracefully to a "Metadata-Only" check rather than crashing the entire app.
Technologies used