read_ocr_class_mlp — Read an OCR classifier from a file.
read_ocr_class_mlp reads an OCR classifier that has been stored with write_ocr_class_mlp. Since the training of an OCR classifier can consume a relatively long time, the classifier is typically trained in an offline process and written to a file with write_ocr_class_mlp. In the online process the classifier is read with read_ocr_class_mlp and subsequently used for classification with do_ocr_single_class_mlp or do_ocr_multi_class_mlp.
HALCON provides a number of pretrained OCR classifiers (see Solution Guide I, chapter 'OCR', section 'Pretrained OCR Fonts'). These pretrained OCR classifiers make it possible to read a wide variety of different fonts without the need to train an OCR classifier. Note that the pretrained OCR classifiers were trained with symbols that are printed dark on light.
Suggested values: 'Document_A-Z+.omc', 'Document_0-9A-Z.omc', 'Document_0-9.omc', 'Document.omc', 'DotPrint_A-Z+.omc', 'DotPrint_0-9A-Z.omc', 'DotPrint_0-9.omc', 'DotPrint_0-9+.omc', 'DotPrint.omc', 'HandWritten_0-9.omc', 'Industrial_A-Z+.omc', 'Industrial_0-9A-Z.omc', 'Industrial_0-9.omc', 'Industrial_0-9+.omc', 'Industrial.omc', 'MICR.omc', 'OCRA_A-Z+.omc', 'OCRA_0-9A-Z.omc', 'OCRA_0-9.omc', 'OCRA.omc', 'OCRB_A-Z+.omc', 'OCRB_0-9A-Z.omc', 'OCRB_0-9.omc', 'OCRB.omc', 'OCRB_passport.omc', 'Pharma_0-9A-Z.omc', 'Pharma_0-9.omc', 'Pharma_0-9+.omc', 'Pharma.omc', 'SEMI.omc'
File extension: .omc, .fnt
Handle of the OCR classifier.
If the parameters are valid, the operator read_ocr_class_mlp returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.
create_ocr_class_mlp, write_ocr_class_mlp, read_class_mlp, write_class_mlp