1 | initial version |
you could try to find a homography between a non-rotated template, and your scene. once you have that, the rotation can be calculated like:
## derive rotation angle from homography
theta = - math.atan2(M[0,1], M[0,0]) * 180 / math.pi