info_ocr_class_box🔗
Short description🔗
info_ocr_class_box — Get information about an OCR classifier.
Warning🔗
info_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( ocr_box OcrHandle, out integer WidthPattern, out integer HeightPattern, out integer Interpolation, out integer WidthMaxChar, out integer HeightMaxChar, out string Features, out string Characters )
Description🔗
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.
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🔗
OcrHandle (input_control) ocr_box → (handle)
ID of the OCR classifier.
WidthPattern (output_control) integer → (integer)
Width of the scaled characters.
HeightPattern (output_control) integer → (integer)
Height of the scaled characters.
Interpolation (output_control) integer → (integer)
Interpolation mode for scaling the characters.
WidthMaxChar (output_control) integer → (integer)
Width of the largest trained character.
HeightMaxChar (output_control) integer → (integer)
Height of the largest trained character.
Features (output_control) string-array → (string)
Used features.
Characters (output_control) string-array → (string)
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_box always returns 2 (H_MSG_TRUE).
Combinations with other operators🔗
Module🔗
OCR/OCV