Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I use macOCR[1] from the terminal for that.

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



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: