🤖 AIによる機械翻訳(非公式) — これは OpenCV 4.13.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
Package org.opencv.text
Class OCRHMMDecoder
- java.lang.Object
-
- org.opencv.text.BaseOCR
-
- org.opencv.text.OCRHMMDecoder
-
public class OCRHMMDecoder extends BaseOCR
OCRHMMDecoder class provides an interface for OCR using Hidden Markov Models. 覚え書き:- (C++) シーンテキスト検出と組み合わせたOCRHMMDecoderによる認識の例は、webcam_demoサンプルにある: <https://github.com/opencv/opencv_contrib/blob/master/modules/text/samples/webcam_demo.cpp>
-
-
コンストラクタの要約
コンストラクタ Modifier Constructor Description protectedOCRHMMDecoder​(long addr)
-
メソッドの要約
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド Modifier and Type Method Description static OCRHMMDecoder__fromPtr__​(long addr)static OCRHMMDecodercreate​(java.lang.String filename, java.lang.String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table)Creates an instance of the OCRHMMDecoder class.static OCRHMMDecodercreate​(java.lang.String filename, java.lang.String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode)Creates an instance of the OCRHMMDecoder class.static OCRHMMDecodercreate​(java.lang.String filename, java.lang.String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode, int classifier)Creates an instance of the OCRHMMDecoder class.static OCRHMMDecodercreate​(OCRHMMDecoder_ClassifierCallback classifier, java.lang.String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table)Creates an instance of the OCRHMMDecoder class.static OCRHMMDecodercreate​(OCRHMMDecoder_ClassifierCallback classifier, java.lang.String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode)Creates an instance of the OCRHMMDecoder class.java.lang.Stringrun​(Mat image, int min_confidence)Recognize text using HMM.java.lang.Stringrun​(Mat image, int min_confidence, int component_level)Recognize text using HMM.java.lang.Stringrun​(Mat image, Mat mask, int min_confidence)java.lang.Stringrun​(Mat image, Mat mask, int min_confidence, int component_level)-
クラス org.opencv.text.BaseOCR から継承したメソッド
getNativeObjAddr
-
-
-
-
メソッドの詳細
-
__fromPtr__
public static OCRHMMDecoder __fromPtr__​(long addr)
-
run
public java.lang.String run​(Mat image, int min_confidence, int component_level)
Recognize text using HMM. Takes an image and a mask (where each connected component corresponds to a segmented character) 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 または CV_8UC3。見つかったテキスト要素(例: 単語)。見つかった個々のテキスト要素(例: 単語)の認識。見つかった個々のテキスト要素(例: 単語)の認識のための。component_level- OCR_LEVEL_WORD のみがサポートされている。min_confidence- 自動生成- 戻り値:
- 自動生成
-
run
public java.lang.String run​(Mat image, int min_confidence)
Recognize text using HMM. Takes an image and a mask (where each connected component corresponds to a segmented character) 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 または CV_8UC3。見つかったテキスト要素(例: 単語)。見つかった個々のテキスト要素(例: 単語)の認識。見つかった個々のテキスト要素(例: 単語)の認識のための。min_confidence- 自動生成- 戻り値:
- 自動生成
-
run
public java.lang.String run​(Mat image, Mat mask, int min_confidence, int component_level)
-
create
public static OCRHMMDecoder create​(OCRHMMDecoder_ClassifierCallback classifier, java.lang.String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode)
Creates an instance of the OCRHMMDecoder 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 OCRHMMDecoder create​(OCRHMMDecoder_ClassifierCallback classifier, java.lang.String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table)
Creates an instance of the OCRHMMDecoder 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>)。- 戻り値:
- 自動生成
-
create
public static OCRHMMDecoder create​(java.lang.String filename, java.lang.String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode, int classifier)
Creates an instance of the OCRHMMDecoder class. Loads and initializes HMMDecoder from the specified path- 引数:
filename- 自動生成vocabulary- 自動生成transition_probabilities_table- 自動生成emission_probabilities_table- 自動生成mode- 自動生成classifier- 自動生成- 戻り値:
- 自動生成
-
create
public static OCRHMMDecoder create​(java.lang.String filename, java.lang.String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode)
Creates an instance of the OCRHMMDecoder class. Loads and initializes HMMDecoder from the specified path- 引数:
filename- 自動生成vocabulary- 自動生成transition_probabilities_table- 自動生成emission_probabilities_table- 自動生成mode- 自動生成- 戻り値:
- 自動生成
-
create
public static OCRHMMDecoder create​(java.lang.String filename, java.lang.String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table)
Creates an instance of the OCRHMMDecoder class. Loads and initializes HMMDecoder from the specified path- 引数:
filename- 自動生成vocabulary- 自動生成transition_probabilities_table- 自動生成emission_probabilities_table- 自動生成- 戻り値:
- 自動生成
-
-