Class DbPostProcess

java.lang.Object
com.itextpdf.pdfocr.onnx.conf.paddle.model.DbPostProcess
All Implemented Interfaces:
PostProcess

public class DbPostProcess extends Object implements PostProcess
POJO for the DBPostProcess post-processor object under a PostProcess key in a config file.
  • Field Details

  • 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 the thresh key
      boxThresh - value under the box_thresh key
      unclipRatio - value under the unclip_ratio key
      maxCandidates - value under the max_candidates key
      useDilation - value under the use_dilation key
      scoreMode - value under the score_mode key
      boxType - value under the box_type key
  • Method Details

    • getName

      public String getName()
      Returns the value under the name key.
      Specified by:
      getName in interface PostProcess
      Returns:
      the value under the name key
    • getThresh

      public float getThresh()
      Returns the value under the thresh key.
      Returns:
      the value under the thresh key
    • getBoxThresh

      public float getBoxThresh()
      Returns the value under the box_thresh key.
      Returns:
      the value under the box_thresh key
    • getUnclipRatio

      public float getUnclipRatio()
      Returns the value under the unclip_ratio key.
      Returns:
      the value under the unclip_ratio key
    • getMaxCandidates

      public int getMaxCandidates()
      Returns the value under the max_candidates key.
      Returns:
      the value under the max_candidates key
    • getUseDilation

      public boolean getUseDilation()
      Returns the value under the use_dilation key.
      Returns:
      the value under the use_dilation key
    • getScoreMode

      public ScoreMode getScoreMode()
      Returns the value under the score_mode key.
      Returns:
      the value under the score_mode key
    • getBoxType

      public BoxType getBoxType()
      Returns the value under the box_type key.
      Returns:
      the value under the box_type key
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object