Class DocumentStraighteningResult

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class DocumentStraighteningResult
    extends java.lang.Object
    implements java.lang.AutoCloseable
    Result of the document straightening.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Closes native resources (images) held by the object.
      ImageRef getStraightenedImage()
      Getter for straightenedImage field.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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:
        close in interface java.lang.AutoCloseable