From d1ed1c0719b32eb1949eac8edf6ebdf0df4b0eaf Mon Sep 17 00:00:00 2001 From: Erol444 Date: Fri, 15 Jul 2022 23:00:50 +0200 Subject: [PATCH] Removed unused `scale` param --- depthai_helpers/config_manager.py | 4 ---- tests/guided_manual_test.py | 3 --- 2 files changed, 7 deletions(-) diff --git a/depthai_helpers/config_manager.py b/depthai_helpers/config_manager.py index 09663f172..a7304177c 100644 --- a/depthai_helpers/config_manager.py +++ b/depthai_helpers/config_manager.py @@ -23,10 +23,6 @@ def __init__(self, args): self.args = args self.args.encode = dict(self.args.encode) self.args.cameraOrientation = dict(self.args.cameraOrientation) - if self.args.scale is None: - self.args.scale = {"color": 0.37} - else: - self.args.scale = dict(self.args.scale) if (Previews.left.name in self.args.cameraOrientation or Previews.right.name in self.args.cameraOrientation) and self.useDepth: print("[WARNING] Changing mono cameras orientation may result in incorrect depth/disparity maps") diff --git a/tests/guided_manual_test.py b/tests/guided_manual_test.py index 83b14fcbe..1984c0845 100644 --- a/tests/guided_manual_test.py +++ b/tests/guided_manual_test.py @@ -90,9 +90,6 @@ def test_cameras(): show_test_def("All cameras 5FPS", "You should see the color, left and right camera outputs", "limited to 5 FPS") subprocess.check_call([*demo_call, "-s", "left", "right", "color", "-monof", "5", "-rgbf", "5"]) - show_test_def("Preview scaling", "You should see the left camera output scaled x2") - subprocess.check_call([*demo_call, "-s", "left", "--scale", "left,2"]) - show_test_def("Camera orientation", "You should see the both rgb and mono camera previews rotated 180 degrees") subprocess.check_call([*demo_call, "-camo", "left,ROTATE_180_DEG", "right,ROTATE_180_DEG", "color,ROTATE_180_DEG"])