Sample Header Ad - 728x90

Scripting tesseract for file manager context menu

0 votes
1 answer
129 views
File manager context menu scripts sometimes do the job far quicker than using a GUI utility. So I've been using dozens of simple and more complex scripts for a long time in file managers Dolphin, Nautilus and Nemo, although I have elementary level scripting skills. However, this time I'm stuck with a very simple loop to OCR selected image file(s) using **tesseract** in **Dolphin**, which works in many other scripts: for filename in "${@}"; do tesseract -l eng "$filename" "${filename%.*}" done This should normally be executed for a selected image (or each and every one of the selected images) like this, a command which works in Terminal, giving me a text file named "image.txt": tesseract -l eng "image.png" "image" Any ideas please???
Asked by Sadi (515 rep)
Feb 25, 2022, 02:20 PM
Last activity: Feb 27, 2022, 06:05 PM