Replies: 2 comments
-
Alright I have figured out how to do it without needing to change the program at all. Here are the steps I took to get working OCR. Showcase: example.mp4Installing xclip, tesseract and tesseract's training data, then moving its training data to the appropriate location note: you can check where you need to move the files by running Install the appropriate packages: Clone the training data: Move the training data to tesseract: Making a bash script to OCR a temporary flameshot image Make a shell script in whatever location you chose, in this case I will be using
Then paste the following code into it:
And finally, make the file executable by running
Making a hotkey for the script on KDE Open Settings>System Settings>Keyboard>Shortcuts and click 'Add New', select 'Command or Script'. And type the following command:
Replace Username and ScriptLocation with your local user and the location with the location of the script. Click on 'Add custom shortcut' and add whatever key combination you want. Click 'Apply' You now have OCR with the press of a few buttons! Conclusion I do not think that there is a need to add anything to the program, the user can perfectly integrate such functionality on their own. However if the community wishes to, they can integrate tesseract into the program to add it as an option within it. It would not consume much memory or space and could be a neat addition, which as to my knowledge, no other screenshot program has right now! |
Beta Was this translation helpful? Give feedback.
-
About three years ago I posted this which might help you improve your workflow: https://mehrad.ai/posts/20210702-extracting-payment-info-in-rasterized-invoice/ |
Beta Was this translation helpful? Give feedback.
-
Idea.mp4
A screenshot ocr like this, I think it would be awesome and with how much AI has improved maybe it could be done. I could do a hotkey like ctrl+meta+c to copy the text I select. Like imagine if you look at a picture and see a restaurant name in the background but it is long so you do ctrl+meta+c select the area and boom you have it in your clipboard or in videos, if you want to reverse search a quote or something.
Beta Was this translation helpful? Give feedback.
All reactions