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
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)
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
- Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
- Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
- Wird ohne Parallelisierung verarbeitet.
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 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