Merge pull request #858 from littletomatodonkey/fix_hub_serveing

fix hub serving draw
This commit is contained in:
littletomatodonkey 2020-09-27 10:18:48 +08:00 committed by GitHub
commit d851f2c8d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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