Package io.scanbot.sdk.documentscanner
Class DocumentScanningResult
java.lang.Object
io.scanbot.sdk.documentscanner.DocumentScanningResult
- All Implemented Interfaces:
AutoCloseable
Result of the document detection followed by cropping of the found document.
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentScanningResult(DocumentDetectionResult detectionResult) Constructs DocumentScanningResult with default parameters.DocumentScanningResult(DocumentDetectionResult detectionResult, ImageRef croppedImage) Constructs DocumentScanningResult with the given params. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes native resources (images) held by the object.Getter for croppedImage field.Getter for detectionResult field.
-
Constructor Details
-
DocumentScanningResult
Constructs DocumentScanningResult with the given params.- Parameters:
detectionResult- Result of the document contour detection.croppedImage- Cropped document image.
-
DocumentScanningResult
Constructs DocumentScanningResult with default parameters.- Parameters:
detectionResult- Result of the document contour detection.
-
-
Method Details
-
getDetectionResult
Getter for detectionResult field. See constructor documentation for more information about the field.- Returns:
- detectionResult
-
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
-