Package com.nefrock.edgeocr
Class ModelSettings
java.lang.Object
com.nefrock.edgeocr.ModelSettings
AIモデルの設定を表す構造体
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
int
float
float
int
int
int
float
void
setAreaThreshold
(float areaThreshold) 検出の最小面積(画像の面積に対する割合)を設定するvoid
setBarcodeDetectorExecutionSettings
(ExecutionSettings barcodeDetectorExecutionSettings) バーコード検出モデルの実行設定を設定するvoid
setBarcodeNToConfirm
(Map<BarcodeFormat, Integer> barcodesNToConfirm) バーコードフォーマット毎の検出結果の確定に必要な同じ結果の読み込み回数を設定する。 この設定はScanOptions.ScanMode.DEFAULT
の場合のみ有効です。void
setBarcodeRecognizerExecutionSettings
(ExecutionSettings barcodeRecognizerExecutionSettings) バーコード認識モデルの実行設定を設定するvoid
setBBoxTextDetectorSettings
(BBoxTextDetectorSettings bboxTextDetectorSettings) BBox文字検出モデルの詳細設定を設定するvoid
setCheckAfterFrames
(int checkAfterFrames) 確定された結果を再度確認するまでのフレーム数を設定するvoid
setConfidenceThreshold
(float confidenceThreshold) 検出の最小信頼度を設定するvoid
setCropDetectionFilter
(CropDetectionFilter cropDetectionFilter) 文字列・バーコードの検出をそれぞれ範囲を指定してフィルタリングするための設定void
setDBTextDetectorSettings
(DBTextDetectorSettings dbTextDetectorSettings) DB文字検出モデルの詳細設定を設定するvoid
setDetectionFilter
(DetectionFilter detectionFilter) 検出結果のフィルタを設定するvoid
setHighConfidenceThreshold
(float highConfidenceThreshold) 検出における高信頼度の閾値(トラッキングに影響する)を設定するvoid
setParallelBarcodeRecognizers
(int parallelBarcodeRecognizers) バーコード認識モデルの並列実行数を設定するvoid
setParallelTextRecognizers
(int parallelTextRecognizers) 文字認識モデルの並列実行数を設定するvoid
setTextDetectorExecutionSettings
(ExecutionSettings textDetectorExecutionSettings) 文字検出モデルの実行設定を設定するvoid
setTextMapper
(TextMapper textMapper) 認識された文字列のテキストマッパーを設定するvoid
setTextMapper
(TextMapperWithConfidence textMapper) 認識された文字列のテキストマッパーを設定する(信頼度付き)void
setTextNToConfirm
(int textNToConfirm) 文字検出結果の確定に必要な同じ結果の読み込み回数を設定する。 この設定はScanOptions.ScanMode.DEFAULT
の場合のみ有効です。void
setTextRecognizerExecutionSettings
(ExecutionSettings textRecognizerExecutionSettings) 認識モデルの実行設定を設定するvoid
setTextRecognizerSettings
(TextRecognizerSettings textRecognizerSettings) 文字認識モデルの詳細設定を設定するvoid
setZeroConfidenceThreshold
(float zeroConfidenceThreshold) 検出の最小信頼度(これ以下の信頼度ならトラッキングに使用しない)を設定する
-
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
- Returns:
- 文字検出モデルの実行設定
-
setTextDetectorExecutionSettings
文字検出モデルの実行設定を設定する- Parameters:
textDetectorExecutionSettings
- 実行設定
-
getBarcodeDetectorExecutionSettings
- Returns:
- バーコード検出モデルの実行設定
-
setBarcodeDetectorExecutionSettings
バーコード検出モデルの実行設定を設定する- Parameters:
barcodeDetectorExecutionSettings
- 実行設定
-
setDetectionFilter
検出結果のフィルタを設定する- Parameters:
detectionFilter
- フィルタ
-
getCropDetectionFilter
- Returns:
- 範囲検出フィルター
-
setCropDetectionFilter
文字列・バーコードの検出をそれぞれ範囲を指定してフィルタリングするための設定- Parameters:
cropDetectionFilter
- 範囲検出フィルター
-
getBBoxTextDetectorSettings
- Returns:
- BBox文字検出モデルの詳細設定
-
setBBoxTextDetectorSettings
BBox文字検出モデルの詳細設定を設定する- Parameters:
bboxTextDetectorSettings
- 設定
-
getDBTextDetectorSettings
- Returns:
- DB文字検出モデルの詳細設定
-
setDBTextDetectorSettings
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
- Returns:
- 認識モデルの実行設定
-
setTextRecognizerExecutionSettings
認識モデルの実行設定を設定する- Parameters:
textRecognizerExecutionSettings
- 実行設定
-
setTextMapper
認識された文字列のテキストマッパーを設定する- Parameters:
textMapper
- テキストマッパー
-
setTextMapper
認識された文字列のテキストマッパーを設定する(信頼度付き)- Parameters:
textMapper
- 信頼度付きのテキストマッパー
-
getBarcodeNToConfirm
- Returns:
- バーコードフォーマット毎の検出結果の確定に必要な同じ結果の読み込み回数
-
setBarcodeNToConfirm
バーコードフォーマット毎の検出結果の確定に必要な同じ結果の読み込み回数を設定する。 この設定はScanOptions.ScanMode.DEFAULT
の場合のみ有効です。- Parameters:
barcodesNToConfirm
- バーコードフォーマット毎の読み込み回数
-
getParallelBarcodeRecognizers
public int getParallelBarcodeRecognizers()- Returns:
- バーコード認識モデルの並列実行数
-
setParallelBarcodeRecognizers
public void setParallelBarcodeRecognizers(int parallelBarcodeRecognizers) バーコード認識モデルの並列実行数を設定する- Parameters:
parallelBarcodeRecognizers
- 並列実行数
-
getBarcodeRecognizerExecutionSettings
- Returns:
- バーコード認識モデルの実行設定
-
setBarcodeRecognizerExecutionSettings
public void setBarcodeRecognizerExecutionSettings(ExecutionSettings barcodeRecognizerExecutionSettings) バーコード認識モデルの実行設定を設定する- Parameters:
barcodeRecognizerExecutionSettings
- 実行設定
-
getTextRecognizerSettings
- Returns:
- 文字認識モデルの詳細設定
-
setTextRecognizerSettings
文字認識モデルの詳細設定を設定する- Parameters:
textRecognizerSettings
- 設定
-