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
Modifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<DocumentFaceRecognizer.Result>
Fields inherited from class com.microblink.blinkid.entities.Entity.Result
mOwner
Fields inherited from interface com.microblink.blinkid.entities.recognizers.blinkid.imageresult.EncodedFaceImageResult
CLASS_NAME
Fields inherited from interface com.microblink.blinkid.entities.recognizers.blinkid.imageresult.EncodedFullDocumentImageResult
CLASS_NAME
Fields inherited from interface com.microblink.blinkid.entities.recognizers.blinkid.imageresult.FaceImageResult
CLASS_NAME
Fields inherited from interface com.microblink.blinkid.entities.recognizers.blinkid.imageresult.FullDocumentImageResult
CLASS_NAME
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Create a copy of the result.protected void
deserializeFromByteArray
(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 void
terminateNative
(long nativeContext) toString()
Methods inherited from class com.microblink.blinkid.entities.recognizers.Recognizer.Result
getResultState, isEmpty
Methods 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:
getFullDocumentImage
in interfaceFullDocumentImageResult
- Returns:
- image of the full document if enabled with
FullDocumentImageOptions.setReturnFullDocumentImage(boolean)
, elsenull
-
getEncodedFullDocumentImage
@NonNull public byte[] getEncodedFullDocumentImage()- Specified by:
getEncodedFullDocumentImage
in interfaceEncodedFullDocumentImageResult
- Returns:
- encoded full document image in JPEG format if enabled with
EncodeFullDocumentImagesOptions.setEncodeFullDocumentImage(boolean)
, elsenull
-
getEncodedFaceImage
@NonNull public byte[] getEncodedFaceImage()- Specified by:
getEncodedFaceImage
in interfaceEncodedFaceImageResult
- Returns:
- encoded face image in JPEG from the document if enabled with
EncodeFaceImageOptions.setEncodeFaceImage(boolean)
, elsenull
-
getFaceImage
- Specified by:
getFaceImage
in 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:
serializeToByteArray
in classEntity.Result
-
deserializeFromByteArray
protected void deserializeFromByteArray(@NonNull byte[] arr) - Specified by:
deserializeFromByteArray
in classEntity.Result
-
clone
Description copied from class:Entity.Result
Create a copy of the result. This is required in order to retain the result even after owning entity has mutated it.- Specified by:
clone
in classRecognizer.Result
- Returns:
- a copy of the result
-
terminateNative
protected void terminateNative(long nativeContext) - Specified by:
terminateNative
in classEntity.Result
-