What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-21 18:58:06
python cv2 screen capture
import numpy as np import cv2 from PIL import ImageGrab while True: img = ImageGrab.grab(bbox=(0, 1000, 100, 1100)) #x, y, w, h img_np = np.array(img) frame = cv2.cvtColor(img_np, cv2.COLOR_BGR2GRAY) cv2.imshow("frame", frame) ... Add solution
Best helpers
Ranking is empty