ClassesClasses | | Operators

get_params_ocr_class_knnT_get_params_ocr_class_knnGetParamsOcrClassKnnGetParamsOcrClassKnn (Operator)

Name

get_params_ocr_class_knnT_get_params_ocr_class_knnGetParamsOcrClassKnnGetParamsOcrClassKnn — Return the parameters of an OCR classifier.

Signature

get_params_ocr_class_knn( : : OCRHandle : WidthCharacter, HeightCharacter, Interpolation, Features, Characters, Preprocessing, NumTrees)

Herror T_get_params_ocr_class_knn(const Htuple OCRHandle, Htuple* WidthCharacter, Htuple* HeightCharacter, Htuple* Interpolation, Htuple* Features, Htuple* Characters, Htuple* Preprocessing, Htuple* NumTrees)

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)

Description

get_params_ocr_class_knnget_params_ocr_class_knnGetParamsOcrClassKnnGetParamsOcrClassKnnGetParamsOcrClassKnn returns the parameters of an OCR classifier that were specified when the classifier was created with create_ocr_class_knncreate_ocr_class_knnCreateOcrClassKnnCreateOcrClassKnnCreateOcrClassKnn. This is particularly useful if the classifier was read with read_ocr_class_knnread_ocr_class_knnReadOcrClassKnnReadOcrClassKnnReadOcrClassKnn. The output of get_params_ocr_class_knnget_params_ocr_class_knnGetParamsOcrClassKnnGetParamsOcrClassKnnGetParamsOcrClassKnn 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_knnCreateOcrClassKnnCreateOcrClassKnnCreateOcrClassKnn and trainf_ocr_class_knntrainf_ocr_class_knnTrainfOcrClassKnnTrainfOcrClassKnnTrainfOcrClassKnn.

Execution Information

Parameters

OCRHandleOCRHandleOCRHandleOCRHandleOCRHandle (input_control)  ocr_knn HOCRKnn, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the OCR classifier.

WidthCharacterWidthCharacterWidthCharacterWidthCharacterwidthCharacter (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Width of the rectangle to which the gray values of the segmented character are zoomed.

HeightCharacterHeightCharacterHeightCharacterHeightCharacterheightCharacter (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Height of the rectangle to which the gray values of the segmented character are zoomed.

InterpolationInterpolationInterpolationInterpolationinterpolation (output_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Interpolation mode for the zooming of the characters.

FeaturesFeaturesFeaturesFeaturesfeatures (output_control)  string(-array) HTupleHTupleHtuple (string) (string) (HString) (char*)

Features to be used for classification.

CharactersCharactersCharactersCharacterscharacters (output_control)  string-array HTupleHTupleHtuple (string) (string) (HString) (char*)

Characters of the character set to be read.

PreprocessingPreprocessingPreprocessingPreprocessingpreprocessing (output_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Type of preprocessing used to transform the feature vectors.

NumTreesNumTreesNumTreesNumTreesnumTrees (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Number of different trees used during the classifcation.

Result

If the parameters are valid, the operator get_params_ocr_class_knnget_params_ocr_class_knnGetParamsOcrClassKnnGetParamsOcrClassKnnGetParamsOcrClassKnn returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.

Possible Predecessors

create_ocr_class_mlpcreate_ocr_class_mlpCreateOcrClassMlpCreateOcrClassMlpCreateOcrClassMlp, read_ocr_class_mlpread_ocr_class_mlpReadOcrClassMlpReadOcrClassMlpReadOcrClassMlp

Possible Successors

do_ocr_single_class_mlpdo_ocr_single_class_mlpDoOcrSingleClassMlpDoOcrSingleClassMlpDoOcrSingleClassMlp, do_ocr_multi_class_mlpdo_ocr_multi_class_mlpDoOcrMultiClassMlpDoOcrMultiClassMlpDoOcrMultiClassMlp

See also

trainf_ocr_class_mlptrainf_ocr_class_mlpTrainfOcrClassMlpTrainfOcrClassMlpTrainfOcrClassMlp, get_params_class_mlpget_params_class_mlpGetParamsClassMlpGetParamsClassMlpGetParamsClassMlp

Module

OCR/OCV


ClassesClasses | | Operators