首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我不能用labeLImg给图像贴标签

我不能用labeLImg给图像贴标签
EN

Stack Overflow用户
提问于 2022-01-28 13:59:00
回答 1查看 3K关注 0票数 0

我是使用检测对象的新手,我的文件夹包含了我需要标记的图像,所以我下载了pyqt5、lableImg,当我打开labelImg并选择图像文件夹的目录时,它在labelImg中工作得很好,但是当我选择Create RectBox并转到图像在其上绘制矩形标签时,labelImg停止运行,然后这个错误出现在cmd上:

代码语言:javascript
复制
Traceback (most recent call last):
  File "C:\Users\DCLAP\AppData\Local\Programs\Python\Python310\lib\site-packages\libs\canvas.py", line 530, in paintEvent
    p.drawLine(self.prev_point.x(), 0, self.prev_point.x(), self.pixmap.height())
TypeError: arguments did not match any overloaded call:
  drawLine(self, QLineF): argument 1 has unexpected type 'float'
  drawLine(self, QLine): argument 1 has unexpected type 'float'
  drawLine(self, int, int, int, int): argument 1 has unexpected type 'float'
  drawLine(self, QPoint, QPoint): argument 1 has unexpected type 'float'
  drawLine(self, Union[QPointF, QPoint], Union[QPointF, QPoint]): argument 1 has unexpected type 'float'

在github上的LabelImg回购我的文件夹包含jpg照片和不同的图像大小,所以我希望如果有人能帮忙谢谢。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-01-28 14:26:59

显然问题在于Python3.10:https://github.com/tzutalin/labelImg/issues/811

您既可以降级到Python3.9,也可以使用labelImg的主分支,它应该已经有了一个修复。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70894942

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档