Capture OCR screenshots at 2x scale
Tesseract routinely drops small caption text at native resolution — the weather panel's detail labels fail the WIND assertion with the text plainly on screen. Let the compositor upscale the capture instead.
This commit is contained in:
@@ -36,7 +36,9 @@ screen_contains() {
|
||||
local text="$1"
|
||||
local snapshot="/tmp/omarchy-acceptance-ocr-$$.png"
|
||||
|
||||
if ! timeout 10 grim "$snapshot" 2>/dev/null; then
|
||||
# Capture at 2x scale: tesseract routinely drops small caption text at
|
||||
# native resolution (the weather panel's detail labels, for one).
|
||||
if ! timeout 10 grim -s 2 "$snapshot" 2>/dev/null; then
|
||||
rm -f "$snapshot"
|
||||
return 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user