Skip to content

info_ocr_class_boxInfoOcrClassBoxInfoOcrClassBoxinfo_ocr_class_boxT_info_ocr_class_box🔗

Short description🔗

info_ocr_class_boxInfoOcrClassBoxInfoOcrClassBoxinfo_ocr_class_boxT_info_ocr_class_box — Get information about an OCR classifier.

Warning🔗

info_ocr_class_boxInfoOcrClassBox 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( ocr_box OcrHandle, out integer WidthPattern, out integer HeightPattern, out integer Interpolation, out integer WidthMaxChar, out integer HeightMaxChar, out string Features, out string Characters )void InfoOcrClassBox( const HTuple& OcrHandle, HTuple* WidthPattern, HTuple* HeightPattern, HTuple* Interpolation, HTuple* WidthMaxChar, HTuple* HeightMaxChar, HTuple* Features, HTuple* Characters )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 )def info_ocr_class_box( ocr_handle: HHandle ) -> Tuple[int, int, int, int, int, Sequence[str], Sequence[str]]

Herror T_info_ocr_class_box( 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

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_boxInfoOcrClassBox returns some information about an OCR classifier. The parameters are equivalent to those of create_ocr_class_boxCreateOcrClassBox. The parameters WidthMaxCharwidthMaxCharwidth_max_char and HeightMaxCharheightMaxCharheight_max_char indicate the extension of the largest trained character. These values can be used to control the segmentation.

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

Parameters🔗

OcrHandleocrHandleocr_handle (input_control) ocr_box → (handle)HTuple (HHandle)HOCRBox, HTuple (IntPtr)HHandleHtuple (handle)

ID of the OCR classifier.

WidthPatternwidthPatternwidth_pattern (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

Width of the scaled characters.

HeightPatternheightPatternheight_pattern (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

Height of the scaled characters.

Interpolationinterpolationinterpolation (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

Interpolation mode for scaling the characters.

WidthMaxCharwidthMaxCharwidth_max_char (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

Width of the largest trained character.

HeightMaxCharheightMaxCharheight_max_char (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

Height of the largest trained character.

Featuresfeaturesfeatures (output_control) string-array → (string)HTuple (HString)HTuple (string)Sequence[str]Htuple (char*)

Used features.

Characterscharacterscharacters (output_control) string-array → (string)HTuple (HString)HTuple (string)Sequence[str]Htuple (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_boxInfoOcrClassBox always returns 2 (H_MSG_TRUE).

Combinations with other operators🔗

Combinations

Possible predecessors

read_ocrReadOcr, create_ocr_class_boxCreateOcrClassBox

Possible successors

write_ocrWriteOcr

Module🔗

OCR/OCV