报错信息详细如下:
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'
python版本和labelimg依赖包的版本不匹配导致的,labelimg安装环境的python版本不能超过3.9版本,所以解决方案是创建一个3.9及其一下的版本来安装labelimg
conda create -n labelimg python =3.9
conda创建labelimg的环境,指定python版本为3.9
效果:
可以正常标注,闪退现象消失