First time here? Check out the FAQ!
answered 2016-12-28 08:02:18 -0600
Take 12 points, find minAreaRect, angle of this rect will be your rotation angle, then find rotation matrix and apply rotation