work on minimap
This commit is contained in:
parent
3bb0315912
commit
2565028ad0
4 changed files with 33 additions and 21 deletions
|
|
@ -263,6 +263,7 @@ public class MinimapCapture : IFrameConsumer, IDisposable
|
|||
_colorTracker.SampleFrame(hsv, wallMask);
|
||||
|
||||
using var kernel = Cv2.GetStructuringElement(MorphShapes.Ellipse, new Size(3, 3));
|
||||
Cv2.MorphologyEx(wallMask, wallMask, MorphTypes.Close, kernel); // fill 1-2px gaps
|
||||
Cv2.Dilate(wallMask, wallMask, kernel);
|
||||
|
||||
FilterSmallComponents(wallMask, _config.WallMinArea);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue