Class DocumentRecognizerManager
java.lang.Object
com.microblink.blinkid.fragment.overlay.DocumentRecognizerManager
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds additional extractor for the recognizer wrapper class, which unwraps and returns concrete recognizer if it is wrapped inside other recognizer, e.g.buildRecognizerBundle
(DocumentSide documentSide) boolean
void
Recognizer<?>
getConcreteRecognizer
(Recognizer recognizer) Unwraps and returns concrete recognizer if it is wrapped inside given recognizer, e.g.getRecognizersFor
(DocumentSide documentSide) int
boolean
void
void
setup
(RecognizerBundle recognizerBundle, CurrentImageListener currentImageListener)
-
Constructor Details
-
DocumentRecognizerManager
public DocumentRecognizerManager()
-
-
Method Details
-
setup
public void setup(@NonNull RecognizerBundle recognizerBundle, @Nullable CurrentImageListener currentImageListener) -
getRecognizersFor
-
buildRecognizerBundle
-
canScanDocument
public boolean canScanDocument() -
getTimeoutMs
public int getTimeoutMs() -
getRecognitionDebugMode
-
saveBundleState
public void saveBundleState() -
clearBundleState
public void clearBundleState() -
hasInvalidDocumentDataMatch
public boolean hasInvalidDocumentDataMatch() -
getScanSuccessType
-
addConcreteRecognizerExtractor
public void addConcreteRecognizerExtractor(@NonNull DocumentRecognizerManager.ConcreteRecognizerExtractor extractor) Adds additional extractor for the recognizer wrapper class, which unwraps and returns concrete recognizer if it is wrapped inside other recognizer, e.g.SuccessFrameGrabberRecognizer
.- Parameters:
extractor
- extracts concrete recognizer from the wrapper
-
getConcreteRecognizer
Unwraps and returns concrete recognizer if it is wrapped inside given recognizer, e.g.SuccessFrameGrabberRecognizer
, or returns given recognizer if it is not wrapper.- Parameters:
recognizer
- recognizer which contains concrete recognizer, or concrete recognizer- Returns:
- unwrapped recognizer or simply returns given recognizer if it is not wrapped
-