Skip to content

Commit 33cf004

Browse files
take screenshot
1 parent 9a15b0a commit 33cf004

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

application/screenshot.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import numpy as np
2+
import cv2
3+
import pyautogui
4+
image=pyautogui.screenshot()
5+
img=cv2.cvtColor(np.array(image),cv2.COLOR_RGB2BGR)
6+
cv2.imwrite('screen.png',img)

0 commit comments

Comments
 (0)