فهرست منبع

fix en_PP-OCR visua (#4355) (#4357)

Co-authored-by: zhangyubo0722 <94225063+zhangyubo0722@users.noreply.github.com>
cuicheng01 4 ماه پیش
والد
کامیت
da58278ca3
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      paddlex/inference/models/text_recognition/predictor.py

+ 1 - 1
paddlex/inference/models/text_recognition/predictor.py

@@ -111,7 +111,7 @@ class TextRecPredictor(BasePredictor):
         return None, None
 
     def get_vis_font(self):
-        if self.model_name.startswith("PP-OCR"):
+        if self.model_name.startswith(("PP-OCR", "en_PP-OCR")):
             return SIMFANG_FONT
 
         if self.model_name in (