Update Tesseract to 5.5.0

This commit is contained in:
Nikolaj Olsson 2024-11-16 21:34:45 +01:00
parent 4af0572d87
commit 24b95663cf
4 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@ namespace Nikse.SubtitleEdit.Core.Common
public static readonly string TimeCodesDirectory = DataDirectory + "TimeCodes" + Path.DirectorySeparatorChar;
public static readonly string AutoBackupDirectory = DataDirectory + "AutoBackup" + Path.DirectorySeparatorChar;
public static readonly string VobSubCompareDirectory = DataDirectory + "VobSub" + Path.DirectorySeparatorChar;
public static readonly string TesseractDirectory = DataDirectory + "Tesseract533" + Path.DirectorySeparatorChar;
public static readonly string TesseractDirectory = DataDirectory + "Tesseract550" + Path.DirectorySeparatorChar;
public static readonly string Tesseract302Directory = DataDirectory + "Tesseract302" + Path.DirectorySeparatorChar;
public static readonly string WaveformsDirectory = DataDirectory + "Waveforms" + Path.DirectorySeparatorChar;
public static readonly string PluginsDirectory = DataDirectory + "Plugins";

View File

@ -11,7 +11,7 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
{
public sealed partial class DownloadTesseract5 : Form
{
public const string TesseractDownloadUrl = "https://github.com/SubtitleEdit/support-files/releases/download/Tesseract533-2023-10-05/Tesseract533.zip";
public const string TesseractDownloadUrl = "https://github.com/SubtitleEdit/support-files/releases/download/tesseract550/Tesseract550.zip";
private readonly CancellationTokenSource _cancellationTokenSource;
public DownloadTesseract5(string version)

View File

@ -73,7 +73,7 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
for (var i = 0; i < comboBoxDictionaries.Items.Count; i++)
{
if (comboBoxDictionaries.Items[i] is string n && n == "English")
if (comboBoxDictionaries.Items[i].ToString() == "English")
{
comboBoxDictionaries.SelectedIndex = i;
break;

View File

@ -336,7 +336,7 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
// Dictionaries/spellchecking/fixing
private OcrFixEngine _ocrFixEngine;
private int _tesseractOcrAutoFixes;
private string Tesseract5Version = "5.3.3";
private string Tesseract5Version = "5.5.0";
private Subtitle _bdnXmlOriginal;
private Subtitle _bdnXmlSubtitle;