Capturando tela com Python
Neste procedimento, é possivel capturar a tela do PC.
Para tanto é necessário instalar
pip install opencv-python
pip install numpy
pip install pyautogui
Segue o fonte:
import cv2
import numpy as np
import pyautogui
SCREEN_SIZE = (1920,1000)
fourcc = cv2.VideoWrite_fourcc(*"XVID")
out = cv2.VideoWriter("gravacao.avi",fourcc,20.0,(SCREEN_SIZE))
while True:
   img = pyautogui.screenshot()
   frame = np.array(img)
   frame = cv2.cvtColor(frame,cv2.COLOR_BGR2RGB)
   out.write(frame)
   if cv2.waitKey(1) == ord("q"):
      break
cv2.destroyAllWindows()
out.release()

 Portuguese
Portuguese				 English
English