- read_image (Image173106mh3g5kvfl7p3wg57, 'C:/Users/Administrator/Desktop/173106mh3g5kvfl7p3wg57.png')
- scale_image_max (Image173106mh3g5kvfl7p3wg57, ImageScaleMax)
- emphasize (ImageScaleMax, ImageEmphasize, 99, 99, 17)
- mean_image (ImageEmphasize, ImageMean, 99, 19)
- dyn_threshold (ImageEmphasize, ImageMean, RegionDynThresh, 3, 'light')
- threshold (Image173106mh3g5kvfl7p3wg57, Region, 0, 50)
- fill_up (Region, RegionFillUp)
- intersection (RegionDynThresh, RegionFillUp, RegionIntersection)
- connection (RegionIntersection, ConnectedRegions)
- select_shape_std (ConnectedRegions, SelectedRegions, 'max_area', 70)
复制代码
|