from tkinter import *
import time
import numpy as np
import pyscreenshot as ImageGrab
import cv2
import pytesseract
import pyautogui
filename = ‘Image.png’
window = Tk()
window.title('штука')
window.geometry('250x125+900+100')
window.config(bg=“gray”)
window.resizable(width = False, height = False)
def cor_1():
time.sleep(2)
x1 = (pyautogui.position())
g = (x1)
y1 = (pyautogui.position())
y = (y1)
def cor_2():
time.sleep(2)
z1 = (pyautogui.position())
z = (z1)
c1 = (pyautogui.position())
c = (c1)
def chit_cof1():
x = 1
screen = np.array(ImageGrab.grab(bbox

cv2.imwrite(filename, screen)
x = x + 1
img = cv2.imread('Image.png')
text = pytesseract.image_to_string(img)
label1 = text
label1 = Label(window, width=8, height=2)
label1.place(x=40, y=2)
btn1 = Button(window, bg='blue', fg='white', text='1', command=cor_1)
btn1.place(x=5, y=1)
btn2 = Button(window, bg='blue', fg='white', text='2', command=cor_2)
btn2.place(x=22, y=1)
btn5 = Button(window, bg='green', fg='white', text='ST', command=chit_cof1)
btn5.place(x=110, y=40)
window.mainloop()