Closed excited-tiger closed 5 years ago
I have no clue what's happening, sorry. I added the question on the forums: https://www.alfredforum.com/topic/12006-ocr-extract-text-from-snapshot/?do=findComment&comment=63988
Processing output of 'output.notification' with arg 'read_params_file: Can't open stdout Tesseract Open Source OCR Engine v4.0.0 with Leptonica
@excited-tiger did you resolve your issue? If so, please share your solution for others ;)
thank you very much! I have solved this problem in the following way。
export PATH=/usr/local/bin/:$PATH
screencapture -i /tmp/ocr_snapshot.png
tesseract -l chi_sim+eng /tmp/ocr_snapshot.png res
res=`cat res.txt`
echo $res
Thanks for your ideal!
thank you very much! I have solved this problem in the following way.
export PATH=/usr/local/bin/:$PATH
screencapture -i /tmp/ocr_snapshot.png
# tesseract -l [language type] /tmp/ocr_snapshot.png [outfiles]
tesseract -l chi_sim+eng /tmp/ocr_snapshot.png res
# set a variaables
res=`cat res.txt`
# Pass variables to the following file by outputting to the terminal file
echo $res
Thanks for your idea! Forgive my terrible English, and I can’t use the GitHub well.
在 2019年1月10日,下午5:09,Nico Prat notifications@github.com 写道:
@excited-tiger https://github.com/excited-tiger did you resolve your issue? If so, please share your solution for others ;)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nicooprat/alfred-ocr/issues/3#issuecomment-453022255, or mute the thread https://github.com/notifications/unsubscribe-auth/AqXRoBh3aXlBx-44fV0o73BuZawF2e4eks5vBwMwgaJpZM4ZyeaV.