8
submitted 3 years ago* (last edited 3 years ago) by qqq@programming.dev to c/linux@programming.dev
top 3 comments
sorted by: hot top new old
[-] motorondo@lemmy.ml 2 points 3 years 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!!

[-] Hexarei@programming.dev 1 points 3 years ago

This is gorgeous, I've used flame shot for years, and constantly use xclip, never once thought about sticking OCR in the middle.

Awesome stuff.

[-] nullpotential@lemmy.dbzer0.com 1 points 2 years ago

Holler holler get doller. Thank you very much. Now I just need a way to use a custom image host.

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

Linux

15173 readers
395 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

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

founded 3 years ago
MODERATORS