Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
 
PREVIOUS NEXT
Tagged: #python #crosshair #overlay
ADD COMMENT
Topic
Name
1+5 =