The original post: /r/linux by /u/ashtraxk on 2025-03-12 10:13:41.
Basically what it does is that it opens spectacle (you must have it installed), capture a region, click on save. and tesseract (also install the relevant language pack) will extract the text from it and display it in a nice window.
You can select the language for the OCR using the --lang
flag
You can see the full details in the github repo
You can download the binary from the releases page, put it in /usr/local/bin and set a keyboard shortcut to spectacle-ocr-screenshot
to use it from anywhere to extract text.
Blog post for extra info: https://funinkina.is-a.dev/blog/building-ocr-in-plasmas-spectacle-using-c-/
You must log in or register to comment.