Answers for "python crosshair overlay"

0

python crosshair overlay

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)
Posted by: Guest on September-22-2021

Python Answers by Framework

Browse Popular Code Answers by Language