ClassesClasses | | Operators

info_ocr_class_boxT_info_ocr_class_boxInfoOcrClassBoxInfoOcrClassBox (Operator)

Name

info_ocr_class_boxT_info_ocr_class_boxInfoOcrClassBoxInfoOcrClassBox — Get information about an OCR classifier.

Warning

info_ocr_class_boxinfo_ocr_class_boxInfoOcrClassBoxInfoOcrClassBoxInfoOcrClassBox is obsolete and is only provided for reasons of backward compatibility. New applications should use the MLP, SVM or CNN based operators instead.

Signature

info_ocr_class_box( : : OcrHandle : WidthPattern, HeightPattern, Interpolation, WidthMaxChar, HeightMaxChar, Features, Characters)

Herror T_info_ocr_class_box(const Htuple OcrHandle, Htuple* WidthPattern, Htuple* HeightPattern, Htuple* Interpolation, Htuple* WidthMaxChar, Htuple* HeightMaxChar, Htuple* Features, Htuple* Characters)

void InfoOcrClassBox(const HTuple& OcrHandle, HTuple* WidthPattern, HTuple* HeightPattern, HTuple* Interpolation, HTuple* WidthMaxChar, HTuple* HeightMaxChar, HTuple* Features, HTuple* Characters)

void HOCRBox::InfoOcrClassBox(Hlong* WidthPattern, Hlong* HeightPattern, Hlong* Interpolation, Hlong* WidthMaxChar, Hlong* HeightMaxChar, HTuple* Features, HTuple* Characters) const

static void HOperatorSet.InfoOcrClassBox(HTuple ocrHandle, out HTuple widthPattern, out HTuple heightPattern, out HTuple interpolation, out HTuple widthMaxChar, out HTuple heightMaxChar, out HTuple features, out HTuple characters)

void HOCRBox.InfoOcrClassBox(out int widthPattern, out int heightPattern, out int interpolation, out int widthMaxChar, out int heightMaxChar, out HTuple features, out HTuple characters)

Description

The operator info_ocr_class_boxinfo_ocr_class_boxInfoOcrClassBoxInfoOcrClassBoxInfoOcrClassBox returns some information about an OCR classifier. The parameters are equivalent to those of create_ocr_class_boxcreate_ocr_class_boxCreateOcrClassBoxCreateOcrClassBoxCreateOcrClassBox. The parameters WidthMaxCharWidthMaxCharWidthMaxCharWidthMaxCharwidthMaxChar and HeightMaxCharHeightMaxCharHeightMaxCharHeightMaxCharheightMaxChar indicate the extension of the largest trained character. These values can be used to control the segmentation.

Execution Information

Parameters

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

ID of the OCR classifier.

WidthPatternWidthPatternWidthPatternWidthPatternwidthPattern (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Width of the scaled characters.

HeightPatternHeightPatternHeightPatternHeightPatternheightPattern (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Height of the scaled characters.

InterpolationInterpolationInterpolationInterpolationinterpolation (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Interpolation mode for scaling the characters.

WidthMaxCharWidthMaxCharWidthMaxCharWidthMaxCharwidthMaxChar (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Width of the largest trained character.

HeightMaxCharHeightMaxCharHeightMaxCharHeightMaxCharheightMaxChar (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Height of the largest trained character.

FeaturesFeaturesFeaturesFeaturesfeatures (output_control)  string-array HTupleHTupleHtuple (string) (string) (HString) (char*)

Used features.

CharactersCharactersCharactersCharacterscharacters (output_control)  string-array HTupleHTupleHtuple (string) (string) (HString) (char*)

All characters of the set.

Example (C)

HTuple    OcrHandle,WidthPattern,HeightPattern,Interpolation,
          WidthMaxChar,HeightMaxChar,Features,Characters;

T_info_ocr_class_box(OcrHandle,&WidthPattern,&HeightPattern,&Interpolation,
                     &WidthMaxChar,&HeightMaxChar,&Features,&Characters);
printf("NetSize:       %d x %d\n",get_i(WidthPattern,0),get_i(HeightPattern,0));
printf("MaxChar:       %d x %d\n",get_i(WidthMaxChar,0),get_i(HeightMaxChar,0));
printf("Interpolation: %d\n",get_i(Interpolation,0));
printf("Features:      ");
for (i=0; i<length_tuple(Features); i++)
printf("%s ",get_s(Features,i));
printf("\n");
printf("Characters:    ");
for (i=0; i<length_tuple(Characters); i++)
printf("     %d %s\n",i,get_s(Characters,i));

Result

The operator info_ocr_class_boxinfo_ocr_class_boxInfoOcrClassBoxInfoOcrClassBoxInfoOcrClassBox always returns 2 (H_MSG_TRUE).

Possible Predecessors

read_ocrread_ocrReadOcrReadOcrReadOcr, create_ocr_class_boxcreate_ocr_class_boxCreateOcrClassBoxCreateOcrClassBoxCreateOcrClassBox

Possible Successors

write_ocrwrite_ocrWriteOcrWriteOcrWriteOcr

Module

OCR/OCV


ClassesClasses | | Operators