News for hackers. Stuff that matters.
Re:macOS screenshot tricks to impress your co-workers by rhinoceraptor on Thursday June 16, 2022 @04:14PM (#31770430)
This isn't totally screenshot related, but TextSniper is nice for quickly getting OCRed text from a selection on your screen, directly into your clipboard.

https://textsniper.app/

Re:macOS screenshot tricks to impress your co-workers by dagmx on Thursday June 16, 2022 @04:19PM (#31770492)
If you're on macOS 12 or iOS 15, you can also use the built in live text functionality in Safari, Preview or Photos
Re:macOS screenshot tricks to impress your co-workers by Tagbert on Thursday June 16, 2022 @04:45PM (#31770766)
True but that only applies to images displayed using the standard image library. TextSniper will capture text from any text displayed on screen, not just within an image. I use it often to pull text from things shared in Zoom. You can do it with the built-in Livetext but you have to do a screen shot, them bring that up in preview to get the text OCRd. TextSniper makes it a single operation.
Re:macOS screenshot tricks to impress your co-workers by BudaDude on Thursday June 16, 2022 @07:38PM (#31772321)
This only works on M1~ macs. Intel mac don't have OCR for some Apple-ish reason
Re:macOS screenshot tricks to impress your co-workers by Tagbert on Friday June 17, 2022 @12:32PM (#31780676)
When the beta containing Live Text was first released it was M1 only but by the time it was released, Intel support was included. A lot of people only remember the first impression.
Re:macOS screenshot tricks to impress your co-workers by dhosek on Thursday June 16, 2022 @09:48PM (#31773206)
It does work on Intel Macs. I've used it plenty of times.
Re:macOS screenshot tricks to impress your co-workers by blesswinsamuel on Thursday June 16, 2022 @05:44PM (#31771357)
Similar tool, but open source - https://github.com/amebalabs/TRex
Re:macOS screenshot tricks to impress your co-workers by mrzool on Thursday June 16, 2022 @04:53PM (#31770843)
I use macOCR[1] from the terminal for that.

[1]: https://github.com/schappim/macOCR

Re:macOS screenshot tricks to impress your co-workers by informalo on Thursday June 16, 2022 @06:39PM (#31771884)
You can also easily stitch something like that together yourself.

After `brew install pngpaste tesseract` (the latter is a dependency of the great OCRmyPDF tool btw), you can set `alias ocr="pngpaste - | tesseract -c debug_file=/dev/null stdin stdout | pbcopy; pbpaste"`.

I like having this alias better than macOCR because the workflow feels more ergonomic: You first cmd + shift + 4 to select text and then type `ocr` with the result being printed to stdout and being saved in your clipboard. With macOCR I have to go to the terminal first to initiate the process, then go back to what I want to screenshot etc.

Re:macOS screenshot tricks to impress your co-workers by definitely-not on Friday June 17, 2022 @12:55AM (#31774274)
For linux (or GNOME more specifically) there is Frog[1]. It uses Tesseract OCR[2] under the hood.

[1]: https://flathub.org/apps/details/com.github.tenderowl.frog

[2]: https://github.com/tesseract-ocr/tesseract

Re:macOS screenshot tricks to impress your co-workers by astrange on Thursday June 16, 2022 @06:32PM (#31771820)
There's a bunch of similar tools on Windows, usually for machine translating video games that haven't been localized.

eg https://github.com/Artikash/Textractor

Re:macOS screenshot tricks to impress your co-workers by kilroy123 on Thursday June 16, 2022 @05:00PM (#31770920)
Yeah, this tool has become indispensable for me.