this post was submitted on 18 Jun 2023
2 points (100.0% liked)

Linux

5185 readers
35 users here now

A community for everything relating to the linux operating system

Also check out !linux_memes@programming.dev

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 1 year ago
MODERATORS
top 1 comments
sorted by: hot top controversial new old
[–] motorondo@lemmy.ml 1 points 1 year ago

Thanks for this!!

I just realized I can use the following command to OCR a bitmap in the clipboard and put the text back into the clipboard.

xclip -out -selection clipboard -t image/bmp
| tesseract stdin stdout -l eng
| xclip -in -selection clipboard

This works in my linux VM (in Virtualbox on my work laptop) using bi-directional shared clipboard without touching my Windows software.

Mind blown!!