Here's a cool way to do OCR of any area of your screen and copy the result directly to you clipboard:
import png:- | tesseract stdin stdout | xclip -i -selection clipboard
You need
tesseract
and imagemagick
. This works on systems using the X windows system. There's another way to do it in Wayland.