Software to crop jpeg like a scanner

Confusing title, sorry, I am looking for a way to take a picture with a digital camera of some text and have that converted as a text file or other file format and then use it like scanned text…
Anybody can help?
Thanks

Google “OCR."

As beowulff says, this process is Optical Character Recognition. Try this URL for ideas: The 7 Best Free OCR Software Apps to Convert Images Into Text

OCR programs will have restrictions on the input file type, so make sure your camera can save in that form; e.g. might have to be a certain type of TIFF.

There are many such apps on the iPhone platform. Two I have are CamScanner and FineScanner.