diff --git a/ppocr/data/imaug/label_ops.py b/ppocr/data/imaug/label_ops.py index b256ed3b238175cff6dc581d2b7a420b6d7cbf70..c924af2dfd1183ebbacfaf2f783878e3c69317e2 100644 --- a/ppocr/data/imaug/label_ops.py +++ b/ppocr/data/imaug/label_ops.py @@ -160,8 +160,6 @@ class CTCLabelEncode(BaseRecLabelEncode): text = self.encode(text) if text is None: return None - if len(text) > self.max_text_len: - return None data['length'] = np.array(len(text)) text = text + [0] * (self.max_text_len - len(text)) data['label'] = np.array(text)