Clicking by Reading: How Reliably Does Off-the-Shelf OCR Ground Text Targets for Computer-Use Agents? A Controlled and Real-Web Measurement
Computer-use agents often need to turn an instruction such as "click *Sign in*" into a screen coordinate. A cheap and common way to do this is to run optical character recognition (OCR) on a screenshot, find the label and click the centre of its box. We measure how reliable this is with two engines that run locally on a desktop computer, Tesseract 5.4 and the Windows built-in OCR, and four ways of matching the label to the OCR output. Each click is scored against ground-truth element boxes as a hit, a click on a different element, a click on empty space or a miss. We use two test sets. A controlled set has 576 rendered screens with 13,824 targets, varying font, theme, font size and display scale. A real-web set has 134 screenshots of 36 public websites with 2,826 targets, taken from the browser's own layout. On the controlled set the best combination (Tesseract with fuzzy matching) hit 89.0% of targets. Font size and display scale dominated, while the colour theme had no measurable effect on Tesseract. On real pages the best combination (Tesseract with exact token matching) hit 64.8% (95% CI 63.0–66.5) and clicked a different element 14.9% of the time. The matching policy that was safest on rendered screens, which requires the label to stand alone, missed 57.1% of real targets, because real links sit next to other text. The largest single source of wrong clicks was labels that occur more than once on the same page: 22.5% of real targets shared their label with another target, and for these the hit rate fell from 78.4% to 17.8% while wrong-element clicks rose from 1.0% to 62.6%. Synthetic screens overstated the best Tesseract hit rate by 24 points and reversed the ranking of matching policies. Agents that ground by text should check whether a label is unique before clicking, and should disambiguate it when it is not. Code, logs and derived data to reproduce every number are in the attached archive. Preprint, not peer-reviewed.
Authors
- Akil Hassane
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-25
- DOI
- https://doi.org/10.5281/zenodo.24543120
- Primary Topic
- Web Data Mining and Analysis
- Type
- preprint