From 6fde5fba87aaf2f2ad8c4af08a59454f06d8dc30 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Sat, 17 Nov 2018 12:28:39 +0000 Subject: [PATCH] Improving the robustness of all three algorithms. Again... --- Ocr.py | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Ocr.py b/Ocr.py index f680669..f4447e5 100644 --- a/Ocr.py +++ b/Ocr.py @@ -220,14 +220,16 @@ return "x" if self.settings is not None: sid_mask=self.settings.get("sid_mask", None) - es = getSID( + es,err,warn = getSID( self.img[ - int(0.045 * self.imgHeight) : int(0.085 * self.imgHeight), + int(0.04 * self.imgHeight) : int(0.095 * self.imgHeight), int(0.7 * self.imgWidth) : int(0.99 * self.imgWidth), ], self.sid_classifier, sid_mask ) + [self.errors.append(e) for e in err] + [self.warnings.append(w) for w in warn] return es -- Gitblit v1.9.3