From 88091632fe565a1ff58f5ab68c66663ef1ef7547 Mon Sep 17 00:00:00 2001 From: kyO The NinjA Date: Thu, 28 May 2020 18:47:52 -0300 Subject: [PATCH] revert changes - Revert changes in campaign_ocr.py --- module/campaign/campaign_ocr.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/campaign/campaign_ocr.py b/module/campaign/campaign_ocr.py index c89492f2c..e458ee035 100644 --- a/module/campaign/campaign_ocr.py +++ b/module/campaign/campaign_ocr.py @@ -68,8 +68,8 @@ class CampaignOcr: # 0.8705039 , 0.99954903, 0.99983317, 0.99996626, 1. ], # dtype=float32) - name_offset = (70, 12) - name_size = (60, 14) + name_offset = (75, 9) + name_size = (60, 16) name_letter = (255, 255, 255) name_back = (102, 102, 102) digits = [] @@ -83,7 +83,7 @@ class CampaignOcr: digits.append(Button(area=area_offset(stage, point), color=stage_clear_color, button=button, name='stage')) result = TEMPLATE_STAGE_PERCENT.match_multi(image, similarity=0.95) - name_offset = (45, 3) + name_offset = (48, 0) for point in result: point = point[::-1] button = tuple(np.append(point, point + TEMPLATE_STAGE_PERCENT.image.shape[:2][::-1]))