Skip to content

Conversation

@jtabor
Copy link

@jtabor jtabor commented Sep 19, 2025

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