Skip to main content

Scanning text from an image file with the Android OCR Module

Running OCR on arbitrary images

You can run OCR on arbitrary image files (JPG or PNG) provided as file URIs:

Run OCR from images
loading...

Running OCR on a Document object

You can use the corresponding methods to pass a Document object to the OCR engine

Run OCR from Document
loading...
caution

The OcrEngine uses the document image (cropped image) of Page objects. Thus, make sure all Page objects contain document images.

OCR results

The OCR result contains the recognized plain text as well as the bounding boxes and text results of recognized blocks (paragraphs), lines and words:

OCR Result Handling
loading...

Want to scan longer than one minute?

Generate a free trial license to test the Scanbot SDK thoroughly.

Get your free Trial License