We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e160fc commit 2b947ecCopy full SHA for 2b947ec
1 file changed
paddleocr_convert/main.py
@@ -21,9 +21,12 @@ def __call__(
21
save_dir: InputType,
22
txt_path: Optional[str] = None,
23
is_del_raw: bool = False,
24
+ is_rec: Optional[bool] = None
25
) -> str:
26
model_name = Path(model_path).stem
- is_rec = "rec" in model_name
27
+
28
+ if is_rec is None:
29
+ is_rec = "rec" in model_name
30
31
if is_rec and not txt_path:
32
raise ConvertError("Please give the txt url.")
0 commit comments