This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Done by Frannecklp | |
| import win32gui, win32ui, win32con, win32api | |
| import numpy as np | |
| import cv2 | |
| def grab_screen(region=None): | |
| hwin = win32gui.GetDesktopWindow() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import win32gui, win32ui, win32con, win32api | |
| import numpy as np | |
| import cv2 | |
| def grab_screen(region=None): | |
| hwin = win32gui.GetDesktopWindow() | |
| if region: | |
| left,top,x2,y2 = region |