- read_image (Image, '检测漏箔.jpg')
- gen_rectangle1 (ROI_0, -4.3902, -0.965361, 1505.41, 2163.56)
- reduce_domain (Image, ROI_0, ImageReduced)
- threshold (ImageReduced, Region, 0, 80)
- intensity (ROI_0, ImageReduced, Mean, Deviation)
- paint_region (Region, ImageReduced, ImageResult, Mean, 'fill')
- threshold (ImageResult, Region1, 140, 255)
- opening_circle (Region1, RegionOpening1, 2)
- closing_circle (RegionOpening1, RegionClosing1, 30)
- connection (RegionClosing1, ConnectedRegions1)
- select_shape (ConnectedRegions1, SelectedRegions1, 'area', 'and', 10000, 999999999)
复制代码 |