From ac1df3dbcae08c69c20e800bd014274b117a7ba3 Mon Sep 17 00:00:00 2001 From: littletomatodonkey Date: Sun, 27 Sep 2020 01:43:13 +0000 Subject: [PATCH] fix hub serving draw --- tools/test_hubserving.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/test_hubserving.py b/tools/test_hubserving.py index f28ff39e..c34c1aeb 100644 --- a/tools/test_hubserving.py +++ b/tools/test_hubserving.py @@ -63,8 +63,7 @@ def draw_server_result(image_file, res): scores.append(res[dno]['confidence']) boxes = np.array(boxes) scores = np.array(scores) - draw_img = draw_ocr( - image, boxes, texts, scores, draw_txt=True, drop_score=0.5) + draw_img = draw_ocr(image, boxes, texts, scores, drop_score=0.5) return draw_img