Class DecodeImage
java.lang.Object
com.itextpdf.pdfocr.onnx.conf.paddle.model.DecodeImage
- All Implemented Interfaces:
-
TransformOp
POJO for the DecodeImage transform operation within a
PreProcess object in a config file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringExpected wrapping key for the DecodeImage operation. -
Constructor Summary
ConstructorsConstructorDescriptionDecodeImage(boolean channelFirst, ImgMode imgMode) Creates a new POJO for the config file object. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanReturns the value under thechannel_firstkey.Returns the value under theimg_modekey.Returns the wrapping key for the transform operation object.inthashCode()
-
Field Details
-
WRAPPING_KEY
Expected wrapping key for the DecodeImage operation.- See Also:
-
-
Constructor Details
-
DecodeImage
Creates a new POJO for the config file object.- Parameters:
-
channelFirst- value under thechannel_firstkey -
imgMode- value under theimg_modekey
-
-
Method Details
-
getWrappingKey
Returns the wrapping key for the transform operation object.- Specified by:
-
getWrappingKeyin interfaceTransformOp - Returns:
- the wrapping key
-
getChannelFirst
public boolean getChannelFirst()Returns the value under thechannel_firstkey.- Returns:
-
the value under the
channel_firstkey
-
getImgMode
Returns the value under theimg_modekey.- Returns:
-
the value under the
img_modekey
-
equals
-
hashCode
public int hashCode()
-