public class BlobManager
Manages binary files on local filesystem and provides access to binary files stored remotely
public BlobManager(@NotNull
BlobStoreStrategy blobStoreStrategy,
@NotNull
android.content.res.AssetManager assetManager,
@NotNull
BlobFactory blobFactory)
Manages binary files on local filesystem and provides access to binary files stored remotely
public boolean allBlobsAvailable(@NotNull
java.util.Collection<io.scanbot.sdk.entity.Blob> blobs)
true if all blobs from collection are available locally. false if
at least one blob is not available. If collection is empty returns truepublic boolean isBlobAvailable(@NotNull
Blob blob)
true if class Blob is available on local filesystem.
false otherwise.@NotNull public java.util.Set<io.scanbot.sdk.entity.Language> getAllLanguagesWithAvailableOcrBlobs()
@NotNull public java.io.File getOcrBlobsDirectory()
IOException - if directory is unavailable@NotNull public java.io.File getBanksDataFile()
IOException - if file is unavailable@NotNull public java.io.File getBarcodeDetectionModelFile()
@NotNull public java.io.File getBarcodeBinarizationModelFile()
@NotNull public java.io.File getBlurEstimatorModelFile()
IOException - if file is unavailable@NotNull public java.io.File getMrzCascadeFile()
IOException - if file is unavailable@NotNull public java.io.File getFilterPredictionModelFile()
IOException - if file is unavailable@NotNull public java.io.File getChequeDigitPredictionModelFile()
IOException - if file is unavailable@NotNull public java.io.File getDcModelsFolderFile()
@NotNull public java.io.File getIdCardScannerModelsFolderFile()
@NotNull public java.io.File getGenericTextRecognizerModelsFolderFile()
@NotNull public java.io.File getDocumentDetectorModelFile()
Doesn't check that file is exists
@NotNull public java.io.File getImageProcessorModelsFolderFile()
Doesn't check that file is exists
public void fetch(@NotNull
Blob blob)
Launches fetch of a given class Blob if it is not already
available in local destination folder. Perform blocking operations, so it should not be
called from the main thread.
class Blobpublic void forceFetch(@NotNull
BlobType blobType)
Launches fetch of a given enum BlobType if it is not already
available in local destination folder. Perform blocking operations, so it should not be
called from the main thread.
enum BlobType