📅  最后修改于: 2022-03-11 14:46:24.686000             🧑  作者: Mango
import pyautogui
(x, y) = pyautogui.position()
# Creates two lines on x and y axis by using the x and y coordinates of your mouse position
wh = #heigt of window
ww = #width of window
cv2.line(frame, (x, 0), (x, wh), (0, 255, 0), 2)
cv2.line(frame, (0, y), (ww, y), (0, 255, 0), 2)