import pyautogui as bot
import numpy as np
from time import time
import cv2
import mss
import os
os.system('color 3')
bot.MINIMUM_DURATION = 0
bot.MINIMUM_SLEEP = 0
bot.PAUSE = 0
bot.FAILSAFE = False
sw, sh = bot.size()
x = sw
y = sh
sw = sw / 2 - 50
sh = sh / 2 - 50
sw = int(sw)
sh = int(sh)
start_time = time()
display_time = 3
fps = 0
sct = mss.mss()
head1_cascade = cv2.CascadeClassifier('cascade1.xml')
monitor = {"top": sh, "left": sw, "width": 100, "height": 100}
while "Screen capturing":
img = np.array(sct.grab(monitor))
heads1 = head1_cascade.detectMultiScale(img, 1.1, 3)
values = []
for (x,y,w,h) in heads1:
x = w / 2 + x + sw
y = h / 2 + y + sh
values.append((x, y))
print(values)
fps+=1
TIME = time() - start_time
if (TIME) >= display_time :
print("FPS: ", int(fps / (TIME)))
fps = 0
start_time = time()
Входные аргументы?