Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
crstudio opened this issue Aug 25, 2023 · 0 comments

Comments

@crstudio
Copy link

crstudio commented Aug 25, 2023

环境:

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant