Hereβs a complete, polished, and developer-friendly README.md for your DevBoard OCR+ FastAPI project:
# π§ DevBoard OCR+
A lightweight, production-ready FastAPI microservice that extracts **TODOs**, **PR references**, and **deadlines** from uploaded images or PDFs using **OCR** (`Tesseract`) and **regex-based NLP**.
---
## π Features
- β
Upload image or PDF files via API
- π§ Extracts actionable dev tasks like:
- `Fix login bug`
- `Review PR #42`
- `Deadline: 2025-07-22`
- βοΈ Powered by: https://github.com/tesseract-ocr/tesseract
- π Clean and regex-based extraction logic
- π¦Ύ Built with FastAPI and async IO
- πΌ Great for portfolio/demo projects
---
## πΈ Example
Upload a screenshot or scanned whiteboard that contains:Fix broken navbar Review PR #101 Deploy by 22/07/2025
The API returns:
```json
{
"text": "Fix broken navbar\nReview PR #101\nDeploy by 22/07/2025",
"todos": ["Fix broken navbar", "Review PR #101", "Deploy by 22/07/2025"],
"refs": ["PR #101"],
"dates": ["22/07/2025"]
}
git clone https://github.com/your-username/devboard-ocr.git
cd devboard-ocrpython -m venv venv
source venv/Scripts/activate # Windows
# OR
source venv/bin/activate # Linux/macOSpip install -r requirements.txt- Windows: Download Installer
- macOS:
brew install tesseract - Ubuntu:
sudo apt install tesseract-ocr
Create a .env file in the root:
TESSERACT_PATH=C:\Program Files\Tesseract-OCR\tesseract.exeUpdate the path to match your system.
uvicorn main:app --reloadThen open:
π http://localhost:8000/docs
Upload an image/PDF using the Swagger UI.
devboard-ocr/
βββ app/
β βββ routes/
β β βββ ocr.py
β βββ services/
β βββ ocr_service.py
βββ main.py
βββ .env
βββ .gitignore
βββ requirements.txt
βββ README.md
- FastAPI β blazing-fast Python web framework
- pytesseract β Python wrapper for Tesseract OCR
- Pillow β image handling
- dotenv β environment config
- re β built-in regex for text parsing
- PDF support with
pdf2image - SQLite task history
- Frontend dashboard with upload + history
- Background task queue for heavy processing
MIT β free to use, fork, and build on.
Built by Ammar Bin Shakir β feel free to fork & showcase π