Package io.scanbot.sdk.documentdata
Class DocumentDataExtractionResult
java.lang.Object
io.scanbot.sdk.documentdata.DocumentDataExtractionResult
- All Implemented Interfaces:
AutoCloseable
Contains the result of running the document data extractor.
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentDataExtractionResult(DocumentDataExtractionStatus status, GenericDocument document, DocumentDetectionResult documentDetectionResult) Constructs DocumentDataExtractionResult with default parameters.DocumentDataExtractionResult(DocumentDataExtractionStatus status, GenericDocument document, DocumentDetectionResult documentDetectionResult, ImageRef croppedImage) Constructs DocumentDataExtractionResult with the given params. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes native resources (images) held by the object.Getter for croppedImage field.Getter for document field.Getter for documentDetectionResult field.Getter for status field.
-
Constructor Details
-
DocumentDataExtractionResult
public DocumentDataExtractionResult(DocumentDataExtractionStatus status, GenericDocument document, DocumentDetectionResult documentDetectionResult, ImageRef croppedImage) Constructs DocumentDataExtractionResult with the given params.- Parameters:
status- The status of the extraction process.document- The extracted document.documentDetectionResult- Result of the document detection in the input image.croppedImage- Crop of the document if it was detected.
-
DocumentDataExtractionResult
public DocumentDataExtractionResult(DocumentDataExtractionStatus status, GenericDocument document, DocumentDetectionResult documentDetectionResult) Constructs DocumentDataExtractionResult with default parameters.- Parameters:
status- The status of the extraction process.document- The extracted document.documentDetectionResult- Result of the document detection in the input image.
-
-
Method Details
-
getStatus
Getter for status field. See constructor documentation for more information about the field.- Returns:
- status
-
getDocument
Getter for document field. See constructor documentation for more information about the field.- Returns:
- document
-
getDocumentDetectionResult
Getter for documentDetectionResult field. See constructor documentation for more information about the field.- Returns:
- documentDetectionResult
-
getCroppedImage
Getter for croppedImage field. See constructor documentation for more information about the field.- Returns:
- croppedImage
-
close
public void close()Closes native resources (images) held by the object.- Specified by:
closein interfaceAutoCloseable
-