Class CheckScanningResult

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class CheckScanningResult
    extends java.lang.Object
    implements java.lang.AutoCloseable
    The result of check scanning.
    • Constructor Detail

      • CheckScanningResult

        public CheckScanningResult​(CheckMagneticInkStripScanningStatus status,
                                   GenericDocument check,
                                   DocumentDetectionResult documentDetectionResult,
                                   ImageRef croppedImage)
        Constructs CheckScanningResult with the given params.
        Parameters:
        status - Magnetic ink strip scanning status. Default is ERROR_NOTHING_FOUND
        check - Generic document containing check data. Not present, if status is FAIL.
        documentDetectionResult - The result of document detection. Will be set only if detectDocument in the configuration is set to true. Check scanning may still succeed even if the whole document is not visible in the input image and the complete document could not be located.
        croppedImage - Crop of the check if documentDetectionMode is set to DETECT_AND_CROP_DOCUMENT. Will be non-empty, only if check recognition succeeded.
      • CheckScanningResult

        public CheckScanningResult​(GenericDocument check,
                                   DocumentDetectionResult documentDetectionResult)
        Constructs CheckScanningResult with default parameters.
        Parameters:
        check - Generic document containing check data. Not present, if status is FAIL.
        documentDetectionResult - The result of document detection. Will be set only if detectDocument in the configuration is set to true. Check scanning may still succeed even if the whole document is not visible in the input image and the complete document could not be located.
    • Method Detail

      • getStatus

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

        public GenericDocument getCheck()
        Getter for check field. See constructor documentation for more information about the field.
        Returns:
        check
      • 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 java.lang.AutoCloseable