Use 32-bit tesseract 4 beta 1

This commit is contained in:
Nikolaj Olsson 2018-03-28 21:12:31 +02:00
parent d73e7d032d
commit b219017771
12 changed files with 14 additions and 4 deletions

BIN
Tesseract4/gif.dll Normal file

Binary file not shown.

BIN
Tesseract4/jpeg62.dll Normal file

Binary file not shown.

Binary file not shown.

BIN
Tesseract4/libpng16.dll Normal file

Binary file not shown.

BIN
Tesseract4/lzma.dll Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Tesseract4/tiff.dll Normal file

Binary file not shown.

BIN
Tesseract4/zlib1.dll Normal file

Binary file not shown.

View File

@ -102,6 +102,7 @@ COPY /Y /V "Hunspellx64.dll" "temp_zip\"
COPY /Y /V "SubtitleEdit.exe" "temp_zip\"
COPY /Y /V "Languages\*.xml" "temp_zip\Languages\"
COPY /Y /V "..\..\..\Tesseract4\tesseract.exe" "temp_zip\Tesseract4\"
COPY /Y /V "..\..\..\Tesseract4\*.dll" "temp_zip\Tesseract4\"
COPY /Y /V "..\..\..\Tesseract4\tessdata\configs\hocr" "temp_zip\Tesseract4\tessdata\configs\"
COPY /Y /V "..\..\..\Tesseract4\tessdata\*.traineddata" "temp_zip\Tesseract4\tessdata\"

View File

@ -269,6 +269,13 @@ Source: ..\LICENSE.txt; DestDir: {app};
Source: ..\Tesseract4\tessdata\configs\hocr; DestDir: {app}\Tesseract4\tessdata\configs; Flags: ignoreversion; Components: main
Source: ..\Tesseract4\tessdata\eng.traineddata; DestDir: {app}\Tesseract4\tessdata; Flags: ignoreversion; Components: main
Source: ..\Tesseract4\tesseract.exe; DestDir: {app}\Tesseract4; Flags: ignoreversion; Components: main
Source: ..\Tesseract4\gif.dll; DestDir: {app}\Tesseract4; Flags: ignoreversion; Components: main
Source: ..\Tesseract4\jpeg62.dll; DestDir: {app}\Tesseract4; Flags: ignoreversion; Components: main
Source: ..\Tesseract4\leptonica-1.74.4.dll; DestDir: {app}\Tesseract4; Flags: ignoreversion; Components: main
Source: ..\Tesseract4\libpng16.dll; DestDir: {app}\Tesseract4; Flags: ignoreversion; Components: main
Source: ..\Tesseract4\lzma.dll; DestDir: {app}\Tesseract4; Flags: ignoreversion; Components: main
Source: ..\Tesseract4\tiff.dll; DestDir: {app}\Tesseract4; Flags: ignoreversion; Components: main
Source: ..\Tesseract4\zlib1.dll; DestDir: {app}\Tesseract4; Flags: ignoreversion; Components: main
Source: Icons\uninstall.ico; DestDir: {app}\Icons; Flags: ignoreversion; Components: main

View File

@ -6179,7 +6179,9 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
}
else
{
process.StartInfo.WorkingDirectory = (Configuration.TesseractDirectory);
var tessdataPath = Path.Combine(Configuration.TesseractDirectory, "tessdata");
process.StartInfo.Arguments = " --tessdata-dir \"" + tessdataPath + "\" " + process.StartInfo.Arguments.Trim();
process.StartInfo.WorkingDirectory = Configuration.TesseractDirectory;
}
try