瀏覽代碼

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 (