mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-21 18:52:36 +01:00
Update Tesseract to 5.5.0
This commit is contained in:
parent
4af0572d87
commit
24b95663cf
@ -25,7 +25,7 @@ namespace Nikse.SubtitleEdit.Core.Common
|
|||||||
public static readonly string TimeCodesDirectory = DataDirectory + "TimeCodes" + Path.DirectorySeparatorChar;
|
public static readonly string TimeCodesDirectory = DataDirectory + "TimeCodes" + Path.DirectorySeparatorChar;
|
||||||
public static readonly string AutoBackupDirectory = DataDirectory + "AutoBackup" + Path.DirectorySeparatorChar;
|
public static readonly string AutoBackupDirectory = DataDirectory + "AutoBackup" + Path.DirectorySeparatorChar;
|
||||||
public static readonly string VobSubCompareDirectory = DataDirectory + "VobSub" + 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 Tesseract302Directory = DataDirectory + "Tesseract302" + Path.DirectorySeparatorChar;
|
||||||
public static readonly string WaveformsDirectory = DataDirectory + "Waveforms" + Path.DirectorySeparatorChar;
|
public static readonly string WaveformsDirectory = DataDirectory + "Waveforms" + Path.DirectorySeparatorChar;
|
||||||
public static readonly string PluginsDirectory = DataDirectory + "Plugins";
|
public static readonly string PluginsDirectory = DataDirectory + "Plugins";
|
||||||
|
@ -11,7 +11,7 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
|
|||||||
{
|
{
|
||||||
public sealed partial class DownloadTesseract5 : Form
|
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;
|
private readonly CancellationTokenSource _cancellationTokenSource;
|
||||||
|
|
||||||
public DownloadTesseract5(string version)
|
public DownloadTesseract5(string version)
|
||||||
|
@ -73,7 +73,7 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
|
|||||||
|
|
||||||
for (var i = 0; i < comboBoxDictionaries.Items.Count; i++)
|
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;
|
comboBoxDictionaries.SelectedIndex = i;
|
||||||
break;
|
break;
|
||||||
|
@ -336,7 +336,7 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
|
|||||||
// Dictionaries/spellchecking/fixing
|
// Dictionaries/spellchecking/fixing
|
||||||
private OcrFixEngine _ocrFixEngine;
|
private OcrFixEngine _ocrFixEngine;
|
||||||
private int _tesseractOcrAutoFixes;
|
private int _tesseractOcrAutoFixes;
|
||||||
private string Tesseract5Version = "5.3.3";
|
private string Tesseract5Version = "5.5.0";
|
||||||
|
|
||||||
private Subtitle _bdnXmlOriginal;
|
private Subtitle _bdnXmlOriginal;
|
||||||
private Subtitle _bdnXmlSubtitle;
|
private Subtitle _bdnXmlSubtitle;
|
||||||
|
Loading…
Reference in New Issue
Block a user