added async stone detection thread

This commit is contained in:
2023-07-25 09:59:20 +02:00
parent b570813c5a
commit e7932f5762
2 changed files with 13 additions and 22 deletions

View File

@@ -18,11 +18,11 @@ Z_FULL = [[0, 0, 0, 0], [0, 1, 1, 0], [0, 0, 1, 1], [0, 0, 0, 0]]
T_FULL = [[0, 0, 0, 0], [0, 1, 1, 1], [0, 0, 1, 0], [0, 0, 0, 0]]
class NewStoneID(threading.Thread):
def __init__(self, cap_win):
def __init__(self):
threading.Thread.__init__(self)
#self.config = UserConfigs()
self.capture_window = cap_win
self.config = UserConfigs()
self.capture_window = WindowCapture(None, None, self.config)
self.vision_stun = Vision()
self.stone_coordinates = np.zeros((4, 4), dtype=object)