public static final class DocumentDetector.Result extends QuadWithSizeDetector.Result
Detector.Result.DetectionCode| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator |
CREATOR |
mOwner| Modifier | Constructor and Description |
|---|---|
protected |
Result(long nativeResult) |
| Modifier and Type | Method and Description |
|---|---|
DocumentDetector.Result |
clone()
Create a copy of the result.
|
protected void |
deserializeFromByteArray(byte[] arr) |
double |
getAspectRatio()
Returns the aspect ratio of detected document.
|
protected byte[] |
serializeToByteArray() |
protected void |
terminateNative(long nativeContext) |
getPhysicalHeightInInchesgetDetectionLocation, toStringgetDetectionCode, getDetectionStatus, isEmpty, nativeGetDetectionCodedescribeContents, finalize, getNativeContext, readFromParcel, writeToParcelpublic double getAspectRatio()
@Nullable protected byte[] serializeToByteArray()
serializeToByteArray in class Entity.Resultprotected void deserializeFromByteArray(@NonNull
byte[] arr)
deserializeFromByteArray in class Entity.Result@NonNull public DocumentDetector.Result clone()
Entity.Resultclone in class Entity.Resultprotected void terminateNative(long nativeContext)
terminateNative in class Entity.Result