Created
December 24, 2018 21:39
-
-
Save pravj/b4d85a59cd0e7db7892b5015b965c4f7 to your computer and use it in GitHub Desktop.
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 cv2 | |
import pyautogui | |
# using a screen size specific region | |
screen = pyautogui.screenshot(region=(200, 100, 1000, 700)) | |
screen_img_gray = cv2.cvtColor(np.array(screen), cv2.COLOR_RGB2GRAY) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment