File size: 2,151 Bytes
1697f4e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | ---
language:
- en
- ar
tags:
- ocr
- table-extraction
- document-ai
- paddleocr
- pdf
- arabic
- english
---
# OCR Table Extractor
## Overview
This project extracts structured tables from scanned PDF documents and images.
PaddleOCR-VL is used as the primary table extraction model. Gemini independently analyzes the same document and is used as a verification model to identify cells that may require manual review.
## Features
- Scanned PDF and image upload
- Automatic table extraction
- English and Arabic table support
- Excel workbook generation
- Highlighted disagreements between models
- Review Needed worksheet
- Summary worksheet
- Supabase storage and job tracking
## Base Model
This project uses the official PaddleOCR-VL model.
The PaddleOCR-VL weights were not trained or created by this project. They are downloaded automatically through PaddleOCR when the backend starts.
No custom fine-tuned checkpoint has been uploaded yet.
## Processing Pipeline
1. A user uploads a PDF or image.
2. PaddleOCR-VL detects and extracts the tables.
3. Gemini extracts the same document independently.
4. The two outputs are compared.
5. PaddleOCR remains the primary output.
6. Different cells are highlighted for manual review.
7. A reviewed Excel workbook is generated.
## Supported Inputs
- PDF
- PNG
- JPG
- JPEG
- WebP
## Supported Languages
- English
- Arabic
- Mixed English and Arabic tables
## Current Limitations
- Arabic OCR may contain spelling or character errors.
- Complex merged cells may be interpreted differently.
- Tables continuing across pages may require post-processing.
- Gemini availability depends on its external API.
- The public Vercel deployment currently contains the frontend only.
- The PaddleOCR backend requires a separate machine with suitable processing capacity.
## Source Code
https://github.com/hazemmohamedsayed/OCR-table-extractor
## Live Frontend
https://ocr-table-extractor-lemon.vercel.app
## Future Work
- Fine-tune a model using company-specific bilingual forms.
- Improve Arabic text normalization.
- Improve multi-page table merging.
- Deploy the FastAPI OCR backend publicly. |