mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
Tesseract tessdata folder might now also work for Linux (hardcoded to /usr/share/tesseract-ocr/tessdata)
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@396 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
e20656f117
commit
257fe139cf
@ -34,6 +34,17 @@ namespace Nikse.SubtitleEdit.Logic
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static string TesseractDataFolder
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (Utilities.IsRunningOnLinux())
|
||||||
|
return "/usr/share/tesseract-ocr/tessdata";
|
||||||
|
else
|
||||||
|
return TesseractFolder + "tessdata";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static string TesseractFolder
|
public static string TesseractFolder
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
Loading…
Reference in New Issue
Block a user