Class DBTextDetectorSettings

java.lang.Object
com.nefrock.edgeocr.DBTextDetectorSettings

public class DBTextDetectorSettings extends Object
DB文字検出モデルの設定を表す構造体
  • Constructor Details

    • DBTextDetectorSettings

      public DBTextDetectorSettings(float binaryThreshold, float widthFactor, float heightFactor, DBPostProcessing postProcessing)
      DB文字検出モデルの設定を初期化する
      Parameters:
      binaryThreshold - 二値化の閾値
      widthFactor - 幅の倍率
      heightFactor - 高さの倍率
      postProcessing - 後処理
  • Method Details

    • getBinaryThreshold

      public float getBinaryThreshold()
      Returns:
      DB検出モデルにおける二値化の閾値
    • setBinaryThreshold

      public void setBinaryThreshold(float binaryThreshold)
      DB検出モデルにおける二値化の閾値を設定する
      Parameters:
      binaryThreshold - 閾値
    • getWidthFactor

      public float getWidthFactor()
      Returns:
      DB検出モデルにおける横方向の拡大率
    • setWidthFactor

      public void setWidthFactor(float widthFactor)
      DB検出モデルにおける横方向の拡大率を設定する
      Parameters:
      widthFactor - 拡大率
    • getHeightFactor

      public float getHeightFactor()
      Returns:
      DB検出モデルにおける縦方向の拡大率
    • setHeightFactor

      public void setHeightFactor(float heightFactor)
      DB検出モデルにおける縦方向の拡大率を設定する
      Parameters:
      heightFactor - 拡大率
    • getPostProcessing

      public DBPostProcessing getPostProcessing()
      内部使用(実験的)
      Returns:
      検出モデルの出力のポストプロセス
    • setPostProcessing

      public void setPostProcessing(DBPostProcessing postProcessing)
      内部使用(実験的):検出モデルの出力のポストプロセスを設定する
      Parameters:
      postProcessing - ポストプロセス