Herror ::info_ocr_class_box (
    const HTuple &OcrHandle,
    HTuple *WidthPattern,
    HTuple *HeightPattern,
    HTuple *Interpolation,
    HTuple *WidthMaxChar,
    HTuple *HeightMaxChar,
    HTuple *Features,
    HTuple *Characters
)

Information about an OCR classifier.

The operator ::info_ocr_class_box returns some information about an OCR classifier. The parameters are equivalent to those of ::create_ocr_class_box. The parameters WidthMaxChar and HeightMaxChar indicate the extension of the largest trained character. These values can be used to control the segmentation.


Parameters

OcrHandle (input_control)
ocr -> HTuple.long
ID of the OCR classifier.

WidthPattern (output_control)
integer -> HTuple.long *
Width of the scaled characters.

HeightPattern (output_control)
integer -> HTuple.long *
Height of the scaled characters.

Interpolation (output_control)
integer -> HTuple.long *
Interpolation mode for scaling the characters.

WidthMaxChar (output_control)
integer -> HTuple.long *
Width of the largest trained character.

HeightMaxChar (output_control)
integer -> HTuple.long *
Height of the largest trained character.

Features (output_control)
string-array -> HTuple.char *
Used features.

Characters (output_control)
string-array -> HTuple.char *
All characters of the set.


Example
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_box always returns H_MSG_TRUE.


Possible Predecessors

::read_ocr, ::create_ocr_class_box


Possible Successors

::write_ocr


Module

Optical character recognition



Copyright © 1996-2002 MVTec Software GmbH