mean_image (image, ImageMean, 15, 15)
dyn_threshold (image, ImageMean, RegionDynThresh, 5, 'dark')
connection (RegionDynThresh, ConnectedRegions)
select_shape (ConnectedRegions, SelectedRegions, ['area','width','height'], 'and', [9000, 200, 200], [20000, 300, 300])
fill_up (SelectedRegions, RegionFillUp)
01-26
1754
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
01-13
1550
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)