Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
take screenshot of chess board using pyautogui
def take_screenshot():
img = pyautogui.screenshot()
board_image = np.array(img)
board_image = board_image[:, :, ::-1].copy()
return board_image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment