This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Extract with tesseract

Tags: None
(comma "," separated)
dzon
Registered Member
Posts
493
Karma
3

Extract with tesseract

Mon Jun 27, 2022 9:33 am
Since poppler seems to have issues I needed something else to extract text from image files. Tesseract does the trick (install tesseract). Made a simple dolphin servicemenu for it. In case someone needs it. Just place it in ~/.local/share/kservices5/ or ~/.local/share/kservices5/ServiceMenus ( if you should have a subfolder for the stuff). https://imgur.com/a/M6BA7iu https://imgur.com/a/tFH6aM1

[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=image/*;
Actions=ExtractText;
X-KDE-Priority=TopLevel
X-KDE-StartupNotify=false
Icon=document-sign

[Desktop Action ExtractText]
Icon=document-sign
Name=ExtractText
Name[en]=ExtractText
Exec=tesseract %f output.txt


This realm's name is Maya. And she speaks Hertz. But Ahamkara makes a fuzz about it.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]