I am find a business card in an image and sometimes the card is slightly skewed, how can I find the skew of the bounding box of the card?
I am using the findContours()
function to find the contours and then finding the largest contour. Storing the card in...
cv::Rect bounding_rect;
How can I find the skew of boudning_rect
? I have a function to deskew but I am having a hard time finding the skew.