Class DocumentFaceRecognizer.Result
java.lang.Object
com.microblink.blinkid.entities.Entity.Result
com.microblink.blinkid.entities.recognizers.Recognizer.Result
com.microblink.blinkid.entities.recognizers.blinkid.documentface.DocumentFaceRecognizer.Result
- All Implemented Interfaces:
android.os.Parcelable,EncodedFaceImageResult,EncodedFullDocumentImageResult,FaceImageResult,FullDocumentImageResult
- Enclosing class:
- DocumentFaceRecognizer
public static final class DocumentFaceRecognizer.Result
extends Recognizer.Result
implements FullDocumentImageResult, EncodedFullDocumentImageResult, FaceImageResult, EncodedFaceImageResult
-
Nested Class Summary
Nested classes/interfaces inherited from class com.microblink.blinkid.entities.recognizers.Recognizer.Result
Recognizer.Result.State -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<DocumentFaceRecognizer.Result>Fields inherited from class com.microblink.blinkid.entities.Entity.Result
mOwnerFields inherited from interface com.microblink.blinkid.entities.recognizers.blinkid.imageresult.EncodedFaceImageResult
CLASS_NAMEFields inherited from interface com.microblink.blinkid.entities.recognizers.blinkid.imageresult.EncodedFullDocumentImageResult
CLASS_NAMEFields inherited from interface com.microblink.blinkid.entities.recognizers.blinkid.imageresult.FaceImageResult
CLASS_NAMEFields inherited from interface com.microblink.blinkid.entities.recognizers.blinkid.imageresult.FullDocumentImageResult
CLASS_NAMEFields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Create a copy of the result.protected voiddeserializeFromByteArray(byte[] arr) Returns the location of document detection in coordinate system of full input frame.byte[]byte[]Returns the location of face detection in coordinate system of cropped full document image.protected byte[]protected voidterminateNative(long nativeContext) toString()Methods inherited from class com.microblink.blinkid.entities.recognizers.Recognizer.Result
getResultState, isEmptyMethods inherited from class com.microblink.blinkid.entities.Entity.Result
describeContents, finalize, getNativeContext, readFromParcel, writeToParcel
-
Field Details
-
CREATOR
-
-
Constructor Details
-
Result
protected Result(long nativeResult)
-
-
Method Details
-
getFullDocumentImage
- Specified by:
getFullDocumentImagein interfaceFullDocumentImageResult- Returns:
- image of the full document if enabled with
FullDocumentImageOptions.setReturnFullDocumentImage(boolean), elsenull
-
getEncodedFullDocumentImage
@NonNull public byte[] getEncodedFullDocumentImage()- Specified by:
getEncodedFullDocumentImagein interfaceEncodedFullDocumentImageResult- Returns:
- encoded full document image in JPEG format if enabled with
EncodeFullDocumentImagesOptions.setEncodeFullDocumentImage(boolean), elsenull
-
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
- Specified by:
getFaceImagein interfaceFaceImageResult- Returns:
- face image from the document if enabled with
FaceImageOptions.setReturnFaceImage(boolean), elsenull
-
getDocumentLocation
Returns the location of document detection in coordinate system of full input frame. This frame can be obtained by usingSuccessFrameGrabberRecognizer.- Returns:
- the location of document detection in coordinate system of full input frame
-
getFaceLocation
Returns the location of face detection in coordinate system of cropped full document image.- Returns:
- the location of face detection in coordinate system of cropped full document image.
-
toString
-
serializeToByteArray
@Nullable protected byte[] serializeToByteArray()- Specified by:
serializeToByteArrayin classEntity.Result
-
deserializeFromByteArray
protected void deserializeFromByteArray(@NonNull byte[] arr) - Specified by:
deserializeFromByteArrayin classEntity.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
-