read_ocr_trainf_namesread_ocr_trainf_namesReadOcrTrainfNamesReadOcrTrainfNamesread_ocr_trainf_names (算子)

名称

read_ocr_trainf_namesread_ocr_trainf_namesReadOcrTrainfNamesReadOcrTrainfNamesread_ocr_trainf_names — 查询训练文件中存储了哪些字符。

签名

read_ocr_trainf_names( : : TrainingFile : CharacterNames, CharacterCount)

Herror read_ocr_trainf_names(const char* TrainingFile, char* CharacterNames, Hlong* CharacterCount)

Herror T_read_ocr_trainf_names(const Htuple TrainingFile, Htuple* CharacterNames, Htuple* CharacterCount)

void ReadOcrTrainfNames(const HTuple& TrainingFile, HTuple* CharacterNames, HTuple* CharacterCount)

static HTuple HMisc::ReadOcrTrainfNames(const HTuple& TrainingFile, HTuple* CharacterCount)

static HString HMisc::ReadOcrTrainfNames(const HString& TrainingFile, Hlong* CharacterCount)

static HString HMisc::ReadOcrTrainfNames(const char* TrainingFile, Hlong* CharacterCount)

static HString HMisc::ReadOcrTrainfNames(const wchar_t* TrainingFile, Hlong* CharacterCount)   ( Windows only)

static void HOperatorSet.ReadOcrTrainfNames(HTuple trainingFile, out HTuple characterNames, out HTuple characterCount)

static HTuple HMisc.ReadOcrTrainfNames(HTuple trainingFile, out HTuple characterCount)

static string HMisc.ReadOcrTrainfNames(string trainingFile, out int characterCount)

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 (输入控制)  filename.read(-array) HTupleMaybeSequence[str]HTupleHtuple (string) (string) (HString) (char*)

Names of the training files.

默认值: '' "" "" "" "" ""

File extension: .trf, .otr

CharacterNamesCharacterNamesCharacterNamesCharacterNamescharacterNamescharacter_names (输出控制)  string(-array) HTupleSequence[str]HTupleHtuple (string) (string) (HString) (char*)

Names of the read characters.

CharacterCountCharacterCountCharacterCountCharacterCountcharacterCountcharacter_count (输出控制)  integer(-array) HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Number of characters.

结果

如果参数值正确,算子 read_ocr_trainf_namesread_ocr_trainf_namesReadOcrTrainfNamesReadOcrTrainfNamesReadOcrTrainfNamesread_ocr_trainf_names 返回值 2 ( H_MSG_TRUE )。否则将抛出异常。

可能的前趋

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

模块

光学字符识别/光学字符验证