Class ModelSettings

java.lang.Object
com.nefrock.edgeocr.ModelSettings

public class ModelSettings extends Object
AIモデルの設定を表す構造体
  • Constructor Details

    • ModelSettings

      public ModelSettings()
      デフォルト値でAIモデルの設定を作成します。
  • Method Details

    • getCheckAfterFrames

      public int getCheckAfterFrames()
      Returns:
      確定された結果を再度確認するまでのフレーム数
    • setCheckAfterFrames

      public void setCheckAfterFrames(int checkAfterFrames)
      確定された結果を再度確認するまでのフレーム数を設定する
      Parameters:
      checkAfterFrames - フレーム数
    • getAreaThreshold

      public float getAreaThreshold()
      Returns:
      検出の最小面積(画像の面積に対する割合
    • setAreaThreshold

      public void setAreaThreshold(float areaThreshold)
      検出の最小面積(画像の面積に対する割合)を設定する
      Parameters:
      areaThreshold - 面積の割合
    • getZeroConfidenceThreshold

      public float getZeroConfidenceThreshold()
      Returns:
      検出の最小信頼度(これ以下の信頼度ならトラッキングに使用しない)
    • setZeroConfidenceThreshold

      public void setZeroConfidenceThreshold(float zeroConfidenceThreshold)
      検出の最小信頼度(これ以下の信頼度ならトラッキングに使用しない)を設定する
      Parameters:
      zeroConfidenceThreshold - 信頼度
    • getConfidenceThreshold

      public float getConfidenceThreshold()
      Returns:
      検出の最小信頼度
    • setConfidenceThreshold

      public void setConfidenceThreshold(float confidenceThreshold)
      検出の最小信頼度を設定する
      Parameters:
      confidenceThreshold - 信頼度
    • getHighConfidenceThreshold

      public float getHighConfidenceThreshold()
      Returns:
      検出における高信頼度の閾値(トラッキングに影響する)
    • setHighConfidenceThreshold

      public void setHighConfidenceThreshold(float highConfidenceThreshold)
      検出における高信頼度の閾値(トラッキングに影響する)を設定する
      Parameters:
      highConfidenceThreshold - 閾値
    • getTextDetectorExecutionSettings

      public ExecutionSettings getTextDetectorExecutionSettings()
      Returns:
      文字検出モデルの実行設定
    • setTextDetectorExecutionSettings

      public void setTextDetectorExecutionSettings(ExecutionSettings textDetectorExecutionSettings)
      文字検出モデルの実行設定を設定する
      Parameters:
      textDetectorExecutionSettings - 実行設定
    • getBarcodeDetectorExecutionSettings

      public ExecutionSettings getBarcodeDetectorExecutionSettings()
      Returns:
      バーコード検出モデルの実行設定
    • setBarcodeDetectorExecutionSettings

      public void setBarcodeDetectorExecutionSettings(ExecutionSettings barcodeDetectorExecutionSettings)
      バーコード検出モデルの実行設定を設定する
      Parameters:
      barcodeDetectorExecutionSettings - 実行設定
    • setDetectionFilter

      public void setDetectionFilter(DetectionFilter detectionFilter)
      検出結果のフィルタを設定する
      Parameters:
      detectionFilter - フィルタ
    • getCropDetectionFilter

      public CropDetectionFilter getCropDetectionFilter()
      Returns:
      範囲検出フィルター
    • setCropDetectionFilter

      public void setCropDetectionFilter(CropDetectionFilter cropDetectionFilter)
      文字列・バーコードの検出をそれぞれ範囲を指定してフィルタリングするための設定
      Parameters:
      cropDetectionFilter - 範囲検出フィルター
    • getBBoxTextDetectorSettings

      public BBoxTextDetectorSettings getBBoxTextDetectorSettings()
      Returns:
      BBox文字検出モデルの詳細設定
    • setBBoxTextDetectorSettings

      public void setBBoxTextDetectorSettings(BBoxTextDetectorSettings bboxTextDetectorSettings)
      BBox文字検出モデルの詳細設定を設定する
      Parameters:
      bboxTextDetectorSettings - 設定
    • getDBTextDetectorSettings

      public DBTextDetectorSettings getDBTextDetectorSettings()
      Returns:
      DB文字検出モデルの詳細設定
    • setDBTextDetectorSettings

      public void setDBTextDetectorSettings(DBTextDetectorSettings dbTextDetectorSettings)
      DB文字検出モデルの詳細設定を設定する
      Parameters:
      dbTextDetectorSettings - 設定
    • getTextNToConfirm

      public int getTextNToConfirm()
      Returns:
      文字検出結果の確定に必要な同じ結果の読み込み回数
    • setTextNToConfirm

      public void setTextNToConfirm(int textNToConfirm)
      文字検出結果の確定に必要な同じ結果の読み込み回数を設定する。 この設定はScanOptions.ScanMode.DEFAULTの場合のみ有効です。
      Parameters:
      textNToConfirm - 回数
    • getParallelTextRecognizers

      public int getParallelTextRecognizers()
      Returns:
      文字認識モデルの並列実行数
    • setParallelTextRecognizers

      public void setParallelTextRecognizers(int parallelTextRecognizers)
      文字認識モデルの並列実行数を設定する
      Parameters:
      parallelTextRecognizers - 並列実行数
    • getTextRecognizerExecutionSettings

      public ExecutionSettings getTextRecognizerExecutionSettings()
      Returns:
      認識モデルの実行設定
    • setTextRecognizerExecutionSettings

      public void setTextRecognizerExecutionSettings(ExecutionSettings textRecognizerExecutionSettings)
      認識モデルの実行設定を設定する
      Parameters:
      textRecognizerExecutionSettings - 実行設定
    • setTextMapper

      public void setTextMapper(TextMapper textMapper)
      認識された文字列のテキストマッパーを設定する
      Parameters:
      textMapper - テキストマッパー
    • setTextMapper

      public void setTextMapper(TextMapperWithConfidence textMapper)
      認識された文字列のテキストマッパーを設定する(信頼度付き)
      Parameters:
      textMapper - 信頼度付きのテキストマッパー
    • getBarcodeNToConfirm

      public Map<BarcodeFormat,Integer> getBarcodeNToConfirm()
      Returns:
      バーコードフォーマット毎の検出結果の確定に必要な同じ結果の読み込み回数
    • setBarcodeNToConfirm

      public void setBarcodeNToConfirm(Map<BarcodeFormat,Integer> barcodesNToConfirm)
      バーコードフォーマット毎の検出結果の確定に必要な同じ結果の読み込み回数を設定する。 この設定はScanOptions.ScanMode.DEFAULTの場合のみ有効です。
      Parameters:
      barcodesNToConfirm - バーコードフォーマット毎の読み込み回数
    • getParallelBarcodeRecognizers

      public int getParallelBarcodeRecognizers()
      Returns:
      バーコード認識モデルの並列実行数
    • setParallelBarcodeRecognizers

      public void setParallelBarcodeRecognizers(int parallelBarcodeRecognizers)
      バーコード認識モデルの並列実行数を設定する
      Parameters:
      parallelBarcodeRecognizers - 並列実行数
    • getBarcodeRecognizerExecutionSettings

      public ExecutionSettings getBarcodeRecognizerExecutionSettings()
      Returns:
      バーコード認識モデルの実行設定
    • setBarcodeRecognizerExecutionSettings

      public void setBarcodeRecognizerExecutionSettings(ExecutionSettings barcodeRecognizerExecutionSettings)
      バーコード認識モデルの実行設定を設定する
      Parameters:
      barcodeRecognizerExecutionSettings - 実行設定
    • getTextRecognizerSettings

      public TextRecognizerSettings getTextRecognizerSettings()
      Returns:
      文字認識モデルの詳細設定
    • setTextRecognizerSettings

      public void setTextRecognizerSettings(TextRecognizerSettings textRecognizerSettings)
      文字認識モデルの詳細設定を設定する
      Parameters:
      textRecognizerSettings - 設定