3/14/2024 0 Comments Japanese ocr stack exchange![]() ![]() (recognition was abysmal without that "-psm 10", and Tesseract kept throwing "empty page" errors as well)Īnother two things I did were: chmod a+x /home/takingitcasual/Documents/Translate/Īnd setting the temp files permissions to read/write for all. ![]() Limit recognition to one character at a time.Simplify the script to something I can more easily understand (removal of temp files).Replacing scrot (the way gnome-screenshot works looks much nicer IMO).Removing the need for sudo (to allow for easy hotkey binding).#you can only scan one character at a time Mogrify -modulate 100,0 -resize 400% $SCR.pngĬat $SCR.txt | xclip -selection clipboard SCR="/home/takingitcasual/Documents/Translate/temp" # Dependencies: tesseract-ocr imagemagick gnome-screenshot xclip Based off of this script (the 2nd one) I whittled the script down to this: #!/bin/bash ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |