Skip to content

Instantly share code, notes, and snippets.

@savolla
Created May 30, 2017 16:48
Show Gist options
  • Save savolla/205778456c1d018abe05875d52934cef to your computer and use it in GitHub Desktop.
Save savolla/205778456c1d018abe05875d52934cef to your computer and use it in GitHub Desktop.
import numpy as np
from PIL import ImageGrab
from PIL import Image
import cv2
import numpy as np
resim = ImageGrab.grab(bbox=(331, 168, 481, 201))
resim_array = np.array(resim)
cv2.imshow("win", resim_array)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment