当前位置:网站首页>TypeError: Argument ‘angle‘ can not be treated as a double
TypeError: Argument ‘angle‘ can not be treated as a double
2022-07-01 01:33:00 【AI Hao】
Questions as follows :
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
resolvent :
take
R[:2] = cv2.getRotationMatrix2D(angle=-a*180/math.pi, center=(cx,cy), scale=1)
Change it to :
R[:2] = cv2.getRotationMatrix2D(angle=float(-a*180/math.pi), center=(cx,cy), scale=1)
边栏推荐
- 软件测试的可持续发展,必须要学会敲代码?
- flutter报错 -- The argument type ‘Function‘ can‘t be assigned to the parameter type ‘void Function()?‘
- 做生意更加务实
- StrictMode卡顿与泄漏检测-StrictMode原理(2)
- 为什么要搭建个人博客
- None of the following candidates is applicable because of a receiver type mismatch
- Use of typora
- 测试必备工具—Postman实战教程
- Use strictmode strictmode principle (1)
- Open3D 点云颜色渲染
猜你喜欢
随机推荐
测试必备工具-Postman实战教程
微生物安全与健康,什么是生物处理?
[Qt5 basic \u 1] starting from 0, Mr. Detian will study with you - Introduction to the window
使用 C# 创造 ASCII 艺术
工作6年,来盘点一下职场人混迹职场的黄金法则
Sécurité et santé microbiennes, qu'est - ce que le traitement biologique?
[deepin] common sets
3dsmax插件开发遍历节点对象和Object获取及INode变换矩阵说明
Strictmode analysis registration strictmode principle (4)
1175. Prime Arrangements
Service grid ASM year end summary: how do end users use the service grid?
visual studio 2019 快捷键备忘
Exploration and practice of "flow batch integration" in JD
Basic knowledge II - Basic definitions related to sta
Open3d point cloud bounding box
Gin configuration file
Docker deployment MySQL 8
One of the basics - overview of sta Basics
3dsmax plug-in development traversal node object and object acquisition and inode transformation matrix description
直播商城源码,实现左右联动商品分类页面






![[network packet loss and network delay? This artifact can help you deal with everything!]](/img/c4/f733b23327458b9266b9cbcccb6f14.png)


