tesseract

Extract text from images and PDFs using OCR

brewmacoslinux
Try with needOr install directly
Source

About

OCR (Optical Character Recognition) engine

Commands

tesseract

Examples

extract text from an image file$ tesseract image.png output
recognize text in a PDF document$ tesseract document.pdf output
extract text with a specific language$ tesseract image.png output -l fra
output recognized text to stdout instead of file$ tesseract image.png stdout
extract text and save as searchable PDF$ tesseract image.png output pdf