read_ocrT_read_ocrReadOcrReadOcr (Operator)

Name

read_ocrT_read_ocrReadOcrReadOcr — Einlesen eines OCR-Klassifikators aus einer Datei.

Warnung

read_ocrread_ocrReadOcrReadOcrReadOcr ist veraltet und wird nur aus Gründen der Rückwärtskompatibilität zur Verfügung gestellt. Neue Applikationen sollten stattdessen die auf MLP, SVM oder CNN-basierten Operatoren verwenden.

Signatur

read_ocr( : : FileName : OcrHandle)

Herror T_read_ocr(const Htuple FileName, Htuple* OcrHandle)

void ReadOcr(const HTuple& FileName, HTuple* OcrHandle)

void HOCRBox::HOCRBox(const HString& FileName)

void HOCRBox::HOCRBox(const char* FileName)

void HOCRBox::HOCRBox(const wchar_t* FileName)   (Nur Windows)

void HOCRBox::ReadOcr(const HString& FileName)

void HOCRBox::ReadOcr(const char* FileName)

void HOCRBox::ReadOcr(const wchar_t* FileName)   (Nur Windows)

static void HOperatorSet.ReadOcr(HTuple fileName, out HTuple ocrHandle)

public HOCRBox(string fileName)

void HOCRBox.ReadOcr(string fileName)

Beschreibung

read_ocrread_ocrReadOcrReadOcrReadOcr liest einen OCR-Klassifikator aus der Datei FileNameFileNameFileNameFileNamefileName. Die Datei wird dabei im Verzeichnis ($HALCONROOT/ocr/) und im aktuellen Verzeichnis gesucht. Sind bereits zuviele Klassifikatoren geladen, erfolgt eine Fehlermeldung.

Ausführungsinformationen

Dieser Operator liefert ein Handle zurück. Es ist zu beachten, dass der Zustand einer Instanz dieses Handletyps durch bestimmte Operatoren geändert werden kann, obwohl das Handle als Eingabeparameter in diesen Operatoren verwendet wird.

Parameter

FileNameFileNameFileNameFileNamefileName (input_control)  filename.read HTupleHTupleHtuple (string) (string) (HString) (char*)

Name der Datei mit dem OCR-Klassifikator.

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

Dateiendung: .obc, .fnt

OcrHandleOcrHandleOcrHandleOcrHandleocrHandle (output_control)  ocr_box HOCRBox, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

ID des eingelesenen OCR-Klassifikators.

Ergebnis

Ist die angegebene Datei vorhanden und der Format korrekt, dann liefert read_ocrread_ocrReadOcrReadOcrReadOcr den Wert 2 (H_MSG_TRUE). Andernfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

reset_obj_dbreset_obj_dbResetObjDbResetObjDbResetObjDb

Nachfolger

do_ocr_multido_ocr_multiDoOcrMultiDoOcrMultiDoOcrMulti, do_ocr_singledo_ocr_singleDoOcrSingleDoOcrSingleDoOcrSingle, traind_ocr_class_boxtraind_ocr_class_boxTraindOcrClassBoxTraindOcrClassBoxTraindOcrClassBox, trainf_ocr_class_boxtrainf_ocr_class_boxTrainfOcrClassBoxTrainfOcrClassBoxTrainfOcrClassBox

Siehe auch

write_ocrwrite_ocrWriteOcrWriteOcrWriteOcr, do_ocr_multido_ocr_multiDoOcrMultiDoOcrMultiDoOcrMulti, traind_ocr_class_boxtraind_ocr_class_boxTraindOcrClassBoxTraindOcrClassBoxTraindOcrClassBox, trainf_ocr_class_boxtrainf_ocr_class_boxTrainfOcrClassBoxTrainfOcrClassBoxTrainfOcrClassBox

Modul

OCR/OCV