当前位置:网站首页>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)
边栏推荐
- MFC TCP communication server client demo notes vs2019
- Gin configuration file
- 基础知识之三——标准单元库
- Sun Yuchen told Swiss media Bilan that the bear market will not last long
- 06. on several ways of redis persistence
- 基础知识之二——STA相关的基本定义
- Note d'étude du DC: zéro dans le chapitre officiel - - Aperçu et introduction du processus de base
- 微研所,微生物检验中常用的生化反应
- qt5-MVC:数据可视化的层次揭秘
- 1500w播放下还藏着什么热点?B站2个未来趋势你不得错过
猜你喜欢

Service grid ASM year end summary: how do end users use the service grid?

Construction and beautification of personal blog

Uniapp official component clicking item is invalid, solution

DC學習筆記正式篇之零——綜述與基本流程介紹

软件测试的可持续发展,必须要学会敲代码?

流批一体在京东的探索与实践

Opencv basic operation 2 realizes label2rgb and converts gray-scale images into color images

Compile and install oh my Zsh

uniapp官方组件点击item无效,解决方案

一站式洞察行业热点,飞瓜数据B站新功能「流量大盘」上线!
随机推荐
None of the following candidates is applicable because of a receiver type mismatch
visual studio 2019 快捷键备忘
[network packet loss and network delay? This artifact can help you deal with everything!]
[问题已处理]-nvidia-smi命令获取不到自身容器的GPU进程和外部的GPU进程号
基础知识之二——STA相关的基本定义
Strictmode analysis registration strictmode principle (4)
About vctk datasets
【多源bfs】934. Shortest Bridge
Visual studio 2019 shortcut notes
Mysql database foundation: process control
System.CommandLine版CSRebot
Service grid ASM year end summary: how do end users use the service grid?
What will Web3 bring in the future?
工作6年,来盘点一下职场人混迹职场的黄金法则
【Qt5-基础篇_1】从0开始,德天老师和你一起学习——窗口简介
C# 自定义并动态切换光标
Microbiological health, why is food microbiological testing important
MFC TCP通信服务端客户端Demo备忘vs2019
mysql插入\更新前+判断条件
Open3D 点云包围盒