added color switch and reset trigger
This commit is contained in:
@@ -230,8 +230,8 @@ class Field:
|
|||||||
def get_current_board_state(self):
|
def get_current_board_state(self):
|
||||||
try:
|
try:
|
||||||
# get an updated image of the game
|
# get an updated image of the game
|
||||||
#screenshot = self.capture_window.get_screenshot()
|
screenshot = self.capture_window.get_screenshot()
|
||||||
screenshot = cv.imread("playfield.jpg")
|
#screenshot = cv.imread("playfield.jpg")
|
||||||
screenshot = screenshot[58:1134, 230:2113] # 1883,1076
|
screenshot = screenshot[58:1134, 230:2113] # 1883,1076
|
||||||
self.screenshot = screenshot
|
self.screenshot = screenshot
|
||||||
# gray = cv.cvtColor(screenshot, cv.COLOR_BGR2GRAY)
|
# gray = cv.cvtColor(screenshot, cv.COLOR_BGR2GRAY)
|
||||||
|
|||||||
Reference in New Issue
Block a user