testd_ocr_class_boxT_testd_ocr_class_boxTestdOcrClassBoxTestdOcrClassBoxtestd_ocr_class_box (Operator)

Name

testd_ocr_class_boxT_testd_ocr_class_boxTestdOcrClassBoxTestdOcrClassBoxtestd_ocr_class_box — Test an OCR classifier.

Warning

testd_ocr_class_boxtestd_ocr_class_boxTestdOcrClassBoxTestdOcrClassBoxTestdOcrClassBoxtestd_ocr_class_box 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)

def testd_ocr_class_box(character: HObject, image: HObject, ocr_handle: HHandle, class_val: MaybeSequence[str]) -> Sequence[float]

def testd_ocr_class_box_s(character: HObject, image: HObject, ocr_handle: HHandle, class_val: MaybeSequence[str]) -> float

Description

The operator testd_ocr_class_boxtestd_ocr_class_boxTestdOcrClassBoxTestdOcrClassBoxTestdOcrClassBoxtestd_ocr_class_box 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 CharacterCharacterCharacterCharactercharactercharacter the corresponding name (class) ClassClassClassClassclassValclass must be specified. The gray values are passed in ImageImageImageImageimageimage. When the operator has finished the parameter ConfidenceConfidenceConfidenceConfidenceconfidenceconfidence provides information about how sure a character belongs to the (arbitrary chosen) class.

Execution Information

Parameters

CharacterCharacterCharacterCharactercharactercharacter (input_object)  region(-array) objectHRegionHObjectHRegionHobject

Characters to be tested.

ImageImageImageImageimageimage (input_object)  singlechannelimage objectHImageHObjectHImageHobject (byte / uint2)

Gray values for the characters.

OcrHandleOcrHandleOcrHandleOcrHandleocrHandleocr_handle (input_control)  ocr_box HOCRBox, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

ID of the desired OCR-classifier.

ClassClassClassClassclassValclass (input_control)  string(-array) HTupleMaybeSequence[str]HTupleHtuple (string) (string) (HString) (char*)

Class (name) of the characters.

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

ConfidenceConfidenceConfidenceConfidenceconfidenceconfidence (output_control)  real(-array) HTupleSequence[float]HTupleHtuple (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_boxTestdOcrClassBoxTestdOcrClassBoxTestdOcrClassBoxtestd_ocr_class_box returns the value 2 (H_MSG_TRUE). Otherwise an exception will be raised.

Possible Predecessors

read_ocrread_ocrReadOcrReadOcrReadOcrread_ocr, trainf_ocr_class_boxtrainf_ocr_class_boxTrainfOcrClassBoxTrainfOcrClassBoxTrainfOcrClassBoxtrainf_ocr_class_box, traind_ocr_class_boxtraind_ocr_class_boxTraindOcrClassBoxTraindOcrClassBoxTraindOcrClassBoxtraind_ocr_class_box

Module

OCR/OCV