6.将OCR分级器的OCRHandle写入文件的FileName(文件名)(write_ocr_class_mlp)-> 7.训练字符文件-> 8.读取训练后的文件 生成识别的分类器句柄read_ocr_class_mlp -> 9.识别字符:识别单个字符(do_ocr_single_class_mlp),识别多个字符(do_ocr_multi_class_mlp)-> 10.关闭分类器句柄(clear_ocr_class_mlp) ...
trainf_ocr_class_mlp( : : OCRHandle, TrainingFile, MaxIterations, WeightTolerance, ErrorTolerance : Error, ErrorLog) 训练一个神经网络分类器 1. 2. do_ocr_multi_class_mlp(Character, Image : : OCRHandle : Class, Confidence) 使用OCR分类多个字符 Character是字符区域 Image是字符图片 OCRHandle是分...
append_ocr_trainf、create_ocr_class_mlp、trainf_ocr_class_mlp、do_ocr_multi_class_mlp 缺点一是需要自己切割字符收集字库,如下所示: 缺点二是可能自己训练的分类器不如Halcon自带的分类器效果好。(原因一方面因为字库不够丰富,另一方面可能对OCR的理解不够深刻,导致训练分类器时有些细节考虑不周全) 不过自己训...
select_obj (ImageOCRSorted, ObjectSelected, i) *在灰度图中扣出字符区域图像 reduce_domain (ImageOCR, ObjectSelected,Character) *使用OCR分类器进行字符识别 do_ocr_multi_class_mlp (Character,Character, OCRHandle, Class, Confidence) *存放识别结果 char[i-1] := Class *返回字符中心坐标 area_center ...
示例:do_ocr_multi_class_mlp (ObjectSelected, ImageInvert, OCRHandle, Class, Confidence) ObjectSelected(输入对象):输入识别区域 ImageInvert(输入对象):输入识别图像 OCRHandle(输入参数):输入句柄 Class(输入对象):输出识别的字符 Confidence(输出参数):输出识别的相似度 ...
todo_ocr_single_class_mlp,do_ocr_multi_class_mlpcan classify multiple characters in one call, and therefore typically is faster than a loop that usesdo_ocr_single_class_mlpto classify single characters. However,do_ocr_multi_class_mlpcan only return the best class of each character. Because ...
Number of elements:Class == Character Confidence(output_control)real(-array)→(real) Confidence of the class of the characters. Number of elements:Confidence == Character If the parameters are valid, the operatordo_ocr_multi_class_mlpreturns the value 2 (H_MSG_TRUE). If necessary, an except...
功能:清除所有的由OCRHandle给定的且由create ocr class mlp创建 的OCR分级器, 释放所有的分级器占据的存储空间。 3. create ocr class mlp 功能:利用MLP(多层感知器)创建一个新的OCR分级器。 4. do ocr multi class mlp 功能:为根据给定区域字符和OCR分级器OCRHandle的灰度图像值 而给定的每个字符计 算出最...
do_ocr_multi_class_mlp (SortedRegions, ImageReduced6, OCRHandle, RecNum, Confidence) area_center (SortedRegions, Area, Row_OCR, Column_OCR) dev_display (SortedRegions) set_display_font (WindowHandle, 16, 'mono', 'true', 'false') for i := 0 to |RecNum| - 1 by 1 Message := ...
2、d_ocr_class_mlp(Document_0-9.omc,OCRHandle) 12: do_ocr_multi_class_mlp(SelectedRegions,ImageG,OCRHandle, Class, Confidence)halcon导出的C#代码: 1: / 2: / File generated by HDevelop for HALCON/DOTNET (C#) Version 10.0 3: / 4: / This file is intended to be used with the HDevelo...