Is there an algorithm where I can match scale and rotation rotateRect in opencv

前端 未结 1 570
野性不改
野性不改 2021-01-24 03:21

I have a template image , with white background and black shape over it.I also have an image which have a similar shape but in different rotation and scale,also have some noise

1条回答
  •  遥遥无期
    2021-01-24 04:14

    Considering the scenario, you can try segmenting the image on the basis of color since your object of interest is black and noise is blue in color. Then, you can proceed with the contour based approach for finding your target. You can refer this link for implementation OpenCV:Watershed algorithm

    You can also refer this SO link Coca-Cola can shape recognition.

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