Expand description
Model Manager
This module handles downloading and caching the ONNX model used for OCR. Models are downloaded from HuggingFace and stored in the user’s cache directory.
Structs§
- Model
Manager - Manages downloading and caching of OCR models
Constants§
- CHARSET_
FILENAME - Filename of the charset that belongs to the same revision.
- MODEL_
FILENAME - Filename of the ONNX model within the repository’s
onnx/directory. - MODEL_
REPO - The Hugging Face repository holding the ONNX artifact.
- MODEL_
REVISION - The pinned revision.