Install gocr by entering the following commands in the terminal:
sudo apt update sudo apt install gocr
Description:
Command line OCR
gocr is a multi-platform OCR (Optical Character Recognition) program. . It can read pnm, pbm, pgm, ppm, some pcx and tga image files. . Currently the program should be able to handle well scans that have their text in one column and do not have tables. Font sizes of 20 to 60 pixels are supported. . If you want to write your own OCR, libgocr is provided in a separate package. Documentation and graphical wrapper are provided in separated packages, too.
Homepage: http://jocr.sourceforge.net/
Version: 0.49-2build1
Section: universe/graphics