Browse Source

Keep the region even when confident is 0 (e.g. region contains blacklisted characters)

pull/910/head
Canming Huang 2 years ago
parent
commit
6addce59a3
  1. 5
      Emgu.CV.OCR/Tesseract.cs

5
Emgu.CV.OCR/Tesseract.cs

@ -514,10 +514,7 @@ namespace Emgu.CV.OCR
idx += tr.Length;
res[i].Cost = tr.Confident;
if (tr.Confident == 0)
res[i].Region = Rectangle.Empty;
else
res[i].Region = tr.Region;
res[i].Region = tr.Region;
}
return res;
}

Loading…
Cancel
Save