All work

AI Automation

OCR Automation Platform

AI-Powered Document Processing & Extraction

A sophisticated OCR automation platform that transforms PDF documents into structured, actionable data through a multi-stage AI-powered pipeline. The platform features a simple, secure UI with password protection using local JSON file storage (no database required), admin-level password reset capabilities, and an intelligent document processing workflow that combines OCR libraries, Nanonets API, and LLM tool calling to extract and structure information from complex documents.

Type
AI/ML Automation Tool
Year
2025
Status
Delivered
OCR Automation Platform: AI-Powered Document Processing & Extraction, image 1
  • React
  • Next.js
  • TypeScript
  • OCR Libraries
  • Nanonets API
  • OpenAI GPT
  • LLM Tool Calling
  • PDF Processing
  • Markdown Conversion
  • DOCX Generation
  • Local JSON Storage
  • File Upload
  • Password Authentication

The story

The problem

Organizations struggle with manual document processing, unstructured PDF data extraction, and converting scanned documents into usable formats. Traditional OCR tools lack intelligent data structuring, multi-phase extraction capabilities, and the ability to handle complex document layouts. There's also a need for secure, lightweight password protection without database overhead.

The solution

Built a comprehensive OCR automation platform with a password-protected UI using local JSON file storage. Implemented a multi-phase extraction pipeline: PDF upload → OCR library text extraction → Markdown conversion → Nanonets API processing for enhanced data capture → LLM-powered processing with tool calls for intelligent structuring → Multi-format output generation (JSON, text, DOCX). The system includes admin access controls for password management and supports predefined document templates.

My approach

Designed a lightweight, secure architecture with local JSON-based password management. Implemented a multi-phase OCR pipeline that progressively enhances data extraction through OCR libraries, Nanonets API, and LLM tool calling. Created flexible output generation supporting multiple formats for maximum usability.

Goals

What I built

Password Protection System

Lightweight authentication using local JSON file storage. Admin users have elevated privileges to reset passwords and manage access.

PDF Upload & Processing

Secure file upload interface with drag-and-drop support. Validates PDF format and initiates processing pipeline.

Multi-Phase OCR Extraction

Stage 1: OCR library extracts text from PDF. Stage 2: Converts to markdown format. Stage 3: Nanonets API processes document and captures additional details missed in previous phases.

LLM Processing Pipeline

Intelligent processing using LLM with tool calling capabilities. Performs multiple steps to structure and enhance extracted data, identifying patterns and relationships.

Output Generation

Generates structured outputs in multiple formats: JSON for programmatic use, plain text for readability, and DOCX documents in predefined templates for professional documentation.

Admin Dashboard

Admin-only interface for password management, system configuration, and access control. Allows password reset if unauthorized changes occur.

Key capabilities

Tech stack

Frontend

Backend & infrastructure

AI layer

Payments & integrations

Architecture

The result