First time here? Check out the FAQ!
answered 2012-11-07 21:29:50 -0600
you can use segmentation algorithm such as hough transform or harrisCorner to find rectangular object. then you can find orientation of obejct by cvMinAreaRect2 or cvFitEllipse2.