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.
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)
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.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
ID of the OCR classifier.
Width of the scaled characters.
Height of the scaled characters.
Interpolation mode for scaling the characters.
Width of the largest trained character.
Height of the largest trained character.
All characters of the set.
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));
The operator info_ocr_class_boxinfo_ocr_class_boxInfoOcrClassBoxInfoOcrClassBoxInfoOcrClassBox always returns 2 (H_MSG_TRUE).
read_ocrread_ocrReadOcrReadOcrReadOcr,
create_ocr_class_boxcreate_ocr_class_boxCreateOcrClassBoxCreateOcrClassBoxCreateOcrClassBox
write_ocrwrite_ocrWriteOcrWriteOcrWriteOcr
OCR/OCV