Browse Source

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

Co-authored-by: zhangyubo0722 <94225063+zhangyubo0722@users.noreply.github.com>
cuicheng01 4 months ago
parent
commit
da58278ca3
1 changed files with 1 additions and 1 deletions
  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 (