cvMatchShape inconsistent result
Hi All,
I was trying match shape function from opencv-2.4.9. Most of the photo give a correct result. But result looks inappropriate for below photos. I was using CV_CONTOURS_MATCH_I2, it return a value 0, which mean 100% matched.
Please let me know if this was a bug or my setting was wrong. Thanks in advanced.
Could you please give us some relevant part of your code?
I have solved this problem.
I would share here if anyone having the same problem.
Just do an invert during threshold, then problem gone.
How are shapes matched? It is possible that both the center of gravity and length of the contour are used and that there are in fact two shapes with exactly the same result.