dig failed added opencv

This commit is contained in:
2022-05-06 12:50:44 +02:00
parent a969b33c7a
commit 485b3ba7f4
30 changed files with 56 additions and 9 deletions

View File

@@ -17,7 +17,7 @@ class WindowCapture:
offset_y = 0
# constructor
def __init__(self, window_name, area, config):
def __init__(self, window_name, area, config, coords = 0):
# find the handle for the window we want to capture.
# if no window name is given, capture the entire screen
if window_name is None:
@@ -37,6 +37,8 @@ class WindowCapture:
val = config.returnEquipmentWindowPos()
elif area == "screen_conf":
val = config.returnOKWindowPos()
elif area == "lanes":
val = coords
else:
val = config.returnFullScreenWindowPos()