how to find corners points of a shape in an image in opencv?

前端 未结 2 699
故里飘歌
故里飘歌 2020-12-28 09:56

I have to find corners of shapes in an image. i have used Harris corner detection algorithm to find corner, but it is giving total corners present in an image and for findin

2条回答
  •  臣服心动
    2020-12-28 10:43

    For every shape, trace the contour, and for every pixel of the contour, check if a nearby corner was found (say in a 3x3 or 5x5 neighborhood).

提交回复
热议问题