processImage

fun processImage(imageFile: File): OcrResult

Perform OCR on an image. This will take care of filtering the image for optimal OCR. For optimal results it's recommended that you provide a properly cropped document without distortion.

Return

an object containing the detected text and its layout information

Parameters

imageFile

image on which OCR should be applied

Throws

if OCR failed

if license is not valid anymore