惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
雷峰网
雷峰网
Last Week in AI
Last Week in AI
T
Tailwind CSS Blog
V
Visual Studio Blog
Jina AI
Jina AI
博客园 - 司徒正美
The Cloudflare Blog
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
S
SegmentFault 最新的问题
博客园 - 三生石上(FineUI控件)
有赞技术团队
有赞技术团队
小众软件
小众软件
V
V2EX
Apple Machine Learning Research
Apple Machine Learning Research
美团技术团队
博客园 - 【当耐特】
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
IT之家
IT之家
WordPress大学
WordPress大学
爱范儿
爱范儿
月光博客
月光博客
大猫的无限游戏
大猫的无限游戏

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
How I Built an AI Bank Statement Parser for Indian CAs Us...
Hardik X · 2026-06-23 · via DEV Community

Hardik X

How I Built an AI Bank Statement Parser for Indian CAs Using Python and Anthropic API
As a solo founder, I built AarogyamFin — an AI-powered bank statement analyzer for Indian Chartered Accountants. Here's the technical story behind it.
The Problem
Indian bank statements come in 30+ different PDF formats. SBI looks completely different from HDFC. Kotak's format changes every 6 months. Manual parsing was impossible to scale.
The Architecture
PDF Upload → Bank Detection → Parser → OCR Fallback → AI Analysis
Tech Stack:

Backend: Flask (Python)
PDF Parsing: PyMuPDF + pdfplumber
OCR: Tesseract + pdf2image (for scanned PDFs)
AI: Anthropic API (transaction categorization + chat)
Database: Supabase (PostgreSQL)
Payments: Razorpay
Hosting: Railway
CDN/WAF: Cloudflare

Bank Detection Logic
Instead of asking users which bank they're from, I built an auto-detector:
pythondef detect_bank(pdf_path):
text = extract_text(pdf_path)
if "State Bank of India" in text:
return SBIParser()
elif "HDFC Bank" in text:
return HDFCParser()
# ... 30+ banks
else:
return UniversalParser()
The OCR Fallback
Some banks (BOB, PNB) generate image-based PDFs. PyMuPDF returns empty text. Solution:
pythonif not transactions:
from parsers.ocr_fallback import ocr_parse
transactions = ocr_parse(pdf_path)
Tesseract + pdf2image converts pages to images and extracts text.
Anthropic API for Intelligence
After extraction, Anthropic API categorizes transactions and powers the AI chat:
pythonresponse = anthropic.messages.create(
messages=[{"role": "user", "content": user_query}],
system=f"You are analyzing this bank statement data: {transactions}"
)
What I Learned

Indian PDFs are wildly inconsistent — regex-based parsers break constantly
OCR is slow but necessary for scanned statements
Anthropic API is the best cost/performance ratio for this use case
Per-parse pricing (₹49) works better than subscriptions for CA workflows

Result
AarogyamFin now supports 30+ Indian banks, deployed on Railway, serving CAs, DSAs and NBFCs across India.
Live at: aarogyamfin.com
DPIIT Recognised Startup — DIPP265941