mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
parent
6c69933898
commit
f017ddfb8e
@ -311,8 +311,8 @@ namespace Nikse.SubtitleEdit.Core
|
||||
UnicodeSymbolsToInsert = "♪;♫;☺;☹;♥;©;☮;☯;Σ;∞;≡;⇒;π";
|
||||
SpellCheckAutoChangeNames = true;
|
||||
OcrFixUseHardcodedRules = true;
|
||||
OcrBinaryImageCompareRgbThreshold = 270;
|
||||
OcrTesseract4RgbThreshold = 200;
|
||||
OcrBinaryImageCompareRgbThreshold = 112;
|
||||
OcrTesseract4RgbThreshold = 112;
|
||||
Interjections = "Ah;Ahem;Ahh;Ahhh;Ahhhh;Eh;Ehh;Ehhh;Hm;Hmm;Hmmm;Huh;Mm;Mmm;Mmmm;Phew;Gah;Oh;Ohh;Ohhh;Ow;Oww;Owww;Ugh;Ughh;Uh;Uhh;Uhhh;Whew";
|
||||
GoogleApiV2KeyInfoShow = true;
|
||||
GoogleTranslateNoKeyWarningShow = true;
|
||||
|
2
src/Forms/Ocr/OcrPreprocessingT4.Designer.cs
generated
2
src/Forms/Ocr/OcrPreprocessingT4.Designer.cs
generated
@ -241,7 +241,7 @@
|
||||
this.KeyPreview = true;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.MinimumSize = new System.Drawing.Size(790, 481);
|
||||
this.MinimumSize = new System.Drawing.Size(790, 540);
|
||||
this.Name = "OcrPreprocessingT4";
|
||||
this.ShowIcon = false;
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
|
@ -1679,7 +1679,7 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
|
||||
bTemp.Dispose();
|
||||
nb = new NikseBitmap(b);
|
||||
}
|
||||
nb.MakeTwoColor(Configuration.Settings.Tools.OcrBinaryImageCompareRgbThreshold, Color.White, Color.Black);
|
||||
nb.MakeTwoColor(_preprocessingSettings?.BinaryImageCompareThreshold ?? Configuration.Settings.Tools.OcrTesseract4RgbThreshold, Color.White, Color.Black);
|
||||
returnBmp.Dispose();
|
||||
return nb.GetBitmap();
|
||||
}
|
||||
@ -1757,7 +1757,7 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
|
||||
}
|
||||
}
|
||||
|
||||
n.MakeTwoColor(Configuration.Settings.Tools.OcrBinaryImageCompareRgbThreshold);
|
||||
n.MakeTwoColor(_preprocessingSettings?.BinaryImageCompareThreshold ?? Configuration.Settings.Tools.OcrBinaryImageCompareRgbThreshold);
|
||||
returnBmp.Dispose();
|
||||
return n.GetBitmap();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user