read_ocr_trainf_names_protectedread_ocr_trainf_names_protectedReadOcrTrainfNamesProtectedReadOcrTrainfNamesProtectedread_ocr_trainf_names_protected (Operator)

Name

read_ocr_trainf_names_protectedread_ocr_trainf_names_protectedReadOcrTrainfNamesProtectedReadOcrTrainfNamesProtectedread_ocr_trainf_names_protected — Abfragen der Zeichen, die in (geschützten) Trainings-Dateien abgelegt sind.

Signatur

read_ocr_trainf_names_protected( : : TrainingFile, Password : CharacterNames, CharacterCount)

Herror read_ocr_trainf_names_protected(const char* TrainingFile, const char* Password, char* CharacterNames, Hlong* CharacterCount)

Herror T_read_ocr_trainf_names_protected(const Htuple TrainingFile, const Htuple Password, Htuple* CharacterNames, Htuple* CharacterCount)

void ReadOcrTrainfNamesProtected(const HTuple& TrainingFile, const HTuple& Password, HTuple* CharacterNames, HTuple* CharacterCount)

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

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

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

static HString HMisc::ReadOcrTrainfNamesProtected(const wchar_t* TrainingFile, const wchar_t* Password, Hlong* CharacterCount)   (Nur Windows)

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

static HTuple HMisc.ReadOcrTrainfNamesProtected(HTuple trainingFile, HTuple password, out HTuple characterCount)

static string HMisc.ReadOcrTrainfNamesProtected(string trainingFile, string password, out int characterCount)

def read_ocr_trainf_names_protected(training_file: MaybeSequence[str], password: MaybeSequence[str]) -> Tuple[Sequence[str], Sequence[int]]

def read_ocr_trainf_names_protected_s(training_file: MaybeSequence[str], password: MaybeSequence[str]) -> Tuple[str, int]

Beschreibung

read_ocr_trainf_names_protectedread_ocr_trainf_names_protectedReadOcrTrainfNamesProtectedReadOcrTrainfNamesProtectedReadOcrTrainfNamesProtectedread_ocr_trainf_names_protected bestimmt die Namen aller Zeichen und deren Anzahl in den angegebenen Trainings-Dateien. Die Funktionalität des Operators entspricht der Funktionalität von read_ocr_trainf_namesread_ocr_trainf_namesReadOcrTrainfNamesReadOcrTrainfNamesReadOcrTrainfNamesread_ocr_trainf_names, mit der Erweiterung, dass read_ocr_trainf_names_protectedread_ocr_trainf_names_protectedReadOcrTrainfNamesProtectedReadOcrTrainfNamesProtectedReadOcrTrainfNamesProtectedread_ocr_trainf_names_protected sowohl ungeschützte als auch geschützte Trainingsdateien verarbeiten kann. Geschützte Trainingsdateien können nur mit dem korrekten Benutzerpasswort PasswordPasswordPasswordPasswordpasswordpassword verwendet werden. Falls genau ein Passwort PasswordPasswordPasswordPasswordpasswordpassword übergeben wird, werden alle Eingabedateien TrainingFileTrainingFileTrainingFileTrainingFiletrainingFiletraining_file mit diesem Passwort überprüft, ansonsten muss die Anzahl der Passworte gleich der Anzahl der Eingabedateien sein, und die Eingabedatei an Position n wird mit dem Passwort an Position n überprüft. Für ungeschützte Trainingsdateien werden die übergebenen Passworte ignoriert.

Für eine genauere Beschreibung der Operatorfunktionalität siehe read_ocr_trainf_namesread_ocr_trainf_namesReadOcrTrainfNamesReadOcrTrainfNamesReadOcrTrainfNamesread_ocr_trainf_names. Das Konzept des Schützens von OCR-Trainingsdaten in HALCON ist in protect_ocr_trainfprotect_ocr_trainfProtectOcrTrainfProtectOcrTrainfProtectOcrTrainfprotect_ocr_trainf beschrieben.

Ausführungsinformationen

Parameter

TrainingFileTrainingFileTrainingFileTrainingFiletrainingFiletraining_file (input_control)  filename.read(-array) HTupleMaybeSequence[str]HTupleHtuple (string) (string) (HString) (char*)

Namen der Trainingsdateien.

Defaultwert: '' "" "" "" "" ""

Dateiendung: .trf, .otr

PasswordPasswordPasswordPasswordpasswordpassword (input_control)  string(-array) HTupleMaybeSequence[str]HTupleHtuple (string) (string) (HString) (char*)

Passworte für geschützte Trainingsdateien.

CharacterNamesCharacterNamesCharacterNamesCharacterNamescharacterNamescharacter_names (output_control)  string(-array) HTupleSequence[str]HTupleHtuple (string) (string) (HString) (char*)

Bezeichnung der eingelesenen Zeichen.

CharacterCountCharacterCountCharacterCountCharacterCountcharacterCountcharacter_count (output_control)  integer(-array) HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Anzahl der jeweiligen Zeichen.

Ergebnis

Sind die Parameterwerte korrekt, dann liefert read_ocr_trainf_names_protectedread_ocr_trainf_names_protectedReadOcrTrainfNamesProtectedReadOcrTrainfNamesProtectedReadOcrTrainfNamesProtectedread_ocr_trainf_names_protected den Wert 2 (H_MSG_TRUE). Andernfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

protect_ocr_trainfprotect_ocr_trainfProtectOcrTrainfProtectOcrTrainfProtectOcrTrainfprotect_ocr_trainf

Siehe auch

read_ocr_trainf_namesread_ocr_trainf_namesReadOcrTrainfNamesReadOcrTrainfNamesReadOcrTrainfNamesread_ocr_trainf_names

Modul

OCR/OCV