added async stone detection thread
This commit is contained in:
@@ -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):
|
||||
def __init__(self, cap_win):
|
||||
threading.Thread.__init__(self)
|
||||
|
||||
self.config = UserConfigs()
|
||||
self.capture_window = WindowCapture(None, None, self.config)
|
||||
#self.config = UserConfigs()
|
||||
self.capture_window = cap_win
|
||||
self.vision_stun = Vision()
|
||||
|
||||
self.stone_coordinates = np.zeros((4, 4), dtype=object)
|
||||
|
||||
Reference in New Issue
Block a user