Package com.nefrock.edgeocr
Class DBTextDetectorSettings
java.lang.Object
com.nefrock.edgeocr.DBTextDetectorSettings
DB文字検出モデルの設定を表す構造体
-
Constructor Summary
ConstructorsConstructorDescriptionDBTextDetectorSettings
(float binaryThreshold, float widthFactor, float heightFactor, DBPostProcessing postProcessing) DB文字検出モデルの設定を初期化する -
Method Summary
Modifier and TypeMethodDescriptionfloat
float
内部使用(実験的)float
void
setBinaryThreshold
(float binaryThreshold) DB検出モデルにおける二値化の閾値を設定するvoid
setHeightFactor
(float heightFactor) DB検出モデルにおける縦方向の拡大率を設定するvoid
setPostProcessing
(DBPostProcessing postProcessing) 内部使用(実験的):検出モデルの出力のポストプロセスを設定するvoid
setWidthFactor
(float widthFactor) 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
内部使用(実験的)- Returns:
- 検出モデルの出力のポストプロセス
-
setPostProcessing
内部使用(実験的):検出モデルの出力のポストプロセスを設定する- Parameters:
postProcessing
- ポストプロセス
-