Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to compute the rotation angle with Hu moment

I use matchShapes() to find the similar contour.
Then use minAreaRect(), can compute the centre of contour.
But the angle isn't correct. Because the contour is irregular.

If compare the parameter of 2 Hu moment, can compute the rotation angle?
How to do it???

Thanks a lot