当前位置:网站首页>TypeError: Argument ‘angle‘ can not be treated as a double
TypeError: Argument ‘angle‘ can not be treated as a double
2022-07-01 00:41:00 【AI浩】
问题如下:
File "D:\rotation-yolov5-master\detect.py", line 173, in <module>
detect()
File "D:\rotation-yolov5-master\detect.py", line 78, in detect
pred = rotate_non_max_suppression(pred, opt.conf_thres, opt.iou_thres, classes=opt.classes, agnostic=True)
File "D:\rotation-yolov5-master\utils\general.py", line 869, in rotate_non_max_suppression
i = nms(boxes, scores)
File "D:\rotation-yolov5-master\utils\general.py", line 797, in nms
rotate_ious = rotate_iou(max_iou_boxes[-1], sort_boxes[1:])
File "D:\rotation-yolov5-master\utils\general.py", line 710, in rotate_iou
r_b1 = get_rotated_coors(box1[i])
File "D:\rotation-yolov5-master\utils\general.py", line 729, in get_rotated_coors
R[:2] = cv2.getRotationMatrix2D(angle=-a*180/math.pi, center=(cx,cy), scale=1)
TypeError: Argument 'angle' can not be treated as a double
解决方法:
将
R[:2] = cv2.getRotationMatrix2D(angle=-a*180/math.pi, center=(cx,cy), scale=1)
改为:
R[:2] = cv2.getRotationMatrix2D(angle=float(-a*180/math.pi), center=(cx,cy), scale=1)
边栏推荐
- Usage of C set
- Parity linked list [two general directions of linked list operation]
- dc_labs--lab1的学习与总结
- PHP online confusion encryption tutorial sharing + basically no solution
- uniapp官方组件点击item无效,解决方案
- Xjy-220/43ac220v static signal relay
- Orb-slam2 source code learning (II) map initialization
- K210工地安全帽
- 酒旅板块复苏,亚朵继续上市梦,距离“新住宿经济第一股“还有多远?
- K210 access control complete
猜你喜欢

Win11安装redis 数据库以及redis desktop manager的下载

DLS-20型双位置继电器 220VDC

2021电赛F题openmv和K210调用openmv api巡线,完全开源。

XJY-220/43AC220V静态信号继电器

【网络丢包,网络延迟?这款神器帮你搞定所有!】

Vnctf 2022 cm CM1 re reproduction

Green, green the reed. dew and frost gleam.

集群与LVS介绍及原理解析
![奇偶链表[链表操作的两种大方向]](/img/4e/ce860bc172bb75f456427ba26a7842.png)
奇偶链表[链表操作的两种大方向]

Kongyiji's first question: how much do you know about service communication?
随机推荐
About vctk datasets
Shift operators
Left join displays the specified value when the left join matching data is null
5. TPM module initialization
Opencv basic operation 2 realizes label2rgb and converts gray-scale images into color images
分割链表[先取next再斩断链表防止断链]
[network packet loss and network delay? This artifact can help you deal with everything!]
ASCII、Unicode、GBK、UTF-8之间的关系
Q play soft large toast to bring more comfortable sleep
Basic knowledge of software and hardware -- diary (1)
Implementation of date class
Using asyncio for concurrency
自定义注解实现校验
Double position relay dls-5/2 dc220v
Technical personnel advanced to draw a big picture of business, hand-in-hand teaching is coming
Locking relay ydb-100, 100V
双位置继电器ST2-2L/AC220V
Split the linked list [take next first and then cut the linked list to prevent chain breakage]
Kongyiji's first question: how much do you know about service communication?
冲击继电器ZC-23/DC220V