Class DbPostProcess
java.lang.Object
com.itextpdf.pdfocr.onnx.conf.paddle.model.DbPostProcess
- All Implemented Interfaces:
-
PostProcess
POJO for the DBPostProcess post-processor object under a
PostProcess key in a config file.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDbPostProcess(float thresh, float boxThresh, float unclipRatio, int maxCandidates, boolean useDilation, ScoreMode scoreMode, BoxType boxType) Creates a new POJO for the config file object. -
Method Summary
Modifier and TypeMethodDescriptionbooleanfloatReturns the value under thebox_threshkey.Returns the value under thebox_typekey.intReturns the value under themax_candidateskey.getName()Returns the value under thenamekey.Returns the value under thescore_modekey.floatReturns the value under thethreshkey.floatReturns the value under theunclip_ratiokey.booleanReturns the value under theuse_dilationkey.inthashCode()
-
Field Details
-
NAME
Expected name for the CTCLabelDecode post-processor.- See Also:
-
-
Constructor Details
-
DbPostProcess
public DbPostProcess(float thresh, float boxThresh, float unclipRatio, int maxCandidates, boolean useDilation, ScoreMode scoreMode, BoxType boxType) Creates a new POJO for the config file object.- Parameters:
-
thresh- value under thethreshkey -
boxThresh- value under thebox_threshkey -
unclipRatio- value under theunclip_ratiokey -
maxCandidates- value under themax_candidateskey -
useDilation- value under theuse_dilationkey -
scoreMode- value under thescore_modekey -
boxType- value under thebox_typekey
-
-
Method Details
-
getName
Returns the value under thenamekey.- Specified by:
-
getNamein interfacePostProcess - Returns:
-
the value under the
namekey
-
getThresh
public float getThresh()Returns the value under thethreshkey.- Returns:
-
the value under the
threshkey
-
getBoxThresh
public float getBoxThresh()Returns the value under thebox_threshkey.- Returns:
-
the value under the
box_threshkey
-
getUnclipRatio
public float getUnclipRatio()Returns the value under theunclip_ratiokey.- Returns:
-
the value under the
unclip_ratiokey
-
getMaxCandidates
public int getMaxCandidates()Returns the value under themax_candidateskey.- Returns:
-
the value under the
max_candidateskey
-
getUseDilation
public boolean getUseDilation()Returns the value under theuse_dilationkey.- Returns:
-
the value under the
use_dilationkey
-
getScoreMode
Returns the value under thescore_modekey.- Returns:
-
the value under the
score_modekey
-
getBoxType
Returns the value under thebox_typekey.- Returns:
-
the value under the
box_typekey
-
equals
-
hashCode
public int hashCode()
-