Skip to content

Commit

Permalink
adapt to Pillow new version 10.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TingquanGao authored and cuicheng01 committed Jul 5, 2023
1 parent 1a06cdc commit a29d489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/utils/draw_bbox.py
Expand Up @@ -39,7 +39,7 @@ def draw_bbox_results(image,
xmin, ymin, xmax, ymax = result["bbox"]
text = "{}, {:.2f}".format(result["rec_docs"], result["rec_scores"])
th = font_size
tw = font.getsize(text)[0]
tw = font.getlength(text)
# tw = int(len(result["rec_docs"]) * font_size) + 60
start_y = max(0, ymin - th)

Expand Down

0 comments on commit a29d489

Please sign in to comment.