info_ocr_class_boxT_info_ocr_class_boxInfoOcrClassBoxInfoOcrClassBoxinfo_ocr_class_box (Operator)

Name

info_ocr_class_boxT_info_ocr_class_boxInfoOcrClassBoxInfoOcrClassBoxinfo_ocr_class_box — Get information about an OCR classifier.

Warning

info_ocr_class_boxinfo_ocr_class_boxInfoOcrClassBoxInfoOcrClassBoxInfoOcrClassBoxinfo_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

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)

def info_ocr_class_box(ocr_handle: HHandle) -> Tuple[int, int, int, int, int, Sequence[str], Sequence[str]]

Description

The operator info_ocr_class_boxinfo_ocr_class_boxInfoOcrClassBoxInfoOcrClassBoxInfoOcrClassBoxinfo_ocr_class_box returns some information about an OCR classifier. The parameters are equivalent to those of create_ocr_class_boxcreate_ocr_class_boxCreateOcrClassBoxCreateOcrClassBoxCreateOcrClassBoxcreate_ocr_class_box. The parameters WidthMaxCharWidthMaxCharWidthMaxCharWidthMaxCharwidthMaxCharwidth_max_char and HeightMaxCharHeightMaxCharHeightMaxCharHeightMaxCharheightMaxCharheight_max_char indicate the extension of the largest trained character. These values can be used to control the segmentation.

Execution Information

Parameters

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

ID of the OCR classifier.

WidthPatternWidthPatternWidthPatternWidthPatternwidthPatternwidth_pattern (output_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Width of the scaled characters.

HeightPatternHeightPatternHeightPatternHeightPatternheightPatternheight_pattern (output_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Height of the scaled characters.

InterpolationInterpolationInterpolationInterpolationinterpolationinterpolation (output_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Interpolation mode for scaling the characters.

WidthMaxCharWidthMaxCharWidthMaxCharWidthMaxCharwidthMaxCharwidth_max_char (output_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Width of the largest trained character.

HeightMaxCharHeightMaxCharHeightMaxCharHeightMaxCharheightMaxCharheight_max_char (output_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Height of the largest trained character.

FeaturesFeaturesFeaturesFeaturesfeaturesfeatures (output_control)  string-array HTupleSequence[str]HTupleHtuple (string) (string) (HString) (char*)

Used features.

CharactersCharactersCharactersCharacterscharacterscharacters (output_control)  string-array HTupleSequence[str]HTupleHtuple (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_boxInfoOcrClassBoxInfoOcrClassBoxInfoOcrClassBoxinfo_ocr_class_box always returns 2 (H_MSG_TRUE).

Possible Predecessors

read_ocrread_ocrReadOcrReadOcrReadOcrread_ocr, create_ocr_class_boxcreate_ocr_class_boxCreateOcrClassBoxCreateOcrClassBoxCreateOcrClassBoxcreate_ocr_class_box

Possible Successors

write_ocrwrite_ocrWriteOcrWriteOcrWriteOcrwrite_ocr

Module

OCR/OCV