Class RecResizeImg

java.lang.Object
com.itextpdf.pdfocr.onnx.conf.paddle.model.RecResizeImg
All Implemented Interfaces:
TransformOp

public class RecResizeImg extends Object implements TransformOp
POJO for the RecResizeImg transform operation within a PreProcess object in a config file.
  • Field Details

    • WRAPPING_KEY

      public static final String WRAPPING_KEY
      Expected wrapping key for the RecResizeImg operation.
      See Also:
  • Constructor Details

    • RecResizeImg

      public RecResizeImg (int[] imageShape)
      Creates a new POJO for the config file object.
      Parameters:
      imageShape - values under the image_shape key
  • Method Details

    • getWrappingKey

      public String getWrappingKey()
      Returns the wrapping key for the transform operation object.
      Specified by:
      getWrappingKey in interface TransformOp
      Returns:
      the wrapping key
    • getImageShape

      public int[] getImageShape()
      Returns the values under the image_shape key.
      Returns:
      the values under the image_shape key
    • equals

      public boolean equals (Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object