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

クラス TextDetectorCNN


  • public class TextDetectorCNN extends TextDetector
    TextDetectorCNN クラスはテキストのバウンディングボックス検出機能を提供する。このクラスは入力画像が与えられたときにテキストの単語のバウンディングボックスを見つけることを表す。このクラスは CITE: LiaoSBWL17 で説明されている事前学習済みモデルを読み込むために OpenCV の dnn モジュールを使用する。改変版 SSD Caffe バージョンの元のリポジトリ: https://github.com/MhLiao/TextBoxes 。モデルは [DropBox](https://www.dropbox.com/s/g8pjzv2de9gty8g/TextBoxes_icdar13.caffemodel?dl=0) からダウンロードできる。モデル記述を含む改変版 .prototxt ファイルは opencv_contrib/modules/text/samples/textbox.prototxt にある。
    • コンストラクタの詳細

      • TextDetectorCNN

        protected TextDetectorCNN​(long addr)
    • メソッドの詳細

      • detect

        public void detect​(Mat inputImage,
                           MatOfRect Bbox,
                           MatOfFloat confidence)
        Description copied from class: TextDetector
        Method that provides a quick and simple interface to detect text inside an image
        オーバーライド:
        クラス TextDetector 内の detect
        引数:
        inputImage - 任意サイズの CV_U8C3 であることが期待される画像
        Bbox - 検出された単語のバウンディングボックスを格納する Rect のベクトル
        confidence - 選択されたバウンディングボックスに対して分類器が持つ信頼度で更新される float のベクトル
      • create

        public static TextDetectorCNN create​(java.lang.String modelArchFilename,
                                             java.lang.String modelWeightsFilename)