get_features_ocr_class_mlpT_get_features_ocr_class_mlpGetFeaturesOcrClassMlpGetFeaturesOcrClassMlp (Operator)
Name
get_features_ocr_class_mlpT_get_features_ocr_class_mlpGetFeaturesOcrClassMlpGetFeaturesOcrClassMlp
— Compute the features of a character.
Signature
Description
get_features_ocr_class_mlpget_features_ocr_class_mlpGetFeaturesOcrClassMlpGetFeaturesOcrClassMlpGetFeaturesOcrClassMlp
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_mlpdo_ocr_single_class_mlpDoOcrSingleClassMlpDoOcrSingleClassMlpDoOcrSingleClassMlp
and
do_ocr_multi_class_mlpdo_ocr_multi_class_mlpDoOcrMultiClassMlpDoOcrMultiClassMlpDoOcrMultiClassMlp
, the character is passed as a single
image object. Hence, before calling
get_features_ocr_class_mlpget_features_ocr_class_mlpGetFeaturesOcrClassMlpGetFeaturesOcrClassMlpGetFeaturesOcrClassMlp
, reduce_domainreduce_domainReduceDomainReduceDomainReduceDomain
must
typically be called. The parameter TransformTransformTransformTransformtransform
determines
whether the feature transformation specified with
Preprocessing
in create_ocr_class_mlpcreate_ocr_class_mlpCreateOcrClassMlpCreateOcrClassMlpCreateOcrClassMlp
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_mlpget_features_ocr_class_mlpGetFeaturesOcrClassMlpGetFeaturesOcrClassMlpGetFeaturesOcrClassMlp
can be used to inspect the
features that are used for the classification.
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
CharacterCharacterCharacterCharactercharacter
(input_object) singlechannelimage →
objectHImageHImageHobject (byte / uint2)
Input character.
OCRHandleOCRHandleOCRHandleOCRHandleOCRHandle
(input_control) ocr_mlp →
HOCRMlp, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the OCR classifier.
TransformTransformTransformTransformtransform
(input_control) string →
HTupleHTupleHtuple (string) (string) (HString) (char*)
Should the feature vector be transformed with
the preprocessing?
Default value:
'true'
"true"
"true"
"true"
"true"
List of values: 'false'"false""false""false""false", 'true'"true""true""true""true"
FeaturesFeaturesFeaturesFeaturesfeatures
(output_control) real-array →
HTupleHTupleHtuple (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_mlpGetFeaturesOcrClassMlpGetFeaturesOcrClassMlpGetFeaturesOcrClassMlp
returns the value 2 (H_MSG_TRUE). If
necessary, an exception is raised.
Possible Predecessors
trainf_ocr_class_mlptrainf_ocr_class_mlpTrainfOcrClassMlpTrainfOcrClassMlpTrainfOcrClassMlp
See also
create_ocr_class_mlpcreate_ocr_class_mlpCreateOcrClassMlpCreateOcrClassMlpCreateOcrClassMlp
Module
OCR/OCV