Finding contour points in emgucv

前端 未结 1 1315
滥情空心
滥情空心 2020-12-19 09:44

I am working with emguCV for finding contours essential points then saving this point in a file and user redraw this shape in future. so, my goal is this image:

exam

相关标签:
1条回答
  • 2020-12-19 09:56

    In your code you have added contour approximation operation

    Contour<Point> currentContour = contours.ApproxPoly(contours.Perimeter * 0.015, storage);
    

    This contour approximation will approximate your Contour to a nearest polygon & so your actual points got shifted. If you want to reproduce the same image you need not to do any approximation.

    Refer this thread.

    0 讨论(0)
提交回复
热议问题