Class BlinkIdCombinedRecognizer.Result
- java.lang.Object
-
- com.microblink.documentverification.entities.Entity.Result
-
- com.microblink.documentverification.entities.recognizers.Recognizer.Result
-
- com.microblink.documentverification.entities.recognizers.blinkid.generic.BlinkIdCombinedRecognizer.Result
-
- All Implemented Interfaces:
android.os.Parcelable,CombinedDataMatchResult,CombinedResult,ClassInfoResult,CombinedFullDocumentImageResult,EncodedCombinedFullDocumentImageResult,EncodedFaceImageResult,EncodedSignatureImageResult,FaceImageResult,SignatureImageResult,ProcessingStatusResult
- Enclosing class:
- BlinkIdCombinedRecognizer
public static final class BlinkIdCombinedRecognizer.Result extends Recognizer.Result implements CombinedResult, CombinedDataMatchResult, FaceImageResult, EncodedFaceImageResult, CombinedFullDocumentImageResult, EncodedCombinedFullDocumentImageResult, SignatureImageResult, EncodedSignatureImageResult, ProcessingStatusResult, ClassInfoResult
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.microblink.documentverification.entities.recognizers.Recognizer.Result
Recognizer.Result.State
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<BlinkIdCombinedRecognizer.Result>CREATOR-
Fields inherited from class com.microblink.documentverification.entities.Entity.Result
mOwner
-
Fields inherited from interface com.microblink.documentverification.entities.recognizers.blinkid.CombinedDataMatchResult
CLASS_NAME
-
Fields inherited from interface com.microblink.documentverification.entities.recognizers.blinkid.imageresult.CombinedFullDocumentImageResult
CLASS_NAME
-
Fields inherited from interface com.microblink.documentverification.entities.recognizers.blinkid.CombinedResult
CLASS_NAME
-
Fields inherited from interface com.microblink.documentverification.entities.recognizers.blinkid.imageresult.EncodedCombinedFullDocumentImageResult
CLASS_NAME
-
Fields inherited from interface com.microblink.documentverification.entities.recognizers.blinkid.imageresult.EncodedFaceImageResult
CLASS_NAME
-
Fields inherited from interface com.microblink.documentverification.entities.recognizers.blinkid.imageresult.EncodedSignatureImageResult
CLASS_NAME
-
Fields inherited from interface com.microblink.documentverification.entities.recognizers.blinkid.imageresult.FaceImageResult
CLASS_NAME
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Fields inherited from interface com.microblink.documentverification.entities.recognizers.blinkid.ProcessingStatusResult
CLASS_NAME
-
Fields inherited from interface com.microblink.documentverification.entities.recognizers.blinkid.imageresult.SignatureImageResult
CLASS_NAME
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedResult(long nativeResult)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlinkIdCombinedRecognizer.Resultclone()Create a copy of the result.protected voiddeserializeFromByteArray(byte[] arr)java.lang.StringgetAdditionalAddressInformation()The additional name information of the document owner.java.lang.StringgetAdditionalNameInformation()The additional name information of the document owner.java.lang.StringgetAdditionalOptionalAddressInformation()The one more additional address information of the document owner.java.lang.StringgetAddress()The address of the document owner.intgetAge()The current age of the document owner in years.AgeLimitStatusgetAgeLimitStatus(int ageLimit)Calculates whether the document owner is older than the givenageLimitin years or not.ImagegetBackCameraFrame()Back camera frame.ImageAnalysisResultgetBackImageAnalysisResult()Image analysis result for the scanned document back side imageProcessingStatusgetBackProcessingStatus()Status of the last back side recognition process.VizResultgetBackVizResult()The data extracted from the back side visual inspection zone.ImagegetBarcodeCameraFrame()Barcode camera frame.BarcodeResultgetBarcodeResult()The data extracted from the barcode.ClassInfogetClassInfo()The document class information.DataMatchDetailedInfogetDataMatchDetailedInfo()Detailed info on data match.DateResultgetDateOfBirth()The date of birth of the document owner.DateResultgetDateOfExpiry()The date of expiry of the document.DateResultgetDateOfIssue()The date of issue of the document.java.lang.StringgetDocumentAdditionalNumber()The additional number of the document.DataMatchResultgetDocumentDataMatch()Returns result of the data matching algorithm for scanned parts/sides of the document.java.lang.StringgetDocumentNumber()The document number.java.lang.StringgetDocumentOptionalAdditionalNumber()The one more additional number of the document.DriverLicenseDetailedInfogetDriverLicenseDetailedInfo()The driver license detailed info.java.lang.StringgetEmployer()The employer of the document owner.byte[]getEncodedBackFullDocumentImage()byte[]getEncodedFaceImage()byte[]getEncodedFrontFullDocumentImage()byte[]getEncodedSignatureImage()ImagegetFaceImage()java.lang.StringgetFathersName()The fathers name of the document owner.java.lang.StringgetFirstName()The first name of the document owner.ImagegetFrontCameraFrame()Front camera frame.ImageAnalysisResultgetFrontImageAnalysisResult()Image analysis result for the scanned document front side imageProcessingStatusgetFrontProcessingStatus()Status of the last front side recognition process.VizResultgetFrontVizResult()The data extracted from the front side visual inspection zone.ImagegetFullDocumentBackImage()ImagegetFullDocumentFrontImage()java.lang.StringgetFullName()The full name of the document owner.java.lang.StringgetIssuingAuthority()The issuing authority of the document.java.lang.StringgetLastName()The last name of the document owner.java.lang.StringgetLocalizedName()The localized name of the document owner.java.lang.StringgetMaritalStatus()The marital status of the document owner.java.lang.StringgetMothersName()The mothers name of the document owner.MrzResultgetMrzResult()The data extracted from the machine readable zone.java.lang.StringgetNationality()The nationality of the documet owner.java.lang.StringgetPersonalIdNumber()The personal identification number.java.lang.StringgetPlaceOfBirth()The place of birth of the document owner.ProcessingStatusgetProcessingStatus()Status of the last recognition process.java.lang.StringgetProfession()The profession of the document owner.java.lang.StringgetRace()The race of the document owner.RecognitionModegetRecognitionMode()Recognition mode used to scan current document.java.lang.StringgetReligion()The religion of the document owner.java.lang.StringgetResidentialStatus()The residential stauts of the document owner.java.lang.StringgetSex()The sex of the document owner.ImagegetSignatureImage()booleanisDateOfExpiryPermanent()Determines if date of expiry is permanent.booleanisExpired()Checks whether the document has expired or not by comparing the current time on the device with the date of expiry.booleanisScanningFirstSideDone()protected byte[]serializeToByteArray()protected voidterminateNative(long nativeContext)java.lang.StringtoString()-
Methods inherited from class com.microblink.documentverification.entities.recognizers.Recognizer.Result
getResultState, isEmpty
-
Methods inherited from class com.microblink.documentverification.entities.Entity.Result
describeContents, finalize, getNativeContext, readFromParcel, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<BlinkIdCombinedRecognizer.Result> CREATOR
-
-
Method Detail
-
getFrontImageAnalysisResult
@NonNull public ImageAnalysisResult getFrontImageAnalysisResult()
Image analysis result for the scanned document front side image
-
getAdditionalOptionalAddressInformation
@NonNull public java.lang.String getAdditionalOptionalAddressInformation()
The one more additional address information of the document owner.
-
getFathersName
@NonNull public java.lang.String getFathersName()
The fathers name of the document owner.
-
getDocumentNumber
@NonNull public java.lang.String getDocumentNumber()
The document number.
-
getDocumentOptionalAdditionalNumber
@NonNull public java.lang.String getDocumentOptionalAdditionalNumber()
The one more additional number of the document.
-
getFrontProcessingStatus
@NonNull public ProcessingStatus getFrontProcessingStatus()
Status of the last front side recognition process.
-
getBarcodeCameraFrame
@NonNull public Image getBarcodeCameraFrame()
Barcode camera frame.
-
getAdditionalAddressInformation
@NonNull public java.lang.String getAdditionalAddressInformation()
The additional name information of the document owner.
-
getEmployer
@NonNull public java.lang.String getEmployer()
The employer of the document owner.
-
getProfession
@NonNull public java.lang.String getProfession()
The profession of the document owner.
-
getEncodedFrontFullDocumentImage
@NonNull public byte[] getEncodedFrontFullDocumentImage()
- Specified by:
getEncodedFrontFullDocumentImagein interfaceEncodedCombinedFullDocumentImageResult- Returns:
- encoded full document image from the front side in JPEG format if enabled with
EncodeFullDocumentImagesOptions.setEncodeFullDocumentImage(boolean), elsenull
-
getClassInfo
@NonNull public ClassInfo getClassInfo()
The document class information.- Specified by:
getClassInfoin interfaceClassInfoResult
-
getDateOfExpiry
@NonNull public DateResult getDateOfExpiry()
The date of expiry of the document.
-
getLocalizedName
@NonNull public java.lang.String getLocalizedName()
The localized name of the document owner.
-
getBackVizResult
@NonNull public VizResult getBackVizResult()
The data extracted from the back side visual inspection zone.
-
getMrzResult
@NonNull public MrzResult getMrzResult()
The data extracted from the machine readable zone.
-
getFullDocumentBackImage
@Nullable public Image getFullDocumentBackImage()
- Specified by:
getFullDocumentBackImagein interfaceCombinedFullDocumentImageResult- Returns:
- back side image of the document if enabled with
FullDocumentImageOptions.setReturnFullDocumentImage(boolean), elsenull
-
getProcessingStatus
@NonNull public ProcessingStatus getProcessingStatus()
Description copied from interface:ProcessingStatusResultStatus of the last recognition process.- Specified by:
getProcessingStatusin interfaceProcessingStatusResult
-
getFirstName
@NonNull public java.lang.String getFirstName()
The first name of the document owner.
-
isScanningFirstSideDone
public boolean isScanningFirstSideDone()
- Specified by:
isScanningFirstSideDonein interfaceCombinedResult- Returns:
trueif recognizer has finished scanning first side and is now scanning back side,falseif it's still scanning first side.
-
getNationality
@NonNull public java.lang.String getNationality()
The nationality of the documet owner.
-
getAdditionalNameInformation
@NonNull public java.lang.String getAdditionalNameInformation()
The additional name information of the document owner.
-
getDataMatchDetailedInfo
@NonNull public DataMatchDetailedInfo getDataMatchDetailedInfo()
Detailed info on data match.
-
getMothersName
@NonNull public java.lang.String getMothersName()
The mothers name of the document owner.
-
getMaritalStatus
@NonNull public java.lang.String getMaritalStatus()
The marital status of the document owner.
-
getLastName
@NonNull public java.lang.String getLastName()
The last name of the document owner.
-
getDriverLicenseDetailedInfo
@NonNull public DriverLicenseDetailedInfo getDriverLicenseDetailedInfo()
The driver license detailed info.
-
getPersonalIdNumber
@NonNull public java.lang.String getPersonalIdNumber()
The personal identification number.
-
getEncodedFaceImage
@NonNull public byte[] getEncodedFaceImage()
- Specified by:
getEncodedFaceImagein interfaceEncodedFaceImageResult- Returns:
- encoded face image in JPEG from the document if enabled with
EncodeFaceImageOptions.setEncodeFaceImage(boolean), elsenull
-
getFaceImage
@Nullable public Image getFaceImage()
- Specified by:
getFaceImagein interfaceFaceImageResult- Returns:
- face image from the document if enabled with
FaceImageOptions.setReturnFaceImage(boolean), elsenull
-
getEncodedSignatureImage
@NonNull public byte[] getEncodedSignatureImage()
- Specified by:
getEncodedSignatureImagein interfaceEncodedSignatureImageResult- Returns:
- encoded signature in JPEG from the document if enabled with
EncodeSignatureImageOptions.setEncodeSignatureImage(boolean), elsenull
-
getFrontCameraFrame
@NonNull public Image getFrontCameraFrame()
Front camera frame.
-
getFullDocumentFrontImage
@Nullable public Image getFullDocumentFrontImage()
- Specified by:
getFullDocumentFrontImagein interfaceCombinedFullDocumentImageResult- Returns:
- front side image of the document if enabled with
FullDocumentImageOptions.setReturnFullDocumentImage(boolean), elsenull
-
isDateOfExpiryPermanent
public boolean isDateOfExpiryPermanent()
Determines if date of expiry is permanent.
-
getResidentialStatus
@NonNull public java.lang.String getResidentialStatus()
The residential stauts of the document owner.
-
getBackCameraFrame
@NonNull public Image getBackCameraFrame()
Back camera frame.
-
getBarcodeResult
@NonNull public BarcodeResult getBarcodeResult()
The data extracted from the barcode.
-
getDocumentDataMatch
@NonNull public DataMatchResult getDocumentDataMatch()
Description copied from interface:CombinedDataMatchResultReturns 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 returnDataMatchResult.Failed. Result will beDataMatchResult.Successonly if scanned values for all fields that are compared are the same. If data matching has not been performed, result will beDataMatchResult.NotPerformed.- Specified by:
getDocumentDataMatchin interfaceCombinedDataMatchResult- Returns:
- result of the data matching algorithm for scanned parts/sides of the document.
-
getPlaceOfBirth
@NonNull public java.lang.String getPlaceOfBirth()
The place of birth of the document owner.
-
getAddress
@NonNull public java.lang.String getAddress()
The address of the document owner.
-
getRace
@NonNull public java.lang.String getRace()
The race of the document owner.
-
getEncodedBackFullDocumentImage
@NonNull public byte[] getEncodedBackFullDocumentImage()
- Specified by:
getEncodedBackFullDocumentImagein interfaceEncodedCombinedFullDocumentImageResult- Returns:
- encoded full document image from the back side in JPEG format if enabled with
EncodeFullDocumentImagesOptions.setEncodeFullDocumentImage(boolean), elsenull
-
getRecognitionMode
@NonNull public RecognitionMode getRecognitionMode()
Recognition mode used to scan current document.
-
getSex
@NonNull public java.lang.String getSex()
The sex of the document owner.
-
getFullName
@NonNull public java.lang.String getFullName()
The full name of the document owner.
-
getBackProcessingStatus
@NonNull public ProcessingStatus getBackProcessingStatus()
Status of the last back side recognition process.
-
getDateOfBirth
@NonNull public DateResult getDateOfBirth()
The date of birth of the document owner.
-
getDocumentAdditionalNumber
@NonNull public java.lang.String getDocumentAdditionalNumber()
The additional number of the document.
-
getDateOfIssue
@NonNull public DateResult getDateOfIssue()
The date of issue of the document.
-
getReligion
@NonNull public java.lang.String getReligion()
The religion of the document owner.
-
getBackImageAnalysisResult
@NonNull public ImageAnalysisResult getBackImageAnalysisResult()
Image analysis result for the scanned document back side image
-
getIssuingAuthority
@NonNull public java.lang.String getIssuingAuthority()
The issuing authority of the document.
-
getFrontVizResult
@NonNull public VizResult getFrontVizResult()
The data extracted from the front side visual inspection zone.
-
getSignatureImage
@Nullable public Image getSignatureImage()
- Specified by:
getSignatureImagein interfaceSignatureImageResult- Returns:
- signature image from the document if enabled with
SignatureImageOptions.setReturnSignatureImage(boolean), elsenull
-
getAge
public int getAge()
The current age of the document owner in years. It is calculated difference between now and date of birth. Now is current time on the device.- Returns:
- current age of the document owner in years or
-1if date of birth is unknown.
-
getAgeLimitStatus
public AgeLimitStatus getAgeLimitStatus(int ageLimit)
Calculates whether the document owner is older than the givenageLimitin years or not. Status is calculated by using the date of birth and the current time on the device.- Parameters:
ageLimit- age limit in years- Returns:
- age limit status for the document owner:
-
AgeLimitStatus.OverAgeLimit: age is greater than or equal to the given age limit -
AgeLimitStatus.BelowAgeLimit: age is less than the given age limit -
AgeLimitStatus.NotAvailable: date of birth is unknown
-
-
isExpired
public boolean isExpired()
Checks whether the document has expired or not by comparing the current time on the device with the date of expiry.- Returns:
trueif the document has expired,falsein following cases:- document does not expire (date of expiry is permanent)
- date of expiry has passed
- date of expiry is unknown and it is not permanent
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- Returns:
- string version of this result
-
serializeToByteArray
@Nullable protected byte[] serializeToByteArray()
- Specified by:
serializeToByteArrayin classEntity.Result
-
deserializeFromByteArray
protected void deserializeFromByteArray(@NonNull byte[] arr)- Specified by:
deserializeFromByteArrayin classEntity.Result
-
clone
public BlinkIdCombinedRecognizer.Result clone()
Description copied from class:Entity.ResultCreate a copy of the result. This is required in order to retain the result even after owning entity has mutated it.- Specified by:
clonein classRecognizer.Result- Returns:
- a copy of the result
-
terminateNative
protected void terminateNative(long nativeContext)
- Specified by:
terminateNativein classEntity.Result
-
-