From 47eb50789e5130fcc53e1c1026c3199b71698f78 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Sat, 9 Apr 2022 13:40:39 +0800 Subject: [PATCH] Fix: Meowfficer boxes detection Detecting amount from background is not working anymore, so detect the numbers under each boxes --- module/meowfficer/train.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/meowfficer/train.py b/module/meowfficer/train.py index 622d2a27b..eb9e043ad 100644 --- a/module/meowfficer/train.py +++ b/module/meowfficer/train.py @@ -13,10 +13,10 @@ MEOWFFICER_BOX_GRID = ButtonGrid( origin=(460, 210), delta=(160, 0), button_shape=(30, 30), grid_shape=(3, 1), name='MEOWFFICER_BOX_GRID') MEOWFFICER_BOX_COUNT_GRID = ButtonGrid( - origin=(776, 21), delta=(133, 0), button_shape=(65, 27), grid_shape=(3, 1), + origin=(780, 249), delta=(-160, 0), button_shape=(74, 22), grid_shape=(3, 1), name='MEOWFFICER_BOX_COUNT_GRID') MEOWFFICER_BOX_COUNT = Digit(MEOWFFICER_BOX_COUNT_GRID.buttons, - letter=(16, 12, 0), threshold=64, + letter=(247, 247, 247), threshold=64, name='MEOWFFICER_BOX_COUNT')