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

Class OCRBeamSearchDecoder


  • public class OCRBeamSearchDecoder
    extends BaseOCR
    OCRBeamSearchDecoder class provides an interface for OCR using Beam Search algorithm. 覚え書き:
    • (C++) シーンテキスト検出と組み合わせたOCRBeamSearchDecoderによる認識の例は、デモサンプルにある: <https://github.com/opencv/opencv_contrib/blob/master/modules/text/samples/word_recognition.cpp>
    • コンストラクタの詳細

      • OCRBeamSearchDecoder

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

      • run

        public java.lang.String run​(Mat image,
                                    int min_confidence,
                                    int component_level)
        Recognize text using Beam Search. Takes image on input and returns recognized text in the output_text parameter. Optionally provides also the Rects for individual text elements found (e.g. words), and the list of those text elements with their confidence values.
        引数:
        image - 1行(または1単語)のテキストを含む入力バイナリ画像 CV_8UC1。見つかったテキスト要素(例: 単語)。見つかった個々のテキスト要素(例: 単語)の認識。見つかった個々のテキスト要素(例: 単語)の認識のための。
        component_level - OCR_LEVEL_WORD のみがサポートされている。
        min_confidence - 自動生成
        戻り値:
        自動生成
      • run

        public java.lang.String run​(Mat image,
                                    int min_confidence)
        Recognize text using Beam Search. Takes image on input and returns recognized text in the output_text parameter. Optionally provides also the Rects for individual text elements found (e.g. words), and the list of those text elements with their confidence values.
        引数:
        image - 1行(または1単語)のテキストを含む入力バイナリ画像 CV_8UC1。見つかったテキスト要素(例: 単語)。見つかった個々のテキスト要素(例: 単語)の認識。見つかった個々のテキスト要素(例: 単語)の認識のための。
        min_confidence - 自動生成
        戻り値:
        自動生成
      • run

        public java.lang.String run​(Mat image,
                                    Mat mask,
                                    int min_confidence,
                                    int component_level)
      • run

        public java.lang.String run​(Mat image,
                                    Mat mask,
                                    int min_confidence)
      • create

        public static OCRBeamSearchDecoder create​(OCRBeamSearchDecoder_ClassifierCallback classifier,
                                                  java.lang.String vocabulary,
                                                  Mat transition_probabilities_table,
                                                  Mat emission_probabilities_table,
                                                  int mode,
                                                  int beam_size)
        Creates an instance of the OCRBeamSearchDecoder class. Initializes HMMDecoder.
        引数:
        classifier - 特徴抽出器を内蔵した文字分類器。
        vocabulary - 言語の語彙(ASCII英語テキストの場合は文字)。vocabulary.size() は分類器のクラス数と等しくなければならない。
        transition_probabilities_table - 文字ペア間の遷移確率のテーブル。cols == rows == vocabulary.size()。
        emission_probabilities_table - 観測の出力(emission)確率のテーブル。cols == rows == vocabulary.size()。
        mode - HMMデコーディングアルゴリズム。現時点では OCR_DECODER_VITERBI のみ利用可能(<http://en.wikipedia.org/wiki/Viterbi_algorithm>)。
        beam_size - ビームサーチアルゴリズムにおけるビームのサイズ。
        戻り値:
        自動生成
      • create

        public static OCRBeamSearchDecoder create​(OCRBeamSearchDecoder_ClassifierCallback classifier,
                                                  java.lang.String vocabulary,
                                                  Mat transition_probabilities_table,
                                                  Mat emission_probabilities_table,
                                                  int mode)
        Creates an instance of the OCRBeamSearchDecoder class. Initializes HMMDecoder.
        引数:
        classifier - 特徴抽出器を内蔵した文字分類器。
        vocabulary - 言語の語彙(ASCII英語テキストの場合は文字)。vocabulary.size() は分類器のクラス数と等しくなければならない。
        transition_probabilities_table - 文字ペア間の遷移確率のテーブル。cols == rows == vocabulary.size()。
        emission_probabilities_table - 観測の出力(emission)確率のテーブル。cols == rows == vocabulary.size()。
        mode - HMMデコーディングアルゴリズム。現時点では OCR_DECODER_VITERBI のみ利用可能(<http://en.wikipedia.org/wiki/Viterbi_algorithm>)。
        戻り値:
        自動生成
      • create

        public static OCRBeamSearchDecoder create​(OCRBeamSearchDecoder_ClassifierCallback classifier,
                                                  java.lang.String vocabulary,
                                                  Mat transition_probabilities_table,
                                                  Mat emission_probabilities_table)
        Creates an instance of the OCRBeamSearchDecoder class. Initializes HMMDecoder.
        引数:
        classifier - 特徴抽出器を内蔵した文字分類器。
        vocabulary - 言語の語彙(ASCII英語テキストの場合は文字)。vocabulary.size() は分類器のクラス数と等しくなければならない。
        transition_probabilities_table - 文字ペア間の遷移確率のテーブル。cols == rows == vocabulary.size()。
        emission_probabilities_table - 観測の出力(emission)確率のテーブル。cols == rows == vocabulary.size()。(<http://en.wikipedia.org/wiki/Viterbi_algorithm>)。
        戻り値:
        自動生成