Skip to content

Commit 110f2a7

Browse files
authored
Make PaddleOCR the default (#1335)
1 parent 030dec4 commit 110f2a7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

SerialPrograms/Source/CommonFramework/GlobalSettingsPanel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ GlobalSettings::GlobalSettings()
148148
{OcrLibrary::TESSERACT, "tesseract", "Tesseract"},
149149
},
150150
LockMode::LOCK_WHILE_RUNNING,
151-
OcrLibrary::TESSERACT
151+
OcrLibrary::PADDLE_OCR
152152
)
153153
, OCR_WARNING(
154154
"WARNING: If you change the OCR library away from the default (PaddleOCR), you must ensure that you have the necessary resource downloaded. "

SerialPrograms/Source/ML/Inference/ML_PaddleOCRPipeline.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace ML{
2020

2121

2222
std::pair<std::string, std::string> PaddleOCRPipeline::get_paths(Language language){
23-
std::string base = DOWNLOADED_RESOURCE_PATH() + "PaddleOCR/";
23+
std::string base = RESOURCE_PATH() + "PaddleOCR/";
2424
switch(language){
2525
case Language::None:
2626
throw InternalProgramError(nullptr, PA_CURRENT_FUNCTION, "Attempted to call OCR without a language.");

0 commit comments

Comments
 (0)