Class DocumentRecognizerManager

java.lang.Object
com.microblink.blinkid.fragment.overlay.DocumentRecognizerManager

public class DocumentRecognizerManager extends Object
  • Constructor Details

    • DocumentRecognizerManager

      public DocumentRecognizerManager()
  • Method Details

    • setup

      public void setup(@NonNull RecognizerBundle recognizerBundle, @Nullable CurrentImageListener currentImageListener)
    • getRecognizersFor

      @NonNull public List<Recognizer> getRecognizersFor(@NonNull DocumentSide documentSide)
    • buildRecognizerBundle

      @NonNull public RecognizerBundle buildRecognizerBundle(@NonNull DocumentSide documentSide)
    • canScanDocument

      public boolean canScanDocument()
    • getTimeoutMs

      public int getTimeoutMs()
    • getRecognitionDebugMode

      public RecognizerBundle.RecognitionDebugMode getRecognitionDebugMode()
    • saveBundleState

      public void saveBundleState()
    • clearBundleState

      public void clearBundleState()
    • hasInvalidDocumentDataMatch

      public boolean hasInvalidDocumentDataMatch()
    • getScanSuccessType

      @NonNull public RecognitionSuccessType 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

      @AnyThread public Recognizer<?> getConcreteRecognizer(Recognizer recognizer)
      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