-
Notifications
You must be signed in to change notification settings - Fork 8k
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
PPOCRLabel绘制矩形框频繁闪退 #10578
Comments
如果可以的话,能简述一下重现条件嘛? |
@Gmgge 选择矩形标注,点击鼠标左键触发报错。 |
根据追溯,你可以查看相关说明,简单来说是数据类型自动转换出现问题,你可以尝试以下方案以解决该问题。 |
报错信息:
自行更改:
|
碰到同样问题,python版本3.10.13 |
碰到同样问题,python版本3.10 |
same problem |
参考 #11236 |
实际操作了一下 升级PyQt5之后还是会报错 方法2这个可以解决问题 改动的地方不止line 596,我的版本(PPOCRLabel= 2.1.0)下line 615、615、596都进行了修改 修改完成后问题解决 非常感谢!!! |
请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem
Traceback (most recent call last):
File "/Users/xxx/.anaconda3/lib/python3.11/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, rect: QRectF): argument 1 has unexpected type 'float'
drawRect(self, x: int, y: int, w: int, h: int): argument 1 has unexpected type 'float'
drawRect(self, r: QRect): argument 1 has unexpected type 'float'
The text was updated successfully, but these errors were encountered: