diff --git a/ppocr/data/rec/dataset_traversal.py b/ppocr/data/rec/dataset_traversal.py index 84f325b9..02aa13ba 100755 --- a/ppocr/data/rec/dataset_traversal.py +++ b/ppocr/data/rec/dataset_traversal.py @@ -127,6 +127,7 @@ class LMDBReader(object): img=img, image_shape=self.image_shape, num_heads=self.num_heads, + char_ops=self.char_ops, max_text_length=self.max_text_length) else: norm_img = process_image(