Optical Character Recognition or OCR for short is the mechanical or electronic conversion of images containing handwritten, typed, or printed text into machine-encoded text. This can be in the form of a photo of a document, a scanned document, or a scene-photo.