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.
183 stars 43 forks source link

进行识别的时候会报错:setText(self, atext: str): argument 1 has unexpected type 'tuple' #56

Open crstudio opened 1 year ago

crstudio commented 1 year ago

环境:

Windows10 Python 3.8 CUDA Toolkit 11.2.2 CUDA 12.1 pyqt5 5.15.9

错误信息:

initPos PyQt5.QtCore.QPointF(1018.2962962962963, 119.0) result in reRec is [[[1018, 119], [1214, 119], [1214, 163], [1018, 163]], [('S1.00', 0.9850572347640991)]] Traceback (most recent call last): File "PPOCRLabel.py", line 2139, in singleRerecognition self.singleLabel(shape) File "PPOCRLabel.py", line 1112, in singleLabel item.setText(shape.label) TypeError: setText(self, atext: str): argument 1 has unexpected type 'tuple'