read_ocr_trainf_namesread_ocr_trainf_namesReadOcrTrainfNamesReadOcrTrainfNamesread_ocr_trainf_names (算子名称)
名称
read_ocr_trainf_namesread_ocr_trainf_namesReadOcrTrainfNamesReadOcrTrainfNamesread_ocr_trainf_names — Query which characters are stored in a training file.
参数签名
def read_ocr_trainf_names(training_file: MaybeSequence[str]) -> Tuple[Sequence[str], Sequence[int]]
def read_ocr_trainf_names_s(training_file: MaybeSequence[str]) -> Tuple[str, int]
描述
read_ocr_trainf_namesread_ocr_trainf_namesReadOcrTrainfNamesReadOcrTrainfNamesReadOcrTrainfNamesread_ocr_trainf_names extracts the names and frequency of all
characters in the specified training files.
运行信息
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- 未经并行化处理。
参数表
TrainingFileTrainingFileTrainingFileTrainingFiletrainingFiletraining_file (input_control) filename.read(-array) → HTupleMaybeSequence[str]HTupleHtuple (string) (string) (HString) (char*)
Names of the training files.
Default:
''
""
""
""
""
""
File extension:
.trf, .otr
CharacterNamesCharacterNamesCharacterNamesCharacterNamescharacterNamescharacter_names (output_control) string(-array) → HTupleSequence[str]HTupleHtuple (string) (string) (HString) (char*)
Names of the read characters.
CharacterCountCharacterCountCharacterCountCharacterCountcharacterCountcharacter_count (output_control) integer(-array) → HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Number of characters.
结果
If the parameter values are correct 该算子
read_ocr_trainf_namesread_ocr_trainf_namesReadOcrTrainfNamesReadOcrTrainfNamesReadOcrTrainfNamesread_ocr_trainf_names 返回值 2 (
H_MSG_TRUE)
.
Otherwise an exception is raised.
可能的前置算子
write_ocr_trainfwrite_ocr_trainfWriteOcrTrainfWriteOcrTrainfWriteOcrTrainfwrite_ocr_trainf
参考其它
trainf_ocr_class_svmtrainf_ocr_class_svmTrainfOcrClassSvmTrainfOcrClassSvmTrainfOcrClassSvmtrainf_ocr_class_svm,
trainf_ocr_class_mlptrainf_ocr_class_mlpTrainfOcrClassMlpTrainfOcrClassMlpTrainfOcrClassMlptrainf_ocr_class_mlp
模块
OCR/OCV