Skip to content

Instantly share code, notes, and snippets.

@UrszulaCzerwinska
Created February 14, 2023 15:51
Show Gist options
  • Select an option

  • Save UrszulaCzerwinska/4509f52f6d8dfc78937941d56ecec7db to your computer and use it in GitHub Desktop.

Select an option

Save UrszulaCzerwinska/4509f52f6d8dfc78937941d56ecec7db to your computer and use it in GitHub Desktop.
detection_model_dir: str,
classification_model_dir: str,
recognition_model_dir: str,
detection_limit_side_len: float = 960,
detection_limit_type: str = "max",
detection_threshold: float = 0.3,
detection_box_threshold: float = 0.6,
detection_unclip_ratio: float = 1.5,
detection_use_dilation: bool = False,
detection_score_mode: str = "fast",
classification_batch_num: int = 6,
classification_threshold: float = 0.9,
classification_image_shape: str = "3, 48, 192",
classification_label_list: Optional[Tuple[str, str]] = ("0", "180"),
recognition_character_dict_path: str = "./paddle_models/latin_PP-OCRv3_rec_infer/latin_dict.txt",
recognition_use_space_char: bool = True,
drop_score: float = 0.5,
use_gpu=False,
use_onnx: bool = False,
classification_enabled: bool = False,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment