You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the BASE_DIR in the code is hardcoded as os.path.expanduser("~/.paddleocr/"). It would be beneficial to allow users to specify the BASE_DIR through an environmental variable, giving them more flexibility in configuring the application.
I propose to make the BASE_DIR configurable through an environmental variable. This change would allow users to set their desired directory path for storing PaddleOCR data.
I would modify the code that sets the BASE_DIR to check for the presence of an environmental variable, say PADDLEOCR_BASE_DIR.
If the environmental variable PADDLEOCR_BASE_DIR is present, use its value as the new BASE_DIR. If it's not present, use the default path as os.path.expanduser("~/.paddleocr/").
The text was updated successfully, but these errors were encountered:
gknor
added a commit
to gknor/PaddleOCR
that referenced
this issue
Oct 30, 2023
Currently, the
BASE_DIR
in the code is hardcoded asos.path.expanduser("~/.paddleocr/")
. It would be beneficial to allow users to specify theBASE_DIR
through an environmental variable, giving them more flexibility in configuring the application.I propose to make the
BASE_DIR
configurable through an environmental variable. This change would allow users to set their desired directory path for storing PaddleOCR data.I would modify the code that sets the
BASE_DIR
to check for the presence of an environmental variable, sayPADDLEOCR_BASE_DIR
.If the environmental variable
PADDLEOCR_BASE_DIR
is present, use its value as the newBASE_DIR
. If it's not present, use the default path asos.path.expanduser("~/.paddleocr/")
.The text was updated successfully, but these errors were encountered: