Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change default cache dir #1232

Open
segalinc opened this issue Mar 22, 2024 · 1 comment
Open

change default cache dir #1232

segalinc opened this issue Mar 22, 2024 · 1 comment

Comments

@segalinc
Copy link

is it possible to change where the model is saved instead of ~/ I need to use something else

@Crivella
Copy link

From https://www.jaided.ai/easyocr/documentation/

Reader class

Base class for EasyOCR

Parameters

    lang_list (list) - list of language code you want to recognize, for example ['ch_sim','en']. List of supported language code is [here](https://www.jaided.ai/easyocr/).
    gpu (bool, string, default = True) - enable GPU
    model_storage_directory (string, default = None) - Path to directory for model data. If not specified, models will be read from a directory as defined by the environment variable EASYOCR_MODULE_PATH (preferred), MODULE_PATH (if defined), or ~/.EasyOCR/.
    download_enabled (bool, default = True) - enable download if EasyOCR is not able locate model files
    user_network_directory (bool, default = None) - Path to user-defined recognition network. If not specified, models will be read from MODULE_PATH + '/user_network' (~/.EasyOCR/user_network).
    recog_network (string, default = 'standard') - Instead of standard mode, you can choose your own recognition network --- Tutorial to be written about this.
    detector (bool, default = True) - load detection model into memory
    recognizer (bool, default = True) - load recognition model into memory

Attribute

    lang_char - Show all available characters in current model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants