Skip to content

Commit ddce9b8

Browse files
committed
update draw ocr
1 parent e628330 commit ddce9b8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

opencv_tools/jade_visualize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ def draw_ocr(image, boxes, txts, scores, draw_txt=True, drop_score=0.5):
626626
if draw_txt:
627627
img = np.array(resize_img(image, input_size=600))
628628
txt_img = text_visual(
629-
txts, scores, img_h=img.shape[0], img_w=600, threshold=drop_score)
629+
txts, scores,font_path=get_font_path(None), img_h=img.shape[0], img_w=600, threshold=drop_score)
630630
img = np.concatenate([np.array(img), np.array(txt_img)], axis=1)
631631
return img
632632
return image

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
find_packages("opencv_tools", pack_list)
1313
setup(
1414
name="opencv_tools",
15-
version="1.0.9",
15+
version="1.1.0",
1616
keywords=("pip", "opencv_tools", ""),
1717
description="opencv_tools",
1818
long_description="",

0 commit comments

Comments
 (0)