←back to thread

953 points speckx | 1 comments | | HN request time: 0.201s | source
Show context
Noumenon72 ◴[] No.45675754[source]
> ocr my_image.png extracts text from an image and prints it to stdout. It only works on macOS

The Mac Shortcut at https://github.com/e-kotov/macos-shortcuts lets you select a particular area of the screen (as with Cmd-Shift-4) and copies the text out of that, allowing you to copy exactly the text you need from anywhere on your screen with one keyboard shortcut. Great for popups with unselectable text, and copying error messages from coworkers' screenshares.

replies(1): >>45678625 #
1. 0cf8612b2e1e ◴[] No.45678625[source]
I have a Linux equivalent that uses maim to select a region and then tesseract to do the OCR.