ocr_get_featuresT_ocr_get_featuresOcrGetFeaturesOcrGetFeaturesocr_get_features (算子)
名称
ocr_get_featuresT_ocr_get_featuresOcrGetFeaturesOcrGetFeaturesocr_get_features — 访问与字符对应的特征。
警告
ocr_get_featuresocr_get_featuresOcrGetFeaturesOcrGetFeaturesOcrGetFeaturesocr_get_features 已过时,仅出于向后兼容性考虑而保留。 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 (输入对象) singlechannelimage → objectHImageHObjectHImageHobject (byte / uint2)
待训练的字符。
OcrHandleOcrHandleOcrHandleOcrHandleocrHandleocr_handle (输入控制) ocr_box → HOCRBox, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
ID of the desired OCR-classifier.
FeatureVectorFeatureVectorFeatureVectorFeatureVectorfeatureVectorfeature_vector (输出控制) real-array → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Feature vector.
结果
如果参数正确,算子
ocr_get_featuresocr_get_featuresOcrGetFeaturesOcrGetFeaturesOcrGetFeaturesocr_get_features 返回值 2 ( H_MSG_TRUE )。否则将抛出异常。
可能的前趋
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
模块
光学字符识别/光学字符验证