BossZard / rotation-yolov5

rotation detection based on yolov5
GNU General Public License v3.0
377 stars 97 forks source link

AttributeError: 'LineString' object has no attribute 'exterior' #35

Open wcyy0123 opened 1 year ago

wcyy0123 commented 1 year ago

请问这个是什么原因呢

Traceback (most recent call last):
  File "detect.py", line 175, in <module>
    detect()
  File "detect.py", line 116, in detect
    plot_one_box(xywh, im0, label=label, color=colors[int(cls)], line_thickness=3, path=path)
  File "D:\master\code\car_detection\rotation-yolov5-master\utils\general.py", line 1332, in plot_one_box
    _x, _y = poly_box.intersection(maxbox).exterior.coords.xy
AttributeError: 'LineString' object has no attribute 'exterior'