From 5cb7c1dba78b025ff333a202b27f04a2230c9da9 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Fri, 16 Nov 2018 21:12:32 +0000 Subject: [PATCH] recognition is a bit more robust.... --- Ocr.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/Ocr.py b/Ocr.py index f680669..662cb0b 100644 --- a/Ocr.py +++ b/Ocr.py @@ -220,7 +220,7 @@ 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.7 * self.imgWidth) : int(0.99 * self.imgWidth), @@ -228,6 +228,8 @@ 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