Hi , I am Trying to detect shape of an object and its angle from an image .By using those angle and contour data ,I have to rotate rectangle region with corresponding to contours angle in 360 degree but by using
`double d_match=cv::matchShapes(contours[0],contours_search[i],1,0.0);
cv::RotatedRect minRect = minAreaRect( contours_search[ki] );`
I am only getting an angle within range of 0-90 degree.if the object in image is in certain angel then I need to rotate rectangle region with respect to contour angle .
Please provide me some possible solution .