Class DetResizeForTest
java.lang.Object
com.itextpdf.pdfocr.onnx.conf.paddle.model.DetResizeForTest
- All Implemented Interfaces:
-
TransformOp
POJO for the DetResizeForTest transform operation within a
PreProcess object in a config file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringExpected wrapping key for the DetResizeForTest operation. -
Constructor Summary
ConstructorsConstructorDescriptionDetResizeForTest(int[] imageShape, boolean keepRatio) Creates a new POJO for the config file object. -
Method Summary
Modifier and TypeMethodDescriptionbooleanint[]Returns the values under theimage_shapekey.booleanReturns the value under thekeep_ratiokey.Returns the wrapping key for the transform operation object.inthashCode()
-
Field Details
-
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 theimage_shapekey, optional -
keepRatio- value under thekeep_ratiokey
-
-
Method Details
-
getWrappingKey
Returns the wrapping key for the transform operation object.- Specified by:
-
getWrappingKeyin interfaceTransformOp - Returns:
- the wrapping key
-
getImageShape
public int[] getImageShape()Returns the values under theimage_shapekey.- Returns:
-
the values under the
image_shapekey
-
getKeepRatio
public boolean getKeepRatio()Returns the value under thekeep_ratiokey.- Returns:
-
the value under the
keep_ratiokey
-
equals
-
hashCode
public int hashCode()
-