get_params_ocr_class_knnGetParamsOcrClassKnnGetParamsOcrClassKnnget_params_ocr_class_knnT_get_params_ocr_class_knn
Short description
get_params_ocr_class_knnGetParamsOcrClassKnnGetParamsOcrClassKnnget_params_ocr_class_knnT_get_params_ocr_class_knn — Return the parameters of an OCR classifier.
Signature
get_params_ocr_class_knn( ocr_knn OCRHandle, out integer WidthCharacter, out integer HeightCharacter, out string Interpolation, out string Features, out string Characters, out string Preprocessing, out integer NumTrees )void GetParamsOcrClassKnn( const HTuple& OCRHandle, HTuple* WidthCharacter, HTuple* HeightCharacter, HTuple* Interpolation, HTuple* Features, HTuple* Characters, HTuple* Preprocessing, HTuple* NumTrees )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 )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]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 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
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_knnGetParamsOcrClassKnn returns the parameters of an OCR
classifier that were specified when the classifier was created with
create_ocr_class_knnCreateOcrClassKnn. This is particularly useful if the
classifier was read with read_ocr_class_knnReadOcrClassKnn. The output of
get_params_ocr_class_knnGetParamsOcrClassKnn 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_knnCreateOcrClassKnn and
trainf_ocr_class_knnTrainfOcrClassKnn.
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
OCRHandleOCRHandleocrhandle (input_control) ocr_knn → (handle)HTuple (HHandle)HOCRKnn, HTuple (IntPtr)HHandleHtuple (handle)
Handle of the OCR classifier.
WidthCharacterwidthCharacterwidth_character (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)
Width of the rectangle to which the gray values
of the segmented character are zoomed.
HeightCharacterheightCharacterheight_character (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)
Height of the rectangle to which the gray values
of the segmented character are zoomed.
Interpolationinterpolationinterpolation (output_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)
Interpolation mode for the zooming of the characters.
Featuresfeaturesfeatures (output_control) string(-array) → (string)HTuple (HString)HTuple (string)Sequence[str]Htuple (char*)
Features to be used for classification.
Characterscharacterscharacters (output_control) string-array → (string)HTuple (HString)HTuple (string)Sequence[str]Htuple (char*)
Characters of the character set to be read.
Preprocessingpreprocessingpreprocessing (output_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)
Type of preprocessing used to transform the
feature vectors.
NumTreesnumTreesnum_trees (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)
Number of different trees used during the classification.
Result
If the parameters are valid, the operator
get_params_ocr_class_knnGetParamsOcrClassKnn returns the value 2 (H_MSG_TRUE). If
necessary, an exception is raised.
Combinations with other operators
Combinations
Possible predecessors
create_ocr_class_mlpCreateOcrClassMlp, read_ocr_class_mlpReadOcrClassMlp
Possible successors
do_ocr_single_class_mlpDoOcrSingleClassMlp, do_ocr_multi_class_mlpDoOcrMultiClassMlp
See also
trainf_ocr_class_mlpTrainfOcrClassMlp, get_params_class_mlpGetParamsClassMlp
Module
OCR/OCV