Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Try

  1. Find contour.

  2. Find rotated rectangle for the contour.

  3. 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.