Name
testd_ocr_class_boxT_testd_ocr_class_boxTestdOcrClassBoxTestdOcrClassBox — Test an OCR classifier.
Warning
testd_ocr_class_boxtestd_ocr_class_boxTestdOcrClassBoxTestdOcrClassBoxTestdOcrClassBox is obsolete and is only provided for
reasons of backward compatibility. New applications should use the
MLP, SVM or CNN based operators instead.
void TestdOcrClassBox(const HObject& Character, const HObject& Image, const HTuple& OcrHandle, const HTuple& Class, HTuple* Confidence)
HTuple HRegion::TestdOcrClassBox(const HImage& Image, const HOCRBox& OcrHandle, const HTuple& Class) const
double HRegion::TestdOcrClassBox(const HImage& Image, const HOCRBox& OcrHandle, const HString& Class) const
double HRegion::TestdOcrClassBox(const HImage& Image, const HOCRBox& OcrHandle, const char* Class) const
HTuple HOCRBox::TestdOcrClassBox(const HRegion& Character, const HImage& Image, const HTuple& Class) const
double HOCRBox::TestdOcrClassBox(const HRegion& Character, const HImage& Image, const HString& Class) const
double HOCRBox::TestdOcrClassBox(const HRegion& Character, const HImage& Image, const char* Class) const
static void HOperatorSet.TestdOcrClassBox(HObject character, HObject image, HTuple ocrHandle, HTuple classVal, out HTuple confidence)
HTuple HRegion.TestdOcrClassBox(HImage image, HOCRBox ocrHandle, HTuple classVal)
double HRegion.TestdOcrClassBox(HImage image, HOCRBox ocrHandle, string classVal)
HTuple HOCRBox.TestdOcrClassBox(HRegion character, HImage image, HTuple classVal)
double HOCRBox.TestdOcrClassBox(HRegion character, HImage image, string classVal)
The operator testd_ocr_class_boxtestd_ocr_class_boxTestdOcrClassBoxTestdOcrClassBoxTestdOcrClassBox tests the confidence with
which a character belongs to a given class. Any number of regions
of an image can be passed. For each character (region) in
CharacterCharacterCharacterCharactercharacter the corresponding name (class) ClassClassClassClassclassVal
must be specified. The gray values are passed in ImageImageImageImageimage.
When the operator has finished the parameter ConfidenceConfidenceConfidenceConfidenceconfidence
provides information about how sure a character belongs to the
(arbitrary chosen) class.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Gray values for the characters.
ID of the desired OCR-classifier.
Class (name) of the characters.
Default value:
'a'
"a"
"a"
"a"
"a"
Confidence for the character to belong to the class.
If the parameters are correct, the operator
testd_ocr_class_boxtestd_ocr_class_boxTestdOcrClassBoxTestdOcrClassBoxTestdOcrClassBox returns the value 2 (H_MSG_TRUE).
Otherwise an exception will be raised.
read_ocrread_ocrReadOcrReadOcrReadOcr,
trainf_ocr_class_boxtrainf_ocr_class_boxTrainfOcrClassBoxTrainfOcrClassBoxTrainfOcrClassBox,
traind_ocr_class_boxtraind_ocr_class_boxTraindOcrClassBoxTraindOcrClassBoxTraindOcrClassBox
OCR/OCV