Skip to content

OCR on Screenshots with Pytesseract#14

Open
jtabor wants to merge 2 commits into
minhalvp:masterfrom
jtabor:feature/ocr
Open

OCR on Screenshots with Pytesseract#14
jtabor wants to merge 2 commits into
minhalvp:masterfrom
jtabor:feature/ocr

Conversation

@jtabor

@jtabor jtabor commented Sep 19, 2025

Copy link
Copy Markdown

This adds functions for ocr with screenshots. It's helps finding button locations when get_uilayout() can't find UI elements (ie. games where the layout just has a PlayerView element where the game is rendered and the UI elements from the game itself are not in the layout).

It passes full-sized screenshots into pytesseract and requires tesseract to be installed.

Similar to get_uilayout, the LLM can sometimes use the OCR functions to get what it needs instead of reading a screenshot, which saves tokens.

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.

2 participants