Thinklab-SJTU / R3Det_Tensorflow

Code for AAAI 2021 paper: R3Det: Refined Single-Stage Detector with Feature Refinement for Rotating Object
Apache License 2.0
540 stars 122 forks source link

assert error of opencv in box_utils/iou_rotate.py #117

Closed mooonick closed 3 years ago

mooonick commented 3 years ago

File "../libs/box_utils/iou_rotate.py", line 88, in iou_rotate_calculate2 int_pts = cv2.rotatedRectangleIntersection(r1, r2)[1] cv2.error: /io/opencv/modules/imgproc/src/intersection.cpp:247: error: (-215) intersection.size() <= 8 in function rotatedRectangleIntersection

should i use try...except mechanism to deal with this assertion?

mooonick commented 3 years ago

when i uninstalled opencv 3.4.2 but install opencv-python 4, this error disappeared