-
public final class BlobManagerManages binary files on local filesystem and provides access to binary files stored remotely
-
-
Field Summary
Fields Modifier and Type Field Description private final Set<Language>allLanguagesWithAvailableOcrBlobsprivate final FileocrBlobsDirectoryprivate final FilebanksDataFileprivate final FilebarcodeDetectionModelFileprivate final FilebarcodeBinarizationModelFileprivate final FileblurEstimatorModelFileprivate final FilemrzCascadeFileprivate final FilefilterPredictionModelFileprivate final FilechequeDigitPredictionModelFileprivate final FiledcModelsFolderFileprivate final FileidCardScannerModelsFolderFileprivate final FilegenericTextRecognizerModelsFolderFileprivate final FiledocumentDetectorModelFileprivate final FileimageProcessorModelsFolderFile
-
Constructor Summary
Constructors Constructor Description BlobManager(BlobStoreStrategy blobStoreStrategy, AssetManager assetManager, BlobFactory blobFactory)
-
Method Summary
Modifier and Type Method Description final Set<Language>getAllLanguagesWithAvailableOcrBlobs()final FilegetOcrBlobsDirectory()final FilegetBanksDataFile()final FilegetBarcodeDetectionModelFile()final FilegetBarcodeBinarizationModelFile()final FilegetBlurEstimatorModelFile()final FilegetMrzCascadeFile()final FilegetFilterPredictionModelFile()final FilegetChequeDigitPredictionModelFile()final FilegetDcModelsFolderFile()final FilegetIdCardScannerModelsFolderFile()final FilegetGenericTextRecognizerModelsFolderFile()final FilegetDocumentDetectorModelFile()final FilegetImageProcessorModelsFolderFile()final BooleanallBlobsAvailable(Collection<Blob> blobs)final BooleanisBlobAvailable(Blob blob)final Unitfetch(Blob blob)Launches fetch of a given Blob if it is not already available in local destination folder. final UnitforceFetch(BlobType blobType)Launches fetch of a given BlobType if it is not already available in local destination folder. -
-
Constructor Detail
-
BlobManager
BlobManager(BlobStoreStrategy blobStoreStrategy, AssetManager assetManager, BlobFactory blobFactory)
-
-
Method Detail
-
getAllLanguagesWithAvailableOcrBlobs
final Set<Language> getAllLanguagesWithAvailableOcrBlobs()
-
getOcrBlobsDirectory
final File getOcrBlobsDirectory()
-
getBanksDataFile
final File getBanksDataFile()
-
getBarcodeDetectionModelFile
final File getBarcodeDetectionModelFile()
-
getBarcodeBinarizationModelFile
final File getBarcodeBinarizationModelFile()
-
getBlurEstimatorModelFile
final File getBlurEstimatorModelFile()
-
getMrzCascadeFile
final File getMrzCascadeFile()
-
getFilterPredictionModelFile
final File getFilterPredictionModelFile()
-
getChequeDigitPredictionModelFile
final File getChequeDigitPredictionModelFile()
-
getDcModelsFolderFile
final File getDcModelsFolderFile()
-
getIdCardScannerModelsFolderFile
final File getIdCardScannerModelsFolderFile()
-
getGenericTextRecognizerModelsFolderFile
final File getGenericTextRecognizerModelsFolderFile()
-
getDocumentDetectorModelFile
final File getDocumentDetectorModelFile()
-
getImageProcessorModelsFolderFile
final File getImageProcessorModelsFolderFile()
-
allBlobsAvailable
final Boolean allBlobsAvailable(Collection<Blob> blobs)
-
isBlobAvailable
final Boolean isBlobAvailable(Blob blob)
-
fetch
final Unit fetch(Blob blob)
Launches fetch of a given Blob if it is not already available in local destination folder. Perform blocking operations, so it should not be called from the main thread.
-
forceFetch
final Unit forceFetch(BlobType blobType)
Launches fetch of a given BlobType if it is not already available in local destination folder. Perform blocking operations, so it should not be called from the main thread.
-
-
-
-