Package com.nefrock.edgeocr
Class ModelSettings
java.lang.Object
com.nefrock.edgeocr.ModelSettings
AIモデルの設定を表す構造体
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatintfloatfloatintintintfloatvoidsetAdvancedBarcodeRecognizerSettings(AdvancedBarcodeRecognizerSettings advancedBarcodeRecognizerSettings) 高度バーコード認識の詳細設定を設定するvoidsetAreaThreshold(float areaThreshold) 検出の最小面積(画像の面積に対する割合)を設定するvoidsetBarcodeDetectorExecutionSettings(ExecutionSettings barcodeDetectorExecutionSettings) バーコード検出モデルの実行設定を設定するvoidsetBarcodeNToConfirm(Map<BarcodeFormat, Integer> barcodesNToConfirm) バーコードフォーマット毎の検出結果の確定に必要な同じ結果の読み込み回数を設定する。 この設定はScanOptions.ScanMode.DEFAULTの場合のみ有効です。voidsetBarcodeRecognizerExecutionSettings(ExecutionSettings barcodeRecognizerExecutionSettings) バーコード認識モデルの実行設定を設定するvoidsetBBoxTextDetectorSettings(BBoxTextDetectorSettings bboxTextDetectorSettings) BBox文字検出モデルの詳細設定を設定するvoidsetCheckAfterFrames(int checkAfterFrames) 確定された結果を再度確認するまでのフレーム数を設定するvoidsetConfidenceThreshold(float confidenceThreshold) 検出の最小信頼度を設定する highConfidenceThresholdよりも小さい値に設定してください。voidsetCropDetectionFilter(CropDetectionFilter cropDetectionFilter) 文字列・バーコードの検出をそれぞれ範囲を指定してフィルタリングするための設定voidsetDBTextDetectorSettings(DBTextDetectorSettings dbTextDetectorSettings) DB文字検出モデルの詳細設定を設定するvoidsetDetectionFilter(DetectionFilter detectionFilter) 検出結果のフィルタを設定するvoidsetHighConfidenceThreshold(float highConfidenceThreshold) 検出における高信頼度の閾値(トラッキングに影響する)を設定するvoidsetNextBarcodeRecognizerSettings(NextBarcodeRecognizerSettings nextBarcodeRecognizerSettings) Nextバーコード認識の詳細設定を設定するvoidsetParallelBarcodeRecognizers(int parallelBarcodeRecognizers) バーコード認識モデルの並列実行数を設定するvoidsetParallelTextRecognizers(int parallelTextRecognizers) 文字認識モデルの並列実行数を設定するvoidsetTextDetectorExecutionSettings(ExecutionSettings textDetectorExecutionSettings) 文字検出モデルの実行設定を設定するvoidsetTextMapper(TextMapper textMapper) 認識された文字列のテキストマッパーを設定するvoidsetTextMapper(TextMapperWithConfidence textMapper) 認識された文字列のテキストマッパーを設定する(信頼度付き)voidsetTextNToConfirm(int textNToConfirm) 文字検出結果の確定に必要な同じ結果の読み込み回数を設定する。 この設定はScanOptions.ScanMode.DEFAULTの場合のみ有効です。voidsetTextRecognizerExecutionSettings(ExecutionSettings textRecognizerExecutionSettings) 認識モデルの実行設定を設定するvoidsetTextRecognizerSettings(TextRecognizerSettings textRecognizerSettings) 文字認識モデルの詳細設定を設定するvoidsetYotsukaDDetectorSettings(YotsukaDDetectorSettings yotsukaDDetectorSettings) YotsukaD検出モデルの詳細設定を設定するvoidsetZeroConfidenceThreshold(float zeroConfidenceThreshold) 検出の最小信頼度(これ以下の信頼度ならトラッキングに使用しない)を設定する confidenceThresholdよりも小さい値に設定してください。
-
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) 検出の最小信頼度(これ以下の信頼度ならトラッキングに使用しない)を設定する confidenceThresholdよりも小さい値に設定してください。- Parameters:
zeroConfidenceThreshold- 信頼度
-
getConfidenceThreshold
public float getConfidenceThreshold()- Returns:
- 検出の最小信頼度
-
setConfidenceThreshold
public void setConfidenceThreshold(float confidenceThreshold) 検出の最小信頼度を設定する highConfidenceThresholdよりも小さい値に設定してください。- 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- 設定
-
getYotsukaDDetectorSettings
- Returns:
- YotsukaD検出モデルの詳細設定
-
setYotsukaDDetectorSettings
YotsukaD検出モデルの詳細設定を設定する- Parameters:
yotsukaDDetectorSettings- 設定
-
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- 設定
-
getAdvancedBarcodeRecognizerSettings
- Returns:
- 高度バーコード認識の詳細設定
-
setAdvancedBarcodeRecognizerSettings
public void setAdvancedBarcodeRecognizerSettings(AdvancedBarcodeRecognizerSettings advancedBarcodeRecognizerSettings) 高度バーコード認識の詳細設定を設定する- Parameters:
advancedBarcodeRecognizerSettings- 設定
-
getNextBarcodeRecognizerSettings
- Returns:
- Nextバーコード認識の詳細設定
-
setNextBarcodeRecognizerSettings
public void setNextBarcodeRecognizerSettings(NextBarcodeRecognizerSettings nextBarcodeRecognizerSettings) Nextバーコード認識の詳細設定を設定する- Parameters:
nextBarcodeRecognizerSettings- 設定
-