From b566509c053a2ffd49695f4e6a245a7ef1ce43ed 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 Fix a bug --- 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