Package io.scanbot.sdk.check
Class CheckScanningResult
java.lang.Object
io.scanbot.sdk.check.CheckScanningResult
- All Implemented Interfaces:
AutoCloseable
The result of check scanning.
-
Constructor Summary
ConstructorsConstructorDescriptionCheckScanningResult(CheckMagneticInkStripScanningStatus status, GenericDocument check, DocumentDetectionResult documentDetectionResult, ImageRef croppedImage) Constructs CheckScanningResult with the given params.CheckScanningResult(GenericDocument check, DocumentDetectionResult documentDetectionResult) Constructs CheckScanningResult with default parameters. -
Method Summary
-
Constructor Details
-
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
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 Details
-
getStatus
Getter for status field. See constructor documentation for more information about the field.- Returns:
- status
-
getCheck
Getter for check field. See constructor documentation for more information about the field.- Returns:
- check
-
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
-