Linux Screenshot and OCR
Copy On Screen Text
Section titled “Copy On Screen Text”Copying text into the clipboard where for one reason or another it’s otherwise not possible. Text is on screen and processed into OCR to the clipboard.
Commands
Section titled “Commands”flameshot gui --raw \ | tesseract stdin stdout -l eng \ | xclip -in -selection clipboard
# flameshot :: Powerful yet simple to use screenshot software# tesseract :: Tesseract Open Source OCR Engine# xclip :: Command line interface to the X11 clipboard# If you're using Wayland, substitute xclip for wl-copy:
flameshot gui --raw \ | tesseract stdin stdout -l eng \ | wl-copyFlameshot Alternatives
Section titled “Flameshot Alternatives”Some Reddit users suggested these alternatives to flameshot
# maim :: (make image) takes screenshots of your desktop.# grim :: Grab images from a Wayland compositor
grim -g "$(slurp)" - \ ...
maim -s \ ...