🤖 AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。

クラス 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 - 出力結果の最大数。
    • コンストラクタの詳細

      • 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 of model and config arguments 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 of model and config arguments does not matter.
        引数:
        model - 学習済み重みを含むバイナリファイル。
    • メソッドの詳細

      • getBinaryThreshold

        public float getBinaryThreshold()
      • getPolygonThreshold

        public float getPolygonThreshold()
      • getUnclipRatio

        public double getUnclipRatio()
      • getMaxCandidates

        public int getMaxCandidates()