|
# =============================== |
|
# π¦ Requirements for Flowchart-to-English App |
|
# =============================== |
|
|
|
# π Web App Frameworks |
|
streamlit # UI interface for uploading images and viewing output |
|
fastapi # Backend API for image parsing |
|
uvicorn[standard] # ASGI server to serve FastAPI app |
|
|
|
# π Communication and File Upload |
|
requests # For Streamlit-to-FastAPI HTTP calls |
|
python-multipart # Enables file uploads in FastAPI |
|
|
|
# πΌ Image Processing |
|
pillow # PIL image handling |
|
opencv-python-headless # OpenCV without GUI dependencies |
|
numpy # Core image array operations |
|
|
|
# π OCR & Text Processing |
|
easyocr # GPU-capable OCR engine |
|
textblob # Optional: lightweight text post-processing (optional) |
|
|
|
# π€ Object Detection and Language Models |
|
ultralytics # YOLOv8/v9 detection (loads .pt models) |
|
torch # Backend for YOLO and EasyOCR |
|
transformers # Optional: used for text summarization (LLMs) |
|
|
|
# π Geometry Utilities |
|
shapely # Geometry operations for arrow-head box logic |
|
|
|
# β
Optional Debug Tools (Uncomment if needed) |
|
# matplotlib # For plotting / bounding box debug |
|
|
|
accelerate #needed for LLM GPU Acceleration |