gocr

Optical Character Recognition tool that converts images to text

brewmacoslinux
Try with needOr install directly
Source

About

Optical Character Recognition (OCR), converts images back to text

Commands

gocr

Examples

Extract text from a PNG image$ gocr image.png
Extract text from image and save to file$ gocr image.png -o output.txt
Process image with specific language database$ gocr -l en image.png