Article Directory
1 Description of the problem
Find the distance between the product lamp bead (independent circle) and the outer frame of the rectangle as shown in the figure
2 Key code demonstration analysis
*开运算去除小区域
connection (RegionDynThresh, ConnectedRegions)
fill_up (ConnectedRegions, RegionFillUp)
opening_circle (RegionFillUp