sudo apt install tesseract-ocr -y tesseract /foo/bar/image.png stdout more details https://nanonets.com/blog/ocr-with-tesseract/