소스 검색

change the font used in det_visualize

will-jl944 4 년 전
부모
커밋
fe18bfdc13
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      dygraph/paddlex/cv/models/utils/visualize.py

+ 1 - 1
dygraph/paddlex/cv/models/utils/visualize.py

@@ -259,7 +259,7 @@ def draw_bbox_mask(image, results, threshold=0.5, color_map=None):
         image = cv2.putText(
             image,
             text, (text_pos[0], text_pos[1] + th),
-            fontFace=cv2.FONT_HERSHEY_SIMPLEX,
+            fontFace=cv2.FONT_HERSHEY_DUPLEX,
             fontScale=default_font_scale,
             color=(255, 255, 255),
             thickness=1,