mrlooi / rotated_maskrcnn

Rotated Mask R-CNN: From Bounding Boxes to Rotated Bounding Boxes
MIT License
347 stars 62 forks source link

minAreaRect returns invalid theta #11

Closed ashnair1 closed 4 years ago

ashnair1 commented 4 years ago

❓ Questions and Help

Hi. As the title suggests, I'm confused by cv2's minAreaRect returning invalid angles as theta. As I understand it, the minAreaRect outputs angles in the range of [-90, 0). But I seem to be having issues with this assertion assert -90 <= angle <= 0 because I'm getting positive angles (>0) and sometimes -0.0. Would you happen to have an idea as to why this is the case?

mrlooi commented 4 years ago

-0.0 = 0.0 This might help you https://stackoverflow.com/questions/15956124/minarearect-angles-unsure-about-the-angle-returned

ruthvik92 commented 3 years ago

Try pip install opencv-python==4.4.40 from pip 20.2.3 or below.