{TypeError}argument for rectangle() given by name (‘thickness‘) and position
{TypeError}argument for rectangle() given by name ('thickness') and position
img = cv.rectangle( img, pt1, pt2, color[, thickness[, lineType[, shift]]] )
img = cv.rectangle( img, rec, color[, thickness[, lineType[, shift]]] )
问题
{TypeError}an integer is required (got type tuple)
{TypeError}argument for rectangle() given by name (‘color’) and position (3)
{TypeError}argument for rectangle() given by name (‘thickness’) and position (4)
{TypeError}an integer is required (got type tuple)
————————————————
原文链接:https://blog.csdn.net/csdn_zhishui/article/details/105878092
解决办法
- 坐标pt1,pt2需要是整型
- img=np.ascontiguousarray(img),然后调用rectangle
{TypeError}argument for rectangle() given by name (‘thickness‘) and position相关推荐
- TypeError: argument 1 has unexpected type 'NoneType'(解决办法)
self.search.clicked.connect(self.search_information(e)) 在使用connect时,报TypeError: argument 1 has unexp ...
- TypeError: argument of type ‘NoneType‘ is not iterable
Python程序运行时,报TypeError: argument of type 'NoneType' is not iterable这个错误! 解决方法: 将传入的值转换为字符串类型,就可以解决:
- if ‘youtube.com/‘ in url or ‘youtu.be/‘ in url:TypeError: argument of type ‘int‘ is not iterable
使用jetson agx xavier测试训练yolo5.6,得到权重文件pt模型使用USB摄像头测试报错 python3 detect.py --weights runs/train/exp16/w ...
- 【深度学习】模型部署的错误整理
目录 Pytorch部署错误 jetson nano部署错误 Pytorch以及其他框架部署错误 1_错误1:torch.nn.modules.module.ModuleAttributeError: ...
- 番外3. Python OpenCV 中如何绘制各种图形?
本系列专栏写作方式 本系列专栏写作将采用首创的问答式写作形式,快速让你学习到 OpenCV 的初级.中级.高级知识. 3. Python OpenCV 中如何绘制各种图形? 本篇博客主要分享一下在 P ...
- OpenCV 学习笔记03 boundingRect、minAreaRect、minEnclosingCircle、boxPoints、int0、circle、rectangle函数的用法...
函数中的代码是部分代码,详细代码在最后 1 cv2.boundingRect 作用:矩形边框(boundingRect),用于计算图像一系列点的外部矩形边界. cv2.boundingRect(arr ...
- php7 phpunit,Make phpunit catch php7 TypeError
原文: I am trying to validate that a php7 function accept only integers. This is the class: declare(st ...
- cv2.rectangle()
cv2.rectangle(),绘制矩形. void cv::rectangle ( InputOutputArray img, Point pt1, Point pt2, const Scalar ...
- python-opencv第五期:rectangle函数详解
概要: 众嗦粥汁所周知,在如今计算机视觉(Computer Version short for CV)是人工智能与机器人技术发展的一个重大研究方向,而opencv作为一个专门为机器视觉编程提供技术与函 ...
最新文章
- python中 __name__及__main()__的妙处02
- 【数字信号处理】线性常系数差分方程 ( 卷积 与 “ 线性常系数差分方程 “ | 使用 matlab 求解 “ 线性常系数差分方程 “ )
- 第四届中国国际大数据大会务实推进应用落地
- Zookeeper的典型应用场景(1)
- uC/OS-II源码分析(总体思路 三)
- 前端学习(3187):ant-design的button介绍按钮属性
- 《天天数学》连载12:一月十二日
- 403 forbidden nginx_linux搭建nginx服务
- Flutter实战之图片圆角和圆形简单实现
- python opencv图片合成视频
- Atitit 知识结构化的艺术 目录 1. 知识信息结构化脑图	2 1.1. 散乱化模式	2 2. 直线排列	2 2.1.1. 直排	2 2.1.2. 链表模式	2 3. 树形排列	2 3.1.
- netdevice - 底层访问 Linux 网络设备
- 思维导向树6级节点_8种常见的思维导图
- HTML5 页面布局【结合案例】
- 盘点史上最经典的电影台词
- Python requests timeout 分析
- 操作系统与内核的关系
- 数字藏品即是风口也是风险!
- mysql忘记root密码拯救方法(flush privileges)
- 【windows】在控制面板卸载软件的时候,出现2502,2503的问题
热门文章
- 使用WinDbg获取SSDT 系统服务描述表的函数服务号(索引)
- 设备驱动程序INF文件——INF文件的节
- mysql ssd 性能测试 写入_MySQL服务器的SSD性能问题分析和测试详解
- Linux内核网络数据包发送(一)
- Linux网络常用工具分类介绍
- 泛域名PHP,泛域名实现无限二级域名功能
- linux 脚本案例,30个关于Shell脚本的经典案例(上)
- java 安装多版本_一台电脑安装多个版本的jdk
- maven生成jar包,包含第三方jar包
- 2013秋浙大远程教育计算机应用基础-9计算机多媒体技术,2013秋浙大远程教育计算机应用基础-9...