🤖 AIによる機械翻訳(非公式) — これは OpenCV 4.13.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
Package org.opencv.dnn
クラス TextDetectionModel_DB
- java.lang.Object
-
- org.opencv.dnn.Model
-
- org.opencv.dnn.TextDetectionModel
-
- org.opencv.dnn.TextDetectionModel_DB
public class TextDetectionModel_DB extends TextDetectionModel
このクラスはDBモデルに対応したテキスト検出DLネットワークの高レベルAPIを表す。関連文献: CITE: liao2020real 論文: https://arxiv.org/abs/1911.08947 ハイパーパラメータの設定に関する詳細は https://github.com/MhLiao/DB を参照。設定可能な引数: - (float) binaryThreshold - 二値マップのしきい値。通常は0.3に設定する。 - (float) polygonThreshold - テキストポリゴンのしきい値。通常は0.5、0.6、0.7に設定する。デフォルトは0.5f。 - (double) unclipRatio - 検出されたテキスト領域のアンクリップ比で、出力サイズを決定する。通常は2.0に設定する。 - (int) maxCandidates - 出力結果の最大数。
-
-
コンストラクタの要約
コンストラクタ Modifier Constructor Description protectedTextDetectionModel_DB​(long addr)TextDetectionModel_DB​(java.lang.String model)Create text detection model from network represented in one of the supported formats.TextDetectionModel_DB​(java.lang.String model, java.lang.String config)Create text detection model from network represented in one of the supported formats.TextDetectionModel_DB​(Net network)Create text detection algorithm from deep learning network.
-
メソッドの要約
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド Modifier and Type Method Description static TextDetectionModel_DB__fromPtr__​(long addr)floatgetBinaryThreshold()intgetMaxCandidates()floatgetPolygonThreshold()doublegetUnclipRatio()TextDetectionModel_DBsetBinaryThreshold​(float binaryThreshold)TextDetectionModel_DBsetMaxCandidates​(int maxCandidates)TextDetectionModel_DBsetPolygonThreshold​(float polygonThreshold)TextDetectionModel_DBsetUnclipRatio​(double unclipRatio)-
クラス org.opencv.dnn.TextDetectionModel から継承したメソッド
detect, detect, detectTextRectangles, detectTextRectangles
-
クラス org.opencv.dnn.Model から継承したメソッド
enableWinograd, getNativeObjAddr, predict, setInputCrop, setInputMean, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputScale, setInputSize, setInputSize, setInputSwapRB, setOutputNames, setPreferableBackend, setPreferableTarget
-
-
-
-
コンストラクタの詳細
-
TextDetectionModel_DB
protected TextDetectionModel_DB​(long addr)
-
TextDetectionModel_DB
public TextDetectionModel_DB​(Net network)
Create text detection algorithm from deep learning network.- 引数:
network- Net オブジェクト。
-
TextDetectionModel_DB
public TextDetectionModel_DB​(java.lang.String model, java.lang.String config)Create text detection model from network represented in one of the supported formats. An order ofmodelandconfigarguments does not matter.- 引数:
model- 学習済み重みを含むバイナリファイル。config- ネットワーク構成を含むテキストファイル。
-
TextDetectionModel_DB
public TextDetectionModel_DB​(java.lang.String model)
Create text detection model from network represented in one of the supported formats. An order ofmodelandconfigarguments does not matter.- 引数:
model- 学習済み重みを含むバイナリファイル。
-
-
メソッドの詳細
-
__fromPtr__
public static TextDetectionModel_DB __fromPtr__​(long addr)
-
setBinaryThreshold
public TextDetectionModel_DB setBinaryThreshold​(float binaryThreshold)
-
getBinaryThreshold
public float getBinaryThreshold()
-
setPolygonThreshold
public TextDetectionModel_DB setPolygonThreshold​(float polygonThreshold)
-
getPolygonThreshold
public float getPolygonThreshold()
-
setUnclipRatio
public TextDetectionModel_DB setUnclipRatio​(double unclipRatio)
-
getUnclipRatio
public double getUnclipRatio()
-
setMaxCandidates
public TextDetectionModel_DB setMaxCandidates​(int maxCandidates)
-
getMaxCandidates
public int getMaxCandidates()
-
-