小言_互联网的博客

halcon 识别喷码字符(识别结果不正确)

287人阅读  评论(0)
read_image (Image, 'E:/halcon学习笔记/328181-20151229163706151-283865989.png')
rgb1_to_gray (Image, GrayImage)
threshold (GrayImage, Region, 0, 40)
dilation_rectangle1 (Region, RegionDilation, 6, 7)
connection (RegionDilation, ConnectedRegions)
select_shape (ConnectedRegions, SelectedRegions, 'area', 'and', 150, 99999)
sort_region (SelectedRegions, SortedRegions, 'first_point', 'true', 'column')
read_ocr_class_mlp ('Industrial_0-9A-Z_Rej.omc', OCRHandle)
do_ocr_multi_class_mlp (SortedRegions, GrayImage, OCRHandle, Class, Confidence)

问题:有的字母识别成了数字,有的数字识别成了字母


转载:https://blog.csdn.net/haojy826/article/details/102555857
查看评论
* 以上用户言论只代表其个人观点,不代表本网站的观点或立场