From 12eb07cc3e5d413a0b8207e74e376b8c67b2389c Mon Sep 17 00:00:00 2001 From: Leif <4603009@qq.com> Date: Thu, 28 Apr 2022 17:14:32 +0800 Subject: [PATCH] Fix a bug of PPOCRLabel Fix a bug of PPOCRLabel --- PPOCRLabel/PPOCRLabel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PPOCRLabel/PPOCRLabel.py b/PPOCRLabel/PPOCRLabel.py index b9f35aa3..f09a998a 100644 --- a/PPOCRLabel/PPOCRLabel.py +++ b/PPOCRLabel/PPOCRLabel.py @@ -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) -- GitLab