diff --git a/PPOCRLabel/PPOCRLabel.py b/PPOCRLabel/PPOCRLabel.py index b9f35aa352d5be3a77de693a6f3c1acf7469ac41..f09a998a9dcbddb3d1239ec61c7a194751362618 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)