Class DataMatchResult
java.lang.Object
com.microblink.blinkid.entities.recognizers.blinkid.generic.datamatch.DataMatchResult
- All Implemented Interfaces:
android.os.Parcelable
Info on whether the data extracted from front image matches the data extracted from the back image.
-
Nested Class Summary
-
Field Summary
FieldsFields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDataMatchResult(android.os.Parcel in) DataMatchResult(DataMatchState documentState, FieldState[] states) -
Method Summary
Modifier and TypeMethodDescriptionstatic DataMatchResultcreateFromNative(int documentState, FieldState[] states) This method is called from native code to buildDataMatchResultfrom native object.intgetState(DataMatchField dataMatchField) The state of the data match on the specified field.Returns result of the data matching algorithm for scanned parts/sides of the document.States of the data match per field.toString()voidwriteToParcel(android.os.Parcel dest, int flags)
-
Field Details
-
CREATOR
-
-
Constructor Details
-
DataMatchResult
-
DataMatchResult
protected DataMatchResult(android.os.Parcel in)
-
-
Method Details
-
createFromNative
@NonNull public static DataMatchResult createFromNative(int documentState, @NonNull FieldState[] states) This method is called from native code to buildDataMatchResultfrom native object. -
getStateForWholeDocument
Returns result of the data matching algorithm for scanned parts/sides of the document. For example if date of expiry is scanned from the front and back side of the document and values do not match, this method will returnDataMatchState.Failed. Result will beDataMatchState.Successonly if scanned values for all fields that are compared are the same. If data matching has not been performed, result will beDataMatchState.NotPerformed.- Returns:
- result of the data matching algorithm for scanned parts/sides of the document.
-
getStates
States of the data match per field.- Returns:
- state of the data match for each field
-
getState
The state of the data match on the specified field.- Parameters:
dataMatchField- the field for which the data match state will be returned- Returns:
- state of data match for specified field
-
toString
-
describeContents
public int describeContents()- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-