当前位置:网站首页>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)
边栏推荐
- Docker deployment MySQL 8
- 尝试新的可能
- Opencv basic operation 2 realizes label2rgb and converts gray-scale images into color images
- Exploration and practice of "flow batch integration" in JD
- [stack] 921 Minimum Add to Make Parentheses Valid
- dc_labs--lab1的学习与总结
- 工作6年,来盘点一下职场人混迹职场的黄金法则
- System. Csrebot for commandline
- The liquor and tourism sector recovers, and Yaduo continues to dream of listing. How far is it from "the first share of the new accommodation economy"?
- Thinking brought by strictmode -strictmode principle (5)
猜你喜欢

日志 logrus第三方库的使用

DC学习笔记正式篇之零——综述与基本流程介绍

医疗HIS行业短信发送解决方案

Gin configuration file

编译安装oh-my-zsh

物业怎么发短信通知给业主?

Note d'étude du DC: zéro dans le chapitre officiel - - Aperçu et introduction du processus de base

Using recyclerreview to show banner is very simple

6月第4周榜单丨飞瓜数据UP主成长排行榜(哔哩哔哩平台)发布!

Compile and install oh my Zsh
随机推荐
Open3D 点云颜色渲染
mysql数据库基础:流程控制
Construction and beautification of personal blog
DC學習筆記正式篇之零——綜述與基本流程介紹
[Qt5 tab] tab label and content hierarchical analysis
做生意更加务实
直播商城源码,实现左右联动商品分类页面
About the general input operation mode of unity
Thinking brought by strictmode -strictmode principle (5)
物业怎么发短信通知给业主?
System.CommandLine版CSRebot
用 Flutter 的 Canvas 画点有趣的图形
迪赛智慧数——其他图表(平行坐标图):2021年应届专业就业情况
图灵奖得主LeCun指明AI未来的出路在于自主学习,这家公司已踏上征途
医疗HIS行业短信发送解决方案
使用StrictMode-StrictMode原理(1)
MFC TCP communication server client demo notes vs2019
MFC TCP通信服务端客户端Demo备忘vs2019
Call the classic architecture and build the model based on the classic
Use of typora