tensorflowdeep-learningcomputer-visionconv-neural-networklabelimg

i can't label images using labeLImg



i am new in object detection using python tensorflow and i have folder contains images that i need to Label it so i download pyqt5 , lableImg and when i open labelImg and choose The directory of my image folder it work fine and open folder in labelImg But when i choose Create RectBox and go to image to draw the rectangle label on it , labelImg stop running and then this error appear on 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'

LabelImg repo on github my folder contain jpg photos and different image size so i hope if anyone can help Thanks.


Solution

  • Apparently the problem is with Python 3.10: https://github.com/tzutalin/labelImg/issues/811

    You can either downgrade to Python 3.9 or use the master branch of labelImg which should already have a fix.