1 | initial version |
Try
Find rotated rectangle for the contour.
Consider the rotated rectangle size as your object size.
In short,
Contour-->RotatedRect
|
'--> Size2f size
|
|-->width
'-->height
Also see the answer here might be helpful.