From 5cf2e9f72af033b5072a2862af8dd9e587d9ff05 Mon Sep 17 00:00:00 2001 From: Thaloria Date: Fri, 14 Oct 2022 16:27:32 +0200 Subject: [PATCH] added color switch and reset trigger --- crop/Field_Representation_crop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crop/Field_Representation_crop.py b/crop/Field_Representation_crop.py index 95cba0d..fe4dd1e 100644 --- a/crop/Field_Representation_crop.py +++ b/crop/Field_Representation_crop.py @@ -230,8 +230,8 @@ class Field: def get_current_board_state(self): try: # get an updated image of the game - #screenshot = self.capture_window.get_screenshot() - screenshot = cv.imread("playfield.jpg") + screenshot = self.capture_window.get_screenshot() + #screenshot = cv.imread("playfield.jpg") screenshot = screenshot[58:1134, 230:2113] # 1883,1076 self.screenshot = screenshot # gray = cv.cvtColor(screenshot, cv.COLOR_BGR2GRAY)