nicooprat / alfred-ocr

Take a snapshot and recognize text
MIT License
65 stars 7 forks source link

Fixed missing language and dpi values. Closes #4 and #7. #10

Closed bergmul closed 3 years ago

bergmul commented 3 years ago

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 updated binary is included in the PR.

nicooprat commented 3 years ago

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 :)