From 5922550464d45841e9512d85d731fe61ad5bb09e Mon Sep 17 00:00:00 2001 From: lars Date: Sun, 10 Aug 2025 17:13:06 +0200 Subject: [PATCH] coordinate viewer --- coordinate_viewer.py | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/coordinate_viewer.py b/coordinate_viewer.py index 9f1c6bc..b594241 100644 --- a/coordinate_viewer.py +++ b/coordinate_viewer.py @@ -3,26 +3,26 @@ import mss import cv2 import numpy as np -# while True: -# print(pyautogui.position()) - - - - -monitor_area = {"top": 120, "left": 330, "width": 1900, "height": 1263} - -sct = mss.mss() - while True: - # Screenshot aufnehmen - img = np.array(sct.grab(monitor_area)) - img_bgr = cv2.cvtColor(img, cv2.COLOR_BGRA2BGR) + print(pyautogui.position()) - # Anzeige - cv2.imshow("Monitor-Ausschnitt", img_bgr) - # Mit 'q' beenden - if cv2.waitKey(1) & 0xFF == ord('q'): - break -cv2.destroyAllWindows() + +# monitor_area = {"top": 120, "left": 330, "width": 1900, "height": 1263} +# +# sct = mss.mss() +# +# while True: +# # Screenshot aufnehmen +# img = np.array(sct.grab(monitor_area)) +# img_bgr = cv2.cvtColor(img, cv2.COLOR_BGRA2BGR) +# +# # Anzeige +# cv2.imshow("Monitor-Ausschnitt", img_bgr) +# +# # Mit 'q' beenden +# if cv2.waitKey(1) & 0xFF == ord('q'): +# break +# +# cv2.destroyAllWindows()