Class Recognizer<T extends Recognizer.Result>
java.lang.Object
com.microblink.photopay.entities.Entity<T>
com.microblink.photopay.entities.recognizers.Recognizer<T>
- All Implemented Interfaces:
android.os.Parcelable,JsonizableEntity
- Direct Known Subclasses:
AustriaQrCodePaymentRecognizer,AustriaSlipRecognizer,BarcodeRecognizer,BelgiumSlipRecognizer,BlinkInputRecognizer,CroatiaPdf417PaymentRecognizer,CroatiaQrCodePaymentRecognizer,CroatiaSlipRecognizer,CzechiaQrCodeRecognizer,CzechiaSlipRecognizer,FrameGrabberRecognizer,GermanyQrCodePaymentRecognizer,GermanySlipRecognizer,HungaryQrCodePaymentRecognizer,HungarySlipRecognizer,KosovoCode128PaymentRecognizer,KosovoSlipRecognizer,NetherlandsSlipRecognizer,SepaQrCodePaymentRecognizer,SerbiaPdf417PaymentRecognizer,SerbiaQrCodePaymentRecognizer,SlovakiaCode128PaymentRecognizer,SlovakiaDataMatrixPaymentRecognizer,SlovakiaQrCodePaymentRecognizer,SlovakiaSlipRecognizer,SloveniaQrCodePaymentRecognizer,SloveniaSlipRecognizer,SuccessFrameGrabberRecognizer,SwitzerlandQrCodePaymentRecognizer,SwitzerlandSlipRecognizer,UnitedKingdomQrCodePaymentRecognizer,UnitedKingdomSlipRecognizer
public abstract class Recognizer<T extends Recognizer.Result>
extends Entity<T>
implements JsonizableEntity
Base recognizer that is used to perform recognition of images.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRecognizer(long nativeRecognizer, T concreteResult) protectedRecognizer(long nativeRecognizer, T concreteResult, android.os.Parcel in) -
Method Summary
Modifier and TypeMethodDescriptionabstract Recognizerclone()Create a copy of the entity.getName()Returns unique name of this recognizer type.booleanReturns true if this recognizer should be excluded from reporting its scan success to ping server.booleanReturns true if this recognizer requires camera with autofocus.booleanReturns true if this recognizer works only in landscape mode.protected static SignedPayloadsignedJsonNativeGet(long nativePtr) Returns the signed JSON representation of this entity's current state as aSignedPayload.Methods inherited from class com.microblink.photopay.entities.Entity
consumeResultFrom, describeContents, deserializeNativeSettings, finalize, getNativeContext, getResult, nativeGetNativeResultContext, readFromParcel, serializeNativeSettings, terminateNative, writeToParcel
-
Constructor Details
-
Recognizer
-
Recognizer
-
-
Method Details
-
requiresAutofocus
public boolean requiresAutofocus()Returns true if this recognizer requires camera with autofocus.- Returns:
- true if this recognizer requires camera with autofocus.
-
toSignedJson
Description copied from interface:JsonizableEntityReturns the signed JSON representation of this entity's current state as aSignedPayload.- Specified by:
toSignedJsonin interfaceJsonizableEntity- Returns:
- signed JSON representation of this entity's current state.
-
signedJsonNativeGet
-
clone
Description copied from class:EntityCreate 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 theRecognizerRunnerVieworRecognizerRunnerwith the updated entity hierarchy.- Specified by:
clonein classEntity<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
Returns unique name of this recognizer type.- Returns:
- unique name of this recognizer type.
-