https://github.com/hiborn4/kpidociq
AI-powered document intelligence system for extracting KPIs from industrial reports, PDFs, and scanned tables using computer vision, OCR, and LLMs.
https://github.com/hiborn4/kpidociq
Last synced: 12 months ago
JSON representation
AI-powered document intelligence system for extracting KPIs from industrial reports, PDFs, and scanned tables using computer vision, OCR, and LLMs.
- Host: GitHub
- URL: https://github.com/hiborn4/kpidociq
- Owner: HiBorn4
- Created: 2024-05-30T06:33:27.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-08-06T18:31:23.000Z (12 months ago)
- Last Synced: 2025-08-06T20:36:12.637Z (12 months ago)
- Language: Python
- Homepage:
- Size: 51.6 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐ง i4Ideas: AI-Powered Document Processing & Extraction System

> An advanced AI-based system that extracts complex tabular and structured information from technical documents with unmatched precision. Built for manufacturing, steel, and QA/QC workflows.
---
### ๐ธ Visual Workflow โ Document โ Table โ KPI Extraction

๐ Raw Document

โ๏ธ Cropped Table

๐ง KPIs
---
## ๐ Overview
**i4Ideas** is a state-of-the-art, production-grade document parsing system designed to extract meaningful data from industrial reports like tensile strength sheets, quality certificates, and lab reports. The system leverages deep learning, OCR, and vision-language models to output structured, human-verified JSON for downstream analytics or compliance.
This solution has been **field-tested across diverse document formats**, including JSW, Tata, Hyundai, and Jamshedpur technical data sheets.
---
## ๐ง Core Capabilities
- ๐ **PDF โ Table/Image Extraction**
- ๐ **Object Detection (YOLOv5 / ResNet50)** to locate tabular blocks
- ๐งพ **PaddleOCR / Adobe OCR** integration for clean text extraction
- ๐ค **LLM-Powered Parsing (GPT)** using domain-specific prompts
- ๐ **Aesthetic JSON Output** with units and data validation
- ๐ **Multi-format switch handling** (JSW, Tata, Hyundai, etc.)
---
## ๐ธ Supported Formats
| Company | Keys Extracted |
|----------------|------------------------------------------------------------------------------|
| JSW Steel | `Coil No`, `YS`, `UTS`, `EL`, `Ra` |
| Tata Steel | `Mother Coil`, `YS`, `UTS`, `EL`, `rBAR`, `n`, `Ra` |
| Jamshedpur | `Coil No`, `YS`, `UTS`, `EL`, `rVALUE`, `NVALM`, `RaMICROM` |
| Hyundai | `Dimension`, `YP`, `TS`, `EL`, `Ra` |
| Maharashtra | `Product No`, `YP`, `TS`, `EL`, `Ra` |
---
## ๐ Installation
```bash
git clone https://github.com/HiBorn4/AI-powered-document-processing-and-extraction-system.git
cd AI-powered-document-processing-and-extraction-system
pip install -r requirements.txt
````
---
## ๐ฅ Demo
*(Add video preview here)*
---
## ๐งช Example Output
```json
{
"NC65081000": {
"YS": "347 MPa",
"UTS": "294 MPa",
"EL": "45%",
"Ra": "67.39 ฮผm"
},
"NC65082000": {
"YS": "364 MPa",
"UTS": "470 MPa",
"EL": "80%",
"Ra": "28.10 ฮผm"
}
}
```
---
## ๐ Project Structure
```
๐ฆ AI-powered-document-processing-and-extraction-system
โโโ bulk_table_extraction.py # Batch document processing
โโโ extract_keys.py # Prompt-based LLM key-value extraction
โโโ table_detection.py # YOLO/ResNet table detection pipeline
โโโ pdf_to_image.py # Converts PDF to image for OCR
โโโ paddleocr_implemented/ # PaddleOCR model directory
โโโ jcap_tsr.py, tata_tsr.py, jsw_tsr.py # Custom flows per company
โโโ image_postprocess.py # Image cleaning and noise reduction
โโโ summarize_prompts.py # Prompt engineering and format matching
```
---
## ๐ฆ Tech Stack
* ๐ง **OpenAI GPT (Function Calling + Vision)**
* ๐งพ **PaddleOCR / Adobe Acrobat OCR**
* ๐ผ๏ธ **YOLOv5 / ResNet50** for layout detection
* ๐งช **Prompt Engineering** for reliable key mapping
* ๐ **PDF2Image**, **Pillow**, **Pandas**
---
## ๐ Use Cases
* Steel Manufacturing QA Automation
* Compliance & Lab Test Report Digitization
* Quality Certificate Parsing & Validation
* Document Indexing for Enterprise Search
---
## ๐ผ Portfolio & Freelance Suitability
This project is ideal to showcase:
* LLMOps / Document AI skills
* OCR + Vision + GPT integration
* Custom multi-format prompt engineering
* PDF/Scan processing pipelines
---
## ๐ฌ Contact
For collaboration or freelance work:
* ๐ผ **Upwork**: [HiBorn4](https://www.upwork.com/freelancers/~hiborn4)
* ๐ป **GitHub**: [HiBorn4](https://github.com/HiBorn4)
* ๐ซ **Email**: [reach.hiborn@gmail.com](mailto:reach.hiborn4@gmail.com)
---
## ๐ License
MIT License. ยฉ 2025 HiBorn4