read_ocr_trainf_namesReadOcrTrainfNamesReadOcrTrainfNamesread_ocr_trainf_namesread_ocr_trainf_names
Short description
read_ocr_trainf_namesReadOcrTrainfNamesReadOcrTrainfNamesread_ocr_trainf_namesread_ocr_trainf_names — Query which characters are stored in a training file.
Signature
read_ocr_trainf_names( filename.read TrainingFile, out string CharacterNames, out integer CharacterCount )void ReadOcrTrainfNames( const HTuple& TrainingFile, HTuple* CharacterNames, HTuple* CharacterCount )static void HOperatorSet.ReadOcrTrainfNames( HTuple trainingFile, out HTuple characterNames, out HTuple 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]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 )
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 HTuple HMisc.ReadOcrTrainfNames( HTuple trainingFile, out HTuple characterCount )
static string HMisc.ReadOcrTrainfNames( string trainingFile, out int characterCount )
Description
read_ocr_trainf_namesReadOcrTrainfNames extracts the names and frequency of all
characters in the specified training files.
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
TrainingFiletrainingFiletraining_file (input_control) filename.read(-array) → (string)HTuple (HString)HTuple (string)MaybeSequence[str]Htuple (char*)
Names of the training files.
Default: ''""
File extension: .trf, .otr
CharacterNamescharacterNamescharacter_names (output_control) string(-array) → (string)HTuple (HString)HTuple (string)Sequence[str]Htuple (char*)
Names of the read characters.
CharacterCountcharacterCountcharacter_count (output_control) integer(-array) → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)
Number of characters.
Result
If the parameter values are correct the operator
read_ocr_trainf_namesReadOcrTrainfNames returns the value 2 (H_MSG_TRUE).
Otherwise an exception is raised.
Combinations with other operators
Combinations
Possible predecessors
write_ocr_trainfWriteOcrTrainf
See also
trainf_ocr_class_svmTrainfOcrClassSvm, trainf_ocr_class_mlpTrainfOcrClassMlp
Module
OCR/OCV