单独一张可以搞出来,不过不知道其他类型的兼容性怎么样
read_image (Image1, 'E:/Desktop/1.png')
dev_display (Image1)
mean_image (Image1, ImageMean, 19, 19)
threshold (ImageMean, Region, 0, 30)
erosion_rectangle1 (Region, RegionErosion, 11, 11)
connection (RegionErosion, ConnectedRegions)
union1 (ConnectedRegions, RegionUnion)
difference (Image1, RegionUnion, RegionDifference)
reduce_domain (Image1, RegionDifference, ImageReduced)
mean_image (ImageReduced, ImageReduced, 3, 3)
* scale_image_max (ImageReduced, ImageReduced)
add_image (ImageReduced, ImageReduced, ImageResult, 1, 0)
* emphasize (ImageResult, ImageEmphasize, 7, 7, 1)
* illuminate (ImageResult, ImageIlluminate, 100, 100, 1.7)
threshold (ImageResult, Region1, 100,180)
* dev_display (Region1)
gray_opening_rect (ImageResult, ImageOpening, 13, 13)
threshold (ImageOpening, Region2, 60, 200)
erosion_circle (Region2, RegionErosion1, 2.5)
connection (RegionErosion1, ConnectedRegions1)
select_shape (ConnectedRegions1, SelectedRegions, 'area', 'and', 900, 2999)
dev_display (Image1)
dev_display (SelectedRegions)
|