recognizeFromBitmap

abstract fun recognizeFromBitmap(bitmap: Bitmap): Result<OcrResult>

Performs OCR only (without PDF result) from the bitmap with provided languages.

Return

Result.Success containing a instance of OcrResult or a subclass of Result.Failure if something goes wrong.

Parameters

bitmap

the bitmap to perform OCR on