I updated the bash script to close issues reported in #4 and #7. The updated the bash script is:
export PATH=/usr/local/bin/:$PATH
screencapture -i /tmp/ocr_snapshot.png
if [{query} = ""]; then
tesseract --dpi 300 /tmp/ocr_snapshot.png stdout 2>&1
else
tesseract --dpi 300 /tmp/ocr_snapshot.png stdout -l {query} 2>&1
fi
The bash script solves #4 as suggested by @dkgrieshammer.
Supplying the undocumented default dpi value solves #7 when dpi parsing by tesseract fails under certain system configurations e.g. when using an external display
Many thanks! For some reason, the workflow downloaded from your PR was still containing the old bash script... I'll merge as is and update it afterwards along with the Readme :)
I updated the bash script to close issues reported in #4 and #7. The updated the bash script is:
The updated binary is included in the PR.