get_features_ocr_class_svmT_get_features_ocr_class_svmGetFeaturesOcrClassSvmGetFeaturesOcrClassSvmget_features_ocr_class_svm (Operator)

Name

get_features_ocr_class_svmT_get_features_ocr_class_svmGetFeaturesOcrClassSvmGetFeaturesOcrClassSvmget_features_ocr_class_svm — Compute the features of a character.

Signature

get_features_ocr_class_svm(Character : : OCRHandle, Transform : Features)

Herror T_get_features_ocr_class_svm(const Hobject Character, const Htuple OCRHandle, const Htuple Transform, Htuple* Features)

void GetFeaturesOcrClassSvm(const HObject& Character, const HTuple& OCRHandle, const HTuple& Transform, HTuple* Features)

HTuple HImage::GetFeaturesOcrClassSvm(const HOCRSvm& OCRHandle, const HString& Transform) const

HTuple HImage::GetFeaturesOcrClassSvm(const HOCRSvm& OCRHandle, const char* Transform) const

HTuple HImage::GetFeaturesOcrClassSvm(const HOCRSvm& OCRHandle, const wchar_t* Transform) const   ( Windows only)

HTuple HOCRSvm::GetFeaturesOcrClassSvm(const HImage& Character, const HString& Transform) const

HTuple HOCRSvm::GetFeaturesOcrClassSvm(const HImage& Character, const char* Transform) const

HTuple HOCRSvm::GetFeaturesOcrClassSvm(const HImage& Character, const wchar_t* Transform) const   ( Windows only)

static void HOperatorSet.GetFeaturesOcrClassSvm(HObject character, HTuple OCRHandle, HTuple transform, out HTuple features)

HTuple HImage.GetFeaturesOcrClassSvm(HOCRSvm OCRHandle, string transform)

HTuple HOCRSvm.GetFeaturesOcrClassSvm(HImage character, string transform)

def get_features_ocr_class_svm(character: HObject, ocrhandle: HHandle, transform: str) -> Sequence[float]

Description

get_features_ocr_class_svmget_features_ocr_class_svmGetFeaturesOcrClassSvmGetFeaturesOcrClassSvmget_features_ocr_class_svm computes the features of the character given by CharacterCharacterCharactercharactercharacter with the OCR classifier OCRHandleOCRHandleOCRHandleOCRHandleocrhandle and returns them in FeaturesFeaturesFeaturesfeaturesfeatures. In contrast to do_ocr_single_class_svmdo_ocr_single_class_svmDoOcrSingleClassSvmDoOcrSingleClassSvmdo_ocr_single_class_svm and do_ocr_multi_class_svmdo_ocr_multi_class_svmDoOcrMultiClassSvmDoOcrMultiClassSvmdo_ocr_multi_class_svm, the character is passed as a single image object. Hence, before calling get_features_ocr_class_svmget_features_ocr_class_svmGetFeaturesOcrClassSvmGetFeaturesOcrClassSvmget_features_ocr_class_svm, reduce_domainreduce_domainReduceDomainReduceDomainreduce_domain must typically be called. The parameter TransformTransformTransformtransformtransform determines whether the feature transformation specified with PreprocessingPreprocessingPreprocessingpreprocessingpreprocessing in create_ocr_class_svmcreate_ocr_class_svmCreateOcrClassSvmCreateOcrClassSvmcreate_ocr_class_svm for the classifier should be applied (TransformTransformTransformtransformtransform = 'true'"true""true""true""true") or whether the untransformed features should be returned (TransformTransformTransformtransformtransform = 'false'"false""false""false""false"). get_features_ocr_class_svmget_features_ocr_class_svmGetFeaturesOcrClassSvmGetFeaturesOcrClassSvmget_features_ocr_class_svm can be used to inspect the features that are used for the classification.

Execution Information

Parameters

CharacterCharacterCharactercharactercharacter (input_object)  singlechannelimage objectHImageHObjectHObjectHobject (byte / uint2)

Input character.

OCRHandleOCRHandleOCRHandleOCRHandleocrhandle (input_control)  ocr_svm HOCRSvm, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the OCR classifier.

TransformTransformTransformtransformtransform (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Should the feature vector be transformed with the preprocessing?

Default: 'true' "true" "true" "true" "true"

List of values: 'false'"false""false""false""false", 'true'"true""true""true""true"

FeaturesFeaturesFeaturesfeaturesfeatures (output_control)  real-array HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Feature vector of the character.

Result

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

Possible Predecessors

trainf_ocr_class_svmtrainf_ocr_class_svmTrainfOcrClassSvmTrainfOcrClassSvmtrainf_ocr_class_svm

See also

create_ocr_class_svmcreate_ocr_class_svmCreateOcrClassSvmCreateOcrClassSvmcreate_ocr_class_svm

Module

OCR/OCV