Package io.scanbot.sdk.documentdata
Class DocumentDataExtractionResult
-
- All Implemented Interfaces:
-
android.os.Parcelable
,java.lang.AutoCloseable
public final class DocumentDataExtractionResult implements AutoCloseable, Parcelable
Contains the result of running the generic document extractor.
-
-
Field Summary
Fields Modifier and Type Field Description private final DocumentDataExtractionStatus
status
private final GenericDocument
document
private final DocumentDetectionResult
documentDetectionResult
private final ImageRef
croppedImage
-
Constructor Summary
Constructors Constructor Description DocumentDataExtractionResult(Map<String, Object> source)
DocumentDataExtractionResult(JSONObject json)
DocumentDataExtractionResult(DocumentDataExtractionStatus status, GenericDocument document, DocumentDetectionResult documentDetectionResult, ImageRef croppedImage)
-
Method Summary
Modifier and Type Method Description final DocumentDataExtractionStatus
getStatus()
The status of the extraction process. final GenericDocument
getDocument()
The extracted document. final DocumentDetectionResult
getDocumentDetectionResult()
Result of the document detection in the input image. final ImageRef
getCroppedImage()
Crop of the document if it was detected. final JSONObject
toJson(ToJsonConfiguration config)
final DocumentDataExtractionResult
clone()
Unit
close()
-
-
Constructor Detail
-
DocumentDataExtractionResult
DocumentDataExtractionResult(JSONObject json)
-
DocumentDataExtractionResult
DocumentDataExtractionResult(DocumentDataExtractionStatus status, GenericDocument document, DocumentDetectionResult documentDetectionResult, ImageRef croppedImage)
-
-
Method Detail
-
getStatus
final DocumentDataExtractionStatus getStatus()
The status of the extraction process.
-
getDocument
final GenericDocument getDocument()
The extracted document.
-
getDocumentDetectionResult
final DocumentDetectionResult getDocumentDetectionResult()
Result of the document detection in the input image.
-
getCroppedImage
final ImageRef getCroppedImage()
Crop of the document if it was detected.
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final DocumentDataExtractionResult clone()
-
-
-
-