public class OCRHMMDecoder extends BaseOCR
Modifier | Constructor and Description |
---|---|
protected |
OCRHMMDecoder(long addr) |
Modifier and Type | Method and Description |
---|---|
static OCRHMMDecoder |
__fromPtr__(long addr) |
static OCRHMMDecoder |
create(String filename,
String vocabulary,
Mat transition_probabilities_table,
Mat emission_probabilities_table)
Creates an instance of the OCRHMMDecoder class.
|
static OCRHMMDecoder |
create(String filename,
String vocabulary,
Mat transition_probabilities_table,
Mat emission_probabilities_table,
int mode)
Creates an instance of the OCRHMMDecoder class.
|
static OCRHMMDecoder |
create(String filename,
String vocabulary,
Mat transition_probabilities_table,
Mat emission_probabilities_table,
int mode,
int classifier)
Creates an instance of the OCRHMMDecoder class.
|
protected void |
finalize() |
String |
run(Mat image,
int min_confidence)
Recognize text using HMM.
|
String |
run(Mat image,
int min_confidence,
int component_level)
Recognize text using HMM.
|
String |
run(Mat image,
Mat mask,
int min_confidence) |
String |
run(Mat image,
Mat mask,
int min_confidence,
int component_level) |
getNativeObjAddr
public static OCRHMMDecoder __fromPtr__(long addr)
public static OCRHMMDecoder create(String filename, String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode, int classifier)
filename
- automatically generatedvocabulary
- automatically generatedtransition_probabilities_table
- automatically generatedemission_probabilities_table
- automatically generatedmode
- automatically generatedclassifier
- automatically generatedpublic static OCRHMMDecoder create(String filename, String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode)
filename
- automatically generatedvocabulary
- automatically generatedtransition_probabilities_table
- automatically generatedemission_probabilities_table
- automatically generatedmode
- automatically generatedpublic static OCRHMMDecoder create(String filename, String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table)
filename
- automatically generatedvocabulary
- automatically generatedtransition_probabilities_table
- automatically generatedemission_probabilities_table
- automatically generatedpublic String run(Mat image, int min_confidence, int component_level)
image
- Input image CV_8UC1 or CV_8UC3 with a single text line (or word).
text elements found (e.g. words).
recognition of individual text elements found (e.g. words).
for the recognition of individual text elements found (e.g. words).component_level
- Only OCR_LEVEL_WORD is supported.min_confidence
- automatically generatedpublic String run(Mat image, int min_confidence)
image
- Input image CV_8UC1 or CV_8UC3 with a single text line (or word).
text elements found (e.g. words).
recognition of individual text elements found (e.g. words).
for the recognition of individual text elements found (e.g. words).min_confidence
- automatically generatedGenerated on Wed Oct 9 2019 23:24:43 UTC / OpenCV 4.1.2