There is a command line program called tesseract that does image to text generation. It produces plaintext from a picture of text. I didn’t look into exactly how it works but iirc, image to text that’s actually good and accurate needs ai shenanigans.