*筛选矩形 select_shape (ConnectedRegions, SelectedRegions, 'rectangularity','and',1,1) dev_clear_window () dev_display (SelectedRegions) 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 执行结果: select_shape: 操作符select_shape根据形状选择区域。对于来自区域的每个输入区域,计算所指示的特征(特征)。如...
select_shape - 借助形状特征选择区域。 原型: 1 select_shape(Regions : SelectedRegions : Features, Operation, Min, Max : ) (将连接的区域进行筛选,筛选的特征有很多,如面积长度等,可以去掉不满足条件的轮廓) 描述: 操作符select_shape根据形状选择区域。对于来自区域的每个输入区域,计算所指示的特征(features...
connection (Region, ConnectedRegions) 被打散的版块通过彩色显示~~~ 有打散就有联合:union1 union1 (ConnectedRegions, RegionUnion) 将打散的块,联合成一个整体。 通过够不够方(通过更换参数,也可以选择够不够圆),将目标显示出来: select_shape (ConnectedRegions, SelectedRegions, 'rectangularity', 'and',0.9...
select_shape (ConnectedRegions, SelectedRegions1, 'rectangularity', 'and', 0, 0.9) *合并选区 union1 (SelectedRegions1, RegionUnion) *转换为规则的形状(外接圆) shape_trans (RegionUnion, RegionTrans, 'outer_circle') *裁剪出感兴趣区域 reduce_domain (Image, RegionTrans, ImageReduced) *对裁剪出来...
*开窗口 dev_open_window (0, 0, Width, Height, 'black', WindowHandle) *显示图片 dev_display (Image) threshold (Image, Region, 128, 255) connection(Region, ConnectedRegions) select_shape(ConnectedRegions, SelectedRegions, 'rectangularity', 'and', 0.9, 1) ...
select_gray, shape_trans, reduce_domain, count_obj Alternativesselect_shape_std See alsoarea_center, circularity, compactness, contlength, convexity, rectangularity, elliptic_axis, eccentricity, inner_circle, smallest_circle, smallest_rectangle1, smallest_rectangle2, inner_rectangle1, roundness, connect_...
select_shape (SelectedRegions, SelectedRegions1, 'rectangularity', 'and', 0, 0.7) sort_region (SelectedRegions1, SortedRegions, 'first_point', 'true', 'row') *读取训练结果 read_ocr_class_mlp ('Industrial_0-9A-Z_NoRej.omc', OCRHandle) ...
'rectangularity': Rectangularity (seerectangularity) 'ra': Main radius of the equivalent ellipse (seeelliptic_axis) 'rb': Secondary radius of the equivalent ellipse (seeelliptic_axis) 'phi': Orientation of the equivalent ellipse (seeelliptic_axis) ...
select_gray,shape_trans,reduce_domain,count_obj select_shape_std 参考其它 area_center,circularity,compactness,contlength,convexity,rectangularity,elliptic_axis,eccentricity,inner_circle,smallest_circle,smallest_rectangle1,smallest_rectangle2,inner_rectangle1,roundness,connect_and_holes,area_holes,diameter_region...
20、39;select_shape_xld(XLD : SelectedXLD : Features, Operation, Min, Max : )选择特定形状特征要求的XLD轮廓或多边形XLD:输入,要提取的XLDSelectedXLD:输出,提取得到的XLDFeatures:提取XLD的特征依据,默认为area,详见特征依据说明Operation:特征之间的逻辑关系,默认andMin,Max:特征值的要求范围select_contours_xl...