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 DocumentDataExtractionStatusstatusprivate final GenericDocumentdocumentprivate final DocumentDetectionResultdocumentDetectionResultprivate final ImageRefcroppedImage
-
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 DocumentDataExtractionStatusgetStatus()The status of the extraction process. final GenericDocumentgetDocument()The extracted document. final DocumentDetectionResultgetDocumentDetectionResult()Result of the document detection in the input image. final ImageRefgetCroppedImage()Crop of the document if it was detected. final JSONObjecttoJson(ToJsonConfiguration config)final DocumentDataExtractionResultclone()Unitclose()-
-
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()
-
-
-
-