import numpy as np
import pyautogui
import cv2
cv2.namedWindow('Screen Capture', cv2.WINDOW_NORMAL)
cv2.resizeWindow('Screen Capture', int(1980 / 2), int(1080 / 2))
while True:
screenshot = pyautogui.screenshot()
img = np.array(screenshot)
cv2.imshow('Screen Capture', img)
cv2.waitKey(3)
cv2.destroyAllWindows()
为什么会嵌套窗口