Class DocumentDataExtractionResult

java.lang.Object
io.scanbot.sdk.documentdata.DocumentDataExtractionResult
All Implemented Interfaces:
AutoCloseable

public class DocumentDataExtractionResult extends Object implements AutoCloseable
Contains the result of running the document data extractor.
  • 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

      public DocumentDataExtractionStatus getStatus()
      Getter for status field. See constructor documentation for more information about the field.
      Returns:
      status
    • getDocument

      public GenericDocument getDocument()
      Getter for document field. See constructor documentation for more information about the field.
      Returns:
      document
    • getDocumentDetectionResult

      public DocumentDetectionResult getDocumentDetectionResult()
      Getter for documentDetectionResult field. See constructor documentation for more information about the field.
      Returns:
      documentDetectionResult
    • getCroppedImage

      public ImageRef 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:
      close in interface AutoCloseable