Class NormalizeImage

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

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

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Expected wrapping key for the NormalizeImage operation.
  • Constructor Summary

    Constructors
    Constructor
    Description
    NormalizeImage(float[] mean, float[] std)
    Creates a new POJO for the config file object.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    float[]
    Returns the values under the mean key.
    float[]
    getStd()
    Returns the values under the std key.
    Returns the wrapping key for the transform operation object.
    int

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • WRAPPING_KEY

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

    • NormalizeImage

      public NormalizeImage (float[] mean, float[] std)
      Creates a new POJO for the config file object.
      Parameters:
      mean - values under the mean key
      std - values under the std 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
    • getMean

      public float[] getMean()
      Returns the values under the mean key.
      Returns:
      the values under the mean key
    • getStd

      public float[] getStd()
      Returns the values under the std key.
      Returns:
      the values under the std key
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object