我是使用检测对象的新手,我的文件夹包含了我需要标记的图像,所以我下载了pyqt5、lableImg,当我打开labelImg并选择图像文件夹的目录时,它在labelImg中工作得很好,但是当我选择Create RectBox并转到图像在其上绘制矩形标签时,labelImg停止运行,然后这个错误出现在cmd上:
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照片和不同的图像大小,所以我希望如果有人能帮忙谢谢。
发布于 2022-01-28 14:26:59
显然问题在于Python3.10:https://github.com/tzutalin/labelImg/issues/811
您既可以降级到Python3.9,也可以使用labelImg的主分支,它应该已经有了一个修复。
https://stackoverflow.com/questions/70894942
复制相似问题