Class Recognizer<T extends Recognizer.Result>

    • Constructor Detail

      • Recognizer

        protected Recognizer​(long nativeRecognizer,
                             T concreteResult)
      • Recognizer

        protected Recognizer​(long nativeRecognizer,
                             T concreteResult,
                             android.os.Parcel in)
    • Method Detail

      • requiresAutofocus

        public boolean requiresAutofocus()
        Returns true if this recognizer requires camera with autofocus.
        Returns:
        true if this recognizer requires camera with autofocus.
      • signedJsonNativeGet

        protected static SignedPayload signedJsonNativeGet​(long nativePtr)
      • clone

        @NonNull
        public abstract Recognizer clone()
        Description copied from class: Entity
        Create a copy of the entity. This is required if properties of the entity must be modified while background thread performs processing. In order to avoid race conditions, changing properties is not allowed while entity is used in background processing. However, you are able to make a copy of the entity, change properties of it and then update the RecognizerRunnerView or RecognizerRunner with the updated entity hierarchy.
        Specified by:
        clone in class Entity<T extends Recognizer.Result>
        Returns:
        a copy of the entity
      • requiresLandscapeMode

        public boolean requiresLandscapeMode()
        Returns true if this recognizer works only in landscape mode.
        Returns:
        true if this recognizer works only in landscape mode.
      • isExcludedFromPing

        public boolean isExcludedFromPing()
        Returns true if this recognizer should be excluded from reporting its scan success to ping server.
        Returns:
        true if this recognizer should be excluded from reporting its scan success to ping server.
      • getName

        public java.lang.String getName()
        Returns unique name of this recognizer type.
        Returns:
        unique name of this recognizer type.