ocr_get_featuresT_ocr_get_featuresOcrGetFeaturesOcrGetFeaturesocr_get_features (算子名称)
名称
ocr_get_featuresT_ocr_get_featuresOcrGetFeaturesOcrGetFeaturesocr_get_features — Access the features which correspond to a character.
警告
ocr_get_featuresocr_get_featuresOcrGetFeaturesOcrGetFeaturesOcrGetFeaturesocr_get_features is obsolete and is only provided for
reasons of backward compatibility. New applications should use the
MLP, SVM or CNN based operators instead.
参数签名
描述
该算子 ocr_get_featuresocr_get_featuresOcrGetFeaturesOcrGetFeaturesOcrGetFeaturesocr_get_features calculates the features for
the given CharacterCharacterCharacterCharactercharactercharacter. The type and number of features is
determined by the classifier OcrHandleOcrHandleOcrHandleOcrHandleocrHandleocr_handle.
FeatureVectorFeatureVectorFeatureVectorFeatureVectorfeatureVectorfeature_vector contains the same values which are used
inside operators like traind_ocr_class_boxtraind_ocr_class_boxTraindOcrClassBoxTraindOcrClassBoxTraindOcrClassBoxtraind_ocr_class_box or
trainf_ocr_class_boxtrainf_ocr_class_boxTrainfOcrClassBoxTrainfOcrClassBoxTrainfOcrClassBoxtrainf_ocr_class_box.
运行信息
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- 未经并行化处理。
参数表
CharacterCharacterCharacterCharactercharactercharacter (input_object) singlechannelimage → objectHImageHObjectHImageHobject (byte / uint2)
Characters to be trained.
OcrHandleOcrHandleOcrHandleOcrHandleocrHandleocr_handle (input_control) ocr_box → HOCRBox, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
ID of the desired OCR-classifier.
FeatureVectorFeatureVectorFeatureVectorFeatureVectorfeatureVectorfeature_vector (output_control) real-array → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Feature vector.
结果
If the parameters are correct, 该算子
ocr_get_featuresocr_get_featuresOcrGetFeaturesOcrGetFeaturesOcrGetFeaturesocr_get_features 返回值 2 (
H_MSG_TRUE)
.
Otherwise an exception will be raised.
可能的前置算子
read_ocrread_ocrReadOcrReadOcrReadOcrread_ocr,
reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain,
thresholdthresholdThresholdThresholdThresholdthreshold,
connectionconnectionConnectionConnectionConnectionconnection
参考其它
trainf_ocr_class_boxtrainf_ocr_class_boxTrainfOcrClassBoxTrainfOcrClassBoxTrainfOcrClassBoxtrainf_ocr_class_box,
traind_ocr_class_boxtraind_ocr_class_boxTraindOcrClassBoxTraindOcrClassBoxTraindOcrClassBoxtraind_ocr_class_box
模块
OCR/OCV