A readily available ocr tool for Ubuntu is tesseract. See https://github.com/tesseract-ocr/tesseract.