1 | initial version |
Here there are two methods you can do
1-convert contour1 to image using drawContour drawcontours
2-convert contour2 to image using drawContour
3-use find keypoints and feature matching , this method is rotation invariant you can follow the following example Feature Matching with FLANN
1-You can extract features for the two contours using rotation invaraint feature such as HuMoments HuMoments
2-Compare the two moments if the distance is small the two objects are similar