alias ocr="wl-paste --type image/png | tesseract stdin stdout | wl-copy"
Occasionally I find myself within the maze of navigating the “world wide web” and trying to do something simple.
Ever tried to generate a QR code and realized the link is not to your domain, but to the QR’s generated site, so tracking and ads can be implemented ?
Or tried to convert a PDF and stumbled upon the dreaded adobe domain?
Anyway, I’m getting off topic.
I’ve had this same issue with OCR, so simply put, I created an alias that OCR’s the image in my clipboard, and copies said result back into clipboard.
Install tesseract-ocr and if asked about the data, aur etc, install the -eng version.
Add your alias, and voila, you can now copy an image, run ocr in your terminal, and paste the text anywhere you want.