From ae45bb9d6a70a1d5cb8a75f13d8cacceeb679346 Mon Sep 17 00:00:00 2001 From: Lincoln-LM Date: Mon, 17 Jan 2022 23:03:12 -0700 Subject: [PATCH] fix duplicate variable in rngtool as well --- src/rngtool.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/rngtool.py b/src/rngtool.py index e4c151b..83f4e56 100644 --- a/src/rngtool.py +++ b/src/rngtool.py @@ -121,8 +121,7 @@ def tracking_blink(img, roi_x, roi_y, roi_w, roi_h, th = 0.9, size = 40, Monitor exit() else: if tk_window.config_json["display_percent"] != 100: - size = frame.shape[::-1] - _, fw, fh = size + _, fw, fh = frame.shape[::-1] frame = cv2.resize(frame,(round(fw*tk_window.config_json["display_percent"]/100),round(fh*tk_window.config_json["display_percent"]/100))) frame_tk = tk_window.cv_image_to_tk(frame) tk_window.monitor_tk_buffer = last_frame_tk @@ -270,8 +269,7 @@ def tracking_poke_blink(img, roi_x, roi_y, roi_w, roi_h, size = 64, th = 0.85, M exit() else: if tk_window.config_json["display_percent"] != 100: - size = frame.shape[::-1] - _, fw, fh = size + _, fw, fh = frame.shape[::-1] frame = cv2.resize(frame,(round(fw*tk_window.config_json["display_percent"]/100),round(fh*tk_window.config_json["display_percent"]/100))) frame_tk = tk_window.cv_image_to_tk(frame) tk_window.monitor_tk_buffer = last_frame_tk