mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-08-15 12:07:24 +00:00
Fix a bug of PPOCRLabel
Fix a bug of PPOCRLabel
This commit is contained in:
parent
aa59fca5d7
commit
12eb07cc3e
@ -1733,7 +1733,7 @@ class MainWindow(QMainWindow):
|
||||
width, height = self.image.width(), self.image.height()
|
||||
for shape in self.canvas.lockedShapes:
|
||||
box = [[int(p[0] * width), int(p[1] * height)] for p in shape['ratio']]
|
||||
assert len(box) == 4
|
||||
# assert len(box) == 4
|
||||
result = [(shape['transcription'], 1)]
|
||||
result.insert(0, box)
|
||||
self.result_dic_locked.append(result)
|
||||
|
Loading…
x
Reference in New Issue
Block a user