How jebapriya-j/internship-task works
This repository is a collection of internship PDF-processing tasks, not one integrated application. Its workflows cover PDF rotation and OCR, ICD-code extraction with coordinates or highlighting, general text/character extraction, and a small LangGraph clinical-note demo. The Flask and FastAPI routes own their respective upload and processing actions; the standalone scripts run their workflows directly. The top-level README gives no architectural detail, so the map follows the sampled source and omits unsupported links between tasks.
Main entry points: try.py Rotation API · app.py OCR upload API · Main.py ICD upload API · ocr/app.py OCR upload API
Components 30
OCR Services
- OCR upload API
app.py - PDF validation
app.py - Signed check and OCR
app.py - OCR PDF response
app.py - OCR upload API
ocr/app.py - Signed check and OCR
ocr/app.py - Rotation API
Rotate/try.py - PDF validation and save
Rotate/try.py - PDF rotation
Rotate/try.py - OCR conversion
Rotate/try.py - Processed PDF
Rotate/try.py
ICD Processing
- ICD upload API
Task4/Main.py - PDF validation and save
Task4/Main.py - Background task queue
Task4/Main.py - Background processor
Task4/Main.py - ICD codes and coordinates
Task4/Main.py - ICD JSON output
Task4/Main.py - Extract and highlight
Task3.py/app.py - Highlighted PDF and JSON
Task3.py/app.py
PDF Extraction
- Text extraction
Task1.py - Page and character export
Task2.py
Clinical Workflow
- State graph runner
Langgraph/app.py - Physician notes
Langgraph/app.py - Cardiologist notes
Langgraph/app.py - Surgical plan
Langgraph/app.py
Other components
- PDF submitter
- OCRmyPDF engine
- OCRmyPDF CLI
- PDF submitter
- PDF submitter
Connections 27
- PDF submitter → OCR upload API: uploads PDF
app.py - OCR upload API → PDF validation: validates file
app.py - OCR upload API → Signed check and OCR: saves and processes
app.py - Signed check and OCR → OCRmyPDF engine: runs OCR
app.py - OCR upload API → OCR PDF response: returns PDF
app.py - PDF submitter → OCR upload API: uploads PDF
ocr/app.py - OCR upload API → Signed check and OCR: processes upload
ocr/app.py - Signed check and OCR → OCRmyPDF engine: runs OCR
ocr/app.py - PDF submitter → Rotation API: uploads PDF
Rotate/try.py - Rotation API → PDF validation and save: validates and saves
Rotate/try.py - Rotation API → PDF rotation: rotates upload
Rotate/try.py - Rotation API → OCR conversion: converts rotated PDF
Rotate/try.py - OCR conversion → OCRmyPDF CLI: invokes CLI
Rotate/try.py - Rotation API → Processed PDF: returns PDF
Rotate/try.py - PDF submitter → ICD upload API: uploads PDF
Task4/Main.py - ICD upload API → PDF validation and save: saves upload
Task4/Main.py - ICD upload API → Background task queue: schedules task
Task4/Main.py - Background task queue → Background processor: dispatches task
Task4/Main.py - Background processor → ICD codes and coordinates: extracts codes
Task4/Main.py - Background processor → ICD JSON output: writes results
Task4/Main.py - PDF submitter → Extract and highlight: provides PDF
Task3.py/app.py - Extract and highlight → Highlighted PDF and JSON: creates artifacts
Task3.py/app.py - Text extraction → PDF submitter: prints extracted text
Task1.py - Page and character export → PDF submitter: writes JSON
Task2.py - State graph runner → Physician notes: runs first
Langgraph/app.py - Physician notes → Cardiologist notes: passes notes
Langgraph/app.py - Cardiologist notes → Surgical plan: passes findings
Langgraph/app.py