Files
rapidocr/python
Rett Wilson 332b4fcc23 fix(rec): honour model_root_dir for the rec dict and str paths in torch engine (#752)
- TextRecognizer.get_character_dict saved the downloaded character dict to
  the package models dir even when Global.model_root_dir was set, which
  fails with PermissionError on a read-only install. Save it under
  model_root_dir when set; fall back to DEFAULT_MODEL_PATH otherwise.
- The torch ModelLoader used cfg.model_root_dir / ... without Path(), so a
  str model_root_dir raised TypeError. Wrap it in Path() like the other
  engines do.
- Add tests that need no model download.
2026-10-08 09:59:59 +08:00
..
2026-06-23 09:54:53 +08:00
2026-02-01 14:36:32 +08:00