diff --git a/tools/infer/predict_rec.py b/tools/infer/predict_rec.py index f7540494..e7a0111c 100755 --- a/tools/infer/predict_rec.py +++ b/tools/infer/predict_rec.py @@ -73,7 +73,7 @@ class TextRecognizer(object): width_list = [] for img in img_list: width_list.append(img.shape[1] / float(img.shape[0])) - # Sorting can be accelerated + # Sorting can speed up the recognition process indices = np.argsort(np.array(width_list)) # rec_res = []