public class ScanbotOpticalCharacterRecognizer implements OpticalCharacterRecognizer
Default implementation of interface OpticalCharacterRecognizer for Scanbot SDK
interface OpticalCharacterRecognizerpublic ScanbotOpticalCharacterRecognizer(@NotNull
android.content.Context context,
@NotNull
TextRecognition textRecognition,
@NotNull
io.scanbot.sdk.blob.BlobManager blobManager)
Default implementation of interface OpticalCharacterRecognizer for Scanbot SDK
interface OpticalCharacterRecognizer@NotNull public OcrResult recognizeTextFromBitmap(@NotNull android.graphics.Bitmap bitmap, @NotNull java.util.Set<? extends io.scanbot.sdk.entity.Language> languages)
Performs OCR only (without PDF result) from the bitmap with provided languages
@NotNull public OcrResult recognizeTextFromUris(@NotNull java.util.List<? extends android.net.Uri> imageFileUris, boolean sourceFilesEncrypted, @NotNull java.util.Set<? extends io.scanbot.sdk.entity.Language> languages)
Performs OCR only (without PDF result) from Images with provided languages
@NotNull public OcrResult recognizeTextFromPages(@NotNull java.util.List<io.scanbot.sdk.persistence.Page> pages, @NotNull java.util.Set<? extends io.scanbot.sdk.entity.Language> languages)
Performs OCR only (without PDF result) from pages with provided languages
@NotNull public OcrResult recognizeTextWithPdfFromUris(@NotNull java.util.List<? extends android.net.Uri> imageFileUris, boolean sourceFilesEncrypted, @NotNull io.scanbot.sdk.process.PDFPageSize pageSize, @NotNull java.util.Set<? extends io.scanbot.sdk.entity.Language> languages)
Performs OCR and creates sandwiched OCR PDF file (from given image file URIs) with provided languages
@NotNull public OcrResult recognizeTextWithPdfFromPages(@NotNull java.util.List<io.scanbot.sdk.persistence.Page> pages, @NotNull io.scanbot.sdk.process.PDFPageSize pageSize, @NotNull java.util.Set<? extends io.scanbot.sdk.entity.Language> languages)
Performs OCR and creates sandwiched OCR PDF file (from given Page objects. Based on the new Page class io.scanbot.sdk.persistence.Page! Use the document image from a Page.) with provided languages
@NotNull public java.io.File getLanguageDataPath()
IOException - if directory is unavailable@NotNull public java.util.Set<io.scanbot.sdk.entity.Language> getInstalledLanguages()