Class DecodeImage

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

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

    • DecodeImage

      public DecodeImage (boolean channelFirst, ImgMode imgMode)
      Creates a new POJO for the config file object.
      Parameters:
      channelFirst - value under the channel_first key
      imgMode - value under the img_mode 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
    • getChannelFirst

      public boolean getChannelFirst()
      Returns the value under the channel_first key.
      Returns:
      the value under the channel_first key
    • getImgMode

      public ImgMode getImgMode()
      Returns the value under the img_mode key.
      Returns:
      the value under the img_mode key
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object