Unable to draw annotations on Windows
Author: zaitsmanCreated Nov 18, 2021Updated Jan 27, 2024
I installed Python 3.10, PyQt5 and libxml using instructions in readme. md
I used pyrcc5 to create resources.qrc successfully.
The UI loads, and I can get to my folder, and see my images. As soon as I try creating an annotation (pressed W on my keyboard) the script crashes with the following log
Traceback (most recent call last):
File "C:\Users\whoever\AppData\Local\Programs\Python\Python310\Apps\labelImg-master\labelImg-master\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'- OS: Windows 10
- PyQt version: 5
Same thing works a treat on mac os.
Source: HumanSignal/labelImg