| HALCON Reference Manual / OCR / Support-Vector-Machines | Operators |
do_ocr_single_class_svm — Classify a single character with an SVM-based OCR classifier.
do_ocr_single_class_svm(Character, Image : : OCRHandle, Num : Class)
do_ocr_single_class_svm computes the best Num classes of the character given by the region Character and the gray values Image with the OCR classifier OCRHandle and returns the classes in Class. Because multiple classes may be returned by do_ocr_single_class_svm, Character may only contain a single region (a single character). If multiple characters should be classified in a single call, do_ocr_multi_class_svm must be used. Before calling do_ocr_single_class_svm, the classifier must be trained with trainf_ocr_class_svm.
| Character (input_object) | region → object |
| Character to be recognized. | |
| Image (input_object) | image → object (byte / uint2) |
| Gray values of the character. | |
| OCRHandle (input_control) | ocr_svm → (integer) |
| Handle of the OCR classifier. | |
| Num (input_control) | integer-array → (integer) |
| Number of best classes to determine. | |
| Default value: 1 | |
| Suggested values: 1, 2, 3, 4, 5 | |
| Class (output_control) | string(-array) → (string) |
| Result of classifying the character with the SVM. | |
If the parameters are valid the operator do_ocr_single_class_svm returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.
do_ocr_single_class_svm is reentrant and processed without parallelization.
trainf_ocr_class_svm, read_ocr_class_svm
create_ocr_class_svm, classify_class_svm
OCR/OCV
| HALCON Reference Manual / OCR / Support-Vector-Machines | Operators |
| Version 9.0.2 | Copyright © 1996-2010 MVTec Software GmbH |