Skip to content

Remove paddleocr, use tesseract as default OCR engine - #5

Open
railway-app[bot] wants to merge 1 commit into
mainfrom
railway/code-change-ewbyy0
Open

Remove paddleocr, use tesseract as default OCR engine#5
railway-app[bot] wants to merge 1 commit into
mainfrom
railway/code-change-ewbyy0

Conversation

@railway-app

@railway-app railway-app Bot commented May 5, 2026

Copy link
Copy Markdown

Problem

PaddleOCR requires libGL.so.1 (OpenGL) which is absent in the python:3.11-slim base image, causing a fatal import error on startup: "libGL.so.1: cannot open shared object file: No such file or directory". This prevents the router from loading entirely.

Solution

Removed paddleocr>=2.7.0.3 from backend/requirements.txt and changed the default ocr_engine in backend/app/config.py from "paddleocr" to "tesseract". Tesseract is already listed as a dependency and works correctly in headless environments. PaddleOCR remains a valid config option for users who install it separately with the required system libraries.

Changes

  • Modified backend/requirements.txt
  • Modified backend/app/config.py

Generated by Railway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants