get_features_ocr_class_mlpT_get_features_ocr_class_mlpGetFeaturesOcrClassMlpGetFeaturesOcrClassMlpget_features_ocr_class_mlp (Operator)

Name

get_features_ocr_class_mlpT_get_features_ocr_class_mlpGetFeaturesOcrClassMlpGetFeaturesOcrClassMlpget_features_ocr_class_mlp — Compute the features of a character.

Signature

get_features_ocr_class_mlp(Character : : OCRHandle, Transform : Features)

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

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

HTuple HImage::GetFeaturesOcrClassMlp(const HOCRMlp& OCRHandle, const HString& Transform) const

HTuple HImage::GetFeaturesOcrClassMlp(const HOCRMlp& OCRHandle, const char* Transform) const

HTuple HImage::GetFeaturesOcrClassMlp(const HOCRMlp& OCRHandle, const wchar_t* Transform) const   (Windows only)

HTuple HOCRMlp::GetFeaturesOcrClassMlp(const HImage& Character, const HString& Transform) const

HTuple HOCRMlp::GetFeaturesOcrClassMlp(const HImage& Character, const char* Transform) const

HTuple HOCRMlp::GetFeaturesOcrClassMlp(const HImage& Character, const wchar_t* Transform) const   (Windows only)

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

HTuple HImage.GetFeaturesOcrClassMlp(HOCRMlp OCRHandle, string transform)

HTuple HOCRMlp.GetFeaturesOcrClassMlp(HImage character, string transform)

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

Description

get_features_ocr_class_mlpget_features_ocr_class_mlpGetFeaturesOcrClassMlpGetFeaturesOcrClassMlpGetFeaturesOcrClassMlpget_features_ocr_class_mlp computes the features of the character given by CharacterCharacterCharacterCharactercharactercharacter with the OCR classifier OCRHandleOCRHandleOCRHandleOCRHandleOCRHandleocrhandle and returns them in FeaturesFeaturesFeaturesFeaturesfeaturesfeatures. In contrast to do_ocr_single_class_mlpdo_ocr_single_class_mlpDoOcrSingleClassMlpDoOcrSingleClassMlpDoOcrSingleClassMlpdo_ocr_single_class_mlp and do_ocr_multi_class_mlpdo_ocr_multi_class_mlpDoOcrMultiClassMlpDoOcrMultiClassMlpDoOcrMultiClassMlpdo_ocr_multi_class_mlp, the character is passed as a single image object. Hence, before calling get_features_ocr_class_mlpget_features_ocr_class_mlpGetFeaturesOcrClassMlpGetFeaturesOcrClassMlpGetFeaturesOcrClassMlpget_features_ocr_class_mlp, reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain must typically be called. The parameter TransformTransformTransformTransformtransformtransform determines whether the feature transformation specified with PreprocessingPreprocessingPreprocessingPreprocessingpreprocessingpreprocessing in create_ocr_class_mlpcreate_ocr_class_mlpCreateOcrClassMlpCreateOcrClassMlpCreateOcrClassMlpcreate_ocr_class_mlp for the classifier should be applied (TransformTransformTransformTransformtransformtransform = 'true'"true""true""true""true""true") or whether the untransformed features should be returned (TransformTransformTransformTransformtransformtransform = 'false'"false""false""false""false""false"). get_features_ocr_class_mlpget_features_ocr_class_mlpGetFeaturesOcrClassMlpGetFeaturesOcrClassMlpGetFeaturesOcrClassMlpget_features_ocr_class_mlp can be used to inspect the features that are used for the classification.

Execution Information

Parameters

CharacterCharacterCharacterCharactercharactercharacter (input_object)  singlechannelimage objectHImageHObjectHImageHobject (byte / uint2)

Input character.

OCRHandleOCRHandleOCRHandleOCRHandleOCRHandleocrhandle (input_control)  ocr_mlp HOCRMlp, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the OCR classifier.

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

Should the feature vector be transformed with the preprocessing?

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

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

FeaturesFeaturesFeaturesFeaturesfeaturesfeatures (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_mlpget_features_ocr_class_mlpGetFeaturesOcrClassMlpGetFeaturesOcrClassMlpGetFeaturesOcrClassMlpget_features_ocr_class_mlp returns the value TRUE. If necessary, an exception is raised.

Possible Predecessors

trainf_ocr_class_mlptrainf_ocr_class_mlpTrainfOcrClassMlpTrainfOcrClassMlpTrainfOcrClassMlptrainf_ocr_class_mlp

See also

create_ocr_class_mlpcreate_ocr_class_mlpCreateOcrClassMlpCreateOcrClassMlpCreateOcrClassMlpcreate_ocr_class_mlp

Module

OCR/OCV