Downloads · 30 days
0
marco-costa-ml/balatro-ocr
balatro-ocr is a image-to-text model from marco-costa-ml. Use it when you need a caption or text from an image. It is set up for paddleocr. The card lists the license as mit.
Fine-tuned PaddleOCR recognition model for extracting game state text from downscaled Balatro gameplay (360p).
Downloads · 30 days
0
Access
Public
Updated Mar 10, 2026
Repo size
8.8 MB
Likes
0
Public
Click a slice to open those files.
.pdiparams7.6 MB · 94%
From the Hugging Face model README
Fine-tuned PaddleOCR recognition model for extracting game state text from downscaled Balatro gameplay (360p).
The model is trained on UI text cropped from frames downscaled from 1920×1080 gameplay. It is intended for pipelines that reconstruct structured game state from video, typically for imitation learning or behavior cloning.
The repository includes:
text_boxes.json)balatro-ocr
├── example.png
├── inference
│ ├── inference.pdiparams
│ ├── inference.pdmodel
│ └── inference.yml
├── inference.py
├── text_boxes.json
└── README.md
Example 360p gameplay frame used for OCR.

text_boxes.json defines fixed UI regionsvideo frame
↓
downscale to 360p
↓
crop regions (text_boxes.json)
↓
Balatro OCR
↓
structured game state
The bounding boxes correspond to important UI elements such as:
pip install paddlepaddle paddleocr opencv-python numpy
The inference script uses internal PaddleOCR utilities, so clone the PaddleOCR repository:
git clone https://github.com/PaddlePaddle/PaddleOCR
Run the script from inside the PaddleOCR directory or ensure it is on PYTHONPATH.
Run OCR on the example frame:
python inference.py