This directory contains the original EasyOCR implementation to generate reference data for validation.
uv venv
source .venv/bin/activate
uv pip install -r requirements.txtuv run python generate_reference.py path/to/image.jpgOutputs JSON into python_reference/out/ by default.
Also writes python_reference/out/manifest.json including EasyOCR version and readtext(...) signature.
Scan directories recursively and preserve relative paths under --out-dir:
uv run python generate_reference.py ./my_images --relative-to ./my_images --out-dir ./outThis is convenient for driving the Python reference from Node-based integration tests later.
uv run uvicorn server:app --reload --port 8008Then POST /readtext with a multipart/form-data file field named image.
Capture the exact easyocr version and Reader.readtext(...) signature used by your Python
environment:
uv run python dump_readtext_signature.py