Class DetResizeForTest

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

public class DetResizeForTest extends Object implements TransformOp
POJO for the DetResizeForTest 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 DetResizeForTest operation.
      See Also:
  • Constructor Details

    • DetResizeForTest

      public DetResizeForTest (int[] imageShape, boolean keepRatio)
      Creates a new POJO for the config file object.
      Parameters:
      imageShape - value under the image_shape key, optional
      keepRatio - value under the keep_ratio 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
    • getKeepRatio

      public boolean getKeepRatio()
      Returns the value under the keep_ratio key.
      Returns:
      the value under the keep_ratio key
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object