From 2eb6244c1fa4f1a925f827a78182db7800e98d58 Mon Sep 17 00:00:00 2001 From: zhangxin Date: Sat, 27 Jun 2020 23:29:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8B=B1=E6=96=87=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/infer/predict_rec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = []