当前位置:网站首页>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)
边栏推荐
- dc_labs--lab1的学习与总结
- Windows环境下安装MongoDB数据库
- Hoo research | coinwave production - nym: building the next generation privacy infrastructure
- 解析融合学科本质的创客教育路径
- Exercises on recursion in C language
- 用Steam教育启发学生多元化思维
- 【网络丢包,网络延迟?这款神器帮你搞定所有!】
- Pre training / transfer learning of models
- Opencv basic operation 2 realizes label2rgb and converts gray-scale images into color images
- 酒旅板块复苏,亚朵继续上市梦,距离“新住宿经济第一股“还有多远?
猜你喜欢
The communication mechanism and extension of Supervisor
解析融合学科本质的创客教育路径
High quality pump SolidWorks model material recommended, not to be missed
双位置继电器DLS-5/2 DC220V
Solve idea:class' xxx 'not found in module' xxx‘
Interpreting the scientific and technological literacy contained in maker Education
Service
Share your own terminal DIY display banner
TCP三次握手为什么不是两次或四次
Kongyiji's first question: how much do you know about service communication?
随机推荐
Call the classic architecture and build the model based on the classic
DLS-42/6-4 DC110V双位置继电器
[learning notes] double + two points
MATLAB 最远点采样(FPS改进版)
Koa koa-combine-routers 分路由管理
Technical personnel advanced to draw a big picture of business, hand-in-hand teaching is coming
基础知识之一——STA基础概述
StrictMode卡顿与泄漏检测-StrictMode原理(2)
Chromatic judgement bipartite graph
The question of IBL precomputation is finally solved
Xjy-220/43ac220v static signal relay
K210 access control complete
K210工地安全帽
About vctk datasets
What if the disk of datanode is full?
How to do the performance pressure test of "Health Code"
蒹葭苍苍,白露为霜。
For the first time in more than 20 years! CVPR best student thesis awarded to Chinese college students!
06. on several ways of redis persistence
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"?