get_params_ocr_class_knnT_get_params_ocr_class_knnGetParamsOcrClassKnnGetParamsOcrClassKnnget_params_ocr_class_knn (Operator)
Name
get_params_ocr_class_knnT_get_params_ocr_class_knnGetParamsOcrClassKnnGetParamsOcrClassKnnget_params_ocr_class_knn
— Return the parameters of an OCR classifier.
Signature
void GetParamsOcrClassKnn(const HTuple& OCRHandle, HTuple* WidthCharacter, HTuple* HeightCharacter, HTuple* Interpolation, HTuple* Features, HTuple* Characters, HTuple* Preprocessing, HTuple* NumTrees)
void HOCRKnn::GetParamsOcrClassKnn(Hlong* WidthCharacter, Hlong* HeightCharacter, HString* Interpolation, HTuple* Features, HTuple* Characters, HString* Preprocessing, Hlong* NumTrees) const
void HOCRKnn::GetParamsOcrClassKnn(Hlong* WidthCharacter, Hlong* HeightCharacter, HString* Interpolation, HString* Features, HTuple* Characters, HString* Preprocessing, Hlong* NumTrees) const
static void HOperatorSet.GetParamsOcrClassKnn(HTuple OCRHandle, out HTuple widthCharacter, out HTuple heightCharacter, out HTuple interpolation, out HTuple features, out HTuple characters, out HTuple preprocessing, out HTuple numTrees)
void HOCRKnn.GetParamsOcrClassKnn(out int widthCharacter, out int heightCharacter, out string interpolation, out HTuple features, out HTuple characters, out string preprocessing, out int numTrees)
void HOCRKnn.GetParamsOcrClassKnn(out int widthCharacter, out int heightCharacter, out string interpolation, out string features, out HTuple characters, out string preprocessing, out int numTrees)
def get_params_ocr_class_knn(ocrhandle: HHandle) -> Tuple[int, int, str, Sequence[str], Sequence[str], str, int]
def get_params_ocr_class_knn_s(ocrhandle: HHandle) -> Tuple[int, int, str, str, Sequence[str], str, int]
Description
get_params_ocr_class_knnget_params_ocr_class_knnGetParamsOcrClassKnnGetParamsOcrClassKnnGetParamsOcrClassKnnget_params_ocr_class_knn
returns the parameters of an OCR
classifier that were specified when the classifier was created with
create_ocr_class_knncreate_ocr_class_knnCreateOcrClassKnnCreateOcrClassKnnCreateOcrClassKnncreate_ocr_class_knn
. This is particularly useful if the
classifier was read with read_ocr_class_knnread_ocr_class_knnReadOcrClassKnnReadOcrClassKnnReadOcrClassKnnread_ocr_class_knn
. The output of
get_params_ocr_class_knnget_params_ocr_class_knnGetParamsOcrClassKnnGetParamsOcrClassKnnGetParamsOcrClassKnnget_params_ocr_class_knn
can, for example, be used to check
whether a character to be read is contained in the classifier. For
a description of the parameters, see create_ocr_class_knncreate_ocr_class_knnCreateOcrClassKnnCreateOcrClassKnnCreateOcrClassKnncreate_ocr_class_knn
and
trainf_ocr_class_knntrainf_ocr_class_knnTrainfOcrClassKnnTrainfOcrClassKnnTrainfOcrClassKnntrainf_ocr_class_knn
.
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
OCRHandleOCRHandleOCRHandleOCRHandleOCRHandleocrhandle
(input_control) ocr_knn →
HOCRKnn, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the OCR classifier.
WidthCharacterWidthCharacterWidthCharacterWidthCharacterwidthCharacterwidth_character
(output_control) integer →
HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Width of the rectangle to which the gray values
of the segmented character are zoomed.
HeightCharacterHeightCharacterHeightCharacterHeightCharacterheightCharacterheight_character
(output_control) integer →
HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Height of the rectangle to which the gray values
of the segmented character are zoomed.
InterpolationInterpolationInterpolationInterpolationinterpolationinterpolation
(output_control) string →
HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Interpolation mode for the zooming of the characters.
FeaturesFeaturesFeaturesFeaturesfeaturesfeatures
(output_control) string(-array) →
HTupleSequence[str]HTupleHtuple (string) (string) (HString) (char*)
Features to be used for classification.
CharactersCharactersCharactersCharacterscharacterscharacters
(output_control) string-array →
HTupleSequence[str]HTupleHtuple (string) (string) (HString) (char*)
Characters of the character set to be read.
PreprocessingPreprocessingPreprocessingPreprocessingpreprocessingpreprocessing
(output_control) string →
HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Type of preprocessing used to transform the
feature vectors.
NumTreesNumTreesNumTreesNumTreesnumTreesnum_trees
(output_control) integer →
HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Number of different trees used during the classification.
Result
If the parameters are valid, the operator
get_params_ocr_class_knnget_params_ocr_class_knnGetParamsOcrClassKnnGetParamsOcrClassKnnGetParamsOcrClassKnnget_params_ocr_class_knn
returns the value TRUE. If
necessary, an exception is raised.
Possible Predecessors
create_ocr_class_mlpcreate_ocr_class_mlpCreateOcrClassMlpCreateOcrClassMlpCreateOcrClassMlpcreate_ocr_class_mlp
,
read_ocr_class_mlpread_ocr_class_mlpReadOcrClassMlpReadOcrClassMlpReadOcrClassMlpread_ocr_class_mlp
Possible Successors
do_ocr_single_class_mlpdo_ocr_single_class_mlpDoOcrSingleClassMlpDoOcrSingleClassMlpDoOcrSingleClassMlpdo_ocr_single_class_mlp
,
do_ocr_multi_class_mlpdo_ocr_multi_class_mlpDoOcrMultiClassMlpDoOcrMultiClassMlpDoOcrMultiClassMlpdo_ocr_multi_class_mlp
See also
trainf_ocr_class_mlptrainf_ocr_class_mlpTrainfOcrClassMlpTrainfOcrClassMlpTrainfOcrClassMlptrainf_ocr_class_mlp
,
get_params_class_mlpget_params_class_mlpGetParamsClassMlpGetParamsClassMlpGetParamsClassMlpget_params_class_mlp
Module
OCR/OCV