qqq@programming.dev to Linux@programming.devEnglish · edit-21 year agoFast OCR to clipboardwillbush.devexternal-linkmessage-square2fedilinkarrow-up14arrow-down10
arrow-up14arrow-down1external-linkFast OCR to clipboardwillbush.devqqq@programming.dev to Linux@programming.devEnglish · edit-21 year agomessage-square2fedilink
minus-squaremotorondo@lemmy.mllinkfedilinkarrow-up2·1 year agoThanks 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!!
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!!