testd_ocr_class_boxT_testd_ocr_class_boxTestdOcrClassBoxTestdOcrClassBox (Operator)

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.

Signature

testd_ocr_class_box(Character, Image : : OcrHandle, Class : Confidence)

Herror T_testd_ocr_class_box(const Hobject Character, const Hobject Image, const Htuple OcrHandle, const Htuple Class, Htuple* Confidence)

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

double HRegion::TestdOcrClassBox(const HImage& Image, const HOCRBox& OcrHandle, const wchar_t* Class) const   (Windows only)

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

double HOCRBox::TestdOcrClassBox(const HRegion& Character, const HImage& Image, const wchar_t* Class) const   (Windows only)

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)

Description

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.

Execution Information

Parameters

CharacterCharacterCharacterCharactercharacter (input_object)  region(-array) objectHRegionHRegionHobject

Characters to be tested.

ImageImageImageImageimage (input_object)  singlechannelimage objectHImageHImageHobject (byte / uint2)

Gray values for the characters.

OcrHandleOcrHandleOcrHandleOcrHandleocrHandle (input_control)  ocr_box HOCRBox, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

ID of the desired OCR-classifier.

ClassClassClassClassclassVal (input_control)  string(-array) HTupleHTupleHtuple (string) (string) (HString) (char*)

Class (name) of the characters.

Default value: 'a' "a" "a" "a" "a"

ConfidenceConfidenceConfidenceConfidenceconfidence (output_control)  real(-array) HTupleHTupleHtuple (real) (double) (double) (double)

Confidence for the character to belong to the class.

Result

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.

Possible Predecessors

read_ocrread_ocrReadOcrReadOcrReadOcr, trainf_ocr_class_boxtrainf_ocr_class_boxTrainfOcrClassBoxTrainfOcrClassBoxTrainfOcrClassBox, traind_ocr_class_boxtraind_ocr_class_boxTraindOcrClassBoxTraindOcrClassBoxTraindOcrClassBox

Module

OCR/OCV