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_boxInfoOcrClassBoxInfoOcrClassBoxinfo_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
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_boxInfoOcrClassBoxInfoOcrClassBoxinfo_ocr_class_box
returns some information
about an OCR classifier.
The parameters are equivalent to those of create_ocr_class_boxcreate_ocr_class_boxCreateOcrClassBoxCreateOcrClassBoxcreate_ocr_class_box
.
The parameters WidthMaxCharWidthMaxCharWidthMaxCharwidthMaxCharwidth_max_char
and HeightMaxCharHeightMaxCharHeightMaxCharheightMaxCharheight_max_char
indicate the extension of the largest trained character.
These values can be used to control the segmentation.
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
OcrHandleOcrHandleOcrHandleocrHandleocr_handle
(input_control) ocr_box →
HOCRBox, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
ID of the OCR classifier.
WidthPatternWidthPatternWidthPatternwidthPatternwidth_pattern
(output_control) integer →
HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Width of the scaled characters.
HeightPatternHeightPatternHeightPatternheightPatternheight_pattern
(output_control) integer →
HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Height of the scaled characters.
InterpolationInterpolationInterpolationinterpolationinterpolation
(output_control) integer →
HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Interpolation mode for scaling the characters.
WidthMaxCharWidthMaxCharWidthMaxCharwidthMaxCharwidth_max_char
(output_control) integer →
HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Width of the largest trained character.
HeightMaxCharHeightMaxCharHeightMaxCharheightMaxCharheight_max_char
(output_control) integer →
HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Height of the largest trained character.
FeaturesFeaturesFeaturesfeaturesfeatures
(output_control) string-array →
HTupleSequence[str]HTupleHtuple (string) (string) (HString) (char*)
Used features.
CharactersCharactersCharacterscharacterscharacters
(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_boxInfoOcrClassBoxInfoOcrClassBoxinfo_ocr_class_box
always returns 2 (
H_MSG_TRUE)
.
Possible Predecessors
read_ocrread_ocrReadOcrReadOcrread_ocr
,
create_ocr_class_boxcreate_ocr_class_boxCreateOcrClassBoxCreateOcrClassBoxcreate_ocr_class_box
Possible Successors
write_ocrwrite_ocrWriteOcrWriteOcrwrite_ocr
Module
OCR/OCV