Evezerest / PPOCRLabel

PPOCRLabel is a semi-automatic graphic annotation tool suitable for OCR field, with built-in PP-OCR model to automatically detect and re-recognize data. It is written in Python 3 and PyQT5, supporting rectangular box annotation and four-point annotation modes. Annotations can be directly used for the training of PP-OCR detection and recognition models.
175 stars 41 forks source link

Can't use rect box feature #49

Closed 284nnuS closed 1 year ago

284nnuS commented 1 year ago

Hello , when i try to use rect box i have bug like AppData\Local\Programs\Python\Python310\lib\site-packages\PPOCRLabel\libs\canvas.py", line 596, in paintEvent p.drawRect(leftTop.x(), leftTop.y(), rectWidth, rectHeight) TypeError: arguments did not match any overloaded call: drawRect(self, QRectF): argument 1 has unexpected type 'float' drawRect(self, int, int, int, int): argument 1 has unexpected type 'float' drawRect(self, QRect): argument 1 has unexpected type 'float' What should i do to fix this bug ?