Skip to content

Commit

Permalink
Removed unused scale param
Browse files Browse the repository at this point in the history
  • Loading branch information
Erol444 committed Jul 15, 2022
1 parent 1f092b6 commit d1ed1c0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions depthai_helpers/config_manager.py
Expand Up @@ -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")

Expand Down
3 changes: 0 additions & 3 deletions tests/guided_manual_test.py
Expand Up @@ -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"])

Expand Down

0 comments on commit d1ed1c0

Please sign in to comment.