labelImg使用问题

在我使用labelimg进行框图采集图像的时候就会闪退,并显示错误:
Traceback (most recent call last):
File "D:\python\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'

其中对应文件原码是这样的
if self.drawing() and not self.prev_point.isNull() and not self.out_of_pixmap(self.prev_point):
p.setPen(QColor(0, 0, 0))
p.drawLine(self.prev_point.x(), 0, self.prev_point.x(), self.pixmap.height())
p.drawLine(0, self.prev_point.y(), self.pixmap.width(), self.prev_point.y())

其中我在使用其他功能是没有问题的,就是create rectbox的时候就会退

大家可以看一下我这篇https://blog.csdn.net/weixin_46084533/article/details/128978250?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522167604029116782425152892%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=167604029116782425152892&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~first_rank_ecpm_v1~times_rank-1-128978250-null-null.142^v73^control,201^v4^add_ask,239^v1^insert_chatgpt&utm_term=drawLine%28self%2C%20Union%5BQPointF%2C%20QPoint%5D%2C%20Union%5BQPointF%2C%20QPoint%5D%29%3A%20argument%201%20has%20unexpected%20type%20float&spm=1018.2226.3001.4187

加1,我也碰到了这样问题

题主解决了吗,我也是一模一样的问题,用的py3.10