Package io.scanbot.sdk.documentscanner
Class DocumentStraighteningResult
- java.lang.Object
-
- io.scanbot.sdk.documentscanner.DocumentStraighteningResult
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class DocumentStraighteningResult extends java.lang.Object implements java.lang.AutoCloseableResult of the document straightening.
-
-
Constructor Summary
Constructors Constructor Description DocumentStraighteningResult()Constructs DocumentStraighteningResult with default parameters.DocumentStraighteningResult(ImageRef straightenedImage)Constructs DocumentStraighteningResult with the given params.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes native resources (images) held by the object.ImageRefgetStraightenedImage()Getter for straightenedImage field.
-
-
-
Constructor Detail
-
DocumentStraighteningResult
public DocumentStraighteningResult(ImageRef straightenedImage)
Constructs DocumentStraighteningResult with the given params.- Parameters:
straightenedImage- The straightened document image. Can be null if no document was detected.
-
DocumentStraighteningResult
public DocumentStraighteningResult()
Constructs DocumentStraighteningResult with default parameters.
-
-
Method Detail
-
getStraightenedImage
public ImageRef getStraightenedImage()
Getter for straightenedImage field. See constructor documentation for more information about the field.- Returns:
- straightenedImage
-
close
public void close()
Closes native resources (images) held by the object.- Specified by:
closein interfacejava.lang.AutoCloseable
-
-