From 5c4d409b3ea3414f762a0f082fdea9000835cb38 Mon Sep 17 00:00:00 2001 From: LmeSzinc Date: Wed, 8 Jul 2020 16:56:28 +0800 Subject: [PATCH] Opt: Log appearance of perspective detection --- module/base/utils.py | 2 +- module/map_detection/perspective.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/module/base/utils.py b/module/base/utils.py index 86df085b4..b511a7965 100644 --- a/module/base/utils.py +++ b/module/base/utils.py @@ -188,7 +188,7 @@ def point2str(x, y, length=4): Returns: str: String with numbers right aligned, such as '( 100, 80)'. """ - return '(%s,%s)' % (str(int(x)).rjust(length), str(int(y)).rjust(length)) + return '(%s, %s)' % (str(int(x)).rjust(length), str(int(y)).rjust(length)) def node2location(node): diff --git a/module/map_detection/perspective.py b/module/map_detection/perspective.py index 4d6487d8c..41ca7927c 100644 --- a/module/map_detection/perspective.py +++ b/module/map_detection/perspective.py @@ -164,9 +164,6 @@ class Perspective: '/' if self.left_edge else ' ', '_' if self.upper_edge else ' ', '\\' if self.right_edge else ' ', len(self.vertical), len(vertical), len(edge_v)) ) - if len(horizontal) - len(self.horizontal) >= 3 or len(vertical) - len(self.vertical) >= 3: - logger.info('Too many deleted lines') - # self.save_error_image() def load_image(self, image): """Method that turns image to monochrome and hide UI.