mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Fix regarding apostrophe in "Binary image compare" for small fonts
This commit is contained in:
parent
3e378a3aaf
commit
afea7c063e
@ -3200,7 +3200,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
return new CompareMatch(",", false, 0, null);
|
||||
}
|
||||
if (bob.IsApostrophe())
|
||||
if (maxDiff > 0 && bob.IsApostrophe())
|
||||
{
|
||||
return new CompareMatch("'", false, 0, null);
|
||||
}
|
||||
|
@ -337,6 +337,14 @@ namespace Nikse.SubtitleEdit.Logic.Ocr.Binary
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if ((double)Width * Height / NumberOfColoredPixels > 1.2)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if ((double)Height / Width < 2)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user