PFCCLab / PPOCRLabel

PPOCRLabelv2 is a semi-automatic graphic annotation tool suitable for OCR field, with built-in PP-OCR model to automatically detect and re-recognize data.
105 stars 32 forks source link

标注报错,程序退出 #36

Closed monkeycc closed 4 months ago

monkeycc commented 4 months ago

PPOCRLabel main 最新版 python 3.10

多点标注 按Q

下一张 按的时候 随机触发事件

  File "D:\anaconda3\envs\ocr\lib\site-packages\PPOCRLabel\PPOCRLabel.py", line 1425, in scrollRequest
    bar.setValue(bar.value() + bar.singleStep() * units)
TypeError: setValue(self, a0: int): argument 1 has unexpected type 'float'

ctrl + 鼠标中键


  File "D:\anaconda3\envs\ocr\lib\site-packages\PPOCRLabel\PPOCRLabel.py", line 1477, in zoomRequest
    self.addZoom(scale * units)
  File "D:\anaconda3\envs\ocr\lib\site-packages\PPOCRLabel\PPOCRLabel.py", line 1436, in addZoom
    self.setZoom(self.zoomWidget.value() + increment)
  File "D:\anaconda3\envs\ocr\lib\site-packages\PPOCRLabel\PPOCRLabel.py", line 1433, in setZoom
    self.zoomWidget.setValue(value)
TypeError: setValue(self, val: int): argument 1 has unexpected type 'float'
GreatV commented 4 months ago

得把这两个值转成int类型,如果你方便的话可以提一个pr修一下。

monkeycc commented 4 months ago

不会git,你更新就好了