|
@@ -373,7 +373,7 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
|
|
if (folderMD5)
|
|
if (folderMD5)
|
|
{
|
|
{
|
|
string folderPath = System.IO.Path.Combine(App.CurrentPath, "OCREngine");
|
|
string folderPath = System.IO.Path.Combine(App.CurrentPath, "OCREngine");
|
|
- CPDFConverter.InitOcrLibrary(Path.Combine(folderPath, "x64"));
|
|
|
|
|
|
+ CPDFConverter.InitOCRLibrary(Path.Combine(folderPath, "x64"));
|
|
CPDFConverter.SetOCRModelPath(Path.Combine(folderPath, "source", "models"));
|
|
CPDFConverter.SetOCRModelPath(Path.Combine(folderPath, "source", "models"));
|
|
}
|
|
}
|
|
else
|
|
else
|
|
@@ -390,7 +390,7 @@ namespace PDF_Master.ViewModels.Dialog.ConverterDialogs
|
|
if (e.Result == Prism.Services.Dialogs.ButtonResult.OK)
|
|
if (e.Result == Prism.Services.Dialogs.ButtonResult.OK)
|
|
{
|
|
{
|
|
string folderPath = System.IO.Path.Combine(App.CurrentPath, "OCREngine");
|
|
string folderPath = System.IO.Path.Combine(App.CurrentPath, "OCREngine");
|
|
- CPDFConverter.InitOcrLibrary(Path.Combine(folderPath, "x64"));
|
|
|
|
|
|
+ CPDFConverter.InitOCRLibrary(Path.Combine(folderPath, "x64"));
|
|
CPDFConverter.SetOCRModelPath(Path.Combine(folderPath, "source", "models"));
|
|
CPDFConverter.SetOCRModelPath(Path.Combine(folderPath, "source", "models"));
|
|
}
|
|
}
|
|
else
|
|
else
|